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