]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 0.0.57
[lilypond.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   enable-printing        turn on debug printing"
16 ac_help="$ac_help
17   disable-checking       set runtime checks (assert calls)"
18 ac_help="$ac_help
19   disable-debugging         set debug info "
20 ac_help="$ac_help
21   enable-optimise       use maximal speed optimisations"
22 ac_help="$ac_help
23   enable-profiling      compile with gprof support"
24 ac_help="$ac_help
25   tex-prefix=DIR  set the tex-directory to find TeX subdirectories. (default: PREFIX)"
26 ac_help="$ac_help
27   tex-dir=DIR  set the directory to put LilyPond  TeX files in. "
28 ac_help="$ac_help
29   mf-dir=DIR  set the directory to put LilyPond MetaFont files in."
30
31 # Initialize some variables set by options.
32 # The variables have the same names as the options, with
33 # dashes changed to underlines.
34 build=NONE
35 cache_file=./config.cache
36 exec_prefix=NONE
37 host=NONE
38 no_create=
39 nonopt=NONE
40 no_recursion=
41 prefix=NONE
42 program_prefix=NONE
43 program_suffix=NONE
44 program_transform_name=s,x,x,
45 silent=
46 site=
47 srcdir=
48 target=NONE
49 verbose=
50 x_includes=NONE
51 x_libraries=NONE
52 bindir='${exec_prefix}/bin'
53 sbindir='${exec_prefix}/sbin'
54 libexecdir='${exec_prefix}/libexec'
55 datadir='${prefix}/share'
56 sysconfdir='${prefix}/etc'
57 sharedstatedir='${prefix}/com'
58 localstatedir='${prefix}/var'
59 libdir='${exec_prefix}/lib'
60 includedir='${prefix}/include'
61 oldincludedir='/usr/include'
62 infodir='${prefix}/info'
63 mandir='${prefix}/man'
64
65 # Initialize some other variables.
66 subdirs=
67 MFLAGS= MAKEFLAGS=
68 # Maximum number of lines to put in a shell here document.
69 ac_max_here_lines=12
70
71 ac_prev=
72 for ac_option
73 do
74
75   # If the previous option needs an argument, assign it.
76   if test -n "$ac_prev"; then
77     eval "$ac_prev=\$ac_option"
78     ac_prev=
79     continue
80   fi
81
82   case "$ac_option" in
83   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84   *) ac_optarg= ;;
85   esac
86
87   # Accept the important Cygnus configure options, so we can diagnose typos.
88
89   case "$ac_option" in
90
91   -bindir | --bindir | --bindi | --bind | --bin | --bi)
92     ac_prev=bindir ;;
93   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94     bindir="$ac_optarg" ;;
95
96   -build | --build | --buil | --bui | --bu)
97     ac_prev=build ;;
98   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99     build="$ac_optarg" ;;
100
101   -cache-file | --cache-file | --cache-fil | --cache-fi \
102   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103     ac_prev=cache_file ;;
104   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106     cache_file="$ac_optarg" ;;
107
108   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109     ac_prev=datadir ;;
110   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111   | --da=*)
112     datadir="$ac_optarg" ;;
113
114   -disable-* | --disable-*)
115     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116     # Reject names that are not valid shell variable names.
117     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119     fi
120     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121     eval "enable_${ac_feature}=no" ;;
122
123   -enable-* | --enable-*)
124     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125     # Reject names that are not valid shell variable names.
126     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128     fi
129     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130     case "$ac_option" in
131       *=*) ;;
132       *) ac_optarg=yes ;;
133     esac
134     eval "enable_${ac_feature}='$ac_optarg'" ;;
135
136   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138   | --exec | --exe | --ex)
139     ac_prev=exec_prefix ;;
140   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142   | --exec=* | --exe=* | --ex=*)
143     exec_prefix="$ac_optarg" ;;
144
145   -gas | --gas | --ga | --g)
146     # Obsolete; use --with-gas.
147     with_gas=yes ;;
148
149   -help | --help | --hel | --he)
150     # Omit some internal or obsolete options to make the list less imposing.
151     # This message is too long to be a string in the A/UX 3.1 sh.
152     cat << EOF
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
155 Configuration:
156   --cache-file=FILE       cache test results in FILE
157   --help                  print this message
158   --no-create             do not create output files
159   --quiet, --silent       do not print \`checking...' messages
160   --version               print the version of autoconf that created configure
161 Directory and file names:
162   --prefix=PREFIX         install architecture-independent files in PREFIX
163                           [$ac_default_prefix]
164   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
165                           [same as prefix]
166   --bindir=DIR            user executables in DIR [EPREFIX/bin]
167   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
168   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
169   --datadir=DIR           read-only architecture-independent data in DIR
170                           [PREFIX/share]
171   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
172   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
173                           [PREFIX/com]
174   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
175   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
176   --includedir=DIR        C header files in DIR [PREFIX/include]
177   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
178   --infodir=DIR           info documentation in DIR [PREFIX/info]
179   --mandir=DIR            man documentation in DIR [PREFIX/man]
180   --srcdir=DIR            find the sources in DIR [configure dir or ..]
181   --program-prefix=PREFIX prepend PREFIX to installed program names
182   --program-suffix=SUFFIX append SUFFIX to installed program names
183   --program-transform-name=PROGRAM
184                           run sed PROGRAM on installed program names
185 EOF
186     cat << EOF
187 Host type:
188   --build=BUILD           configure for building on BUILD [BUILD=HOST]
189   --host=HOST             configure for HOST [guessed]
190   --target=TARGET         configure for TARGET [TARGET=HOST]
191 Features and packages:
192   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
193   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
194   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
195   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
196   --x-includes=DIR        X include files are in DIR
197   --x-libraries=DIR       X library files are in DIR
198 EOF
199     if test -n "$ac_help"; then
200       echo "--enable and --with options recognized:$ac_help"
201     fi
202     exit 0 ;;
203
204   -host | --host | --hos | --ho)
205     ac_prev=host ;;
206   -host=* | --host=* | --hos=* | --ho=*)
207     host="$ac_optarg" ;;
208
209   -includedir | --includedir | --includedi | --included | --include \
210   | --includ | --inclu | --incl | --inc)
211     ac_prev=includedir ;;
212   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213   | --includ=* | --inclu=* | --incl=* | --inc=*)
214     includedir="$ac_optarg" ;;
215
216   -infodir | --infodir | --infodi | --infod | --info | --inf)
217     ac_prev=infodir ;;
218   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219     infodir="$ac_optarg" ;;
220
221   -libdir | --libdir | --libdi | --libd)
222     ac_prev=libdir ;;
223   -libdir=* | --libdir=* | --libdi=* | --libd=*)
224     libdir="$ac_optarg" ;;
225
226   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227   | --libexe | --libex | --libe)
228     ac_prev=libexecdir ;;
229   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230   | --libexe=* | --libex=* | --libe=*)
231     libexecdir="$ac_optarg" ;;
232
233   -localstatedir | --localstatedir | --localstatedi | --localstated \
234   | --localstate | --localstat | --localsta | --localst \
235   | --locals | --local | --loca | --loc | --lo)
236     ac_prev=localstatedir ;;
237   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240     localstatedir="$ac_optarg" ;;
241
242   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243     ac_prev=mandir ;;
244   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245     mandir="$ac_optarg" ;;
246
247   -nfp | --nfp | --nf)
248     # Obsolete; use --without-fp.
249     with_fp=no ;;
250
251   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252   | --no-cr | --no-c)
253     no_create=yes ;;
254
255   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257     no_recursion=yes ;;
258
259   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261   | --oldin | --oldi | --old | --ol | --o)
262     ac_prev=oldincludedir ;;
263   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266     oldincludedir="$ac_optarg" ;;
267
268   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269     ac_prev=prefix ;;
270   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271     prefix="$ac_optarg" ;;
272
273   -program-prefix | --program-prefix | --program-prefi | --program-pref \
274   | --program-pre | --program-pr | --program-p)
275     ac_prev=program_prefix ;;
276   -program-prefix=* | --program-prefix=* | --program-prefi=* \
277   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278     program_prefix="$ac_optarg" ;;
279
280   -program-suffix | --program-suffix | --program-suffi | --program-suff \
281   | --program-suf | --program-su | --program-s)
282     ac_prev=program_suffix ;;
283   -program-suffix=* | --program-suffix=* | --program-suffi=* \
284   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285     program_suffix="$ac_optarg" ;;
286
287   -program-transform-name | --program-transform-name \
288   | --program-transform-nam | --program-transform-na \
289   | --program-transform-n | --program-transform- \
290   | --program-transform | --program-transfor \
291   | --program-transfo | --program-transf \
292   | --program-trans | --program-tran \
293   | --progr-tra | --program-tr | --program-t)
294     ac_prev=program_transform_name ;;
295   -program-transform-name=* | --program-transform-name=* \
296   | --program-transform-nam=* | --program-transform-na=* \
297   | --program-transform-n=* | --program-transform-=* \
298   | --program-transform=* | --program-transfor=* \
299   | --program-transfo=* | --program-transf=* \
300   | --program-trans=* | --program-tran=* \
301   | --progr-tra=* | --program-tr=* | --program-t=*)
302     program_transform_name="$ac_optarg" ;;
303
304   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305   | -silent | --silent | --silen | --sile | --sil)
306     silent=yes ;;
307
308   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309     ac_prev=sbindir ;;
310   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311   | --sbi=* | --sb=*)
312     sbindir="$ac_optarg" ;;
313
314   -sharedstatedir | --sharedstatedir | --sharedstatedi \
315   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316   | --sharedst | --shareds | --shared | --share | --shar \
317   | --sha | --sh)
318     ac_prev=sharedstatedir ;;
319   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322   | --sha=* | --sh=*)
323     sharedstatedir="$ac_optarg" ;;
324
325   -site | --site | --sit)
326     ac_prev=site ;;
327   -site=* | --site=* | --sit=*)
328     site="$ac_optarg" ;;
329
330   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331     ac_prev=srcdir ;;
332   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333     srcdir="$ac_optarg" ;;
334
335   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336   | --syscon | --sysco | --sysc | --sys | --sy)
337     ac_prev=sysconfdir ;;
338   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340     sysconfdir="$ac_optarg" ;;
341
342   -target | --target | --targe | --targ | --tar | --ta | --t)
343     ac_prev=target ;;
344   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345     target="$ac_optarg" ;;
346
347   -v | -verbose | --verbose | --verbos | --verbo | --verb)
348     verbose=yes ;;
349
350   -version | --version | --versio | --versi | --vers)
351     echo "configure generated by autoconf version 2.12"
352     exit 0 ;;
353
354   -with-* | --with-*)
355     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356     # Reject names that are not valid shell variable names.
357     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359     fi
360     ac_package=`echo $ac_package| sed 's/-/_/g'`
361     case "$ac_option" in
362       *=*) ;;
363       *) ac_optarg=yes ;;
364     esac
365     eval "with_${ac_package}='$ac_optarg'" ;;
366
367   -without-* | --without-*)
368     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369     # Reject names that are not valid shell variable names.
370     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372     fi
373     ac_package=`echo $ac_package| sed 's/-/_/g'`
374     eval "with_${ac_package}=no" ;;
375
376   --x)
377     # Obsolete; use --with-x.
378     with_x=yes ;;
379
380   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381   | --x-incl | --x-inc | --x-in | --x-i)
382     ac_prev=x_includes ;;
383   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385     x_includes="$ac_optarg" ;;
386
387   -x-libraries | --x-libraries | --x-librarie | --x-librari \
388   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389     ac_prev=x_libraries ;;
390   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392     x_libraries="$ac_optarg" ;;
393
394   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395     ;;
396
397   *)
398     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399       echo "configure: warning: $ac_option: invalid host type" 1>&2
400     fi
401     if test "x$nonopt" != xNONE; then
402       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403     fi
404     nonopt="$ac_option"
405     ;;
406
407   esac
408 done
409
410 if test -n "$ac_prev"; then
411   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 fi
413
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415
416 # File descriptor usage:
417 # 0 standard input
418 # 1 file creation
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
425   exec 6>/dev/null
426 else
427   exec 6>&1
428 fi
429 exec 5>./config.log
430
431 echo "\
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
434 " 1>&5
435
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
438 ac_configure_args=
439 for ac_arg
440 do
441   case "$ac_arg" in
442   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443   | --no-cr | --no-c) ;;
444   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449   esac
450 done
451
452 # NLS nuisances.
453 # Only set these to C if already set.  These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
461
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 echo > confdefs.h
466
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=flower/choleski.cc
470
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473   ac_srcdir_defaulted=yes
474   # Try the directory containing this script, then its parent.
475   ac_prog=$0
476   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478   srcdir=$ac_confdir
479   if test ! -r $srcdir/$ac_unique_file; then
480     srcdir=..
481   fi
482 else
483   ac_srcdir_defaulted=no
484 fi
485 if test ! -r $srcdir/$ac_unique_file; then
486   if test "$ac_srcdir_defaulted" = yes; then
487     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488   else
489     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490   fi
491 fi
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496   if test "x$prefix" != xNONE; then
497     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498   else
499     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500   fi
501 fi
502 for ac_site_file in $CONFIG_SITE; do
503   if test -r "$ac_site_file"; then
504     echo "loading site script $ac_site_file"
505     . "$ac_site_file"
506   fi
507 done
508
509 if test -r "$cache_file"; then
510   echo "loading cache $cache_file"
511   . $cache_file
512 else
513   echo "creating cache $cache_file"
514   > $cache_file
515 fi
516
517 ac_ext=c
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
523
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527     ac_n= ac_c='
528 ' ac_t='        '
529   else
530     ac_n=-n ac_c= ac_t=
531   fi
532 else
533   ac_n= ac_c='\c' ac_t=
534 fi
535
536
537
538
539 ac_ext=C
540 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
541 ac_cpp='$CXXCPP $CPPFLAGS'
542 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
543 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
544 cross_compiling=$ac_cv_prog_cxx_cross
545
546
547 # Check whether --enable-printing or --disable-printing was given.
548 if test "${enable_printing+set}" = set; then
549   enableval="$enable_printing"
550   printing_b=$enableval
551 fi
552
553
554         
555 # Check whether --enable-checking or --disable-checking was given.
556 if test "${enable_checking+set}" = set; then
557   enableval="$enable_checking"
558   checking_b=$enableval 
559 fi
560
561
562 # Check whether --enable-debugging or --disable-debugging was given.
563 if test "${enable_debugging+set}" = set; then
564   enableval="$enable_debugging"
565   debug_b=$enableval
566 fi
567
568
569 # Check whether --enable-optimise or --disable-optimise was given.
570 if test "${enable_optimise+set}" = set; then
571   enableval="$enable_optimise"
572   optimise_b=$enableval
573 fi
574
575     
576    
577 # Check whether --enable-profiling or --disable-profiling was given.
578 if test "${enable_profiling+set}" = set; then
579   enableval="$enable_profiling"
580   profile_b=$enableval
581 fi
582
583     
584 # Check whether --enable-tex-prefix or --disable-tex-prefix was given.
585 if test "${enable_tex_prefix+set}" = set; then
586   enableval="$enable_tex_prefix"
587   TEXPREFIX=$enableval
588 else
589   TEXPREFIX=auto 
590 fi
591
592     
593 # Check whether --enable-tex-dir or --disable-tex-dir was given.
594 if test "${enable_tex_dir+set}" = set; then
595   enableval="$enable_tex_dir"
596   TEXDIR=$enableval
597 else
598   TEXDIR=auto 
599 fi
600
601 # Check whether --enable-mf-dir or --disable-mf-dir was given.
602 if test "${enable_mf_dir+set}" = set; then
603   enableval="$enable_mf_dir"
604   MFDIR=$enableval
605 else
606   MFDIR=auto 
607 fi
608
609
610 if test $profile_b = yes; then
611     EXTRA_LIBES="-pg"
612     DEFINES="$DEFINES -pg"
613 fi
614     
615 if test $printing_b = no; then
616     DEFINES="$DEFINES -DNPRINT=1"
617 fi
618     
619 if test $debug_b = yes; then    
620     DEFINES="$DEFINES -g"
621 fi
622 if test $checking_b = no; then
623     DEFINES="$DEFINES -DNDEBUG=1"
624 fi
625
626 if test $optimise_b = yes; then
627     DEFINES="$DEFINES -O2 -DSTRING_UTILS_INLINED"
628 fi
629
630 AUTOHEADER="This file was automatically generated by configure"
631 CXXFLAGS=${CXXFLAGS:-""}        # we don't want -g -O junk
632 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
633 do
634 # Extract the first word of "$ac_prog", so it can be a program name with args.
635 set dummy $ac_prog; ac_word=$2
636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
637 echo "configure:638: checking for $ac_word" >&5
638 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
639   echo $ac_n "(cached) $ac_c" 1>&6
640 else
641   if test -n "$CXX"; then
642   ac_cv_prog_CXX="$CXX" # Let the user override the test.
643 else
644   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
645   for ac_dir in $PATH; do
646     test -z "$ac_dir" && ac_dir=.
647     if test -f $ac_dir/$ac_word; then
648       ac_cv_prog_CXX="$ac_prog"
649       break
650     fi
651   done
652   IFS="$ac_save_ifs"
653 fi
654 fi
655 CXX="$ac_cv_prog_CXX"
656 if test -n "$CXX"; then
657   echo "$ac_t""$CXX" 1>&6
658 else
659   echo "$ac_t""no" 1>&6
660 fi
661
662 test -n "$CXX" && break
663 done
664 test -n "$CXX" || CXX="gcc"
665
666
667 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
668 echo "configure:669: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
669
670 ac_ext=C
671 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
672 ac_cpp='$CXXCPP $CPPFLAGS'
673 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
674 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
675 cross_compiling=$ac_cv_prog_cxx_cross
676
677 cat > conftest.$ac_ext <<EOF
678 #line 679 "configure"
679 #include "confdefs.h"
680 main(){return(0);}
681 EOF
682 if { (eval echo configure:683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
683   ac_cv_prog_cxx_works=yes
684   # If we can't run a trivial program, we are probably using a cross compiler.
685   if (./conftest; exit) 2>/dev/null; then
686     ac_cv_prog_cxx_cross=no
687   else
688     ac_cv_prog_cxx_cross=yes
689   fi
690 else
691   echo "configure: failed program was:" >&5
692   cat conftest.$ac_ext >&5
693   ac_cv_prog_cxx_works=no
694 fi
695 rm -fr conftest*
696
697 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
698 if test $ac_cv_prog_cxx_works = no; then
699   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
700 fi
701 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
702 echo "configure:703: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
703 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
704 cross_compiling=$ac_cv_prog_cxx_cross
705
706 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
707 echo "configure:708: checking whether we are using GNU C++" >&5
708 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
709   echo $ac_n "(cached) $ac_c" 1>&6
710 else
711   cat > conftest.C <<EOF
712 #ifdef __GNUC__
713   yes;
714 #endif
715 EOF
716 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
717   ac_cv_prog_gxx=yes
718 else
719   ac_cv_prog_gxx=no
720 fi
721 fi
722
723 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
724
725 if test $ac_cv_prog_gxx = yes; then
726   GXX=yes
727   ac_test_CXXFLAGS="${CXXFLAGS+set}"
728   ac_save_CXXFLAGS="$CXXFLAGS"
729   CXXFLAGS=
730   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
731 echo "configure:732: checking whether ${CXX-g++} accepts -g" >&5
732 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
733   echo $ac_n "(cached) $ac_c" 1>&6
734 else
735   echo 'void f(){}' > conftest.cc
736 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
737   ac_cv_prog_cxx_g=yes
738 else
739   ac_cv_prog_cxx_g=no
740 fi
741 rm -f conftest*
742
743 fi
744
745 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
746   if test "$ac_test_CXXFLAGS" = set; then
747     CXXFLAGS="$ac_save_CXXFLAGS"
748   elif test $ac_cv_prog_cxx_g = yes; then
749     CXXFLAGS="-g -O2"
750   else
751     CXXFLAGS="-O2"
752   fi
753 else
754   GXX=
755   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
756 fi
757
758 # Extract the first word of "ranlib", so it can be a program name with args.
759 set dummy ranlib; ac_word=$2
760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
761 echo "configure:762: checking for $ac_word" >&5
762 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
763   echo $ac_n "(cached) $ac_c" 1>&6
764 else
765   if test -n "$RANLIB"; then
766   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
767 else
768   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
769   for ac_dir in $PATH; do
770     test -z "$ac_dir" && ac_dir=.
771     if test -f $ac_dir/$ac_word; then
772       ac_cv_prog_RANLIB="ranlib"
773       break
774     fi
775   done
776   IFS="$ac_save_ifs"
777   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
778 fi
779 fi
780 RANLIB="$ac_cv_prog_RANLIB"
781 if test -n "$RANLIB"; then
782   echo "$ac_t""$RANLIB" 1>&6
783 else
784   echo "$ac_t""no" 1>&6
785 fi
786
787 ac_aux_dir=
788 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
789   if test -f $ac_dir/install-sh; then
790     ac_aux_dir=$ac_dir
791     ac_install_sh="$ac_aux_dir/install-sh -c"
792     break
793   elif test -f $ac_dir/install.sh; then
794     ac_aux_dir=$ac_dir
795     ac_install_sh="$ac_aux_dir/install.sh -c"
796     break
797   fi
798 done
799 if test -z "$ac_aux_dir"; then
800   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
801 fi
802 ac_config_guess=$ac_aux_dir/config.guess
803 ac_config_sub=$ac_aux_dir/config.sub
804 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
805
806 # Find a good install program.  We prefer a C program (faster),
807 # so one script is as good as another.  But avoid the broken or
808 # incompatible versions:
809 # SysV /etc/install, /usr/sbin/install
810 # SunOS /usr/etc/install
811 # IRIX /sbin/install
812 # AIX /bin/install
813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
815 # ./install, which can be erroneously created by make from ./install.sh.
816 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
817 echo "configure:818: checking for a BSD compatible install" >&5
818 if test -z "$INSTALL"; then
819 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
820   echo $ac_n "(cached) $ac_c" 1>&6
821 else
822     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
823   for ac_dir in $PATH; do
824     # Account for people who put trailing slashes in PATH elements.
825     case "$ac_dir/" in
826     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
827     *)
828       # OSF1 and SCO ODT 3.0 have their own names for install.
829       for ac_prog in ginstall installbsd scoinst install; do
830         if test -f $ac_dir/$ac_prog; then
831           if test $ac_prog = install &&
832             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
833             # AIX install.  It has an incompatible calling convention.
834             # OSF/1 installbsd also uses dspmsg, but is usable.
835             :
836           else
837             ac_cv_path_install="$ac_dir/$ac_prog -c"
838             break 2
839           fi
840         fi
841       done
842       ;;
843     esac
844   done
845   IFS="$ac_save_IFS"
846
847 fi
848   if test "${ac_cv_path_install+set}" = set; then
849     INSTALL="$ac_cv_path_install"
850   else
851     # As a last resort, use the slow shell script.  We don't cache a
852     # path for INSTALL within a source directory, because that will
853     # break other packages using the cache if that directory is
854     # removed, or if the path is relative.
855     INSTALL="$ac_install_sh"
856   fi
857 fi
858 echo "$ac_t""$INSTALL" 1>&6
859
860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
861 # It thinks the first close brace ends the variable substitution.
862 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
863
864 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
865
866 for ac_prog in find
867 do
868 # Extract the first word of "$ac_prog", so it can be a program name with args.
869 set dummy $ac_prog; ac_word=$2
870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871 echo "configure:872: checking for $ac_word" >&5
872 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
873   echo $ac_n "(cached) $ac_c" 1>&6
874 else
875   if test -n "$FIND"; then
876   ac_cv_prog_FIND="$FIND" # Let the user override the test.
877 else
878   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
879   for ac_dir in $PATH; do
880     test -z "$ac_dir" && ac_dir=.
881     if test -f $ac_dir/$ac_word; then
882       ac_cv_prog_FIND="$ac_prog"
883       break
884     fi
885   done
886   IFS="$ac_save_ifs"
887 fi
888 fi
889 FIND="$ac_cv_prog_FIND"
890 if test -n "$FIND"; then
891   echo "$ac_t""$FIND" 1>&6
892 else
893   echo "$ac_t""no" 1>&6
894 fi
895
896 test -n "$FIND" && break
897 done
898 test -n "$FIND" || FIND="error"
899
900
901 if test FIND = error; then
902    echo "configure: warning: Couldn't find \`find'.  Please use --enable-tex-dir" 1>&2
903 fi
904     
905
906
907
908
909
910
911
912
913
914
915
916 for ac_prog in bison
917 do
918 # Extract the first word of "$ac_prog", so it can be a program name with args.
919 set dummy $ac_prog; ac_word=$2
920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
921 echo "configure:922: checking for $ac_word" >&5
922 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
923   echo $ac_n "(cached) $ac_c" 1>&6
924 else
925   if test -n "$BISON"; then
926   ac_cv_prog_BISON="$BISON" # Let the user override the test.
927 else
928   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
929   for ac_dir in $PATH; do
930     test -z "$ac_dir" && ac_dir=.
931     if test -f $ac_dir/$ac_word; then
932       ac_cv_prog_BISON="$ac_prog"
933       break
934     fi
935   done
936   IFS="$ac_save_ifs"
937 fi
938 fi
939 BISON="$ac_cv_prog_BISON"
940 if test -n "$BISON"; then
941   echo "$ac_t""$BISON" 1>&6
942 else
943   echo "$ac_t""no" 1>&6
944 fi
945
946 test -n "$BISON" && break
947 done
948 test -n "$BISON" || BISON="error"
949
950 for ac_prog in flex
951 do
952 # Extract the first word of "$ac_prog", so it can be a program name with args.
953 set dummy $ac_prog; ac_word=$2
954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955 echo "configure:956: checking for $ac_word" >&5
956 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
957   echo $ac_n "(cached) $ac_c" 1>&6
958 else
959   if test -n "$FLEX"; then
960   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
961 else
962   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
963   for ac_dir in $PATH; do
964     test -z "$ac_dir" && ac_dir=.
965     if test -f $ac_dir/$ac_word; then
966       ac_cv_prog_FLEX="$ac_prog"
967       break
968     fi
969   done
970   IFS="$ac_save_ifs"
971 fi
972 fi
973 FLEX="$ac_cv_prog_FLEX"
974 if test -n "$FLEX"; then
975   echo "$ac_t""$FLEX" 1>&6
976 else
977   echo "$ac_t""no" 1>&6
978 fi
979
980 test -n "$FLEX" && break
981 done
982 test -n "$FLEX" || FLEX="error"
983
984 for ac_prog in make
985 do
986 # Extract the first word of "$ac_prog", so it can be a program name with args.
987 set dummy $ac_prog; ac_word=$2
988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
989 echo "configure:990: checking for $ac_word" >&5
990 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
991   echo $ac_n "(cached) $ac_c" 1>&6
992 else
993   if test -n "$MAKE"; then
994   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
995 else
996   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
997   for ac_dir in $PATH; do
998     test -z "$ac_dir" && ac_dir=.
999     if test -f $ac_dir/$ac_word; then
1000       ac_cv_prog_MAKE="$ac_prog"
1001       break
1002     fi
1003   done
1004   IFS="$ac_save_ifs"
1005 fi
1006 fi
1007 MAKE="$ac_cv_prog_MAKE"
1008 if test -n "$MAKE"; then
1009   echo "$ac_t""$MAKE" 1>&6
1010 else
1011   echo "$ac_t""no" 1>&6
1012 fi
1013
1014 test -n "$MAKE" && break
1015 done
1016 test -n "$MAKE" || MAKE="error"
1017
1018 for ac_prog in pod2man
1019 do
1020 # Extract the first word of "$ac_prog", so it can be a program name with args.
1021 set dummy $ac_prog; ac_word=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_word" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_PODMAN'+set}'`\" = set"; then
1025   echo $ac_n "(cached) $ac_c" 1>&6
1026 else
1027   if test -n "$PODMAN"; then
1028   ac_cv_prog_PODMAN="$PODMAN" # Let the user override the test.
1029 else
1030   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1031   for ac_dir in $PATH; do
1032     test -z "$ac_dir" && ac_dir=.
1033     if test -f $ac_dir/$ac_word; then
1034       ac_cv_prog_PODMAN="$ac_prog"
1035       break
1036     fi
1037   done
1038   IFS="$ac_save_ifs"
1039 fi
1040 fi
1041 PODMAN="$ac_cv_prog_PODMAN"
1042 if test -n "$PODMAN"; then
1043   echo "$ac_t""$PODMAN" 1>&6
1044 else
1045   echo "$ac_t""no" 1>&6
1046 fi
1047
1048 test -n "$PODMAN" && break
1049 done
1050 test -n "$PODMAN" || PODMAN="error"
1051
1052
1053     
1054 if test "x$TEXPREFIX" = xauto ; then
1055     
1056     
1057
1058     echo $ac_n "checking TeX/MF root dir directory""... $ac_c" 1>&6
1059 echo "configure:1060: checking TeX/MF root dir directory" >&5    
1060
1061     find_root_prefix="$prefix"
1062     
1063
1064     test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
1065     find_texpostfix="";
1066     for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
1067         find_texprefix="$find_root_prefix$postfix"
1068         if test -d $find_texprefix; then
1069             find_texpostfix=$postfix
1070             break;
1071         fi
1072     done
1073     
1074     if test "x$find_texpostfix" = x; then
1075         find_texpostfix='/lib/texmf/tex'
1076         echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
1077     fi
1078
1079     find_texprefix="$find_root_prefix/$find_texpostfix"
1080
1081     # only assign if variablename not empty
1082     if test x != "xTEXPREFIX"; then
1083         TEXPREFIX='${prefix}'/"$find_texpostfix"
1084     fi
1085     echo "$ac_t""$find_texprefix" 1>&6
1086
1087
1088 else
1089  find_texprefix=$TEXPREFIX
1090 fi
1091     
1092 if test "x$TEXDIR" = xauto ; then
1093     
1094     
1095     
1096     echo $ac_n "checking TeX input directory""... $ac_c" 1>&6
1097 echo "configure:1098: checking TeX input directory" >&5    
1098     find_dirdir=`(cd $find_texprefix; 
1099       $FIND ./ -type d -a -name tex -print |sort|head -1|sed 's#^\./##')`
1100     
1101
1102     if test "x$find_dirdir" = x; then
1103        find_dirdir="/tex";
1104        echo "configure: warning: Cannot determine TeX input subdirectory. Please set from command-line" 1>&2
1105         true
1106     fi
1107     TEXDIR=$find_dirdir
1108     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1109
1110     TEXDIR="$TEXPREFIX/$TEXDIR"
1111
1112 fi
1113
1114 if test "x$MFDIR" = xauto; then
1115     
1116     
1117     
1118     echo $ac_n "checking MF input directory""... $ac_c" 1>&6
1119 echo "configure:1120: checking MF input directory" >&5    
1120     find_dirdir=`(cd $find_texprefix; 
1121       $FIND ./ -type d -a -name source -print |sort|head -1|sed 's#^\./##')`
1122     
1123
1124     if test "x$find_dirdir" = x; then
1125        find_dirdir="/source";
1126        echo "configure: warning: Cannot determine MF input subdirectory. Please set from command-line" 1>&2
1127         true
1128     fi
1129     MFDIR=$find_dirdir
1130     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1131
1132     MFDIR="$TEXPREFIX/$MFDIR"
1133
1134 fi
1135     
1136 if test $MAKE = "error" 
1137 then
1138         { echo "configure: error: Please install GNU make" 1>&2; exit 1; }
1139 else
1140         $MAKE -v| grep GNU > /dev/null
1141         if test "$?" = 1
1142         then
1143             echo "configure: warning: Please install *GNU* make" 1>&2 
1144     fi 
1145 fi 
1146     
1147 if test $BISON = "error" 
1148 then
1149         echo "configure: warning: can't find bison. Please install Bison (1.24 or better)" 1>&2
1150 fi
1151
1152 if test $PODMAN = "error" 
1153 then
1154         echo "configure: warning: can't find pod. You should install Perl (version 5 or better)" 1>&2
1155 fi
1156
1157 if test $FLEX = "error" 
1158 then
1159         echo "configure: warning: can't find flex. Please install Flex (2.5 or better)" 1>&2
1160 fi
1161
1162 if $CXX --version | grep '2\.7' > /dev/null
1163 then
1164         true
1165 else
1166         echo "configure: warning: can't find g++ 2.7" 1>&2
1167 fi
1168
1169 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1170 echo "configure:1171: checking how to run the C++ preprocessor" >&5
1171 if test -z "$CXXCPP"; then
1172 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1173   echo $ac_n "(cached) $ac_c" 1>&6
1174 else
1175   ac_ext=C
1176 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1177 ac_cpp='$CXXCPP $CPPFLAGS'
1178 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1179 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1180 cross_compiling=$ac_cv_prog_cxx_cross
1181   CXXCPP="${CXX-g++} -E"
1182   cat > conftest.$ac_ext <<EOF
1183 #line 1184 "configure"
1184 #include "confdefs.h"
1185 #include <stdlib.h>
1186 EOF
1187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1188 { (eval echo configure:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1189 ac_err=`grep -v '^ *+' conftest.out`
1190 if test -z "$ac_err"; then
1191   :
1192 else
1193   echo "$ac_err" >&5
1194   echo "configure: failed program was:" >&5
1195   cat conftest.$ac_ext >&5
1196   rm -rf conftest*
1197   CXXCPP=/lib/cpp
1198 fi
1199 rm -f conftest*
1200   ac_cv_prog_CXXCPP="$CXXCPP"
1201 fi
1202 fi
1203 CXXCPP="$ac_cv_prog_CXXCPP"
1204 echo "$ac_t""$CXXCPP" 1>&6
1205
1206 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1207 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1208 echo "configure:1209: checking for FlexLexer.h" >&5
1209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1210   echo $ac_n "(cached) $ac_c" 1>&6
1211 else
1212   cat > conftest.$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1215 #include <FlexLexer.h>
1216 EOF
1217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1218 { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1219 ac_err=`grep -v '^ *+' conftest.out`
1220 if test -z "$ac_err"; then
1221   rm -rf conftest*
1222   eval "ac_cv_header_$ac_safe=yes"
1223 else
1224   echo "$ac_err" >&5
1225   echo "configure: failed program was:" >&5
1226   cat conftest.$ac_ext >&5
1227   rm -rf conftest*
1228   eval "ac_cv_header_$ac_safe=no"
1229 fi
1230 rm -f conftest*
1231 fi
1232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1233   echo "$ac_t""yes" 1>&6
1234   true
1235 else
1236   echo "$ac_t""no" 1>&6
1237 echo "configure: warning: can't find flex header. Please install Flex headers correctly" 1>&2
1238 fi
1239
1240 subdirs="flower"
1241
1242 trap '' 1 2 15
1243 cat > confcache <<\EOF
1244 # This file is a shell script that caches the results of configure
1245 # tests run on this system so they can be shared between configure
1246 # scripts and configure runs.  It is not useful on other systems.
1247 # If it contains results you don't want to keep, you may remove or edit it.
1248 #
1249 # By default, configure uses ./config.cache as the cache file,
1250 # creating it if it does not exist already.  You can give configure
1251 # the --cache-file=FILE option to use a different cache file; that is
1252 # what configure does when it calls configure scripts in
1253 # subdirectories, so they share the cache.
1254 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1255 # config.status only pays attention to the cache file if you give it the
1256 # --recheck option to rerun configure.
1257 #
1258 EOF
1259 # The following way of writing the cache mishandles newlines in values,
1260 # but we know of no workaround that is simple, portable, and efficient.
1261 # So, don't put newlines in cache variables' values.
1262 # Ultrix sh set writes to stderr and can't be redirected directly,
1263 # and sets the high bit in the cache file unless we assign to the vars.
1264 (set) 2>&1 |
1265   case `(ac_space=' '; set) 2>&1` in
1266   *ac_space=\ *)
1267     # `set' does not quote correctly, so add quotes (double-quote substitution
1268     # turns \\\\ into \\, and sed turns \\ into \).
1269     sed -n \
1270       -e "s/'/'\\\\''/g" \
1271       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1272     ;;
1273   *)
1274     # `set' quotes correctly as required by POSIX, so do not add quotes.
1275     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1276     ;;
1277   esac >> confcache
1278 if cmp -s $cache_file confcache; then
1279   :
1280 else
1281   if test -w $cache_file; then
1282     echo "updating cache $cache_file"
1283     cat confcache > $cache_file
1284   else
1285     echo "not updating unwritable cache $cache_file"
1286   fi
1287 fi
1288 rm -f confcache
1289
1290 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1291
1292 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1293 # Let make expand exec_prefix.
1294 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1295
1296 # Any assignment to VPATH causes Sun make to only execute
1297 # the first set of double-colon rules, so remove it if not needed.
1298 # If there is a colon in the path, we need to keep it.
1299 if test "x$srcdir" = x.; then
1300   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1301 fi
1302
1303 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1304
1305 # Transform confdefs.h into DEFS.
1306 # Protect against shell expansion while executing Makefile rules.
1307 # Protect against Makefile macro expansion.
1308 cat > conftest.defs <<\EOF
1309 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1310 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1311 s%\[%\\&%g
1312 s%\]%\\&%g
1313 s%\$%$$%g
1314 EOF
1315 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1316 rm -f conftest.defs
1317
1318
1319 # Without the "./", some shells look in PATH for config.status.
1320 : ${CONFIG_STATUS=./config.status}
1321
1322 echo creating $CONFIG_STATUS
1323 rm -f $CONFIG_STATUS
1324 cat > $CONFIG_STATUS <<EOF
1325 #! /bin/sh
1326 # Generated automatically by configure.
1327 # Run this file to recreate the current configuration.
1328 # This directory was configured as follows,
1329 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1330 #
1331 # $0 $ac_configure_args
1332 #
1333 # Compiler output produced by configure, useful for debugging
1334 # configure, is in ./config.log if it exists.
1335
1336 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1337 for ac_option
1338 do
1339   case "\$ac_option" in
1340   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1341     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1342     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1343   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1344     echo "$CONFIG_STATUS generated by autoconf version 2.12"
1345     exit 0 ;;
1346   -help | --help | --hel | --he | --h)
1347     echo "\$ac_cs_usage"; exit 0 ;;
1348   *) echo "\$ac_cs_usage"; exit 1 ;;
1349   esac
1350 done
1351
1352 ac_given_srcdir=$srcdir
1353 ac_given_INSTALL="$INSTALL"
1354
1355 trap 'rm -fr `echo "make/out/Configure_variables.make:make/Configure_variables.make.in
1356     Makefile:make/Toplevel.make.in
1357     " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1358 EOF
1359 cat >> $CONFIG_STATUS <<EOF
1360
1361 # Protect against being on the right side of a sed subst in config.status.
1362 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1363  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1364 $ac_vpsub
1365 $extrasub
1366 s%@CFLAGS@%$CFLAGS%g
1367 s%@CPPFLAGS@%$CPPFLAGS%g
1368 s%@CXXFLAGS@%$CXXFLAGS%g
1369 s%@DEFS@%$DEFS%g
1370 s%@LDFLAGS@%$LDFLAGS%g
1371 s%@LIBS@%$LIBS%g
1372 s%@exec_prefix@%$exec_prefix%g
1373 s%@prefix@%$prefix%g
1374 s%@program_transform_name@%$program_transform_name%g
1375 s%@bindir@%$bindir%g
1376 s%@sbindir@%$sbindir%g
1377 s%@libexecdir@%$libexecdir%g
1378 s%@datadir@%$datadir%g
1379 s%@sysconfdir@%$sysconfdir%g
1380 s%@sharedstatedir@%$sharedstatedir%g
1381 s%@localstatedir@%$localstatedir%g
1382 s%@libdir@%$libdir%g
1383 s%@includedir@%$includedir%g
1384 s%@oldincludedir@%$oldincludedir%g
1385 s%@infodir@%$infodir%g
1386 s%@mandir@%$mandir%g
1387 s%@CXX@%$CXX%g
1388 s%@RANLIB@%$RANLIB%g
1389 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1390 s%@INSTALL_DATA@%$INSTALL_DATA%g
1391 s%@FIND@%$FIND%g
1392 s%@DEFINES@%$DEFINES%g
1393 s%@COMPILEINFO@%$COMPILEINFO%g
1394 s%@AUTOHEADER@%$AUTOHEADER%g
1395 s%@BISON@%$BISON%g
1396 s%@FLEX@%$FLEX%g
1397 s%@TEXPREFIX@%$TEXPREFIX%g
1398 s%@TEXDIR@%$TEXDIR%g
1399 s%@MFDIR@%$MFDIR%g
1400 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
1401 s%@MAKE@%$MAKE%g
1402 s%@PODMAN@%$PODMAN%g
1403 s%@CXXCPP@%$CXXCPP%g
1404 s%@subdirs@%$subdirs%g
1405
1406 CEOF
1407 EOF
1408
1409 cat >> $CONFIG_STATUS <<\EOF
1410
1411 # Split the substitutions into bite-sized pieces for seds with
1412 # small command number limits, like on Digital OSF/1 and HP-UX.
1413 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1414 ac_file=1 # Number of current file.
1415 ac_beg=1 # First line for current file.
1416 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1417 ac_more_lines=:
1418 ac_sed_cmds=""
1419 while $ac_more_lines; do
1420   if test $ac_beg -gt 1; then
1421     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1422   else
1423     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1424   fi
1425   if test ! -s conftest.s$ac_file; then
1426     ac_more_lines=false
1427     rm -f conftest.s$ac_file
1428   else
1429     if test -z "$ac_sed_cmds"; then
1430       ac_sed_cmds="sed -f conftest.s$ac_file"
1431     else
1432       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1433     fi
1434     ac_file=`expr $ac_file + 1`
1435     ac_beg=$ac_end
1436     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1437   fi
1438 done
1439 if test -z "$ac_sed_cmds"; then
1440   ac_sed_cmds=cat
1441 fi
1442 EOF
1443
1444 cat >> $CONFIG_STATUS <<EOF
1445
1446 CONFIG_FILES=\${CONFIG_FILES-"make/out/Configure_variables.make:make/Configure_variables.make.in
1447     Makefile:make/Toplevel.make.in
1448     "}
1449 EOF
1450 cat >> $CONFIG_STATUS <<\EOF
1451 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1452   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1453   case "$ac_file" in
1454   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1455        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1456   *) ac_file_in="${ac_file}.in" ;;
1457   esac
1458
1459   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1460
1461   # Remove last slash and all that follows it.  Not all systems have dirname.
1462   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1463   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1464     # The file is in a subdirectory.
1465     test ! -d "$ac_dir" && mkdir "$ac_dir"
1466     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1467     # A "../" for each directory in $ac_dir_suffix.
1468     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1469   else
1470     ac_dir_suffix= ac_dots=
1471   fi
1472
1473   case "$ac_given_srcdir" in
1474   .)  srcdir=.
1475       if test -z "$ac_dots"; then top_srcdir=.
1476       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1477   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1478   *) # Relative path.
1479     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1480     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1481   esac
1482
1483   case "$ac_given_INSTALL" in
1484   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1485   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1486   esac
1487
1488   echo creating "$ac_file"
1489   rm -f "$ac_file"
1490   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1491   case "$ac_file" in
1492   *Makefile*) ac_comsub="1i\\
1493 # $configure_input" ;;
1494   *) ac_comsub= ;;
1495   esac
1496
1497   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1498   sed -e "$ac_comsub
1499 s%@configure_input@%$configure_input%g
1500 s%@srcdir@%$srcdir%g
1501 s%@top_srcdir@%$top_srcdir%g
1502 s%@INSTALL@%$INSTALL%g
1503 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1504 fi; done
1505 rm -f conftest.s*
1506
1507 EOF
1508 cat >> $CONFIG_STATUS <<EOF
1509
1510 EOF
1511 cat >> $CONFIG_STATUS <<\EOF
1512
1513 exit 0
1514 EOF
1515 chmod +x $CONFIG_STATUS
1516 rm -fr confdefs* $ac_clean_files
1517 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1518
1519 if test "$no_recursion" != yes; then
1520
1521   # Remove --cache-file and --srcdir arguments so they do not pile up.
1522   ac_sub_configure_args=
1523   ac_prev=
1524   for ac_arg in $ac_configure_args; do
1525     if test -n "$ac_prev"; then
1526       ac_prev=
1527       continue
1528     fi
1529     case "$ac_arg" in
1530     -cache-file | --cache-file | --cache-fil | --cache-fi \
1531     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1532       ac_prev=cache_file ;;
1533     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1534     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1535       ;;
1536     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1537       ac_prev=srcdir ;;
1538     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1539       ;;
1540     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1541     esac
1542   done
1543
1544   for ac_config_dir in flower; do
1545
1546     # Do not complain, so a configure script can configure whichever
1547     # parts of a large source tree are present.
1548     if test ! -d $srcdir/$ac_config_dir; then
1549       continue
1550     fi
1551
1552     echo configuring in $ac_config_dir
1553
1554     case "$srcdir" in
1555     .) ;;
1556     *)
1557       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1558       else
1559         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1560       fi
1561       ;;
1562     esac
1563
1564     ac_popdir=`pwd`
1565     cd $ac_config_dir
1566
1567       # A "../" for each directory in /$ac_config_dir.
1568       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1569
1570     case "$srcdir" in
1571     .) # No --srcdir option.  We are building in place.
1572       ac_sub_srcdir=$srcdir ;;
1573     /*) # Absolute path.
1574       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1575     *) # Relative path.
1576       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1577     esac
1578
1579     # Check for guested configure; otherwise get Cygnus style configure.
1580     if test -f $ac_sub_srcdir/configure; then
1581       ac_sub_configure=$ac_sub_srcdir/configure
1582     elif test -f $ac_sub_srcdir/configure.in; then
1583       ac_sub_configure=$ac_configure
1584     else
1585       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1586       ac_sub_configure=
1587     fi
1588
1589     # The recursion is here.
1590     if test -n "$ac_sub_configure"; then
1591
1592       # Make the cache file name correct relative to the subdirectory.
1593       case "$cache_file" in
1594       /*) ac_sub_cache_file=$cache_file ;;
1595       *) # Relative path.
1596         ac_sub_cache_file="$ac_dots$cache_file" ;;
1597       esac
1598   case "$ac_given_INSTALL" in
1599         [/$]*) INSTALL="$ac_given_INSTALL" ;;
1600         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1601         esac
1602
1603       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1604       # The eval makes quoting arguments work.
1605       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1606       then :
1607       else
1608         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1609       fi
1610     fi
1611
1612     cd $ac_popdir
1613   done
1614 fi
1615
1616
1617
1618
1619 eval "DIR_DATADIR=$datadir"
1620 DIR_DATADIR="$DIR_DATADIR/lilypond"
1621 echo $ac_n "checking ""... $ac_c" 1>&6
1622 echo "configure:1623: checking " >&5
1623
1624 cat << EOF > lib/out/config.hh
1625
1626 /* automatically generated by configure */
1627 /* include this file only once! */
1628
1629 #define  DIR_DATADIR "$DIR_DATADIR"
1630
1631 EOF
1632
1633 CXX="$ac_cv_prog_CXX" bin/make_version >> lib/out/config.hh
1634
1635 touch make/out/Site.make
1636
1637 # ugr
1638 (cd mi2mu; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1639 )
1640 # rgu
1641 sed 's/TOPLEVEL_//g' <  .version >  lily/.version
1642 (cd lily; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1643 )
1644
1645 cat << END
1646 Finished configuring. For making everything, do:
1647
1648         make all
1649
1650 If you only want help on the make targets, do a
1651
1652         make help
1653
1654 assuming that \`make' is GNU make, of course.
1655
1656 If you want to make site-wide extensions to the makefiles, please use
1657
1658     make/out/Site.make
1659     
1660 END
1661