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