]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 0.1.52
[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-optimise         use maximal speed optimisations. Default: off"
30 ac_help="$ac_help
31   enable-profiling        compile with gprof support. Default: off"
32 ac_help="$ac_help
33   enable-debugging        set debug info. Default: on"
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 #AC_PROG_CC
808 #AC_PROG_CXX
809
810 # turn off shared libraries by default (may be enabled using --enable-shared)
811 # Check whether --enable-shared or --disable-shared was given.
812 if test "${enable_shared+set}" = set; then
813   enableval="$enable_shared"
814   p=${PACKAGE-default}
815 case "$enableval" in
816 yes) enable_shared=yes ;;
817 no) enable_shared=no ;;
818 *)
819   enable_shared=no
820   # Look at the argument we got.  We use all the common list separators.
821   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
822   for pkg in $enableval; do
823     if test "X$pkg" = "X$p"; then
824       enable_shared=yes
825     fi
826   done
827   IFS="$ac_save_ifs"
828   ;;
829 esac
830 else
831   enable_shared=no
832 fi
833
834 # Check whether --enable-static or --disable-static was given.
835 if test "${enable_static+set}" = set; then
836   enableval="$enable_static"
837   p=${PACKAGE-default}
838 case "$enableval" in
839 yes) enable_static=yes ;;
840 no) enable_static=no ;;
841 *)
842   enable_static=no
843   # Look at the argument we got.  We use all the common list separators.
844   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
845   for pkg in $enableval; do
846     if test "X$pkg" = "X$p"; then
847       enable_static=yes
848     fi
849   done
850   IFS="$ac_save_ifs"
851   ;;
852 esac
853 else
854   enable_static=yes
855 fi
856
857
858 # Make sure we can run config.sub.
859 if $ac_config_sub sun4 >/dev/null 2>&1; then :
860 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
861 fi
862
863 echo $ac_n "checking host system type""... $ac_c" 1>&6
864 echo "configure:865: checking host system type" >&5
865
866 host_alias=$host
867 case "$host_alias" in
868 NONE)
869   case $nonopt in
870   NONE)
871     if host_alias=`$ac_config_guess`; then :
872     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
873     fi ;;
874   *) host_alias=$nonopt ;;
875   esac ;;
876 esac
877
878 host=`$ac_config_sub $host_alias`
879 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
880 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
881 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
882 echo "$ac_t""$host" 1>&6
883
884 # Extract the first word of "ranlib", so it can be a program name with args.
885 set dummy ranlib; ac_word=$2
886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
887 echo "configure:888: checking for $ac_word" >&5
888 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
889   echo $ac_n "(cached) $ac_c" 1>&6
890 else
891   if test -n "$RANLIB"; then
892   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
893 else
894   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
895   for ac_dir in $PATH; do
896     test -z "$ac_dir" && ac_dir=.
897     if test -f $ac_dir/$ac_word; then
898       ac_cv_prog_RANLIB="ranlib"
899       break
900     fi
901   done
902   IFS="$ac_save_ifs"
903   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
904 fi
905 fi
906 RANLIB="$ac_cv_prog_RANLIB"
907 if test -n "$RANLIB"; then
908   echo "$ac_t""$RANLIB" 1>&6
909 else
910   echo "$ac_t""no" 1>&6
911 fi
912
913 # Extract the first word of "gcc", so it can be a program name with args.
914 set dummy gcc; ac_word=$2
915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
916 echo "configure:917: checking for $ac_word" >&5
917 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
918   echo $ac_n "(cached) $ac_c" 1>&6
919 else
920   if test -n "$CC"; then
921   ac_cv_prog_CC="$CC" # Let the user override the test.
922 else
923   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
924   for ac_dir in $PATH; do
925     test -z "$ac_dir" && ac_dir=.
926     if test -f $ac_dir/$ac_word; then
927       ac_cv_prog_CC="gcc"
928       break
929     fi
930   done
931   IFS="$ac_save_ifs"
932 fi
933 fi
934 CC="$ac_cv_prog_CC"
935 if test -n "$CC"; then
936   echo "$ac_t""$CC" 1>&6
937 else
938   echo "$ac_t""no" 1>&6
939 fi
940
941 if test -z "$CC"; then
942   # Extract the first word of "cc", so it can be a program name with args.
943 set dummy cc; ac_word=$2
944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
945 echo "configure:946: checking for $ac_word" >&5
946 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
947   echo $ac_n "(cached) $ac_c" 1>&6
948 else
949   if test -n "$CC"; then
950   ac_cv_prog_CC="$CC" # Let the user override the test.
951 else
952   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
953   ac_prog_rejected=no
954   for ac_dir in $PATH; do
955     test -z "$ac_dir" && ac_dir=.
956     if test -f $ac_dir/$ac_word; then
957       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
958         ac_prog_rejected=yes
959         continue
960       fi
961       ac_cv_prog_CC="cc"
962       break
963     fi
964   done
965   IFS="$ac_save_ifs"
966 if test $ac_prog_rejected = yes; then
967   # We found a bogon in the path, so make sure we never use it.
968   set dummy $ac_cv_prog_CC
969   shift
970   if test $# -gt 0; then
971     # We chose a different compiler from the bogus one.
972     # However, it has the same basename, so the bogon will be chosen
973     # first if we set CC to just the basename; use the full file name.
974     shift
975     set dummy "$ac_dir/$ac_word" "$@"
976     shift
977     ac_cv_prog_CC="$@"
978   fi
979 fi
980 fi
981 fi
982 CC="$ac_cv_prog_CC"
983 if test -n "$CC"; then
984   echo "$ac_t""$CC" 1>&6
985 else
986   echo "$ac_t""no" 1>&6
987 fi
988
989   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
990 fi
991
992 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
993 echo "configure:994: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
994
995 ac_ext=c
996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
997 ac_cpp='$CPP $CPPFLAGS'
998 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
999 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1000 cross_compiling=$ac_cv_prog_cc_cross
1001
1002 cat > conftest.$ac_ext <<EOF
1003 #line 1004 "configure"
1004 #include "confdefs.h"
1005 main(){return(0);}
1006 EOF
1007 if { (eval echo configure:1008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1008   ac_cv_prog_cc_works=yes
1009   # If we can't run a trivial program, we are probably using a cross compiler.
1010   if (./conftest; exit) 2>/dev/null; then
1011     ac_cv_prog_cc_cross=no
1012   else
1013     ac_cv_prog_cc_cross=yes
1014   fi
1015 else
1016   echo "configure: failed program was:" >&5
1017   cat conftest.$ac_ext >&5
1018   ac_cv_prog_cc_works=no
1019 fi
1020 rm -fr conftest*
1021
1022 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1023 if test $ac_cv_prog_cc_works = no; then
1024   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1025 fi
1026 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1027 echo "configure:1028: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1028 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1029 cross_compiling=$ac_cv_prog_cc_cross
1030
1031 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1032 echo "configure:1033: checking whether we are using GNU C" >&5
1033 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1034   echo $ac_n "(cached) $ac_c" 1>&6
1035 else
1036   cat > conftest.c <<EOF
1037 #ifdef __GNUC__
1038   yes;
1039 #endif
1040 EOF
1041 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1042   ac_cv_prog_gcc=yes
1043 else
1044   ac_cv_prog_gcc=no
1045 fi
1046 fi
1047
1048 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1049
1050 if test $ac_cv_prog_gcc = yes; then
1051   GCC=yes
1052   ac_test_CFLAGS="${CFLAGS+set}"
1053   ac_save_CFLAGS="$CFLAGS"
1054   CFLAGS=
1055   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1056 echo "configure:1057: checking whether ${CC-cc} accepts -g" >&5
1057 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1058   echo $ac_n "(cached) $ac_c" 1>&6
1059 else
1060   echo 'void f(){}' > conftest.c
1061 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1062   ac_cv_prog_cc_g=yes
1063 else
1064   ac_cv_prog_cc_g=no
1065 fi
1066 rm -f conftest*
1067
1068 fi
1069
1070 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1071   if test "$ac_test_CFLAGS" = set; then
1072     CFLAGS="$ac_save_CFLAGS"
1073   elif test $ac_cv_prog_cc_g = yes; then
1074     CFLAGS="-g -O2"
1075   else
1076     CFLAGS="-O2"
1077   fi
1078 else
1079   GCC=
1080   test "${CFLAGS+set}" = set || CFLAGS="-g"
1081 fi
1082
1083 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1084 if test "${with_gnu_ld+set}" = set; then
1085   withval="$with_gnu_ld"
1086   test "$withval" = no || with_gnu_ld=yes
1087 else
1088   with_gnu_ld=no
1089 fi
1090
1091
1092 ac_prog=ld
1093 if test "$ac_cv_prog_gcc" = yes; then
1094   # Check if gcc -print-prog-name=ld gives a path.
1095   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1096 echo "configure:1097: checking for ld used by GCC" >&5
1097   ac_prog=`($CC -print-prog-name=ld) 2>&5`
1098   case "$ac_prog" in
1099   # Accept absolute paths.
1100   /* | A-Za-z:\\*)
1101     test -z "$LD" && LD="$ac_prog"
1102     ;;
1103   "")
1104     # If it fails, then pretend we aren't using GCC.
1105     ac_prog=ld
1106     ;;
1107   *)
1108     # If it is relative, then search for the first ld in PATH.
1109     with_gnu_ld=unknown
1110     ;;
1111   esac
1112 elif test "$with_gnu_ld" = yes; then
1113   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1114 echo "configure:1115: checking for GNU ld" >&5
1115 else
1116   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1117 echo "configure:1118: checking for non-GNU ld" >&5
1118 fi
1119 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1120   echo $ac_n "(cached) $ac_c" 1>&6
1121 else
1122   if test -z "$LD"; then
1123   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1124   for ac_dir in $PATH; do
1125     test -z "$ac_dir" && ac_dir=.
1126     if test -f "$ac_dir/$ac_prog"; then
1127       ac_cv_path_LD="$ac_dir/$ac_prog"
1128       # Check to see if the program is GNU ld.  I'd rather use --version,
1129       # but apparently some GNU ld's only accept -v.
1130       # Break only if it was the GNU/non-GNU ld that we prefer.
1131       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1132         test "$with_gnu_ld" != no && break
1133       else
1134         test "$with_gnu_ld" != yes && break
1135       fi
1136     fi
1137   done
1138   IFS="$ac_save_ifs"
1139 else
1140   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1141 fi
1142 fi
1143
1144 LD="$ac_cv_path_LD"
1145 if test -n "$LD"; then
1146   echo "$ac_t""$LD" 1>&6
1147 else
1148   echo "$ac_t""no" 1>&6
1149 fi
1150 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1151
1152 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1153 echo "configure:1154: checking if the linker ($LD) is GNU ld" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1155   echo $ac_n "(cached) $ac_c" 1>&6
1156 else
1157   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1158 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1159   ac_cv_prog_gnu_ld=yes
1160 else
1161   ac_cv_prog_gnu_ld=no
1162 fi
1163 fi
1164
1165 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1166
1167
1168 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1169 echo "configure:1170: checking for BSD-compatible nm" >&5
1170 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1171   echo $ac_n "(cached) $ac_c" 1>&6
1172 else
1173   case "$NM" in
1174 /* | A-Za-z:\\*)
1175   ac_cv_path_NM="$NM" # Let the user override the test with a path.
1176   ;;
1177 *)
1178   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1179   for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1180     test -z "$ac_dir" && ac_dir=.
1181     if test -f $ac_dir/nm; then
1182       # Check to see if the nm accepts a BSD-compat flag.
1183       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1184       #   nm: unknown option "B" ignored
1185       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1186         ac_cv_path_NM="$ac_dir/nm -B"
1187       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1188         ac_cv_path_NM="$ac_dir/nm -p"
1189       else
1190         ac_cv_path_NM="$ac_dir/nm"
1191       fi
1192       break
1193     fi
1194   done
1195   IFS="$ac_save_ifs"
1196   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1197   ;;
1198 esac
1199 fi
1200
1201 NM="$ac_cv_path_NM"
1202 echo "$ac_t""$NM" 1>&6
1203
1204
1205 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1206 echo "configure:1207: checking whether ln -s works" >&5
1207 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1208   echo $ac_n "(cached) $ac_c" 1>&6
1209 else
1210   rm -f conftestdata
1211 if ln -s X conftestdata 2>/dev/null
1212 then
1213   rm -f conftestdata
1214   ac_cv_prog_LN_S="ln -s"
1215 else
1216   ac_cv_prog_LN_S=ln
1217 fi
1218 fi
1219 LN_S="$ac_cv_prog_LN_S"
1220 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1221   echo "$ac_t""yes" 1>&6
1222 else
1223   echo "$ac_t""no" 1>&6
1224 fi
1225
1226 # Always use our own libtool.
1227 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1228
1229 # Check for any special flags to pass to ltconfig.
1230 libtool_flags=
1231 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1232 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1233 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1234 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1235 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1236
1237 # Some flags need to be propagated to the compiler or linker for good
1238 # libtool support.
1239 case "$host" in
1240 *-*-irix6*)
1241   # Find out which ABI we are using.
1242   echo '#line 1243 "configure"' > conftest.$ac_ext
1243   if { (eval echo configure:1244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1244     case "`/usr/bin/file conftest.o`" in
1245     *32-bit*)
1246       LD="${LD-ld} -32"
1247       ;;
1248     *N32*)
1249       LD="${LD-ld} -n32"
1250       ;;
1251     *64-bit*)
1252       LD="${LD-ld} -64"
1253       ;;
1254     esac
1255   fi
1256   rm -rf conftest*
1257   ;;
1258
1259 *-*-sco3.2v5*)
1260   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1261   CFLAGS="$CFLAGS -belf"
1262   ;;
1263 esac
1264
1265 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
1266 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1267 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1268 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1269 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1270 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1271
1272
1273 # ugh, automake: we want (and check for) bison
1274 for ac_prog in 'bison -y' byacc
1275 do
1276 # Extract the first word of "$ac_prog", so it can be a program name with args.
1277 set dummy $ac_prog; ac_word=$2
1278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1279 echo "configure:1280: checking for $ac_word" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1281   echo $ac_n "(cached) $ac_c" 1>&6
1282 else
1283   if test -n "$YACC"; then
1284   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1285 else
1286   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1287   for ac_dir in $PATH; do
1288     test -z "$ac_dir" && ac_dir=.
1289     if test -f $ac_dir/$ac_word; then
1290       ac_cv_prog_YACC="$ac_prog"
1291       break
1292     fi
1293   done
1294   IFS="$ac_save_ifs"
1295 fi
1296 fi
1297 YACC="$ac_cv_prog_YACC"
1298 if test -n "$YACC"; then
1299   echo "$ac_t""$YACC" 1>&6
1300 else
1301   echo "$ac_t""no" 1>&6
1302 fi
1303
1304 test -n "$YACC" && break
1305 done
1306 test -n "$YACC" || YACC="yacc"
1307
1308
1309 # ugh, automake: we want (and check for) flex
1310 # Extract the first word of "flex", so it can be a program name with args.
1311 set dummy flex; ac_word=$2
1312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1313 echo "configure:1314: checking for $ac_word" >&5
1314 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1315   echo $ac_n "(cached) $ac_c" 1>&6
1316 else
1317   if test -n "$LEX"; then
1318   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1319 else
1320   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1321   for ac_dir in $PATH; do
1322     test -z "$ac_dir" && ac_dir=.
1323     if test -f $ac_dir/$ac_word; then
1324       ac_cv_prog_LEX="flex"
1325       break
1326     fi
1327   done
1328   IFS="$ac_save_ifs"
1329   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1330 fi
1331 fi
1332 LEX="$ac_cv_prog_LEX"
1333 if test -n "$LEX"; then
1334   echo "$ac_t""$LEX" 1>&6
1335 else
1336   echo "$ac_t""no" 1>&6
1337 fi
1338
1339 if test -z "$LEXLIB"
1340 then
1341   case "$LEX" in
1342   flex*) ac_lib=fl ;;
1343   *) ac_lib=l ;;
1344   esac
1345   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1346 echo "configure:1347: checking for yywrap in -l$ac_lib" >&5
1347 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1349   echo $ac_n "(cached) $ac_c" 1>&6
1350 else
1351   ac_save_LIBS="$LIBS"
1352 LIBS="-l$ac_lib  $LIBS"
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1356 /* Override any gcc2 internal prototype to avoid an error.  */
1357 /* We use char because int might match the return type of a gcc2
1358     builtin and then its argument prototype would still apply.  */
1359 char yywrap();
1360
1361 int main() {
1362 yywrap()
1363 ; return 0; }
1364 EOF
1365 if { (eval echo configure:1366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1366   rm -rf conftest*
1367   eval "ac_cv_lib_$ac_lib_var=yes"
1368 else
1369   echo "configure: failed program was:" >&5
1370   cat conftest.$ac_ext >&5
1371   rm -rf conftest*
1372   eval "ac_cv_lib_$ac_lib_var=no"
1373 fi
1374 rm -f conftest*
1375 LIBS="$ac_save_LIBS"
1376
1377 fi
1378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1379   echo "$ac_t""yes" 1>&6
1380   LEXLIB="-l$ac_lib"
1381 else
1382   echo "$ac_t""no" 1>&6
1383 fi
1384
1385 fi
1386
1387
1388 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1389 echo "configure:1390: checking how to run the C preprocessor" >&5
1390 # On Suns, sometimes $CPP names a directory.
1391 if test -n "$CPP" && test -d "$CPP"; then
1392   CPP=
1393 fi
1394 if test -z "$CPP"; then
1395 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1396   echo $ac_n "(cached) $ac_c" 1>&6
1397 else
1398     # This must be in double quotes, not single quotes, because CPP may get
1399   # substituted into the Makefile and "${CC-cc}" will confuse make.
1400   CPP="${CC-cc} -E"
1401   # On the NeXT, cc -E runs the code through the compiler's parser,
1402   # not just through cpp.
1403   cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1406 #include <assert.h>
1407 Syntax Error
1408 EOF
1409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1410 { (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1411 ac_err=`grep -v '^ *+' conftest.out`
1412 if test -z "$ac_err"; then
1413   :
1414 else
1415   echo "$ac_err" >&5
1416   echo "configure: failed program was:" >&5
1417   cat conftest.$ac_ext >&5
1418   rm -rf conftest*
1419   CPP="${CC-cc} -E -traditional-cpp"
1420   cat > conftest.$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1423 #include <assert.h>
1424 Syntax Error
1425 EOF
1426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1427 { (eval echo configure:1428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1428 ac_err=`grep -v '^ *+' conftest.out`
1429 if test -z "$ac_err"; then
1430   :
1431 else
1432   echo "$ac_err" >&5
1433   echo "configure: failed program was:" >&5
1434   cat conftest.$ac_ext >&5
1435   rm -rf conftest*
1436   CPP=/lib/cpp
1437 fi
1438 rm -f conftest*
1439 fi
1440 rm -f conftest*
1441   ac_cv_prog_CPP="$CPP"
1442 fi
1443   CPP="$ac_cv_prog_CPP"
1444 else
1445   ac_cv_prog_CPP="$CPP"
1446 fi
1447 echo "$ac_t""$CPP" 1>&6
1448
1449 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1450 echo "configure:1451: checking lex output file root" >&5
1451 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1452   echo $ac_n "(cached) $ac_c" 1>&6
1453 else
1454   # The minimal lex program is just a single line: %%.  But some broken lexes
1455 # (Solaris, I think it was) want two %% lines, so accommodate them.
1456 echo '%%
1457 %%' | $LEX
1458 if test -f lex.yy.c; then
1459   ac_cv_prog_lex_root=lex.yy
1460 elif test -f lexyy.c; then
1461   ac_cv_prog_lex_root=lexyy
1462 else
1463   { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1464 fi
1465 fi
1466
1467 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1468 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1469
1470 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1471 echo "configure:1472: checking whether yytext is a pointer" >&5
1472 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1473   echo $ac_n "(cached) $ac_c" 1>&6
1474 else
1475   # POSIX says lex can declare yytext either as a pointer or an array; the
1476 # default is implementation-dependent. Figure out which it is, since
1477 # not all implementations provide the %pointer and %array declarations.
1478 ac_cv_prog_lex_yytext_pointer=no
1479 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1480 ac_save_LIBS="$LIBS"
1481 LIBS="$LIBS $LEXLIB"
1482 cat > conftest.$ac_ext <<EOF
1483 #line 1484 "configure"
1484 #include "confdefs.h"
1485 `cat $LEX_OUTPUT_ROOT.c`
1486 int main() {
1487
1488 ; return 0; }
1489 EOF
1490 if { (eval echo configure:1491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1491   rm -rf conftest*
1492   ac_cv_prog_lex_yytext_pointer=yes
1493 else
1494   echo "configure: failed program was:" >&5
1495   cat conftest.$ac_ext >&5
1496 fi
1497 rm -f conftest*
1498 LIBS="$ac_save_LIBS"
1499 rm -f "${LEX_OUTPUT_ROOT}.c"
1500
1501 fi
1502
1503 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1504 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1505   cat >> confdefs.h <<\EOF
1506 #define YYTEXT_POINTER 1
1507 EOF
1508
1509 fi
1510
1511 # ugh, ugh
1512 ac_cv_prog_lex_root=lex.yy
1513
1514 printing_b=no
1515 checking_b=yes
1516 optimise_b=no
1517 profile_b=no
1518
1519 debug_b=yes
1520
1521 ac_ext=C
1522 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1523 ac_cpp='$CXXCPP $CPPFLAGS'
1524 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1525 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1526 cross_compiling=$ac_cv_prog_cxx_cross
1527
1528
1529 # Check whether --enable-printing or --disable-printing was given.
1530 if test "${enable_printing+set}" = set; then
1531   enableval="$enable_printing"
1532   printing_b=$enableval
1533 fi
1534
1535
1536 # Check whether --enable-checking or --disable-checking was given.
1537 if test "${enable_checking+set}" = set; then
1538   enableval="$enable_checking"
1539   checking_b=$enableval 
1540 fi
1541
1542
1543 # Check whether --enable-optimise or --disable-optimise was given.
1544 if test "${enable_optimise+set}" = set; then
1545   enableval="$enable_optimise"
1546   optimise_b=$enableval
1547 fi
1548
1549     
1550 # Check whether --enable-profiling or --disable-profiling was given.
1551 if test "${enable_profiling+set}" = set; then
1552   enableval="$enable_profiling"
1553   profile_b=$enableval
1554 fi
1555
1556     
1557 # Check whether --enable-debugging or --disable-debugging was given.
1558 if test "${enable_debugging+set}" = set; then
1559   enableval="$enable_debugging"
1560   debug_b=$enableval
1561 fi
1562
1563
1564 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1565 if test "${enable_mingw_prefix+set}" = set; then
1566   enableval="$enable_mingw_prefix"
1567   MINGWPREFIX=$enableval
1568 else
1569   MINGWPREFIX=no
1570 fi
1571
1572     
1573 # Check whether --enable-tex-prefix or --disable-tex-prefix was given.
1574 if test "${enable_tex_prefix+set}" = set; then
1575   enableval="$enable_tex_prefix"
1576   TEXPREFIX=$enableval
1577 else
1578   TEXPREFIX=auto 
1579 fi
1580
1581     
1582 # Check whether --enable-tex-dir or --disable-tex-dir was given.
1583 if test "${enable_tex_dir+set}" = set; then
1584   enableval="$enable_tex_dir"
1585   TEXDIR=$enableval
1586 else
1587   TEXDIR=auto 
1588 fi
1589
1590
1591 # Check whether --enable-mf-dir or --disable-mf-dir was given.
1592 if test "${enable_mf_dir+set}" = set; then
1593   enableval="$enable_mf_dir"
1594   MFDIR=$enableval
1595 else
1596   MFDIR=auto
1597 fi
1598
1599
1600 if test "$printing_b" = no; then
1601     cat >> confdefs.h <<\EOF
1602 #define NPRINT 1
1603 EOF
1604
1605 fi
1606     
1607 if test "$checking_b" = no; then
1608     cat >> confdefs.h <<\EOF
1609 #define NDEBUG 1
1610 EOF
1611
1612 fi
1613
1614 if test "$optimise_b" = yes; then
1615 #    DEFINES="$DEFINES -finline-functions -O2 -DSTRING_UTILS_INLINED"
1616     cat >> confdefs.h <<\EOF
1617 #define STRINGS_UTILS_INLINED 1
1618 EOF
1619
1620 fi
1621
1622 # oeps, broken for now
1623 if test $profile_b = yes; then
1624     EXTRA_LIBES="-pg"
1625     DEFINES="$DEFINES -pg"
1626 fi
1627
1628 if test $debug_b = yes; then    
1629     DEFINES="$DEFINES -g"
1630 fi
1631
1632 # however, C++ support in mingw32 v 0.1.4 is still flaky
1633 if test x$MINGWPREFIX != xno; then 
1634     ICFLAGS="-I$MINGWPREFIX/include"
1635     ILDFLAGS="-$MINGWPREFIX/lib"
1636 fi
1637
1638 if test "x$OSTYPE" = "xWindows_NT"; then
1639     LN=cp # hard link does not work under cygnus-nt (yet?)
1640     ZIP="zip -r -9" #
1641 else
1642     LN=ln
1643     ZIP="zip -r -9"
1644 fi
1645
1646 AUTOGENERATE="This file was automatically generated by configure"
1647 CPPFLAGS=${CPPFLAGS:-""}        # we don't want -g -O junk
1648 CXXFLAGS=${CXXFLAGS:-""}        # we don't want -g -O junk
1649
1650 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1651 do
1652 # Extract the first word of "$ac_prog", so it can be a program name with args.
1653 set dummy $ac_prog; ac_word=$2
1654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1655 echo "configure:1656: checking for $ac_word" >&5
1656 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1657   echo $ac_n "(cached) $ac_c" 1>&6
1658 else
1659   if test -n "$CXX"; then
1660   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1661 else
1662   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1663   for ac_dir in $PATH; do
1664     test -z "$ac_dir" && ac_dir=.
1665     if test -f $ac_dir/$ac_word; then
1666       ac_cv_prog_CXX="$ac_prog"
1667       break
1668     fi
1669   done
1670   IFS="$ac_save_ifs"
1671 fi
1672 fi
1673 CXX="$ac_cv_prog_CXX"
1674 if test -n "$CXX"; then
1675   echo "$ac_t""$CXX" 1>&6
1676 else
1677   echo "$ac_t""no" 1>&6
1678 fi
1679
1680 test -n "$CXX" && break
1681 done
1682 test -n "$CXX" || CXX="gcc"
1683
1684
1685 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1686 echo "configure:1687: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1687
1688 ac_ext=C
1689 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1690 ac_cpp='$CXXCPP $CPPFLAGS'
1691 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1692 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1693 cross_compiling=$ac_cv_prog_cxx_cross
1694
1695 cat > conftest.$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1698 main(){return(0);}
1699 EOF
1700 if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1701   ac_cv_prog_cxx_works=yes
1702   # If we can't run a trivial program, we are probably using a cross compiler.
1703   if (./conftest; exit) 2>/dev/null; then
1704     ac_cv_prog_cxx_cross=no
1705   else
1706     ac_cv_prog_cxx_cross=yes
1707   fi
1708 else
1709   echo "configure: failed program was:" >&5
1710   cat conftest.$ac_ext >&5
1711   ac_cv_prog_cxx_works=no
1712 fi
1713 rm -fr conftest*
1714
1715 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1716 if test $ac_cv_prog_cxx_works = no; then
1717   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1718 fi
1719 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1720 echo "configure:1721: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1721 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1722 cross_compiling=$ac_cv_prog_cxx_cross
1723
1724 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1725 echo "configure:1726: checking whether we are using GNU C++" >&5
1726 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1727   echo $ac_n "(cached) $ac_c" 1>&6
1728 else
1729   cat > conftest.C <<EOF
1730 #ifdef __GNUC__
1731   yes;
1732 #endif
1733 EOF
1734 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1735   ac_cv_prog_gxx=yes
1736 else
1737   ac_cv_prog_gxx=no
1738 fi
1739 fi
1740
1741 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1742
1743 if test $ac_cv_prog_gxx = yes; then
1744   GXX=yes
1745   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1746   ac_save_CXXFLAGS="$CXXFLAGS"
1747   CXXFLAGS=
1748   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1749 echo "configure:1750: checking whether ${CXX-g++} accepts -g" >&5
1750 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1751   echo $ac_n "(cached) $ac_c" 1>&6
1752 else
1753   echo 'void f(){}' > conftest.cc
1754 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1755   ac_cv_prog_cxx_g=yes
1756 else
1757   ac_cv_prog_cxx_g=no
1758 fi
1759 rm -f conftest*
1760
1761 fi
1762
1763 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1764   if test "$ac_test_CXXFLAGS" = set; then
1765     CXXFLAGS="$ac_save_CXXFLAGS"
1766   elif test $ac_cv_prog_cxx_g = yes; then
1767     CXXFLAGS="-g -O2"
1768   else
1769     CXXFLAGS="-O2"
1770   fi
1771 else
1772   GXX=
1773   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1774 fi
1775
1776 # AC_PROG_RANLIB
1777 # Find a good install program.  We prefer a C program (faster),
1778 # so one script is as good as another.  But avoid the broken or
1779 # incompatible versions:
1780 # SysV /etc/install, /usr/sbin/install
1781 # SunOS /usr/etc/install
1782 # IRIX /sbin/install
1783 # AIX /bin/install
1784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1786 # ./install, which can be erroneously created by make from ./install.sh.
1787 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1788 echo "configure:1789: checking for a BSD compatible install" >&5
1789 if test -z "$INSTALL"; then
1790 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1791   echo $ac_n "(cached) $ac_c" 1>&6
1792 else
1793     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1794   for ac_dir in $PATH; do
1795     # Account for people who put trailing slashes in PATH elements.
1796     case "$ac_dir/" in
1797     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1798     *)
1799       # OSF1 and SCO ODT 3.0 have their own names for install.
1800       for ac_prog in ginstall installbsd scoinst install; do
1801         if test -f $ac_dir/$ac_prog; then
1802           if test $ac_prog = install &&
1803             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1804             # AIX install.  It has an incompatible calling convention.
1805             # OSF/1 installbsd also uses dspmsg, but is usable.
1806             :
1807           else
1808             ac_cv_path_install="$ac_dir/$ac_prog -c"
1809             break 2
1810           fi
1811         fi
1812       done
1813       ;;
1814     esac
1815   done
1816   IFS="$ac_save_IFS"
1817
1818 fi
1819   if test "${ac_cv_path_install+set}" = set; then
1820     INSTALL="$ac_cv_path_install"
1821   else
1822     # As a last resort, use the slow shell script.  We don't cache a
1823     # path for INSTALL within a source directory, because that will
1824     # break other packages using the cache if that directory is
1825     # removed, or if the path is relative.
1826     INSTALL="$ac_install_sh"
1827   fi
1828 fi
1829 echo "$ac_t""$INSTALL" 1>&6
1830
1831 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1832 # It thinks the first close brace ends the variable substitution.
1833 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1834
1835 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1836
1837 for ac_prog in tar
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_TAR'+set}'`\" = set"; then
1844   echo $ac_n "(cached) $ac_c" 1>&6
1845 else
1846   if test -n "$TAR"; then
1847   ac_cv_prog_TAR="$TAR" # 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_TAR="$ac_prog"
1854       break
1855     fi
1856   done
1857   IFS="$ac_save_ifs"
1858 fi
1859 fi
1860 TAR="$ac_cv_prog_TAR"
1861 if test -n "$TAR"; then
1862   echo "$ac_t""$TAR" 1>&6
1863 else
1864   echo "$ac_t""no" 1>&6
1865 fi
1866
1867 test -n "$TAR" && break
1868 done
1869 test -n "$TAR" || TAR="error"
1870
1871 for ac_prog in find
1872 do
1873 # Extract the first word of "$ac_prog", so it can be a program name with args.
1874 set dummy $ac_prog; ac_word=$2
1875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1876 echo "configure:1877: checking for $ac_word" >&5
1877 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
1878   echo $ac_n "(cached) $ac_c" 1>&6
1879 else
1880   if test -n "$FIND"; then
1881   ac_cv_prog_FIND="$FIND" # Let the user override the test.
1882 else
1883   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1884   for ac_dir in $PATH; do
1885     test -z "$ac_dir" && ac_dir=.
1886     if test -f $ac_dir/$ac_word; then
1887       ac_cv_prog_FIND="$ac_prog"
1888       break
1889     fi
1890   done
1891   IFS="$ac_save_ifs"
1892 fi
1893 fi
1894 FIND="$ac_cv_prog_FIND"
1895 if test -n "$FIND"; then
1896   echo "$ac_t""$FIND" 1>&6
1897 else
1898   echo "$ac_t""no" 1>&6
1899 fi
1900
1901 test -n "$FIND" && break
1902 done
1903 test -n "$FIND" || FIND="error"
1904
1905
1906
1907         if test $FIND = "error" 
1908         then
1909                 
1910     echo "configure: warning: can't find \`find\'. Please use --enable-tex-dir. " 1>&2
1911     warn_b=yes
1912
1913         fi
1914
1915
1916
1917 cat >> confdefs.h <<EOF
1918 #define TOPLEVEL_VERSION "${FULL_VERSION}"
1919 EOF
1920
1921 # ugh: produces "${prefix}/share/lilypond"
1922 # DIR_DATADIR=$datadir/lilypond
1923 # ugh: produces "NONE/share/lilypond"
1924 # DIR_DATADIR=$prefix/share/lilypond
1925
1926 DIR_DATADIR=$prefix/share/lilypond
1927 if test x$prefix = xNONE; then
1928         DIR_DATADIR=/usr/local/share/lilypond
1929 fi
1930 cat >> confdefs.h <<EOF
1931 #define DIR_DATADIR "${DIR_DATADIR}"
1932 EOF
1933
1934
1935 absolute_builddir="`pwd`"
1936     
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958 for ac_prog in bison
1959 do
1960 # Extract the first word of "$ac_prog", so it can be a program name with args.
1961 set dummy $ac_prog; ac_word=$2
1962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1963 echo "configure:1964: checking for $ac_word" >&5
1964 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1965   echo $ac_n "(cached) $ac_c" 1>&6
1966 else
1967   if test -n "$BISON"; then
1968   ac_cv_prog_BISON="$BISON" # Let the user override the test.
1969 else
1970   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1971   for ac_dir in $PATH; do
1972     test -z "$ac_dir" && ac_dir=.
1973     if test -f $ac_dir/$ac_word; then
1974       ac_cv_prog_BISON="$ac_prog"
1975       break
1976     fi
1977   done
1978   IFS="$ac_save_ifs"
1979 fi
1980 fi
1981 BISON="$ac_cv_prog_BISON"
1982 if test -n "$BISON"; then
1983   echo "$ac_t""$BISON" 1>&6
1984 else
1985   echo "$ac_t""no" 1>&6
1986 fi
1987
1988 test -n "$BISON" && break
1989 done
1990 test -n "$BISON" || BISON="error"
1991
1992 for ac_prog in flex
1993 do
1994 # Extract the first word of "$ac_prog", so it can be a program name with args.
1995 set dummy $ac_prog; ac_word=$2
1996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1997 echo "configure:1998: checking for $ac_word" >&5
1998 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1999   echo $ac_n "(cached) $ac_c" 1>&6
2000 else
2001   if test -n "$FLEX"; then
2002   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2003 else
2004   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2005   for ac_dir in $PATH; do
2006     test -z "$ac_dir" && ac_dir=.
2007     if test -f $ac_dir/$ac_word; then
2008       ac_cv_prog_FLEX="$ac_prog"
2009       break
2010     fi
2011   done
2012   IFS="$ac_save_ifs"
2013 fi
2014 fi
2015 FLEX="$ac_cv_prog_FLEX"
2016 if test -n "$FLEX"; then
2017   echo "$ac_t""$FLEX" 1>&6
2018 else
2019   echo "$ac_t""no" 1>&6
2020 fi
2021
2022 test -n "$FLEX" && break
2023 done
2024 test -n "$FLEX" || FLEX="error"
2025
2026 for ac_prog in make
2027 do
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2031 echo "configure:2032: checking for $ac_word" >&5
2032 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
2033   echo $ac_n "(cached) $ac_c" 1>&6
2034 else
2035   if test -n "$MAKE"; then
2036   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2037 else
2038   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2039   for ac_dir in $PATH; do
2040     test -z "$ac_dir" && ac_dir=.
2041     if test -f $ac_dir/$ac_word; then
2042       ac_cv_prog_MAKE="$ac_prog"
2043       break
2044     fi
2045   done
2046   IFS="$ac_save_ifs"
2047 fi
2048 fi
2049 MAKE="$ac_cv_prog_MAKE"
2050 if test -n "$MAKE"; then
2051   echo "$ac_t""$MAKE" 1>&6
2052 else
2053   echo "$ac_t""no" 1>&6
2054 fi
2055
2056 test -n "$MAKE" && break
2057 done
2058 test -n "$MAKE" || MAKE="error"
2059
2060 # Extract the first word of "perl", so it can be a program name with args.
2061 set dummy perl; 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_path_PERL'+set}'`\" = set"; then
2065   echo $ac_n "(cached) $ac_c" 1>&6
2066 else
2067   case "$PERL" in
2068   /*)
2069   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2070   ;;
2071   *)
2072   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2073   for ac_dir in $PATH; do
2074     test -z "$ac_dir" && ac_dir=.
2075     if test -f $ac_dir/$ac_word; then
2076       ac_cv_path_PERL="$ac_dir/$ac_word"
2077       break
2078     fi
2079   done
2080   IFS="$ac_save_ifs"
2081   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
2082   ;;
2083 esac
2084 fi
2085 PERL="$ac_cv_path_PERL"
2086 if test -n "$PERL"; then
2087   echo "$ac_t""$PERL" 1>&6
2088 else
2089   echo "$ac_t""no" 1>&6
2090 fi
2091
2092 # Extract the first word of "python", so it can be a program name with args.
2093 set dummy python; ac_word=$2
2094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2095 echo "configure:2096: checking for $ac_word" >&5
2096 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
2097   echo $ac_n "(cached) $ac_c" 1>&6
2098 else
2099   case "$PYTHON" in
2100   /*)
2101   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2102   ;;
2103   *)
2104   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2105   for ac_dir in $PATH; do
2106     test -z "$ac_dir" && ac_dir=.
2107     if test -f $ac_dir/$ac_word; then
2108       ac_cv_path_PYTHON="$ac_dir/$ac_word"
2109       break
2110     fi
2111   done
2112   IFS="$ac_save_ifs"
2113   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="error"
2114   ;;
2115 esac
2116 fi
2117 PYTHON="$ac_cv_path_PYTHON"
2118 if test -n "$PYTHON"; then
2119   echo "$ac_t""$PYTHON" 1>&6
2120 else
2121   echo "$ac_t""no" 1>&6
2122 fi
2123
2124 for ac_prog in pod2html
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_POD2HTML'+set}'`\" = set"; then
2131   echo $ac_n "(cached) $ac_c" 1>&6
2132 else
2133   if test -n "$POD2HTML"; then
2134   ac_cv_prog_POD2HTML="$POD2HTML" # 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_POD2HTML="$ac_prog"
2141       break
2142     fi
2143   done
2144   IFS="$ac_save_ifs"
2145 fi
2146 fi
2147 POD2HTML="$ac_cv_prog_POD2HTML"
2148 if test -n "$POD2HTML"; then
2149   echo "$ac_t""$POD2HTML" 1>&6
2150 else
2151   echo "$ac_t""no" 1>&6
2152 fi
2153
2154 test -n "$POD2HTML" && break
2155 done
2156 test -n "$POD2HTML" || POD2HTML="error"
2157
2158 for ac_prog in pod2man
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_POD2MAN'+set}'`\" = set"; then
2165   echo $ac_n "(cached) $ac_c" 1>&6
2166 else
2167   if test -n "$POD2MAN"; then
2168   ac_cv_prog_POD2MAN="$POD2MAN" # 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_POD2MAN="$ac_prog"
2175       break
2176     fi
2177   done
2178   IFS="$ac_save_ifs"
2179 fi
2180 fi
2181 POD2MAN="$ac_cv_prog_POD2MAN"
2182 if test -n "$POD2MAN"; then
2183   echo "$ac_t""$POD2MAN" 1>&6
2184 else
2185   echo "$ac_t""no" 1>&6
2186 fi
2187
2188 test -n "$POD2MAN" && break
2189 done
2190 test -n "$POD2MAN" || POD2MAN="error"
2191
2192
2193
2194 if test "x$TEXPREFIX" = xauto ; then
2195     
2196     
2197
2198     echo $ac_n "checking TeX/MF root dir directory""... $ac_c" 1>&6
2199 echo "configure:2200: checking TeX/MF root dir directory" >&5    
2200
2201     find_root_prefix="$prefix"
2202     
2203
2204     test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
2205     find_texpostfix="";
2206     for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
2207         find_texprefix="$find_root_prefix$postfix"
2208         if test -d $find_texprefix; then
2209             find_texpostfix=$postfix
2210             break;
2211         fi
2212     done
2213     
2214     if test "x$find_texpostfix" = x; then
2215         find_texpostfix='/lib/texmf/tex'
2216         
2217     echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
2218     warn_b=yes
2219
2220     fi
2221
2222     find_texprefix="$find_root_prefix/$find_texpostfix"
2223
2224     # only assign if variablename not empty
2225     if test x != "x$TEXPREFIX"; then
2226         TEXPREFIX='${prefix}'/"$find_texpostfix"
2227     fi
2228     echo "$ac_t""$find_texprefix" 1>&6
2229
2230
2231 else
2232  find_texprefix=$TEXPREFIX
2233 fi
2234
2235 if test "x$MFDIR" = xauto; then
2236     
2237     
2238     
2239     echo $ac_n "checking MF input directory""... $ac_c" 1>&6
2240 echo "configure:2241: checking MF input directory" >&5    
2241     find_dirdir=`(cd $find_texprefix; 
2242       $FIND ./ -type d -a -name source -print |sort|head -1|sed 's#^\./##')`
2243     
2244
2245     if test "x$find_dirdir" = x; then
2246        find_dirdir="/source";
2247        
2248     echo "configure: warning: Cannot determine MF input subdirectory. Please set from command-line" 1>&2
2249     warn_b=yes
2250
2251         true
2252     fi
2253     MFDIR=$find_dirdir
2254     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
2255
2256     MFDIR="$TEXPREFIX/$MFDIR"
2257
2258 fi
2259     
2260 if test "x$TEXDIR" = xauto ; then
2261     
2262     
2263     
2264     echo $ac_n "checking TeX input directory""... $ac_c" 1>&6
2265 echo "configure:2266: checking TeX input directory" >&5    
2266     find_dirdir=`(cd $find_texprefix; 
2267       $FIND ./ -type d -a -name tex -print |sort|head -1|sed 's#^\./##')`
2268     
2269
2270     if test "x$find_dirdir" = x; then
2271        find_dirdir="/tex";
2272        
2273     echo "configure: warning: Cannot determine TeX input subdirectory. Please set from command-line" 1>&2
2274     warn_b=yes
2275
2276         true
2277     fi
2278     TEXDIR=$find_dirdir
2279     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
2280
2281     TEXDIR="$TEXPREFIX/$TEXDIR"
2282
2283 fi
2284
2285
2286 # AC_JUNK_ARGS( [if test "x$MFDIR" = xauto; then
2287 #      AC_MF_SUBDIR(MFDIR)
2288 #  fi]
2289 # )
2290
2291
2292         if test $MAKE = "error" 
2293         then
2294                 
2295     echo "configure: warning: can't find GNU make. You should install GNU make" 1>&2
2296     warn_b=yes
2297
2298         fi
2299
2300
2301         if test $BISON = "error" 
2302         then
2303                 
2304     echo "configure: warning: can't find bison. Please install Bison" 1>&2
2305     warn_b=yes
2306
2307         fi
2308
2309
2310         if test $PERL = "error" 
2311         then
2312                 
2313     echo "configure: warning: can't find perl. You should install Perl" 1>&2
2314     warn_b=yes
2315
2316         fi
2317
2318
2319         if test $PYTHON = "error" 
2320         then
2321                 
2322     echo "configure: warning: can't find python. You should install Python" 1>&2
2323     warn_b=yes
2324
2325         fi
2326
2327
2328         if test $FLEX = "error" 
2329         then
2330                 
2331     echo "configure: warning: can't find flex. Please install Flex" 1>&2
2332     warn_b=yes
2333
2334         fi
2335
2336
2337         if test $POD2MAN = "error" 
2338         then
2339                 
2340     echo "configure: warning: can't find pod. You should install Perl" 1>&2
2341     warn_b=yes
2342
2343         fi
2344
2345
2346
2347 if test $MAKE != "error" ; then
2348     $MAKE -v| grep GNU > /dev/null
2349     if test "$?" = 1
2350     then
2351             
2352     echo "configure: warning: Please install *GNU* make" 1>&2
2353     warn_b=yes
2354  
2355     fi 
2356 fi 
2357     
2358 if test $BISON != "error"; then
2359     bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
2360     if test $bison_version -lt 25; then
2361         
2362     echo "configure: warning: Your bison is too old (1.$bison_version). Please install 1.25" 1>&2
2363     warn_b=yes
2364
2365     fi  
2366 fi
2367
2368
2369 # ugh autoconf
2370 if $CXX --version | grep '2\.[78]' > /dev/null
2371 then
2372         true
2373 else
2374         
2375     echo "configure: warning: can't find g++ 2.7 or 2.8" 1>&2
2376     warn_b=yes
2377
2378 fi
2379
2380 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2381 echo "configure:2382: checking how to run the C++ preprocessor" >&5
2382 if test -z "$CXXCPP"; then
2383 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2384   echo $ac_n "(cached) $ac_c" 1>&6
2385 else
2386   ac_ext=C
2387 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2388 ac_cpp='$CXXCPP $CPPFLAGS'
2389 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2390 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2391 cross_compiling=$ac_cv_prog_cxx_cross
2392   CXXCPP="${CXX-g++} -E"
2393   cat > conftest.$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2396 #include <stdlib.h>
2397 EOF
2398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2399 { (eval echo configure:2400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2400 ac_err=`grep -v '^ *+' conftest.out`
2401 if test -z "$ac_err"; then
2402   :
2403 else
2404   echo "$ac_err" >&5
2405   echo "configure: failed program was:" >&5
2406   cat conftest.$ac_ext >&5
2407   rm -rf conftest*
2408   CXXCPP=/lib/cpp
2409 fi
2410 rm -f conftest*
2411   ac_cv_prog_CXXCPP="$CXXCPP"
2412 fi
2413 fi
2414 CXXCPP="$ac_cv_prog_CXXCPP"
2415 echo "$ac_t""$CXXCPP" 1>&6
2416
2417 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
2418 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
2419 echo "configure:2420: checking for FlexLexer.h" >&5
2420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2421   echo $ac_n "(cached) $ac_c" 1>&6
2422 else
2423   cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426 #include <FlexLexer.h>
2427 EOF
2428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2429 { (eval echo configure:2430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2430 ac_err=`grep -v '^ *+' conftest.out`
2431 if test -z "$ac_err"; then
2432   rm -rf conftest*
2433   eval "ac_cv_header_$ac_safe=yes"
2434 else
2435   echo "$ac_err" >&5
2436   echo "configure: failed program was:" >&5
2437   cat conftest.$ac_ext >&5
2438   rm -rf conftest*
2439   eval "ac_cv_header_$ac_safe=no"
2440 fi
2441 rm -f conftest*
2442 fi
2443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2444   echo "$ac_t""yes" 1>&6
2445   true
2446 else
2447   echo "$ac_t""no" 1>&6
2448
2449     echo "configure: warning: can't find flex header. Please install Flex headers correctly" 1>&2
2450     warn_b=yes
2451
2452 fi
2453
2454
2455 subdirs="flower"
2456
2457
2458 touch lib/stamp-h.in
2459 # AM_CONFIG_HEADER(lib/config.hh:lib/config.hh.in)
2460
2461
2462
2463
2464 # first do Foobar/Makefile then Foobar/include/Makefile
2465 trap '' 1 2 15
2466 cat > confcache <<\EOF
2467 # This file is a shell script that caches the results of configure
2468 # tests run on this system so they can be shared between configure
2469 # scripts and configure runs.  It is not useful on other systems.
2470 # If it contains results you don't want to keep, you may remove or edit it.
2471 #
2472 # By default, configure uses ./config.cache as the cache file,
2473 # creating it if it does not exist already.  You can give configure
2474 # the --cache-file=FILE option to use a different cache file; that is
2475 # what configure does when it calls configure scripts in
2476 # subdirectories, so they share the cache.
2477 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2478 # config.status only pays attention to the cache file if you give it the
2479 # --recheck option to rerun configure.
2480 #
2481 EOF
2482 # The following way of writing the cache mishandles newlines in values,
2483 # but we know of no workaround that is simple, portable, and efficient.
2484 # So, don't put newlines in cache variables' values.
2485 # Ultrix sh set writes to stderr and can't be redirected directly,
2486 # and sets the high bit in the cache file unless we assign to the vars.
2487 (set) 2>&1 |
2488   case `(ac_space=' '; set) 2>&1` in
2489   *ac_space=\ *)
2490     # `set' does not quote correctly, so add quotes (double-quote substitution
2491     # turns \\\\ into \\, and sed turns \\ into \).
2492     sed -n \
2493       -e "s/'/'\\\\''/g" \
2494       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2495     ;;
2496   *)
2497     # `set' quotes correctly as required by POSIX, so do not add quotes.
2498     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2499     ;;
2500   esac >> confcache
2501 if cmp -s $cache_file confcache; then
2502   :
2503 else
2504   if test -w $cache_file; then
2505     echo "updating cache $cache_file"
2506     cat confcache > $cache_file
2507   else
2508     echo "not updating unwritable cache $cache_file"
2509   fi
2510 fi
2511 rm -f confcache
2512
2513 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2514
2515 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2516 # Let make expand exec_prefix.
2517 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2518
2519 # Any assignment to VPATH causes Sun make to only execute
2520 # the first set of double-colon rules, so remove it if not needed.
2521 # If there is a colon in the path, we need to keep it.
2522 if test "x$srcdir" = x.; then
2523   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2524 fi
2525
2526 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2527
2528 DEFS=-DHAVE_CONFIG_H
2529
2530 # Without the "./", some shells look in PATH for config.status.
2531 : ${CONFIG_STATUS=./config.status}
2532
2533 echo creating $CONFIG_STATUS
2534 rm -f $CONFIG_STATUS
2535 cat > $CONFIG_STATUS <<EOF
2536 #! /bin/sh
2537 # Generated automatically by configure.
2538 # Run this file to recreate the current configuration.
2539 # This directory was configured as follows,
2540 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2541 #
2542 # $0 $ac_configure_args
2543 #
2544 # Compiler output produced by configure, useful for debugging
2545 # configure, is in ./config.log if it exists.
2546
2547 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2548 for ac_option
2549 do
2550   case "\$ac_option" in
2551   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2552     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2553     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2554   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2555     echo "$CONFIG_STATUS generated by autoconf version 2.12"
2556     exit 0 ;;
2557   -help | --help | --hel | --he | --h)
2558     echo "\$ac_cs_usage"; exit 0 ;;
2559   *) echo "\$ac_cs_usage"; exit 1 ;;
2560   esac
2561 done
2562
2563 ac_given_srcdir=$srcdir
2564 ac_given_INSTALL="$INSTALL"
2565
2566 trap 'rm -fr `echo "bin/Makefile lib/Makefile lib/include/Makefile lily/Makefile
2567         lily/include/Makefile mf/Makefile mi2mu/Makefile
2568         mi2mu/include/Makefile debian/Makefile Documentation/Makefile
2569         init/Makefile input/Makefile tex/Makefile make/Makefile
2570         mutopia/Makefile mutopia/J.S.Bach/Makefile Makefile bin/add-URLs
2571         bin/clean-diaper bin/clean-embeds bin/clean-fonts bin/conflily
2572         bin/convert-mudela bin/cvm bin/find-typenames bin/foo bin/genheader
2573         bin/ly2dvi bin/make-docxx bin/make-examples bin/make-patch
2574         bin/make-version bin/make-website bin/mf-deps bin/mf-to-table
2575         bin/mudela-book bin/ps-to-gifs bin/release bin/show-latest lib/config.hh:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2576 EOF
2577 cat >> $CONFIG_STATUS <<EOF
2578
2579 # Protect against being on the right side of a sed subst in config.status.
2580 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2581  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2582 $ac_vpsub
2583 $extrasub
2584 s%@CFLAGS@%$CFLAGS%g
2585 s%@CPPFLAGS@%$CPPFLAGS%g
2586 s%@CXXFLAGS@%$CXXFLAGS%g
2587 s%@DEFS@%$DEFS%g
2588 s%@LDFLAGS@%$LDFLAGS%g
2589 s%@LIBS@%$LIBS%g
2590 s%@exec_prefix@%$exec_prefix%g
2591 s%@prefix@%$prefix%g
2592 s%@program_transform_name@%$program_transform_name%g
2593 s%@bindir@%$bindir%g
2594 s%@sbindir@%$sbindir%g
2595 s%@libexecdir@%$libexecdir%g
2596 s%@datadir@%$datadir%g
2597 s%@sysconfdir@%$sysconfdir%g
2598 s%@sharedstatedir@%$sharedstatedir%g
2599 s%@localstatedir@%$localstatedir%g
2600 s%@libdir@%$libdir%g
2601 s%@includedir@%$includedir%g
2602 s%@oldincludedir@%$oldincludedir%g
2603 s%@infodir@%$infodir%g
2604 s%@mandir@%$mandir%g
2605 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2606 s%@INSTALL_DATA@%$INSTALL_DATA%g
2607 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2608 s%@PACKAGE@%$PACKAGE%g
2609 s%@VERSION@%$VERSION%g
2610 s%@ACLOCAL@%$ACLOCAL%g
2611 s%@AUTOCONF@%$AUTOCONF%g
2612 s%@AUTOMAKE@%$AUTOMAKE%g
2613 s%@AUTOHEADER@%$AUTOHEADER%g
2614 s%@MAKEINFO@%$MAKEINFO%g
2615 s%@SET_MAKE@%$SET_MAKE%g
2616 s%@host@%$host%g
2617 s%@host_alias@%$host_alias%g
2618 s%@host_cpu@%$host_cpu%g
2619 s%@host_vendor@%$host_vendor%g
2620 s%@host_os@%$host_os%g
2621 s%@RANLIB@%$RANLIB%g
2622 s%@CC@%$CC%g
2623 s%@LD@%$LD%g
2624 s%@NM@%$NM%g
2625 s%@LN_S@%$LN_S%g
2626 s%@LIBTOOL@%$LIBTOOL%g
2627 s%@YACC@%$YACC%g
2628 s%@LEX@%$LEX%g
2629 s%@LEXLIB@%$LEXLIB%g
2630 s%@CPP@%$CPP%g
2631 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
2632 s%@CXX@%$CXX%g
2633 s%@TAR@%$TAR%g
2634 s%@FIND@%$FIND%g
2635 s%@ICFLAGS@%$ICFLAGS%g
2636 s%@ILDFLAGS@%$ILDFLAGS%g
2637 s%@DEFINES@%$DEFINES%g
2638 s%@COMPILEINFO@%$COMPILEINFO%g
2639 s%@AUTOGENERATE@%$AUTOGENERATE%g
2640 s%@BISON@%$BISON%g
2641 s%@FLEX@%$FLEX%g
2642 s%@LN@%$LN%g
2643 s%@PERL@%$PERL%g
2644 s%@PYTHON@%$PYTHON%g
2645 s%@ZIP@%$ZIP%g
2646 s%@TEXPREFIX@%$TEXPREFIX%g
2647 s%@TEXDIR@%$TEXDIR%g
2648 s%@MFDIR@%$MFDIR%g
2649 s%@DIR_DATADIR@%$DIR_DATADIR%g
2650 s%@absolute_builddir@%$absolute_builddir%g
2651 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
2652 s%@MAKE@%$MAKE%g
2653 s%@POD2HTML@%$POD2HTML%g
2654 s%@POD2MAN@%$POD2MAN%g
2655 s%@CXXCPP@%$CXXCPP%g
2656 s%@subdirs@%$subdirs%g
2657
2658 CEOF
2659 EOF
2660
2661 cat >> $CONFIG_STATUS <<\EOF
2662
2663 # Split the substitutions into bite-sized pieces for seds with
2664 # small command number limits, like on Digital OSF/1 and HP-UX.
2665 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2666 ac_file=1 # Number of current file.
2667 ac_beg=1 # First line for current file.
2668 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2669 ac_more_lines=:
2670 ac_sed_cmds=""
2671 while $ac_more_lines; do
2672   if test $ac_beg -gt 1; then
2673     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2674   else
2675     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2676   fi
2677   if test ! -s conftest.s$ac_file; then
2678     ac_more_lines=false
2679     rm -f conftest.s$ac_file
2680   else
2681     if test -z "$ac_sed_cmds"; then
2682       ac_sed_cmds="sed -f conftest.s$ac_file"
2683     else
2684       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2685     fi
2686     ac_file=`expr $ac_file + 1`
2687     ac_beg=$ac_end
2688     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2689   fi
2690 done
2691 if test -z "$ac_sed_cmds"; then
2692   ac_sed_cmds=cat
2693 fi
2694 EOF
2695
2696 cat >> $CONFIG_STATUS <<EOF
2697
2698 CONFIG_FILES=\${CONFIG_FILES-"bin/Makefile lib/Makefile lib/include/Makefile lily/Makefile
2699         lily/include/Makefile mf/Makefile mi2mu/Makefile
2700         mi2mu/include/Makefile debian/Makefile Documentation/Makefile
2701         init/Makefile input/Makefile tex/Makefile make/Makefile
2702         mutopia/Makefile mutopia/J.S.Bach/Makefile Makefile bin/add-URLs
2703         bin/clean-diaper bin/clean-embeds bin/clean-fonts bin/conflily
2704         bin/convert-mudela bin/cvm bin/find-typenames bin/foo bin/genheader
2705         bin/ly2dvi bin/make-docxx bin/make-examples bin/make-patch
2706         bin/make-version bin/make-website bin/mf-deps bin/mf-to-table
2707         bin/mudela-book bin/ps-to-gifs bin/release bin/show-latest"}
2708 EOF
2709 cat >> $CONFIG_STATUS <<\EOF
2710 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2711   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2712   case "$ac_file" in
2713   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2714        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2715   *) ac_file_in="${ac_file}.in" ;;
2716   esac
2717
2718   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2719
2720   # Remove last slash and all that follows it.  Not all systems have dirname.
2721   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2722   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2723     # The file is in a subdirectory.
2724     test ! -d "$ac_dir" && mkdir "$ac_dir"
2725     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2726     # A "../" for each directory in $ac_dir_suffix.
2727     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2728   else
2729     ac_dir_suffix= ac_dots=
2730   fi
2731
2732   case "$ac_given_srcdir" in
2733   .)  srcdir=.
2734       if test -z "$ac_dots"; then top_srcdir=.
2735       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2736   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2737   *) # Relative path.
2738     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2739     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2740   esac
2741
2742   case "$ac_given_INSTALL" in
2743   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2744   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2745   esac
2746
2747   echo creating "$ac_file"
2748   rm -f "$ac_file"
2749   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2750   case "$ac_file" in
2751   *Makefile*) ac_comsub="1i\\
2752 # $configure_input" ;;
2753   *) ac_comsub= ;;
2754   esac
2755
2756   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2757   sed -e "$ac_comsub
2758 s%@configure_input@%$configure_input%g
2759 s%@srcdir@%$srcdir%g
2760 s%@top_srcdir@%$top_srcdir%g
2761 s%@INSTALL@%$INSTALL%g
2762 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2763 fi; done
2764 rm -f conftest.s*
2765
2766 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2767 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2768 #
2769 # ac_d sets the value in "#define NAME VALUE" lines.
2770 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2771 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2772 ac_dC='\3'
2773 ac_dD='%g'
2774 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2775 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2776 ac_uB='\([      ]\)%\1#\2define\3'
2777 ac_uC=' '
2778 ac_uD='\4%g'
2779 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2780 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2781 ac_eB='$%\1#\2define\3'
2782 ac_eC=' '
2783 ac_eD='%g'
2784
2785 if test "${CONFIG_HEADERS+set}" != set; then
2786 EOF
2787 cat >> $CONFIG_STATUS <<EOF
2788   CONFIG_HEADERS="lib/config.hh:config.hh.in"
2789 EOF
2790 cat >> $CONFIG_STATUS <<\EOF
2791 fi
2792 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2793   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2794   case "$ac_file" in
2795   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2796        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2797   *) ac_file_in="${ac_file}.in" ;;
2798   esac
2799
2800   echo creating $ac_file
2801
2802   rm -f conftest.frag conftest.in conftest.out
2803   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2804   cat $ac_file_inputs > conftest.in
2805
2806 EOF
2807
2808 # Transform confdefs.h into a sed script conftest.vals that substitutes
2809 # the proper values into config.h.in to produce config.h.  And first:
2810 # Protect against being on the right side of a sed subst in config.status.
2811 # Protect against being in an unquoted here document in config.status.
2812 rm -f conftest.vals
2813 cat > conftest.hdr <<\EOF
2814 s/[\\&%]/\\&/g
2815 s%[\\$`]%\\&%g
2816 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2817 s%ac_d%ac_u%gp
2818 s%ac_u%ac_e%gp
2819 EOF
2820 sed -n -f conftest.hdr confdefs.h > conftest.vals
2821 rm -f conftest.hdr
2822
2823 # This sed command replaces #undef with comments.  This is necessary, for
2824 # example, in the case of _POSIX_SOURCE, which is predefined and required
2825 # on some systems where configure will not decide to define it.
2826 cat >> conftest.vals <<\EOF
2827 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2828 EOF
2829
2830 # Break up conftest.vals because some shells have a limit on
2831 # the size of here documents, and old seds have small limits too.
2832
2833 rm -f conftest.tail
2834 while :
2835 do
2836   ac_lines=`grep -c . conftest.vals`
2837   # grep -c gives empty output for an empty file on some AIX systems.
2838   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2839   # Write a limited-size here document to conftest.frag.
2840   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2841   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2842   echo 'CEOF
2843   sed -f conftest.frag conftest.in > conftest.out
2844   rm -f conftest.in
2845   mv conftest.out conftest.in
2846 ' >> $CONFIG_STATUS
2847   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2848   rm -f conftest.vals
2849   mv conftest.tail conftest.vals
2850 done
2851 rm -f conftest.vals
2852
2853 cat >> $CONFIG_STATUS <<\EOF
2854   rm -f conftest.frag conftest.h
2855   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2856   cat conftest.in >> conftest.h
2857   rm -f conftest.in
2858   if cmp -s $ac_file conftest.h 2>/dev/null; then
2859     echo "$ac_file is unchanged"
2860     rm -f conftest.h
2861   else
2862     # Remove last slash and all that follows it.  Not all systems have dirname.
2863       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2864       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2865       # The file is in a subdirectory.
2866       test ! -d "$ac_dir" && mkdir "$ac_dir"
2867     fi
2868     rm -f $ac_file
2869     mv conftest.h $ac_file
2870   fi
2871 fi; done
2872
2873 EOF
2874 cat >> $CONFIG_STATUS <<EOF
2875
2876
2877 EOF
2878 cat >> $CONFIG_STATUS <<\EOF
2879 test -z "$CONFIG_HEADERS" || echo timestamp > lib/stamp-h
2880
2881 exit 0
2882 EOF
2883 chmod +x $CONFIG_STATUS
2884 rm -fr confdefs* $ac_clean_files
2885 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2886
2887 if test "$no_recursion" != yes; then
2888
2889   # Remove --cache-file and --srcdir arguments so they do not pile up.
2890   ac_sub_configure_args=
2891   ac_prev=
2892   for ac_arg in $ac_configure_args; do
2893     if test -n "$ac_prev"; then
2894       ac_prev=
2895       continue
2896     fi
2897     case "$ac_arg" in
2898     -cache-file | --cache-file | --cache-fil | --cache-fi \
2899     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2900       ac_prev=cache_file ;;
2901     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2902     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2903       ;;
2904     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2905       ac_prev=srcdir ;;
2906     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2907       ;;
2908     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2909     esac
2910   done
2911
2912   for ac_config_dir in flower; do
2913
2914     # Do not complain, so a configure script can configure whichever
2915     # parts of a large source tree are present.
2916     if test ! -d $srcdir/$ac_config_dir; then
2917       continue
2918     fi
2919
2920     echo configuring in $ac_config_dir
2921
2922     case "$srcdir" in
2923     .) ;;
2924     *)
2925       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2926       else
2927         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2928       fi
2929       ;;
2930     esac
2931
2932     ac_popdir=`pwd`
2933     cd $ac_config_dir
2934
2935       # A "../" for each directory in /$ac_config_dir.
2936       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2937
2938     case "$srcdir" in
2939     .) # No --srcdir option.  We are building in place.
2940       ac_sub_srcdir=$srcdir ;;
2941     /*) # Absolute path.
2942       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2943     *) # Relative path.
2944       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2945     esac
2946
2947     # Check for guested configure; otherwise get Cygnus style configure.
2948     if test -f $ac_sub_srcdir/configure; then
2949       ac_sub_configure=$ac_sub_srcdir/configure
2950     elif test -f $ac_sub_srcdir/configure.in; then
2951       ac_sub_configure=$ac_configure
2952     else
2953       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2954       ac_sub_configure=
2955     fi
2956
2957     # The recursion is here.
2958     if test -n "$ac_sub_configure"; then
2959
2960       # Make the cache file name correct relative to the subdirectory.
2961       case "$cache_file" in
2962       /*) ac_sub_cache_file=$cache_file ;;
2963       *) # Relative path.
2964         ac_sub_cache_file="$ac_dots$cache_file" ;;
2965       esac
2966   case "$ac_given_INSTALL" in
2967         [/$]*) INSTALL="$ac_given_INSTALL" ;;
2968         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2969         esac
2970
2971       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2972       # The eval makes quoting arguments work.
2973       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2974       then :
2975       else
2976         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2977       fi
2978     fi
2979
2980     cd $ac_popdir
2981   done
2982 fi
2983
2984
2985 # ugh
2986 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
2987