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