]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 0.1.50
[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-shared         build shared libraries [default=no]
16   --enable-shared=PKGS    only build shared libraries if the current package
17                           appears as an element in the PKGS list"
18 ac_help="$ac_help
19   --enable-static         build static libraries [default=yes]
20   --enable-static=PKGS    only build shared libraries if the current package
21                           appears as an element in the PKGS list"
22 ac_help="$ac_help
23   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
24 ac_help="$ac_help
25   enable-printing         turn on debug printing. Default: off"
26 ac_help="$ac_help
27   enable-checking         set runtime checks (assert calls). Default: on"
28 ac_help="$ac_help
29   enable-debugging        set debug info. Default: on"
30 ac_help="$ac_help
31   enable-optimise         use maximal speed optimisations. Default: off"
32 ac_help="$ac_help
33   enable-profiling        compile with gprof support. Default: off"
34 ac_help="$ac_help
35   enable-mingw-prefix=DIR        set the mingw32 directory (standalone windows32 exes)"
36 ac_help="$ac_help
37   enable-tex-prefix=DIR          set the tex-directory to find TeX subdirectories. (default: PREFIX)"
38 ac_help="$ac_help
39   enable-tex-dir=DIR             set the directory to put LilyPond TeX files in. "
40 ac_help="$ac_help
41   enable-mf-dir=DIR             set the directory to put LilyPond MetaFont files in. "
42
43 # Initialize some variables set by options.
44 # The variables have the same names as the options, with
45 # dashes changed to underlines.
46 build=NONE
47 cache_file=./config.cache
48 exec_prefix=NONE
49 host=NONE
50 no_create=
51 nonopt=NONE
52 no_recursion=
53 prefix=NONE
54 program_prefix=NONE
55 program_suffix=NONE
56 program_transform_name=s,x,x,
57 silent=
58 site=
59 srcdir=
60 target=NONE
61 verbose=
62 x_includes=NONE
63 x_libraries=NONE
64 bindir='${exec_prefix}/bin'
65 sbindir='${exec_prefix}/sbin'
66 libexecdir='${exec_prefix}/libexec'
67 datadir='${prefix}/share'
68 sysconfdir='${prefix}/etc'
69 sharedstatedir='${prefix}/com'
70 localstatedir='${prefix}/var'
71 libdir='${exec_prefix}/lib'
72 includedir='${prefix}/include'
73 oldincludedir='/usr/include'
74 infodir='${prefix}/info'
75 mandir='${prefix}/man'
76
77 # Initialize some other variables.
78 subdirs=
79 MFLAGS= MAKEFLAGS=
80 # Maximum number of lines to put in a shell here document.
81 ac_max_here_lines=12
82
83 ac_prev=
84 for ac_option
85 do
86
87   # If the previous option needs an argument, assign it.
88   if test -n "$ac_prev"; then
89     eval "$ac_prev=\$ac_option"
90     ac_prev=
91     continue
92   fi
93
94   case "$ac_option" in
95   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96   *) ac_optarg= ;;
97   esac
98
99   # Accept the important Cygnus configure options, so we can diagnose typos.
100
101   case "$ac_option" in
102
103   -bindir | --bindir | --bindi | --bind | --bin | --bi)
104     ac_prev=bindir ;;
105   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
106     bindir="$ac_optarg" ;;
107
108   -build | --build | --buil | --bui | --bu)
109     ac_prev=build ;;
110   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
111     build="$ac_optarg" ;;
112
113   -cache-file | --cache-file | --cache-fil | --cache-fi \
114   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
115     ac_prev=cache_file ;;
116   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
117   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
118     cache_file="$ac_optarg" ;;
119
120   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
121     ac_prev=datadir ;;
122   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
123   | --da=*)
124     datadir="$ac_optarg" ;;
125
126   -disable-* | --disable-*)
127     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
128     # Reject names that are not valid shell variable names.
129     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131     fi
132     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133     eval "enable_${ac_feature}=no" ;;
134
135   -enable-* | --enable-*)
136     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137     # Reject names that are not valid shell variable names.
138     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140     fi
141     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142     case "$ac_option" in
143       *=*) ;;
144       *) ac_optarg=yes ;;
145     esac
146     eval "enable_${ac_feature}='$ac_optarg'" ;;
147
148   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
149   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
150   | --exec | --exe | --ex)
151     ac_prev=exec_prefix ;;
152   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
153   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
154   | --exec=* | --exe=* | --ex=*)
155     exec_prefix="$ac_optarg" ;;
156
157   -gas | --gas | --ga | --g)
158     # Obsolete; use --with-gas.
159     with_gas=yes ;;
160
161   -help | --help | --hel | --he)
162     # Omit some internal or obsolete options to make the list less imposing.
163     # This message is too long to be a string in the A/UX 3.1 sh.
164     cat << EOF
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
167 Configuration:
168   --cache-file=FILE       cache test results in FILE
169   --help                  print this message
170   --no-create             do not create output files
171   --quiet, --silent       do not print \`checking...' messages
172   --version               print the version of autoconf that created configure
173 Directory and file names:
174   --prefix=PREFIX         install architecture-independent files in PREFIX
175                           [$ac_default_prefix]
176   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
177                           [same as prefix]
178   --bindir=DIR            user executables in DIR [EPREFIX/bin]
179   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
180   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
181   --datadir=DIR           read-only architecture-independent data in DIR
182                           [PREFIX/share]
183   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
184   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
185                           [PREFIX/com]
186   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
187   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
188   --includedir=DIR        C header files in DIR [PREFIX/include]
189   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
190   --infodir=DIR           info documentation in DIR [PREFIX/info]
191   --mandir=DIR            man documentation in DIR [PREFIX/man]
192   --srcdir=DIR            find the sources in DIR [configure dir or ..]
193   --program-prefix=PREFIX prepend PREFIX to installed program names
194   --program-suffix=SUFFIX append SUFFIX to installed program names
195   --program-transform-name=PROGRAM
196                           run sed PROGRAM on installed program names
197 EOF
198     cat << EOF
199 Host type:
200   --build=BUILD           configure for building on BUILD [BUILD=HOST]
201   --host=HOST             configure for HOST [guessed]
202   --target=TARGET         configure for TARGET [TARGET=HOST]
203 Features and packages:
204   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
205   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
206   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
207   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
208   --x-includes=DIR        X include files are in DIR
209   --x-libraries=DIR       X library files are in DIR
210 EOF
211     if test -n "$ac_help"; then
212       echo "--enable and --with options recognized:$ac_help"
213     fi
214     exit 0 ;;
215
216   -host | --host | --hos | --ho)
217     ac_prev=host ;;
218   -host=* | --host=* | --hos=* | --ho=*)
219     host="$ac_optarg" ;;
220
221   -includedir | --includedir | --includedi | --included | --include \
222   | --includ | --inclu | --incl | --inc)
223     ac_prev=includedir ;;
224   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225   | --includ=* | --inclu=* | --incl=* | --inc=*)
226     includedir="$ac_optarg" ;;
227
228   -infodir | --infodir | --infodi | --infod | --info | --inf)
229     ac_prev=infodir ;;
230   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231     infodir="$ac_optarg" ;;
232
233   -libdir | --libdir | --libdi | --libd)
234     ac_prev=libdir ;;
235   -libdir=* | --libdir=* | --libdi=* | --libd=*)
236     libdir="$ac_optarg" ;;
237
238   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239   | --libexe | --libex | --libe)
240     ac_prev=libexecdir ;;
241   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242   | --libexe=* | --libex=* | --libe=*)
243     libexecdir="$ac_optarg" ;;
244
245   -localstatedir | --localstatedir | --localstatedi | --localstated \
246   | --localstate | --localstat | --localsta | --localst \
247   | --locals | --local | --loca | --loc | --lo)
248     ac_prev=localstatedir ;;
249   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252     localstatedir="$ac_optarg" ;;
253
254   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
255     ac_prev=mandir ;;
256   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257     mandir="$ac_optarg" ;;
258
259   -nfp | --nfp | --nf)
260     # Obsolete; use --without-fp.
261     with_fp=no ;;
262
263   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264   | --no-cr | --no-c)
265     no_create=yes ;;
266
267   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
269     no_recursion=yes ;;
270
271   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273   | --oldin | --oldi | --old | --ol | --o)
274     ac_prev=oldincludedir ;;
275   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278     oldincludedir="$ac_optarg" ;;
279
280   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
281     ac_prev=prefix ;;
282   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283     prefix="$ac_optarg" ;;
284
285   -program-prefix | --program-prefix | --program-prefi | --program-pref \
286   | --program-pre | --program-pr | --program-p)
287     ac_prev=program_prefix ;;
288   -program-prefix=* | --program-prefix=* | --program-prefi=* \
289   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290     program_prefix="$ac_optarg" ;;
291
292   -program-suffix | --program-suffix | --program-suffi | --program-suff \
293   | --program-suf | --program-su | --program-s)
294     ac_prev=program_suffix ;;
295   -program-suffix=* | --program-suffix=* | --program-suffi=* \
296   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297     program_suffix="$ac_optarg" ;;
298
299   -program-transform-name | --program-transform-name \
300   | --program-transform-nam | --program-transform-na \
301   | --program-transform-n | --program-transform- \
302   | --program-transform | --program-transfor \
303   | --program-transfo | --program-transf \
304   | --program-trans | --program-tran \
305   | --progr-tra | --program-tr | --program-t)
306     ac_prev=program_transform_name ;;
307   -program-transform-name=* | --program-transform-name=* \
308   | --program-transform-nam=* | --program-transform-na=* \
309   | --program-transform-n=* | --program-transform-=* \
310   | --program-transform=* | --program-transfor=* \
311   | --program-transfo=* | --program-transf=* \
312   | --program-trans=* | --program-tran=* \
313   | --progr-tra=* | --program-tr=* | --program-t=*)
314     program_transform_name="$ac_optarg" ;;
315
316   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317   | -silent | --silent | --silen | --sile | --sil)
318     silent=yes ;;
319
320   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
321     ac_prev=sbindir ;;
322   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
323   | --sbi=* | --sb=*)
324     sbindir="$ac_optarg" ;;
325
326   -sharedstatedir | --sharedstatedir | --sharedstatedi \
327   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328   | --sharedst | --shareds | --shared | --share | --shar \
329   | --sha | --sh)
330     ac_prev=sharedstatedir ;;
331   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
334   | --sha=* | --sh=*)
335     sharedstatedir="$ac_optarg" ;;
336
337   -site | --site | --sit)
338     ac_prev=site ;;
339   -site=* | --site=* | --sit=*)
340     site="$ac_optarg" ;;
341
342   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
343     ac_prev=srcdir ;;
344   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
345     srcdir="$ac_optarg" ;;
346
347   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
348   | --syscon | --sysco | --sysc | --sys | --sy)
349     ac_prev=sysconfdir ;;
350   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
351   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
352     sysconfdir="$ac_optarg" ;;
353
354   -target | --target | --targe | --targ | --tar | --ta | --t)
355     ac_prev=target ;;
356   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
357     target="$ac_optarg" ;;
358
359   -v | -verbose | --verbose | --verbos | --verbo | --verb)
360     verbose=yes ;;
361
362   -version | --version | --versio | --versi | --vers)
363     echo "configure generated by autoconf version 2.12"
364     exit 0 ;;
365
366   -with-* | --with-*)
367     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368     # Reject names that are not valid shell variable names.
369     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371     fi
372     ac_package=`echo $ac_package| sed 's/-/_/g'`
373     case "$ac_option" in
374       *=*) ;;
375       *) ac_optarg=yes ;;
376     esac
377     eval "with_${ac_package}='$ac_optarg'" ;;
378
379   -without-* | --without-*)
380     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
381     # Reject names that are not valid shell variable names.
382     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384     fi
385     ac_package=`echo $ac_package| sed 's/-/_/g'`
386     eval "with_${ac_package}=no" ;;
387
388   --x)
389     # Obsolete; use --with-x.
390     with_x=yes ;;
391
392   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
393   | --x-incl | --x-inc | --x-in | --x-i)
394     ac_prev=x_includes ;;
395   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
396   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
397     x_includes="$ac_optarg" ;;
398
399   -x-libraries | --x-libraries | --x-librarie | --x-librari \
400   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
401     ac_prev=x_libraries ;;
402   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
403   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
404     x_libraries="$ac_optarg" ;;
405
406   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407     ;;
408
409   *)
410     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411       echo "configure: warning: $ac_option: invalid host type" 1>&2
412     fi
413     if test "x$nonopt" != xNONE; then
414       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415     fi
416     nonopt="$ac_option"
417     ;;
418
419   esac
420 done
421
422 if test -n "$ac_prev"; then
423   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 fi
425
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
427
428 # File descriptor usage:
429 # 0 standard input
430 # 1 file creation
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
437   exec 6>/dev/null
438 else
439   exec 6>&1
440 fi
441 exec 5>./config.log
442
443 echo "\
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
446 " 1>&5
447
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
450 ac_configure_args=
451 for ac_arg
452 do
453   case "$ac_arg" in
454   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
455   | --no-cr | --no-c) ;;
456   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
458   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
460   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
461   esac
462 done
463
464 # NLS nuisances.
465 # Only set these to C if already set.  These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
470 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
472 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
473
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 echo > confdefs.h
478
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
481 ac_unique_file=flower/choleski.cc
482
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485   ac_srcdir_defaulted=yes
486   # Try the directory containing this script, then its parent.
487   ac_prog=$0
488   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
490   srcdir=$ac_confdir
491   if test ! -r $srcdir/$ac_unique_file; then
492     srcdir=..
493   fi
494 else
495   ac_srcdir_defaulted=no
496 fi
497 if test ! -r $srcdir/$ac_unique_file; then
498   if test "$ac_srcdir_defaulted" = yes; then
499     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
500   else
501     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502   fi
503 fi
504 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508   if test "x$prefix" != xNONE; then
509     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
510   else
511     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512   fi
513 fi
514 for ac_site_file in $CONFIG_SITE; do
515   if test -r "$ac_site_file"; then
516     echo "loading site script $ac_site_file"
517     . "$ac_site_file"
518   fi
519 done
520
521 if test -r "$cache_file"; then
522   echo "loading cache $cache_file"
523   . $cache_file
524 else
525   echo "creating cache $cache_file"
526   > $cache_file
527 fi
528
529 ac_ext=c
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp='$CPP $CPPFLAGS'
532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling=$ac_cv_prog_cc_cross
535
536 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539     ac_n= ac_c='
540 ' ac_t='        '
541   else
542     ac_n=-n ac_c= ac_t=
543   fi
544 else
545   ac_n= ac_c='\c' ac_t=
546 fi
547
548
549
550 . $srcdir/VERSION
551 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
552 if test x$MY_PATCH_LEVEL != x; then
553         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
554 fi
555 ac_aux_dir=
556 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
557   if test -f $ac_dir/install-sh; then
558     ac_aux_dir=$ac_dir
559     ac_install_sh="$ac_aux_dir/install-sh -c"
560     break
561   elif test -f $ac_dir/install.sh; then
562     ac_aux_dir=$ac_dir
563     ac_install_sh="$ac_aux_dir/install.sh -c"
564     break
565   fi
566 done
567 if test -z "$ac_aux_dir"; then
568   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
569 fi
570 ac_config_guess=$ac_aux_dir/config.guess
571 ac_config_sub=$ac_aux_dir/config.sub
572 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
573
574 # Find a good install program.  We prefer a C program (faster),
575 # so one script is as good as another.  But avoid the broken or
576 # incompatible versions:
577 # SysV /etc/install, /usr/sbin/install
578 # SunOS /usr/etc/install
579 # IRIX /sbin/install
580 # AIX /bin/install
581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
583 # ./install, which can be erroneously created by make from ./install.sh.
584 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
585 echo "configure:586: checking for a BSD compatible install" >&5
586 if test -z "$INSTALL"; then
587 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
588   echo $ac_n "(cached) $ac_c" 1>&6
589 else
590     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
591   for ac_dir in $PATH; do
592     # Account for people who put trailing slashes in PATH elements.
593     case "$ac_dir/" in
594     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
595     *)
596       # OSF1 and SCO ODT 3.0 have their own names for install.
597       for ac_prog in ginstall installbsd scoinst install; do
598         if test -f $ac_dir/$ac_prog; then
599           if test $ac_prog = install &&
600             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
601             # AIX install.  It has an incompatible calling convention.
602             # OSF/1 installbsd also uses dspmsg, but is usable.
603             :
604           else
605             ac_cv_path_install="$ac_dir/$ac_prog -c"
606             break 2
607           fi
608         fi
609       done
610       ;;
611     esac
612   done
613   IFS="$ac_save_IFS"
614
615 fi
616   if test "${ac_cv_path_install+set}" = set; then
617     INSTALL="$ac_cv_path_install"
618   else
619     # As a last resort, use the slow shell script.  We don't cache a
620     # path for INSTALL within a source directory, because that will
621     # break other packages using the cache if that directory is
622     # removed, or if the path is relative.
623     INSTALL="$ac_install_sh"
624   fi
625 fi
626 echo "$ac_t""$INSTALL" 1>&6
627
628 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
629 # It thinks the first close brace ends the variable substitution.
630 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
631
632 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
633
634
635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
636
637 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
638 echo "configure:639: checking whether build environment is sane" >&5
639 # Just in case
640 sleep 1
641 echo timestamp > conftestfile
642 # Do `set' in a subshell so we don't clobber the current shell's
643 # arguments.  Must try -L first in case configure is actually a
644 # symlink; some systems play weird games with the mod time of symlinks
645 # (eg FreeBSD returns the mod time of the symlink's containing
646 # directory).
647 if (
648    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
649    if test "$*" = "X"; then
650       # -L didn't work.
651       set X `ls -t $srcdir/configure conftestfile`
652    fi
653    if test "$*" != "X $srcdir/configure conftestfile" \
654       && test "$*" != "X conftestfile $srcdir/configure"; then
655
656       # If neither matched, then we have a broken ls.  This can happen
657       # if, for instance, CONFIG_SHELL is bash and it inherits a
658       # broken ls alias from the environment.  This has actually
659       # happened.  Such a system could not be considered "sane".
660       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
661 alias in your environment" 1>&2; exit 1; }
662    fi
663
664    test "$2" = conftestfile
665    )
666 then
667    # Ok.
668    :
669 else
670    { echo "configure: error: newly created file is older than distributed files!
671 Check your system clock" 1>&2; exit 1; }
672 fi
673 rm -f conftest*
674 echo "$ac_t""yes" 1>&6
675 if test "$program_transform_name" = s,x,x,; then
676   program_transform_name=
677 else
678   # Double any \ or $.  echo might interpret backslashes.
679   cat <<\EOF_SED > conftestsed
680 s,\\,\\\\,g; s,\$,$$,g
681 EOF_SED
682   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
683   rm -f conftestsed
684 fi
685 test "$program_prefix" != NONE &&
686   program_transform_name="s,^,${program_prefix},; $program_transform_name"
687 # Use a double $ so make ignores it.
688 test "$program_suffix" != NONE &&
689   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
690
691 # sed with no file args requires a program.
692 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
693
694 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
695 echo "configure:696: checking whether ${MAKE-make} sets \${MAKE}" >&5
696 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
697 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
698   echo $ac_n "(cached) $ac_c" 1>&6
699 else
700   cat > conftestmake <<\EOF
701 all:
702         @echo 'ac_maketemp="${MAKE}"'
703 EOF
704 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
705 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
706 if test -n "$ac_maketemp"; then
707   eval ac_cv_prog_make_${ac_make}_set=yes
708 else
709   eval ac_cv_prog_make_${ac_make}_set=no
710 fi
711 rm -f conftestmake
712 fi
713 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
714   echo "$ac_t""yes" 1>&6
715   SET_MAKE=
716 else
717   echo "$ac_t""no" 1>&6
718   SET_MAKE="MAKE=${MAKE-make}"
719 fi
720
721
722 PACKAGE=lilypond
723
724 VERSION=$FULL_VERSION
725
726 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
727   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
728 fi
729 cat >> confdefs.h <<EOF
730 #define PACKAGE "$PACKAGE"
731 EOF
732
733 cat >> confdefs.h <<EOF
734 #define VERSION "$VERSION"
735 EOF
736
737
738
739 missing_dir=`cd $ac_aux_dir && pwd`
740 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
741 echo "configure:742: checking for working aclocal" >&5
742 # Run test in a subshell; some versions of sh will print an error if
743 # an executable is not found, even if stderr is redirected.
744 # Redirect stdin to placate older versions of autoconf.  Sigh.
745 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
746    ACLOCAL=aclocal
747    echo "$ac_t""found" 1>&6
748 else
749    ACLOCAL="$missing_dir/missing aclocal"
750    echo "$ac_t""missing" 1>&6
751 fi
752
753 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
754 echo "configure:755: checking for working autoconf" >&5
755 # Run test in a subshell; some versions of sh will print an error if
756 # an executable is not found, even if stderr is redirected.
757 # Redirect stdin to placate older versions of autoconf.  Sigh.
758 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
759    AUTOCONF=autoconf
760    echo "$ac_t""found" 1>&6
761 else
762    AUTOCONF="$missing_dir/missing autoconf"
763    echo "$ac_t""missing" 1>&6
764 fi
765
766 echo $ac_n "checking for working automake""... $ac_c" 1>&6
767 echo "configure:768: checking for working automake" >&5
768 # Run test in a subshell; some versions of sh will print an error if
769 # an executable is not found, even if stderr is redirected.
770 # Redirect stdin to placate older versions of autoconf.  Sigh.
771 if (automake --version) < /dev/null > /dev/null 2>&1; then
772    AUTOMAKE=automake
773    echo "$ac_t""found" 1>&6
774 else
775    AUTOMAKE="$missing_dir/missing automake"
776    echo "$ac_t""missing" 1>&6
777 fi
778
779 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
780 echo "configure:781: checking for working autoheader" >&5
781 # Run test in a subshell; some versions of sh will print an error if
782 # an executable is not found, even if stderr is redirected.
783 # Redirect stdin to placate older versions of autoconf.  Sigh.
784 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
785    AUTOHEADER=autoheader
786    echo "$ac_t""found" 1>&6
787 else
788    AUTOHEADER="$missing_dir/missing autoheader"
789    echo "$ac_t""missing" 1>&6
790 fi
791
792 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
793 echo "configure:794: checking for working makeinfo" >&5
794 # Run test in a subshell; some versions of sh will print an error if
795 # an executable is not found, even if stderr is redirected.
796 # Redirect stdin to placate older versions of autoconf.  Sigh.
797 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
798    MAKEINFO=makeinfo
799    echo "$ac_t""found" 1>&6
800 else
801    MAKEINFO="$missing_dir/missing makeinfo"
802    echo "$ac_t""missing" 1>&6
803 fi
804
805
806
807 # Extract the first word of "gcc", so it can be a program name with args.
808 set dummy gcc; ac_word=$2
809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
810 echo "configure:811: checking for $ac_word" >&5
811 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
812   echo $ac_n "(cached) $ac_c" 1>&6
813 else
814   if test -n "$CC"; then
815   ac_cv_prog_CC="$CC" # Let the user override the test.
816 else
817   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
818   for ac_dir in $PATH; do
819     test -z "$ac_dir" && ac_dir=.
820     if test -f $ac_dir/$ac_word; then
821       ac_cv_prog_CC="gcc"
822       break
823     fi
824   done
825   IFS="$ac_save_ifs"
826 fi
827 fi
828 CC="$ac_cv_prog_CC"
829 if test -n "$CC"; then
830   echo "$ac_t""$CC" 1>&6
831 else
832   echo "$ac_t""no" 1>&6
833 fi
834
835 if test -z "$CC"; then
836   # Extract the first word of "cc", so it can be a program name with args.
837 set dummy cc; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841   echo $ac_n "(cached) $ac_c" 1>&6
842 else
843   if test -n "$CC"; then
844   ac_cv_prog_CC="$CC" # Let the user override the test.
845 else
846   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
847   ac_prog_rejected=no
848   for ac_dir in $PATH; do
849     test -z "$ac_dir" && ac_dir=.
850     if test -f $ac_dir/$ac_word; then
851       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
852         ac_prog_rejected=yes
853         continue
854       fi
855       ac_cv_prog_CC="cc"
856       break
857     fi
858   done
859   IFS="$ac_save_ifs"
860 if test $ac_prog_rejected = yes; then
861   # We found a bogon in the path, so make sure we never use it.
862   set dummy $ac_cv_prog_CC
863   shift
864   if test $# -gt 0; then
865     # We chose a different compiler from the bogus one.
866     # However, it has the same basename, so the bogon will be chosen
867     # first if we set CC to just the basename; use the full file name.
868     shift
869     set dummy "$ac_dir/$ac_word" "$@"
870     shift
871     ac_cv_prog_CC="$@"
872   fi
873 fi
874 fi
875 fi
876 CC="$ac_cv_prog_CC"
877 if test -n "$CC"; then
878   echo "$ac_t""$CC" 1>&6
879 else
880   echo "$ac_t""no" 1>&6
881 fi
882
883   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
884 fi
885
886 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
887 echo "configure:888: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
888
889 ac_ext=c
890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
891 ac_cpp='$CPP $CPPFLAGS'
892 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
893 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
894 cross_compiling=$ac_cv_prog_cc_cross
895
896 cat > conftest.$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
899 main(){return(0);}
900 EOF
901 if { (eval echo configure:902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
902   ac_cv_prog_cc_works=yes
903   # If we can't run a trivial program, we are probably using a cross compiler.
904   if (./conftest; exit) 2>/dev/null; then
905     ac_cv_prog_cc_cross=no
906   else
907     ac_cv_prog_cc_cross=yes
908   fi
909 else
910   echo "configure: failed program was:" >&5
911   cat conftest.$ac_ext >&5
912   ac_cv_prog_cc_works=no
913 fi
914 rm -fr conftest*
915
916 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
917 if test $ac_cv_prog_cc_works = no; then
918   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
919 fi
920 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
921 echo "configure:922: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
922 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
923 cross_compiling=$ac_cv_prog_cc_cross
924
925 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
926 echo "configure:927: checking whether we are using GNU C" >&5
927 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
928   echo $ac_n "(cached) $ac_c" 1>&6
929 else
930   cat > conftest.c <<EOF
931 #ifdef __GNUC__
932   yes;
933 #endif
934 EOF
935 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
936   ac_cv_prog_gcc=yes
937 else
938   ac_cv_prog_gcc=no
939 fi
940 fi
941
942 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
943
944 if test $ac_cv_prog_gcc = yes; then
945   GCC=yes
946   ac_test_CFLAGS="${CFLAGS+set}"
947   ac_save_CFLAGS="$CFLAGS"
948   CFLAGS=
949   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
950 echo "configure:951: checking whether ${CC-cc} accepts -g" >&5
951 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
952   echo $ac_n "(cached) $ac_c" 1>&6
953 else
954   echo 'void f(){}' > conftest.c
955 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
956   ac_cv_prog_cc_g=yes
957 else
958   ac_cv_prog_cc_g=no
959 fi
960 rm -f conftest*
961
962 fi
963
964 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
965   if test "$ac_test_CFLAGS" = set; then
966     CFLAGS="$ac_save_CFLAGS"
967   elif test $ac_cv_prog_cc_g = yes; then
968     CFLAGS="-g -O2"
969   else
970     CFLAGS="-O2"
971   fi
972 else
973   GCC=
974   test "${CFLAGS+set}" = set || CFLAGS="-g"
975 fi
976
977 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
978 do
979 # Extract the first word of "$ac_prog", so it can be a program name with args.
980 set dummy $ac_prog; ac_word=$2
981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
982 echo "configure:983: checking for $ac_word" >&5
983 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
984   echo $ac_n "(cached) $ac_c" 1>&6
985 else
986   if test -n "$CXX"; then
987   ac_cv_prog_CXX="$CXX" # Let the user override the test.
988 else
989   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
990   for ac_dir in $PATH; do
991     test -z "$ac_dir" && ac_dir=.
992     if test -f $ac_dir/$ac_word; then
993       ac_cv_prog_CXX="$ac_prog"
994       break
995     fi
996   done
997   IFS="$ac_save_ifs"
998 fi
999 fi
1000 CXX="$ac_cv_prog_CXX"
1001 if test -n "$CXX"; then
1002   echo "$ac_t""$CXX" 1>&6
1003 else
1004   echo "$ac_t""no" 1>&6
1005 fi
1006
1007 test -n "$CXX" && break
1008 done
1009 test -n "$CXX" || CXX="gcc"
1010
1011
1012 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1013 echo "configure:1014: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1014
1015 ac_ext=C
1016 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1017 ac_cpp='$CXXCPP $CPPFLAGS'
1018 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1019 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1020 cross_compiling=$ac_cv_prog_cxx_cross
1021
1022 cat > conftest.$ac_ext <<EOF
1023 #line 1024 "configure"
1024 #include "confdefs.h"
1025 main(){return(0);}
1026 EOF
1027 if { (eval echo configure:1028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1028   ac_cv_prog_cxx_works=yes
1029   # If we can't run a trivial program, we are probably using a cross compiler.
1030   if (./conftest; exit) 2>/dev/null; then
1031     ac_cv_prog_cxx_cross=no
1032   else
1033     ac_cv_prog_cxx_cross=yes
1034   fi
1035 else
1036   echo "configure: failed program was:" >&5
1037   cat conftest.$ac_ext >&5
1038   ac_cv_prog_cxx_works=no
1039 fi
1040 rm -fr conftest*
1041 ac_ext=c
1042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1043 ac_cpp='$CPP $CPPFLAGS'
1044 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1045 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1046 cross_compiling=$ac_cv_prog_cc_cross
1047
1048 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1049 if test $ac_cv_prog_cxx_works = no; then
1050   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1051 fi
1052 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1053 echo "configure:1054: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1054 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1055 cross_compiling=$ac_cv_prog_cxx_cross
1056
1057 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1058 echo "configure:1059: checking whether we are using GNU C++" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1060   echo $ac_n "(cached) $ac_c" 1>&6
1061 else
1062   cat > conftest.C <<EOF
1063 #ifdef __GNUC__
1064   yes;
1065 #endif
1066 EOF
1067 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1068   ac_cv_prog_gxx=yes
1069 else
1070   ac_cv_prog_gxx=no
1071 fi
1072 fi
1073
1074 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1075
1076 if test $ac_cv_prog_gxx = yes; then
1077   GXX=yes
1078   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1079   ac_save_CXXFLAGS="$CXXFLAGS"
1080   CXXFLAGS=
1081   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1082 echo "configure:1083: checking whether ${CXX-g++} accepts -g" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1084   echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086   echo 'void f(){}' > conftest.cc
1087 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1088   ac_cv_prog_cxx_g=yes
1089 else
1090   ac_cv_prog_cxx_g=no
1091 fi
1092 rm -f conftest*
1093
1094 fi
1095
1096 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1097   if test "$ac_test_CXXFLAGS" = set; then
1098     CXXFLAGS="$ac_save_CXXFLAGS"
1099   elif test $ac_cv_prog_cxx_g = yes; then
1100     CXXFLAGS="-g -O2"
1101   else
1102     CXXFLAGS="-O2"
1103   fi
1104 else
1105   GXX=
1106   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1107 fi
1108
1109
1110 # turn off shared libraries by default (may be enabled using --enable-shared)
1111 # Check whether --enable-shared or --disable-shared was given.
1112 if test "${enable_shared+set}" = set; then
1113   enableval="$enable_shared"
1114   p=${PACKAGE-default}
1115 case "$enableval" in
1116 yes) enable_shared=yes ;;
1117 no) enable_shared=no ;;
1118 *)
1119   enable_shared=no
1120   # Look at the argument we got.  We use all the common list separators.
1121   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1122   for pkg in $enableval; do
1123     if test "X$pkg" = "X$p"; then
1124       enable_shared=yes
1125     fi
1126   done
1127   IFS="$ac_save_ifs"
1128   ;;
1129 esac
1130 else
1131   enable_shared=no
1132 fi
1133
1134 # Check whether --enable-static or --disable-static was given.
1135 if test "${enable_static+set}" = set; then
1136   enableval="$enable_static"
1137   p=${PACKAGE-default}
1138 case "$enableval" in
1139 yes) enable_static=yes ;;
1140 no) enable_static=no ;;
1141 *)
1142   enable_static=no
1143   # Look at the argument we got.  We use all the common list separators.
1144   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1145   for pkg in $enableval; do
1146     if test "X$pkg" = "X$p"; then
1147       enable_static=yes
1148     fi
1149   done
1150   IFS="$ac_save_ifs"
1151   ;;
1152 esac
1153 else
1154   enable_static=yes
1155 fi
1156
1157
1158 # Make sure we can run config.sub.
1159 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1160 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1161 fi
1162
1163 echo $ac_n "checking host system type""... $ac_c" 1>&6
1164 echo "configure:1165: checking host system type" >&5
1165
1166 host_alias=$host
1167 case "$host_alias" in
1168 NONE)
1169   case $nonopt in
1170   NONE)
1171     if host_alias=`$ac_config_guess`; then :
1172     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1173     fi ;;
1174   *) host_alias=$nonopt ;;
1175   esac ;;
1176 esac
1177
1178 host=`$ac_config_sub $host_alias`
1179 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1180 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1181 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1182 echo "$ac_t""$host" 1>&6
1183
1184 # Extract the first word of "ranlib", so it can be a program name with args.
1185 set dummy ranlib; ac_word=$2
1186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1187 echo "configure:1188: checking for $ac_word" >&5
1188 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1189   echo $ac_n "(cached) $ac_c" 1>&6
1190 else
1191   if test -n "$RANLIB"; then
1192   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1193 else
1194   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1195   for ac_dir in $PATH; do
1196     test -z "$ac_dir" && ac_dir=.
1197     if test -f $ac_dir/$ac_word; then
1198       ac_cv_prog_RANLIB="ranlib"
1199       break
1200     fi
1201   done
1202   IFS="$ac_save_ifs"
1203   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1204 fi
1205 fi
1206 RANLIB="$ac_cv_prog_RANLIB"
1207 if test -n "$RANLIB"; then
1208   echo "$ac_t""$RANLIB" 1>&6
1209 else
1210   echo "$ac_t""no" 1>&6
1211 fi
1212
1213 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1214 if test "${with_gnu_ld+set}" = set; then
1215   withval="$with_gnu_ld"
1216   test "$withval" = no || with_gnu_ld=yes
1217 else
1218   with_gnu_ld=no
1219 fi
1220
1221
1222 ac_prog=ld
1223 if test "$ac_cv_prog_gcc" = yes; then
1224   # Check if gcc -print-prog-name=ld gives a path.
1225   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1226 echo "configure:1227: checking for ld used by GCC" >&5
1227   ac_prog=`($CC -print-prog-name=ld) 2>&5`
1228   case "$ac_prog" in
1229   # Accept absolute paths.
1230   /* | A-Za-z:\\*)
1231     test -z "$LD" && LD="$ac_prog"
1232     ;;
1233   "")
1234     # If it fails, then pretend we aren't using GCC.
1235     ac_prog=ld
1236     ;;
1237   *)
1238     # If it is relative, then search for the first ld in PATH.
1239     with_gnu_ld=unknown
1240     ;;
1241   esac
1242 elif test "$with_gnu_ld" = yes; then
1243   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1244 echo "configure:1245: checking for GNU ld" >&5
1245 else
1246   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1247 echo "configure:1248: checking for non-GNU ld" >&5
1248 fi
1249 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1250   echo $ac_n "(cached) $ac_c" 1>&6
1251 else
1252   if test -z "$LD"; then
1253   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1254   for ac_dir in $PATH; do
1255     test -z "$ac_dir" && ac_dir=.
1256     if test -f "$ac_dir/$ac_prog"; then
1257       ac_cv_path_LD="$ac_dir/$ac_prog"
1258       # Check to see if the program is GNU ld.  I'd rather use --version,
1259       # but apparently some GNU ld's only accept -v.
1260       # Break only if it was the GNU/non-GNU ld that we prefer.
1261       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1262         test "$with_gnu_ld" != no && break
1263       else
1264         test "$with_gnu_ld" != yes && break
1265       fi
1266     fi
1267   done
1268   IFS="$ac_save_ifs"
1269 else
1270   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1271 fi
1272 fi
1273
1274 LD="$ac_cv_path_LD"
1275 if test -n "$LD"; then
1276   echo "$ac_t""$LD" 1>&6
1277 else
1278   echo "$ac_t""no" 1>&6
1279 fi
1280 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1281
1282 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1283 echo "configure:1284: checking if the linker ($LD) is GNU ld" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1285   echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1288 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1289   ac_cv_prog_gnu_ld=yes
1290 else
1291   ac_cv_prog_gnu_ld=no
1292 fi
1293 fi
1294
1295 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1296
1297
1298 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1299 echo "configure:1300: checking for BSD-compatible nm" >&5
1300 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1301   echo $ac_n "(cached) $ac_c" 1>&6
1302 else
1303   case "$NM" in
1304 /* | A-Za-z:\\*)
1305   ac_cv_path_NM="$NM" # Let the user override the test with a path.
1306   ;;
1307 *)
1308   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1309   for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1310     test -z "$ac_dir" && ac_dir=.
1311     if test -f $ac_dir/nm; then
1312       # Check to see if the nm accepts a BSD-compat flag.
1313       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1314       #   nm: unknown option "B" ignored
1315       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1316         ac_cv_path_NM="$ac_dir/nm -B"
1317       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1318         ac_cv_path_NM="$ac_dir/nm -p"
1319       else
1320         ac_cv_path_NM="$ac_dir/nm"
1321       fi
1322       break
1323     fi
1324   done
1325   IFS="$ac_save_ifs"
1326   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1327   ;;
1328 esac
1329 fi
1330
1331 NM="$ac_cv_path_NM"
1332 echo "$ac_t""$NM" 1>&6
1333
1334
1335 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1336 echo "configure:1337: checking whether ln -s works" >&5
1337 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1338   echo $ac_n "(cached) $ac_c" 1>&6
1339 else
1340   rm -f conftestdata
1341 if ln -s X conftestdata 2>/dev/null
1342 then
1343   rm -f conftestdata
1344   ac_cv_prog_LN_S="ln -s"
1345 else
1346   ac_cv_prog_LN_S=ln
1347 fi
1348 fi
1349 LN_S="$ac_cv_prog_LN_S"
1350 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1351   echo "$ac_t""yes" 1>&6
1352 else
1353   echo "$ac_t""no" 1>&6
1354 fi
1355
1356 # Always use our own libtool.
1357 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1358
1359 # Check for any special flags to pass to ltconfig.
1360 libtool_flags=
1361 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1362 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1363 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1364 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1365 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1366
1367 # Some flags need to be propagated to the compiler or linker for good
1368 # libtool support.
1369 case "$host" in
1370 *-*-irix6*)
1371   # Find out which ABI we are using.
1372   echo '#line 1373 "configure"' > conftest.$ac_ext
1373   if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1374     case "`/usr/bin/file conftest.o`" in
1375     *32-bit*)
1376       LD="${LD-ld} -32"
1377       ;;
1378     *N32*)
1379       LD="${LD-ld} -n32"
1380       ;;
1381     *64-bit*)
1382       LD="${LD-ld} -64"
1383       ;;
1384     esac
1385   fi
1386   rm -rf conftest*
1387   ;;
1388
1389 *-*-sco3.2v5*)
1390   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1391   CFLAGS="$CFLAGS -belf"
1392   ;;
1393 esac
1394
1395 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
1396 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1397 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1398 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1399 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1400 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1401
1402
1403 # ugh, automake: we want (and check for) bison
1404 for ac_prog in 'bison -y' byacc
1405 do
1406 # Extract the first word of "$ac_prog", so it can be a program name with args.
1407 set dummy $ac_prog; ac_word=$2
1408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1409 echo "configure:1410: checking for $ac_word" >&5
1410 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1411   echo $ac_n "(cached) $ac_c" 1>&6
1412 else
1413   if test -n "$YACC"; then
1414   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1415 else
1416   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1417   for ac_dir in $PATH; do
1418     test -z "$ac_dir" && ac_dir=.
1419     if test -f $ac_dir/$ac_word; then
1420       ac_cv_prog_YACC="$ac_prog"
1421       break
1422     fi
1423   done
1424   IFS="$ac_save_ifs"
1425 fi
1426 fi
1427 YACC="$ac_cv_prog_YACC"
1428 if test -n "$YACC"; then
1429   echo "$ac_t""$YACC" 1>&6
1430 else
1431   echo "$ac_t""no" 1>&6
1432 fi
1433
1434 test -n "$YACC" && break
1435 done
1436 test -n "$YACC" || YACC="yacc"
1437
1438
1439 # ugh, automake: we want (and check for) flex
1440 # Extract the first word of "flex", so it can be a program name with args.
1441 set dummy flex; ac_word=$2
1442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1443 echo "configure:1444: checking for $ac_word" >&5
1444 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1445   echo $ac_n "(cached) $ac_c" 1>&6
1446 else
1447   if test -n "$LEX"; then
1448   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1449 else
1450   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1451   for ac_dir in $PATH; do
1452     test -z "$ac_dir" && ac_dir=.
1453     if test -f $ac_dir/$ac_word; then
1454       ac_cv_prog_LEX="flex"
1455       break
1456     fi
1457   done
1458   IFS="$ac_save_ifs"
1459   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1460 fi
1461 fi
1462 LEX="$ac_cv_prog_LEX"
1463 if test -n "$LEX"; then
1464   echo "$ac_t""$LEX" 1>&6
1465 else
1466   echo "$ac_t""no" 1>&6
1467 fi
1468
1469 if test -z "$LEXLIB"
1470 then
1471   case "$LEX" in
1472   flex*) ac_lib=fl ;;
1473   *) ac_lib=l ;;
1474   esac
1475   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1476 echo "configure:1477: checking for yywrap in -l$ac_lib" >&5
1477 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1479   echo $ac_n "(cached) $ac_c" 1>&6
1480 else
1481   ac_save_LIBS="$LIBS"
1482 LIBS="-l$ac_lib  $LIBS"
1483 cat > conftest.$ac_ext <<EOF
1484 #line 1485 "configure"
1485 #include "confdefs.h"
1486 /* Override any gcc2 internal prototype to avoid an error.  */
1487 /* We use char because int might match the return type of a gcc2
1488     builtin and then its argument prototype would still apply.  */
1489 char yywrap();
1490
1491 int main() {
1492 yywrap()
1493 ; return 0; }
1494 EOF
1495 if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1496   rm -rf conftest*
1497   eval "ac_cv_lib_$ac_lib_var=yes"
1498 else
1499   echo "configure: failed program was:" >&5
1500   cat conftest.$ac_ext >&5
1501   rm -rf conftest*
1502   eval "ac_cv_lib_$ac_lib_var=no"
1503 fi
1504 rm -f conftest*
1505 LIBS="$ac_save_LIBS"
1506
1507 fi
1508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1509   echo "$ac_t""yes" 1>&6
1510   LEXLIB="-l$ac_lib"
1511 else
1512   echo "$ac_t""no" 1>&6
1513 fi
1514
1515 fi
1516
1517
1518 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1519 echo "configure:1520: checking how to run the C preprocessor" >&5
1520 # On Suns, sometimes $CPP names a directory.
1521 if test -n "$CPP" && test -d "$CPP"; then
1522   CPP=
1523 fi
1524 if test -z "$CPP"; then
1525 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1526   echo $ac_n "(cached) $ac_c" 1>&6
1527 else
1528     # This must be in double quotes, not single quotes, because CPP may get
1529   # substituted into the Makefile and "${CC-cc}" will confuse make.
1530   CPP="${CC-cc} -E"
1531   # On the NeXT, cc -E runs the code through the compiler's parser,
1532   # not just through cpp.
1533   cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1536 #include <assert.h>
1537 Syntax Error
1538 EOF
1539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1540 { (eval echo configure:1541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1541 ac_err=`grep -v '^ *+' conftest.out`
1542 if test -z "$ac_err"; then
1543   :
1544 else
1545   echo "$ac_err" >&5
1546   echo "configure: failed program was:" >&5
1547   cat conftest.$ac_ext >&5
1548   rm -rf conftest*
1549   CPP="${CC-cc} -E -traditional-cpp"
1550   cat > conftest.$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1553 #include <assert.h>
1554 Syntax Error
1555 EOF
1556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1557 { (eval echo configure:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1558 ac_err=`grep -v '^ *+' conftest.out`
1559 if test -z "$ac_err"; then
1560   :
1561 else
1562   echo "$ac_err" >&5
1563   echo "configure: failed program was:" >&5
1564   cat conftest.$ac_ext >&5
1565   rm -rf conftest*
1566   CPP=/lib/cpp
1567 fi
1568 rm -f conftest*
1569 fi
1570 rm -f conftest*
1571   ac_cv_prog_CPP="$CPP"
1572 fi
1573   CPP="$ac_cv_prog_CPP"
1574 else
1575   ac_cv_prog_CPP="$CPP"
1576 fi
1577 echo "$ac_t""$CPP" 1>&6
1578
1579 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1580 echo "configure:1581: checking lex output file root" >&5
1581 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1582   echo $ac_n "(cached) $ac_c" 1>&6
1583 else
1584   # The minimal lex program is just a single line: %%.  But some broken lexes
1585 # (Solaris, I think it was) want two %% lines, so accommodate them.
1586 echo '%%
1587 %%' | $LEX
1588 if test -f lex.yy.c; then
1589   ac_cv_prog_lex_root=lex.yy
1590 elif test -f lexyy.c; then
1591   ac_cv_prog_lex_root=lexyy
1592 else
1593   { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1594 fi
1595 fi
1596
1597 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1598 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1599
1600 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1601 echo "configure:1602: checking whether yytext is a pointer" >&5
1602 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1603   echo $ac_n "(cached) $ac_c" 1>&6
1604 else
1605   # POSIX says lex can declare yytext either as a pointer or an array; the
1606 # default is implementation-dependent. Figure out which it is, since
1607 # not all implementations provide the %pointer and %array declarations.
1608 ac_cv_prog_lex_yytext_pointer=no
1609 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1610 ac_save_LIBS="$LIBS"
1611 LIBS="$LIBS $LEXLIB"
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1615 `cat $LEX_OUTPUT_ROOT.c`
1616 int main() {
1617
1618 ; return 0; }
1619 EOF
1620 if { (eval echo configure:1621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1621   rm -rf conftest*
1622   ac_cv_prog_lex_yytext_pointer=yes
1623 else
1624   echo "configure: failed program was:" >&5
1625   cat conftest.$ac_ext >&5
1626 fi
1627 rm -f conftest*
1628 LIBS="$ac_save_LIBS"
1629 rm -f "${LEX_OUTPUT_ROOT}.c"
1630
1631 fi
1632
1633 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1634 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1635   cat >> confdefs.h <<\EOF
1636 #define YYTEXT_POINTER 1
1637 EOF
1638
1639 fi
1640
1641 # ugh, ugh
1642 ac_cv_prog_lex_root=lex.yy
1643
1644 missing_dir=`cd $ac_aux_dir && pwd`
1645
1646 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1647 echo "configure:1648: checking for working aclocal" >&5
1648 # Run test in a subshell; some versions of sh will print an error if
1649 # an executable is not found, even if stderr is redirected.
1650 # Redirect stdin to placate older versions of autoconf.  Sigh.
1651 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1652    ACLOCAL=aclocal
1653    echo "$ac_t""found" 1>&6
1654 else
1655    ACLOCAL="$missing_dir/missing aclocal"
1656    echo "$ac_t""missing" 1>&6
1657 fi
1658
1659 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1660 echo "configure:1661: checking for working autoconf" >&5
1661 # Run test in a subshell; some versions of sh will print an error if
1662 # an executable is not found, even if stderr is redirected.
1663 # Redirect stdin to placate older versions of autoconf.  Sigh.
1664 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1665    AUTOCONF=autoconf
1666    echo "$ac_t""found" 1>&6
1667 else
1668    AUTOCONF="$missing_dir/missing autoconf"
1669    echo "$ac_t""missing" 1>&6
1670 fi
1671
1672 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1673 echo "configure:1674: checking for working automake" >&5
1674 # Run test in a subshell; some versions of sh will print an error if
1675 # an executable is not found, even if stderr is redirected.
1676 # Redirect stdin to placate older versions of autoconf.  Sigh.
1677 if (automake --version) < /dev/null > /dev/null 2>&1; then
1678    AUTOMAKE=automake
1679    echo "$ac_t""found" 1>&6
1680 else
1681    AUTOMAKE="$missing_dir/missing automake"
1682    echo "$ac_t""missing" 1>&6
1683 fi
1684
1685 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1686 echo "configure:1687: checking for working autoheader" >&5
1687 # Run test in a subshell; some versions of sh will print an error if
1688 # an executable is not found, even if stderr is redirected.
1689 # Redirect stdin to placate older versions of autoconf.  Sigh.
1690 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1691    AUTOHEADER=autoheader
1692    echo "$ac_t""found" 1>&6
1693 else
1694    AUTOHEADER="$missing_dir/missing autoheader"
1695    echo "$ac_t""missing" 1>&6
1696 fi
1697
1698 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1699 echo "configure:1700: checking for working makeinfo" >&5
1700 # Run test in a subshell; some versions of sh will print an error if
1701 # an executable is not found, even if stderr is redirected.
1702 # Redirect stdin to placate older versions of autoconf.  Sigh.
1703 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1704    MAKEINFO=makeinfo
1705    echo "$ac_t""found" 1>&6
1706 else
1707    MAKEINFO="$missing_dir/missing makeinfo"
1708    echo "$ac_t""missing" 1>&6
1709 fi
1710
1711
1712
1713 printing_b=no
1714 checking_b=yes
1715 debug_b=yes
1716 optimise_b=no
1717 profile_b=no
1718
1719 ac_ext=C
1720 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1721 ac_cpp='$CXXCPP $CPPFLAGS'
1722 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1723 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1724 cross_compiling=$ac_cv_prog_cxx_cross
1725
1726
1727 # Check whether --enable-printing or --disable-printing was given.
1728 if test "${enable_printing+set}" = set; then
1729   enableval="$enable_printing"
1730   printing_b=$enableval
1731 fi
1732
1733
1734         
1735 # Check whether --enable-checking or --disable-checking was given.
1736 if test "${enable_checking+set}" = set; then
1737   enableval="$enable_checking"
1738   checking_b=$enableval 
1739 fi
1740
1741
1742 # Check whether --enable-debugging or --disable-debugging was given.
1743 if test "${enable_debugging+set}" = set; then
1744   enableval="$enable_debugging"
1745   debug_b=$enableval
1746 fi
1747
1748
1749 # Check whether --enable-optimise or --disable-optimise was given.
1750 if test "${enable_optimise+set}" = set; then
1751   enableval="$enable_optimise"
1752   optimise_b=$enableval
1753 fi
1754
1755     
1756 # Check whether --enable-profiling or --disable-profiling was given.
1757 if test "${enable_profiling+set}" = set; then
1758   enableval="$enable_profiling"
1759   profile_b=$enableval
1760 fi
1761
1762     
1763 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1764 if test "${enable_mingw_prefix+set}" = set; then
1765   enableval="$enable_mingw_prefix"
1766   MINGWPREFIX=$enableval
1767 else
1768   MINGWPREFIX=no
1769 fi
1770
1771     
1772 # Check whether --enable-tex-prefix or --disable-tex-prefix was given.
1773 if test "${enable_tex_prefix+set}" = set; then
1774   enableval="$enable_tex_prefix"
1775   TEXPREFIX=$enableval
1776 else
1777   TEXPREFIX=auto 
1778 fi
1779
1780     
1781 # Check whether --enable-tex-dir or --disable-tex-dir was given.
1782 if test "${enable_tex_dir+set}" = set; then
1783   enableval="$enable_tex_dir"
1784   TEXDIR=$enableval
1785 else
1786   TEXDIR=auto 
1787 fi
1788
1789
1790 # Check whether --enable-mf-dir or --disable-mf-dir was given.
1791 if test "${enable_mf_dir+set}" = set; then
1792   enableval="$enable_mf_dir"
1793   MFDIR=$enableval
1794 else
1795   MFDIR=auto
1796 fi
1797
1798
1799 if test $profile_b = yes; then
1800     EXTRA_LIBES="-pg"
1801     DEFINES="$DEFINES -pg"
1802 fi
1803     
1804 if test $printing_b = no; then
1805     DEFINES="$DEFINES -DNPRINT=1"
1806 fi
1807     
1808 if test $debug_b = yes; then    
1809     DEFINES="$DEFINES -g"
1810 fi
1811 if test $checking_b = no; then
1812     DEFINES="$DEFINES -DNDEBUG=1"
1813 fi
1814
1815 # however, C++ support in mingw32 v 0.1.4 is still flaky
1816 if test x$MINGWPREFIX != xno; then 
1817     ICFLAGS="-I$MINGWPREFIX/include"
1818     ILDFLAGS="-$MINGWPREFIX/lib"
1819 fi
1820
1821 if test $optimise_b = yes; then
1822     DEFINES="$DEFINES -finline-functions -O2 -DSTRING_UTILS_INLINED"
1823 fi
1824
1825 if test "x$OSTYPE" = "xWindows_NT"; then
1826     LN=cp # hard link does not work under cygnus-nt (yet?)
1827     ZIP="zip -r -9" #
1828 else
1829     LN=ln
1830     ZIP="zip -r -9"
1831 fi
1832
1833 AUTOHEADER="This file was automatically generated by configure"
1834 CPPFLAGS=${CPPFLAGS:-""}        # we don't want -g -O junk
1835 CXXFLAGS=${CXXFLAGS:-""}        # we don't want -g -O junk
1836
1837 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1838 do
1839 # Extract the first word of "$ac_prog", so it can be a program name with args.
1840 set dummy $ac_prog; ac_word=$2
1841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1842 echo "configure:1843: checking for $ac_word" >&5
1843 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1844   echo $ac_n "(cached) $ac_c" 1>&6
1845 else
1846   if test -n "$CXX"; then
1847   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1848 else
1849   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1850   for ac_dir in $PATH; do
1851     test -z "$ac_dir" && ac_dir=.
1852     if test -f $ac_dir/$ac_word; then
1853       ac_cv_prog_CXX="$ac_prog"
1854       break
1855     fi
1856   done
1857   IFS="$ac_save_ifs"
1858 fi
1859 fi
1860 CXX="$ac_cv_prog_CXX"
1861 if test -n "$CXX"; then
1862   echo "$ac_t""$CXX" 1>&6
1863 else
1864   echo "$ac_t""no" 1>&6
1865 fi
1866
1867 test -n "$CXX" && break
1868 done
1869 test -n "$CXX" || CXX="gcc"
1870
1871
1872 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1873 echo "configure:1874: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1874
1875 ac_ext=C
1876 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1877 ac_cpp='$CXXCPP $CPPFLAGS'
1878 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1879 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1880 cross_compiling=$ac_cv_prog_cxx_cross
1881
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 main(){return(0);}
1886 EOF
1887 if { (eval echo configure:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1888   ac_cv_prog_cxx_works=yes
1889   # If we can't run a trivial program, we are probably using a cross compiler.
1890   if (./conftest; exit) 2>/dev/null; then
1891     ac_cv_prog_cxx_cross=no
1892   else
1893     ac_cv_prog_cxx_cross=yes
1894   fi
1895 else
1896   echo "configure: failed program was:" >&5
1897   cat conftest.$ac_ext >&5
1898   ac_cv_prog_cxx_works=no
1899 fi
1900 rm -fr conftest*
1901
1902 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1903 if test $ac_cv_prog_cxx_works = no; then
1904   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1905 fi
1906 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1907 echo "configure:1908: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1908 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1909 cross_compiling=$ac_cv_prog_cxx_cross
1910
1911 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1912 echo "configure:1913: checking whether we are using GNU C++" >&5
1913 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1914   echo $ac_n "(cached) $ac_c" 1>&6
1915 else
1916   cat > conftest.C <<EOF
1917 #ifdef __GNUC__
1918   yes;
1919 #endif
1920 EOF
1921 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1922   ac_cv_prog_gxx=yes
1923 else
1924   ac_cv_prog_gxx=no
1925 fi
1926 fi
1927
1928 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1929
1930 if test $ac_cv_prog_gxx = yes; then
1931   GXX=yes
1932   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1933   ac_save_CXXFLAGS="$CXXFLAGS"
1934   CXXFLAGS=
1935   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1936 echo "configure:1937: checking whether ${CXX-g++} accepts -g" >&5
1937 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1938   echo $ac_n "(cached) $ac_c" 1>&6
1939 else
1940   echo 'void f(){}' > conftest.cc
1941 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1942   ac_cv_prog_cxx_g=yes
1943 else
1944   ac_cv_prog_cxx_g=no
1945 fi
1946 rm -f conftest*
1947
1948 fi
1949
1950 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1951   if test "$ac_test_CXXFLAGS" = set; then
1952     CXXFLAGS="$ac_save_CXXFLAGS"
1953   elif test $ac_cv_prog_cxx_g = yes; then
1954     CXXFLAGS="-g -O2"
1955   else
1956     CXXFLAGS="-O2"
1957   fi
1958 else
1959   GXX=
1960   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1961 fi
1962
1963 # AC_PROG_RANLIB
1964 # Find a good install program.  We prefer a C program (faster),
1965 # so one script is as good as another.  But avoid the broken or
1966 # incompatible versions:
1967 # SysV /etc/install, /usr/sbin/install
1968 # SunOS /usr/etc/install
1969 # IRIX /sbin/install
1970 # AIX /bin/install
1971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1973 # ./install, which can be erroneously created by make from ./install.sh.
1974 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1975 echo "configure:1976: checking for a BSD compatible install" >&5
1976 if test -z "$INSTALL"; then
1977 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1978   echo $ac_n "(cached) $ac_c" 1>&6
1979 else
1980     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1981   for ac_dir in $PATH; do
1982     # Account for people who put trailing slashes in PATH elements.
1983     case "$ac_dir/" in
1984     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1985     *)
1986       # OSF1 and SCO ODT 3.0 have their own names for install.
1987       for ac_prog in ginstall installbsd scoinst install; do
1988         if test -f $ac_dir/$ac_prog; then
1989           if test $ac_prog = install &&
1990             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1991             # AIX install.  It has an incompatible calling convention.
1992             # OSF/1 installbsd also uses dspmsg, but is usable.
1993             :
1994           else
1995             ac_cv_path_install="$ac_dir/$ac_prog -c"
1996             break 2
1997           fi
1998         fi
1999       done
2000       ;;
2001     esac
2002   done
2003   IFS="$ac_save_IFS"
2004
2005 fi
2006   if test "${ac_cv_path_install+set}" = set; then
2007     INSTALL="$ac_cv_path_install"
2008   else
2009     # As a last resort, use the slow shell script.  We don't cache a
2010     # path for INSTALL within a source directory, because that will
2011     # break other packages using the cache if that directory is
2012     # removed, or if the path is relative.
2013     INSTALL="$ac_install_sh"
2014   fi
2015 fi
2016 echo "$ac_t""$INSTALL" 1>&6
2017
2018 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2019 # It thinks the first close brace ends the variable substitution.
2020 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2021
2022 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2023
2024 for ac_prog in tar
2025 do
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2029 echo "configure:2030: checking for $ac_word" >&5
2030 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
2031   echo $ac_n "(cached) $ac_c" 1>&6
2032 else
2033   if test -n "$TAR"; then
2034   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2035 else
2036   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2037   for ac_dir in $PATH; do
2038     test -z "$ac_dir" && ac_dir=.
2039     if test -f $ac_dir/$ac_word; then
2040       ac_cv_prog_TAR="$ac_prog"
2041       break
2042     fi
2043   done
2044   IFS="$ac_save_ifs"
2045 fi
2046 fi
2047 TAR="$ac_cv_prog_TAR"
2048 if test -n "$TAR"; then
2049   echo "$ac_t""$TAR" 1>&6
2050 else
2051   echo "$ac_t""no" 1>&6
2052 fi
2053
2054 test -n "$TAR" && break
2055 done
2056 test -n "$TAR" || TAR="error"
2057
2058 for ac_prog in find
2059 do
2060 # Extract the first word of "$ac_prog", so it can be a program name with args.
2061 set dummy $ac_prog; ac_word=$2
2062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2063 echo "configure:2064: checking for $ac_word" >&5
2064 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
2065   echo $ac_n "(cached) $ac_c" 1>&6
2066 else
2067   if test -n "$FIND"; then
2068   ac_cv_prog_FIND="$FIND" # Let the user override the test.
2069 else
2070   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2071   for ac_dir in $PATH; do
2072     test -z "$ac_dir" && ac_dir=.
2073     if test -f $ac_dir/$ac_word; then
2074       ac_cv_prog_FIND="$ac_prog"
2075       break
2076     fi
2077   done
2078   IFS="$ac_save_ifs"
2079 fi
2080 fi
2081 FIND="$ac_cv_prog_FIND"
2082 if test -n "$FIND"; then
2083   echo "$ac_t""$FIND" 1>&6
2084 else
2085   echo "$ac_t""no" 1>&6
2086 fi
2087
2088 test -n "$FIND" && break
2089 done
2090 test -n "$FIND" || FIND="error"
2091
2092
2093
2094         if test $FIND = "error" 
2095         then
2096                 
2097     echo "configure: warning: can't find \`find\'. Please use --enable-tex-dir. " 1>&2
2098     warn_b=yes
2099
2100         fi
2101
2102
2103     
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124 for ac_prog in bison
2125 do
2126 # Extract the first word of "$ac_prog", so it can be a program name with args.
2127 set dummy $ac_prog; ac_word=$2
2128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_word" >&5
2130 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2131   echo $ac_n "(cached) $ac_c" 1>&6
2132 else
2133   if test -n "$BISON"; then
2134   ac_cv_prog_BISON="$BISON" # Let the user override the test.
2135 else
2136   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2137   for ac_dir in $PATH; do
2138     test -z "$ac_dir" && ac_dir=.
2139     if test -f $ac_dir/$ac_word; then
2140       ac_cv_prog_BISON="$ac_prog"
2141       break
2142     fi
2143   done
2144   IFS="$ac_save_ifs"
2145 fi
2146 fi
2147 BISON="$ac_cv_prog_BISON"
2148 if test -n "$BISON"; then
2149   echo "$ac_t""$BISON" 1>&6
2150 else
2151   echo "$ac_t""no" 1>&6
2152 fi
2153
2154 test -n "$BISON" && break
2155 done
2156 test -n "$BISON" || BISON="error"
2157
2158 for ac_prog in flex
2159 do
2160 # Extract the first word of "$ac_prog", so it can be a program name with args.
2161 set dummy $ac_prog; ac_word=$2
2162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2163 echo "configure:2164: checking for $ac_word" >&5
2164 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2165   echo $ac_n "(cached) $ac_c" 1>&6
2166 else
2167   if test -n "$FLEX"; then
2168   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2169 else
2170   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2171   for ac_dir in $PATH; do
2172     test -z "$ac_dir" && ac_dir=.
2173     if test -f $ac_dir/$ac_word; then
2174       ac_cv_prog_FLEX="$ac_prog"
2175       break
2176     fi
2177   done
2178   IFS="$ac_save_ifs"
2179 fi
2180 fi
2181 FLEX="$ac_cv_prog_FLEX"
2182 if test -n "$FLEX"; then
2183   echo "$ac_t""$FLEX" 1>&6
2184 else
2185   echo "$ac_t""no" 1>&6
2186 fi
2187
2188 test -n "$FLEX" && break
2189 done
2190 test -n "$FLEX" || FLEX="error"
2191
2192 for ac_prog in make
2193 do
2194 # Extract the first word of "$ac_prog", so it can be a program name with args.
2195 set dummy $ac_prog; ac_word=$2
2196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2197 echo "configure:2198: checking for $ac_word" >&5
2198 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
2199   echo $ac_n "(cached) $ac_c" 1>&6
2200 else
2201   if test -n "$MAKE"; then
2202   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2203 else
2204   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2205   for ac_dir in $PATH; do
2206     test -z "$ac_dir" && ac_dir=.
2207     if test -f $ac_dir/$ac_word; then
2208       ac_cv_prog_MAKE="$ac_prog"
2209       break
2210     fi
2211   done
2212   IFS="$ac_save_ifs"
2213 fi
2214 fi
2215 MAKE="$ac_cv_prog_MAKE"
2216 if test -n "$MAKE"; then
2217   echo "$ac_t""$MAKE" 1>&6
2218 else
2219   echo "$ac_t""no" 1>&6
2220 fi
2221
2222 test -n "$MAKE" && break
2223 done
2224 test -n "$MAKE" || MAKE="error"
2225
2226 # Extract the first word of "perl", so it can be a program name with args.
2227 set dummy perl; ac_word=$2
2228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2229 echo "configure:2230: checking for $ac_word" >&5
2230 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2231   echo $ac_n "(cached) $ac_c" 1>&6
2232 else
2233   case "$PERL" in
2234   /*)
2235   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2236   ;;
2237   *)
2238   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2239   for ac_dir in $PATH; do
2240     test -z "$ac_dir" && ac_dir=.
2241     if test -f $ac_dir/$ac_word; then
2242       ac_cv_path_PERL="$ac_dir/$ac_word"
2243       break
2244     fi
2245   done
2246   IFS="$ac_save_ifs"
2247   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
2248   ;;
2249 esac
2250 fi
2251 PERL="$ac_cv_path_PERL"
2252 if test -n "$PERL"; then
2253   echo "$ac_t""$PERL" 1>&6
2254 else
2255   echo "$ac_t""no" 1>&6
2256 fi
2257
2258 # Extract the first word of "python", so it can be a program name with args.
2259 set dummy python; ac_word=$2
2260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2261 echo "configure:2262: checking for $ac_word" >&5
2262 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
2263   echo $ac_n "(cached) $ac_c" 1>&6
2264 else
2265   case "$PYTHON" in
2266   /*)
2267   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2268   ;;
2269   *)
2270   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2271   for ac_dir in $PATH; do
2272     test -z "$ac_dir" && ac_dir=.
2273     if test -f $ac_dir/$ac_word; then
2274       ac_cv_path_PYTHON="$ac_dir/$ac_word"
2275       break
2276     fi
2277   done
2278   IFS="$ac_save_ifs"
2279   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="error"
2280   ;;
2281 esac
2282 fi
2283 PYTHON="$ac_cv_path_PYTHON"
2284 if test -n "$PYTHON"; then
2285   echo "$ac_t""$PYTHON" 1>&6
2286 else
2287   echo "$ac_t""no" 1>&6
2288 fi
2289
2290 for ac_prog in pod2html
2291 do
2292 # Extract the first word of "$ac_prog", so it can be a program name with args.
2293 set dummy $ac_prog; ac_word=$2
2294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2295 echo "configure:2296: checking for $ac_word" >&5
2296 if eval "test \"`echo '$''{'ac_cv_prog_POD2HTML'+set}'`\" = set"; then
2297   echo $ac_n "(cached) $ac_c" 1>&6
2298 else
2299   if test -n "$POD2HTML"; then
2300   ac_cv_prog_POD2HTML="$POD2HTML" # Let the user override the test.
2301 else
2302   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2303   for ac_dir in $PATH; do
2304     test -z "$ac_dir" && ac_dir=.
2305     if test -f $ac_dir/$ac_word; then
2306       ac_cv_prog_POD2HTML="$ac_prog"
2307       break
2308     fi
2309   done
2310   IFS="$ac_save_ifs"
2311 fi
2312 fi
2313 POD2HTML="$ac_cv_prog_POD2HTML"
2314 if test -n "$POD2HTML"; then
2315   echo "$ac_t""$POD2HTML" 1>&6
2316 else
2317   echo "$ac_t""no" 1>&6
2318 fi
2319
2320 test -n "$POD2HTML" && break
2321 done
2322 test -n "$POD2HTML" || POD2HTML="error"
2323
2324 for ac_prog in pod2man
2325 do
2326 # Extract the first word of "$ac_prog", so it can be a program name with args.
2327 set dummy $ac_prog; ac_word=$2
2328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2329 echo "configure:2330: checking for $ac_word" >&5
2330 if eval "test \"`echo '$''{'ac_cv_prog_POD2MAN'+set}'`\" = set"; then
2331   echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333   if test -n "$POD2MAN"; then
2334   ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test.
2335 else
2336   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2337   for ac_dir in $PATH; do
2338     test -z "$ac_dir" && ac_dir=.
2339     if test -f $ac_dir/$ac_word; then
2340       ac_cv_prog_POD2MAN="$ac_prog"
2341       break
2342     fi
2343   done
2344   IFS="$ac_save_ifs"
2345 fi
2346 fi
2347 POD2MAN="$ac_cv_prog_POD2MAN"
2348 if test -n "$POD2MAN"; then
2349   echo "$ac_t""$POD2MAN" 1>&6
2350 else
2351   echo "$ac_t""no" 1>&6
2352 fi
2353
2354 test -n "$POD2MAN" && break
2355 done
2356 test -n "$POD2MAN" || POD2MAN="error"
2357
2358
2359
2360 if test "x$TEXPREFIX" = xauto ; then
2361     
2362     
2363
2364     echo $ac_n "checking TeX/MF root dir directory""... $ac_c" 1>&6
2365 echo "configure:2366: checking TeX/MF root dir directory" >&5    
2366
2367     find_root_prefix="$prefix"
2368     
2369
2370     test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
2371     find_texpostfix="";
2372     for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
2373         find_texprefix="$find_root_prefix$postfix"
2374         if test -d $find_texprefix; then
2375             find_texpostfix=$postfix
2376             break;
2377         fi
2378     done
2379     
2380     if test "x$find_texpostfix" = x; then
2381         find_texpostfix='/lib/texmf/tex'
2382         
2383     echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
2384     warn_b=yes
2385
2386     fi
2387
2388     find_texprefix="$find_root_prefix/$find_texpostfix"
2389
2390     # only assign if variablename not empty
2391     if test x != "x$TEXPREFIX"; then
2392         TEXPREFIX='${prefix}'/"$find_texpostfix"
2393     fi
2394     echo "$ac_t""$find_texprefix" 1>&6
2395
2396
2397 else
2398  find_texprefix=$TEXPREFIX
2399 fi
2400
2401 # if test "x$MFDIR" = xauto; then
2402 #     AC_MF_SUBDIR(MFDIR)
2403 # fi
2404     
2405 if test "x$TEXDIR" = xauto ; then
2406     
2407     
2408     
2409     echo $ac_n "checking TeX input directory""... $ac_c" 1>&6
2410 echo "configure:2411: checking TeX input directory" >&5    
2411     find_dirdir=`(cd $find_texprefix; 
2412       $FIND ./ -type d -a -name tex -print |sort|head -1|sed 's#^\./##')`
2413     
2414
2415     if test "x$find_dirdir" = x; then
2416        find_dirdir="/tex";
2417        
2418     echo "configure: warning: Cannot determine TeX input subdirectory. Please set from command-line" 1>&2
2419     warn_b=yes
2420
2421         true
2422     fi
2423     TEXDIR=$find_dirdir
2424     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
2425
2426     TEXDIR="$TEXPREFIX/$TEXDIR"
2427
2428 fi
2429
2430
2431 # AC_JUNK_ARGS( [if test "x$MFDIR" = xauto; then
2432 #      AC_MF_SUBDIR(MFDIR)
2433 #  fi]
2434 # )
2435
2436
2437         if test $MAKE = "error" 
2438         then
2439                 
2440     echo "configure: warning: can't find GNU make. You should install GNU make" 1>&2
2441     warn_b=yes
2442
2443         fi
2444
2445
2446         if test $BISON = "error" 
2447         then
2448                 
2449     echo "configure: warning: can't find bison. Please install Bison" 1>&2
2450     warn_b=yes
2451
2452         fi
2453
2454
2455         if test $PERL = "error" 
2456         then
2457                 
2458     echo "configure: warning: can't find perl. You should install Perl" 1>&2
2459     warn_b=yes
2460
2461         fi
2462
2463
2464         if test $PYTHON = "error" 
2465         then
2466                 
2467     echo "configure: warning: can't find python. You should install Python" 1>&2
2468     warn_b=yes
2469
2470         fi
2471
2472
2473         if test $FLEX = "error" 
2474         then
2475                 
2476     echo "configure: warning: can't find flex. Please install Flex" 1>&2
2477     warn_b=yes
2478
2479         fi
2480
2481
2482         if test $POD2MAN = "error" 
2483         then
2484                 
2485     echo "configure: warning: can't find pod. You should install Perl" 1>&2
2486     warn_b=yes
2487
2488         fi
2489
2490
2491
2492 if test $MAKE != "error" ; then
2493     $MAKE -v| grep GNU > /dev/null
2494     if test "$?" = 1
2495     then
2496             
2497     echo "configure: warning: Please install *GNU* make" 1>&2
2498     warn_b=yes
2499  
2500     fi 
2501 fi 
2502     
2503 if test $BISON != "error"; then
2504     bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
2505     if test $bison_version -lt 25; then
2506         
2507     echo "configure: warning: Your bison is too old (1.$bison_version). Please install 1.25" 1>&2
2508     warn_b=yes
2509
2510     fi  
2511 fi
2512
2513
2514 # ugh autoconf
2515 if $CXX --version | grep '2\.[78]' > /dev/null
2516 then
2517         true
2518 else
2519         
2520     echo "configure: warning: can't find g++ 2.7 or 2.8" 1>&2
2521     warn_b=yes
2522
2523 fi
2524
2525 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2526 echo "configure:2527: checking how to run the C++ preprocessor" >&5
2527 if test -z "$CXXCPP"; then
2528 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2529   echo $ac_n "(cached) $ac_c" 1>&6
2530 else
2531   ac_ext=C
2532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2533 ac_cpp='$CXXCPP $CPPFLAGS'
2534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2535 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2536 cross_compiling=$ac_cv_prog_cxx_cross
2537   CXXCPP="${CXX-g++} -E"
2538   cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 #include <stdlib.h>
2542 EOF
2543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2544 { (eval echo configure:2545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2545 ac_err=`grep -v '^ *+' conftest.out`
2546 if test -z "$ac_err"; then
2547   :
2548 else
2549   echo "$ac_err" >&5
2550   echo "configure: failed program was:" >&5
2551   cat conftest.$ac_ext >&5
2552   rm -rf conftest*
2553   CXXCPP=/lib/cpp
2554 fi
2555 rm -f conftest*
2556   ac_cv_prog_CXXCPP="$CXXCPP"
2557 fi
2558 fi
2559 CXXCPP="$ac_cv_prog_CXXCPP"
2560 echo "$ac_t""$CXXCPP" 1>&6
2561
2562 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
2563 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
2564 echo "configure:2565: checking for FlexLexer.h" >&5
2565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2566   echo $ac_n "(cached) $ac_c" 1>&6
2567 else
2568   cat > conftest.$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2571 #include <FlexLexer.h>
2572 EOF
2573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2574 { (eval echo configure:2575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2575 ac_err=`grep -v '^ *+' conftest.out`
2576 if test -z "$ac_err"; then
2577   rm -rf conftest*
2578   eval "ac_cv_header_$ac_safe=yes"
2579 else
2580   echo "$ac_err" >&5
2581   echo "configure: failed program was:" >&5
2582   cat conftest.$ac_ext >&5
2583   rm -rf conftest*
2584   eval "ac_cv_header_$ac_safe=no"
2585 fi
2586 rm -f conftest*
2587 fi
2588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2589   echo "$ac_t""yes" 1>&6
2590   true
2591 else
2592   echo "$ac_t""no" 1>&6
2593
2594     echo "configure: warning: can't find flex header. Please install Flex headers correctly" 1>&2
2595     warn_b=yes
2596
2597 fi
2598
2599
2600 subdirs="flower"
2601
2602
2603 cat >> confdefs.h <<EOF
2604 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2605 EOF
2606
2607
2608 touch lib/stamp-h.in
2609
2610
2611
2612 echo \#define TOPLEVEL_VERSION \"$FULL_VERSION\" >> lib/config.hh
2613
2614 # first do Foobar/Makefile then Foobar/include/Makefile
2615 trap '' 1 2 15
2616 cat > confcache <<\EOF
2617 # This file is a shell script that caches the results of configure
2618 # tests run on this system so they can be shared between configure
2619 # scripts and configure runs.  It is not useful on other systems.
2620 # If it contains results you don't want to keep, you may remove or edit it.
2621 #
2622 # By default, configure uses ./config.cache as the cache file,
2623 # creating it if it does not exist already.  You can give configure
2624 # the --cache-file=FILE option to use a different cache file; that is
2625 # what configure does when it calls configure scripts in
2626 # subdirectories, so they share the cache.
2627 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2628 # config.status only pays attention to the cache file if you give it the
2629 # --recheck option to rerun configure.
2630 #
2631 EOF
2632 # The following way of writing the cache mishandles newlines in values,
2633 # but we know of no workaround that is simple, portable, and efficient.
2634 # So, don't put newlines in cache variables' values.
2635 # Ultrix sh set writes to stderr and can't be redirected directly,
2636 # and sets the high bit in the cache file unless we assign to the vars.
2637 (set) 2>&1 |
2638   case `(ac_space=' '; set) 2>&1` in
2639   *ac_space=\ *)
2640     # `set' does not quote correctly, so add quotes (double-quote substitution
2641     # turns \\\\ into \\, and sed turns \\ into \).
2642     sed -n \
2643       -e "s/'/'\\\\''/g" \
2644       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2645     ;;
2646   *)
2647     # `set' quotes correctly as required by POSIX, so do not add quotes.
2648     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2649     ;;
2650   esac >> confcache
2651 if cmp -s $cache_file confcache; then
2652   :
2653 else
2654   if test -w $cache_file; then
2655     echo "updating cache $cache_file"
2656     cat confcache > $cache_file
2657   else
2658     echo "not updating unwritable cache $cache_file"
2659   fi
2660 fi
2661 rm -f confcache
2662
2663 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2664
2665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2666 # Let make expand exec_prefix.
2667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2668
2669 # Any assignment to VPATH causes Sun make to only execute
2670 # the first set of double-colon rules, so remove it if not needed.
2671 # If there is a colon in the path, we need to keep it.
2672 if test "x$srcdir" = x.; then
2673   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2674 fi
2675
2676 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2677
2678 DEFS=-DHAVE_CONFIG_H
2679
2680 # Without the "./", some shells look in PATH for config.status.
2681 : ${CONFIG_STATUS=./config.status}
2682
2683 echo creating $CONFIG_STATUS
2684 rm -f $CONFIG_STATUS
2685 cat > $CONFIG_STATUS <<EOF
2686 #! /bin/sh
2687 # Generated automatically by configure.
2688 # Run this file to recreate the current configuration.
2689 # This directory was configured as follows,
2690 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2691 #
2692 # $0 $ac_configure_args
2693 #
2694 # Compiler output produced by configure, useful for debugging
2695 # configure, is in ./config.log if it exists.
2696
2697 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2698 for ac_option
2699 do
2700   case "\$ac_option" in
2701   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2702     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2703     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2704   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2705     echo "$CONFIG_STATUS generated by autoconf version 2.12"
2706     exit 0 ;;
2707   -help | --help | --hel | --he | --h)
2708     echo "\$ac_cs_usage"; exit 0 ;;
2709   *) echo "\$ac_cs_usage"; exit 1 ;;
2710   esac
2711 done
2712
2713 ac_given_srcdir=$srcdir
2714 ac_given_INSTALL="$INSTALL"
2715
2716 trap 'rm -fr `echo "bin/Makefile lib/Makefile lib/include/Makefile lily/Makefile
2717         lily/include/Makefile mf/Makefile mi2mu/Makefile
2718         mi2mu/include/Makefile debian/Makefile Documentation/Makefile
2719         init/Makefile input/Makefile tex/Makefile make/Makefile
2720         mutopia/Makefile mutopia/J.S.Bach/Makefile Makefile bin/add-URLs
2721         bin/clean-diaper bin/clean-embeds bin/clean-fonts bin/conflily
2722         bin/convert-mudela bin/cvm bin/find-typenames bin/foo bin/genheader
2723         bin/ly2dvi bin/make-docxx bin/make-examples bin/make-patch
2724         bin/make-version bin/make-website bin/mf-deps bin/mf-to-table
2725         bin/mudela-book bin/ps-to-gifs bin/release bin/show-latest lib/config.hh:lib/config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2726 EOF
2727 cat >> $CONFIG_STATUS <<EOF
2728
2729 # Protect against being on the right side of a sed subst in config.status.
2730 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2731  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2732 $ac_vpsub
2733 $extrasub
2734 s%@CFLAGS@%$CFLAGS%g
2735 s%@CPPFLAGS@%$CPPFLAGS%g
2736 s%@CXXFLAGS@%$CXXFLAGS%g
2737 s%@DEFS@%$DEFS%g
2738 s%@LDFLAGS@%$LDFLAGS%g
2739 s%@LIBS@%$LIBS%g
2740 s%@exec_prefix@%$exec_prefix%g
2741 s%@prefix@%$prefix%g
2742 s%@program_transform_name@%$program_transform_name%g
2743 s%@bindir@%$bindir%g
2744 s%@sbindir@%$sbindir%g
2745 s%@libexecdir@%$libexecdir%g
2746 s%@datadir@%$datadir%g
2747 s%@sysconfdir@%$sysconfdir%g
2748 s%@sharedstatedir@%$sharedstatedir%g
2749 s%@localstatedir@%$localstatedir%g
2750 s%@libdir@%$libdir%g
2751 s%@includedir@%$includedir%g
2752 s%@oldincludedir@%$oldincludedir%g
2753 s%@infodir@%$infodir%g
2754 s%@mandir@%$mandir%g
2755 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2756 s%@INSTALL_DATA@%$INSTALL_DATA%g
2757 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2758 s%@PACKAGE@%$PACKAGE%g
2759 s%@VERSION@%$VERSION%g
2760 s%@ACLOCAL@%$ACLOCAL%g
2761 s%@AUTOCONF@%$AUTOCONF%g
2762 s%@AUTOMAKE@%$AUTOMAKE%g
2763 s%@AUTOHEADER@%$AUTOHEADER%g
2764 s%@MAKEINFO@%$MAKEINFO%g
2765 s%@SET_MAKE@%$SET_MAKE%g
2766 s%@CC@%$CC%g
2767 s%@CXX@%$CXX%g
2768 s%@host@%$host%g
2769 s%@host_alias@%$host_alias%g
2770 s%@host_cpu@%$host_cpu%g
2771 s%@host_vendor@%$host_vendor%g
2772 s%@host_os@%$host_os%g
2773 s%@RANLIB@%$RANLIB%g
2774 s%@LD@%$LD%g
2775 s%@NM@%$NM%g
2776 s%@LN_S@%$LN_S%g
2777 s%@LIBTOOL@%$LIBTOOL%g
2778 s%@YACC@%$YACC%g
2779 s%@LEX@%$LEX%g
2780 s%@LEXLIB@%$LEXLIB%g
2781 s%@CPP@%$CPP%g
2782 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
2783 s%@TAR@%$TAR%g
2784 s%@FIND@%$FIND%g
2785 s%@ICFLAGS@%$ICFLAGS%g
2786 s%@ILDFLAGS@%$ILDFLAGS%g
2787 s%@DEFINES@%$DEFINES%g
2788 s%@COMPILEINFO@%$COMPILEINFO%g
2789 s%@BISON@%$BISON%g
2790 s%@FLEX@%$FLEX%g
2791 s%@LN@%$LN%g
2792 s%@PERL@%$PERL%g
2793 s%@PYTHON@%$PYTHON%g
2794 s%@ZIP@%$ZIP%g
2795 s%@TEXPREFIX@%$TEXPREFIX%g
2796 s%@TEXDIR@%$TEXDIR%g
2797 s%@MFDIR@%$MFDIR%g
2798 s%@DIR_DATADIR@%$DIR_DATADIR%g
2799 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
2800 s%@MAKE@%$MAKE%g
2801 s%@POD2HTML@%$POD2HTML%g
2802 s%@POD2MAN@%$POD2MAN%g
2803 s%@CXXCPP@%$CXXCPP%g
2804 s%@subdirs@%$subdirs%g
2805
2806 CEOF
2807 EOF
2808
2809 cat >> $CONFIG_STATUS <<\EOF
2810
2811 # Split the substitutions into bite-sized pieces for seds with
2812 # small command number limits, like on Digital OSF/1 and HP-UX.
2813 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2814 ac_file=1 # Number of current file.
2815 ac_beg=1 # First line for current file.
2816 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2817 ac_more_lines=:
2818 ac_sed_cmds=""
2819 while $ac_more_lines; do
2820   if test $ac_beg -gt 1; then
2821     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2822   else
2823     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2824   fi
2825   if test ! -s conftest.s$ac_file; then
2826     ac_more_lines=false
2827     rm -f conftest.s$ac_file
2828   else
2829     if test -z "$ac_sed_cmds"; then
2830       ac_sed_cmds="sed -f conftest.s$ac_file"
2831     else
2832       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2833     fi
2834     ac_file=`expr $ac_file + 1`
2835     ac_beg=$ac_end
2836     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2837   fi
2838 done
2839 if test -z "$ac_sed_cmds"; then
2840   ac_sed_cmds=cat
2841 fi
2842 EOF
2843
2844 cat >> $CONFIG_STATUS <<EOF
2845
2846 CONFIG_FILES=\${CONFIG_FILES-"bin/Makefile lib/Makefile lib/include/Makefile lily/Makefile
2847         lily/include/Makefile mf/Makefile mi2mu/Makefile
2848         mi2mu/include/Makefile debian/Makefile Documentation/Makefile
2849         init/Makefile input/Makefile tex/Makefile make/Makefile
2850         mutopia/Makefile mutopia/J.S.Bach/Makefile Makefile bin/add-URLs
2851         bin/clean-diaper bin/clean-embeds bin/clean-fonts bin/conflily
2852         bin/convert-mudela bin/cvm bin/find-typenames bin/foo bin/genheader
2853         bin/ly2dvi bin/make-docxx bin/make-examples bin/make-patch
2854         bin/make-version bin/make-website bin/mf-deps bin/mf-to-table
2855         bin/mudela-book bin/ps-to-gifs bin/release bin/show-latest"}
2856 EOF
2857 cat >> $CONFIG_STATUS <<\EOF
2858 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2859   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2860   case "$ac_file" in
2861   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2862        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2863   *) ac_file_in="${ac_file}.in" ;;
2864   esac
2865
2866   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2867
2868   # Remove last slash and all that follows it.  Not all systems have dirname.
2869   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2870   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2871     # The file is in a subdirectory.
2872     test ! -d "$ac_dir" && mkdir "$ac_dir"
2873     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2874     # A "../" for each directory in $ac_dir_suffix.
2875     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2876   else
2877     ac_dir_suffix= ac_dots=
2878   fi
2879
2880   case "$ac_given_srcdir" in
2881   .)  srcdir=.
2882       if test -z "$ac_dots"; then top_srcdir=.
2883       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2884   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2885   *) # Relative path.
2886     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2887     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2888   esac
2889
2890   case "$ac_given_INSTALL" in
2891   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2892   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2893   esac
2894
2895   echo creating "$ac_file"
2896   rm -f "$ac_file"
2897   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2898   case "$ac_file" in
2899   *Makefile*) ac_comsub="1i\\
2900 # $configure_input" ;;
2901   *) ac_comsub= ;;
2902   esac
2903
2904   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2905   sed -e "$ac_comsub
2906 s%@configure_input@%$configure_input%g
2907 s%@srcdir@%$srcdir%g
2908 s%@top_srcdir@%$top_srcdir%g
2909 s%@INSTALL@%$INSTALL%g
2910 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2911 fi; done
2912 rm -f conftest.s*
2913
2914 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2915 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2916 #
2917 # ac_d sets the value in "#define NAME VALUE" lines.
2918 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2919 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2920 ac_dC='\3'
2921 ac_dD='%g'
2922 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2923 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2924 ac_uB='\([      ]\)%\1#\2define\3'
2925 ac_uC=' '
2926 ac_uD='\4%g'
2927 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2928 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2929 ac_eB='$%\1#\2define\3'
2930 ac_eC=' '
2931 ac_eD='%g'
2932
2933 if test "${CONFIG_HEADERS+set}" != set; then
2934 EOF
2935 cat >> $CONFIG_STATUS <<EOF
2936   CONFIG_HEADERS="lib/config.hh:lib/config.hh.in"
2937 EOF
2938 cat >> $CONFIG_STATUS <<\EOF
2939 fi
2940 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2941   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2942   case "$ac_file" in
2943   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2944        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2945   *) ac_file_in="${ac_file}.in" ;;
2946   esac
2947
2948   echo creating $ac_file
2949
2950   rm -f conftest.frag conftest.in conftest.out
2951   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2952   cat $ac_file_inputs > conftest.in
2953
2954 EOF
2955
2956 # Transform confdefs.h into a sed script conftest.vals that substitutes
2957 # the proper values into config.h.in to produce config.h.  And first:
2958 # Protect against being on the right side of a sed subst in config.status.
2959 # Protect against being in an unquoted here document in config.status.
2960 rm -f conftest.vals
2961 cat > conftest.hdr <<\EOF
2962 s/[\\&%]/\\&/g
2963 s%[\\$`]%\\&%g
2964 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2965 s%ac_d%ac_u%gp
2966 s%ac_u%ac_e%gp
2967 EOF
2968 sed -n -f conftest.hdr confdefs.h > conftest.vals
2969 rm -f conftest.hdr
2970
2971 # This sed command replaces #undef with comments.  This is necessary, for
2972 # example, in the case of _POSIX_SOURCE, which is predefined and required
2973 # on some systems where configure will not decide to define it.
2974 cat >> conftest.vals <<\EOF
2975 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2976 EOF
2977
2978 # Break up conftest.vals because some shells have a limit on
2979 # the size of here documents, and old seds have small limits too.
2980
2981 rm -f conftest.tail
2982 while :
2983 do
2984   ac_lines=`grep -c . conftest.vals`
2985   # grep -c gives empty output for an empty file on some AIX systems.
2986   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2987   # Write a limited-size here document to conftest.frag.
2988   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2989   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2990   echo 'CEOF
2991   sed -f conftest.frag conftest.in > conftest.out
2992   rm -f conftest.in
2993   mv conftest.out conftest.in
2994 ' >> $CONFIG_STATUS
2995   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2996   rm -f conftest.vals
2997   mv conftest.tail conftest.vals
2998 done
2999 rm -f conftest.vals
3000
3001 cat >> $CONFIG_STATUS <<\EOF
3002   rm -f conftest.frag conftest.h
3003   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3004   cat conftest.in >> conftest.h
3005   rm -f conftest.in
3006   if cmp -s $ac_file conftest.h 2>/dev/null; then
3007     echo "$ac_file is unchanged"
3008     rm -f conftest.h
3009   else
3010     # Remove last slash and all that follows it.  Not all systems have dirname.
3011       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3012       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3013       # The file is in a subdirectory.
3014       test ! -d "$ac_dir" && mkdir "$ac_dir"
3015     fi
3016     rm -f $ac_file
3017     mv conftest.h $ac_file
3018   fi
3019 fi; done
3020
3021 EOF
3022 cat >> $CONFIG_STATUS <<EOF
3023
3024
3025 EOF
3026 cat >> $CONFIG_STATUS <<\EOF
3027 test -z "$CONFIG_HEADERS" || echo timestamp > lib/stamp-h
3028
3029 exit 0
3030 EOF
3031 chmod +x $CONFIG_STATUS
3032 rm -fr confdefs* $ac_clean_files
3033 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3034
3035 if test "$no_recursion" != yes; then
3036
3037   # Remove --cache-file and --srcdir arguments so they do not pile up.
3038   ac_sub_configure_args=
3039   ac_prev=
3040   for ac_arg in $ac_configure_args; do
3041     if test -n "$ac_prev"; then
3042       ac_prev=
3043       continue
3044     fi
3045     case "$ac_arg" in
3046     -cache-file | --cache-file | --cache-fil | --cache-fi \
3047     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3048       ac_prev=cache_file ;;
3049     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3050     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3051       ;;
3052     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3053       ac_prev=srcdir ;;
3054     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3055       ;;
3056     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3057     esac
3058   done
3059
3060   for ac_config_dir in flower; do
3061
3062     # Do not complain, so a configure script can configure whichever
3063     # parts of a large source tree are present.
3064     if test ! -d $srcdir/$ac_config_dir; then
3065       continue
3066     fi
3067
3068     echo configuring in $ac_config_dir
3069
3070     case "$srcdir" in
3071     .) ;;
3072     *)
3073       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3074       else
3075         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3076       fi
3077       ;;
3078     esac
3079
3080     ac_popdir=`pwd`
3081     cd $ac_config_dir
3082
3083       # A "../" for each directory in /$ac_config_dir.
3084       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3085
3086     case "$srcdir" in
3087     .) # No --srcdir option.  We are building in place.
3088       ac_sub_srcdir=$srcdir ;;
3089     /*) # Absolute path.
3090       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3091     *) # Relative path.
3092       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3093     esac
3094
3095     # Check for guested configure; otherwise get Cygnus style configure.
3096     if test -f $ac_sub_srcdir/configure; then
3097       ac_sub_configure=$ac_sub_srcdir/configure
3098     elif test -f $ac_sub_srcdir/configure.in; then
3099       ac_sub_configure=$ac_configure
3100     else
3101       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3102       ac_sub_configure=
3103     fi
3104
3105     # The recursion is here.
3106     if test -n "$ac_sub_configure"; then
3107
3108       # Make the cache file name correct relative to the subdirectory.
3109       case "$cache_file" in
3110       /*) ac_sub_cache_file=$cache_file ;;
3111       *) # Relative path.
3112         ac_sub_cache_file="$ac_dots$cache_file" ;;
3113       esac
3114   case "$ac_given_INSTALL" in
3115         [/$]*) INSTALL="$ac_given_INSTALL" ;;
3116         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3117         esac
3118
3119       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3120       # The eval makes quoting arguments work.
3121       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3122       then :
3123       else
3124         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3125       fi
3126     fi
3127
3128     cd $ac_popdir
3129   done
3130 fi
3131
3132
3133 # ugh
3134 chmod 755 bin/add-URLs bin/clean-diaper bin/clean-embeds bin/clean-fonts bin/conflily bin/convert-mudela bin/cvm bin/find-typenames bin/foo bin/genheader bin/ly2dvi bin/make-docxx bin/make-examples bin/make-patch bin/make-version bin/make-website bin/mf-deps bin/mf-to-table bin/mudela-book bin/ps-to-gifs bin/release bin/show-latest
3135