]> git.donarmstrong.com Git - lilypond.git/blob - configure
patch::: 0.1.12.jcn2: kliener pats
[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"
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   mingw-prefix=DIR        set the mingw32 directory (standalone windows32 exes)"
26 ac_help="$ac_help
27   tex-prefix=DIR          set the tex-directory to find TeX subdirectories. (default: PREFIX)"
28 ac_help="$ac_help
29   tex-dir=DIR             set the directory to put LilyPond TeX files in. "
30 ac_help="$ac_help
31   out-dir                 set the directory for machine generated files. Default out or out-HOST"
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
541 if test x$srcdir != x.; then
542   echo Please look in the INSTALL instructions for
543   echo directions for multi-architecture building
544     
545   
546     echo "configure: warning: This package does not support --srcdir!" 1>&2
547     warn_b=yes
548
549 fi
550
551 # if given here, these vars are initted at the checking point.
552 if test x$host = xNONE; then
553     OUTDIR_NAME=${OUTDIR_NAME-"out"}
554 else
555     OUTDIR_NAME=${OUTDIR_NAME-"out-$host"}
556 fi
557
558 printing_b=no
559 checking_b=yes
560 debug_b=yes
561 optimise_b=no
562 profile_b=no
563
564 ac_ext=C
565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CXXCPP $CPPFLAGS'
567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cxx_cross
570
571
572 # Check whether --enable-printing or --disable-printing was given.
573 if test "${enable_printing+set}" = set; then
574   enableval="$enable_printing"
575   printing_b=$enableval
576 fi
577
578
579         
580 # Check whether --enable-checking or --disable-checking was given.
581 if test "${enable_checking+set}" = set; then
582   enableval="$enable_checking"
583   checking_b=$enableval 
584 fi
585
586
587 # Check whether --enable-debugging or --disable-debugging was given.
588 if test "${enable_debugging+set}" = set; then
589   enableval="$enable_debugging"
590   debug_b=$enableval
591 fi
592
593
594 # Check whether --enable-optimise or --disable-optimise was given.
595 if test "${enable_optimise+set}" = set; then
596   enableval="$enable_optimise"
597   optimise_b=$enableval
598 fi
599
600     
601 # Check whether --enable-profiling or --disable-profiling was given.
602 if test "${enable_profiling+set}" = set; then
603   enableval="$enable_profiling"
604   profile_b=$enableval
605 fi
606
607     
608 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
609 if test "${enable_mingw_prefix+set}" = set; then
610   enableval="$enable_mingw_prefix"
611   MINGWPREFIX=$enableval
612 else
613   MINGWPREFIX=no
614 fi
615
616     
617 # Check whether --enable-tex-prefix or --disable-tex-prefix was given.
618 if test "${enable_tex_prefix+set}" = set; then
619   enableval="$enable_tex_prefix"
620   TEXPREFIX=$enableval
621 else
622   TEXPREFIX=auto 
623 fi
624
625     
626 # Check whether --enable-tex-dir or --disable-tex-dir was given.
627 if test "${enable_tex_dir+set}" = set; then
628   enableval="$enable_tex_dir"
629   TEXDIR=$enableval
630 else
631   TEXDIR=auto 
632 fi
633
634
635
636
637
638 # Check whether --enable-out-dir or --disable-out-dir was given.
639 if test "${enable_out_dir+set}" = set; then
640   enableval="$enable_out_dir"
641   OUTDIR_NAME=$enableval
642     
643 fi
644
645
646 if test $profile_b = yes; then
647     EXTRA_LIBES="-pg"
648     DEFINES="$DEFINES -pg"
649 fi
650     
651 if test $printing_b = no; then
652     DEFINES="$DEFINES -DNPRINT=1"
653 fi
654     
655 if test $debug_b = yes; then    
656     DEFINES="$DEFINES -g"
657 fi
658 if test $checking_b = no; then
659     DEFINES="$DEFINES -DNDEBUG=1"
660 fi
661
662 # however, C++ support in mingw32 v 0.1.4 is still flaky
663 if test x$MINGWPREFIX != xno; then 
664     ICFLAGS="-I$MINGWPREFIX/include"
665     ILDFLAGS="-$MINGWPREFIX/lib"
666 fi
667
668 if test $optimise_b = yes; then
669     DEFINES="$DEFINES -O2 -DSTRING_UTILS_INLINED"
670 fi
671
672 if test "x$OSTYPE" = "xWindows_NT"; then
673     LN=cp # hard link does not work under cygnus-nt (yet?)
674     ZIP="zip -r -9" #
675 else
676     LN=ln
677     ZIP="zip -r -9"
678 fi
679
680 AUTOHEADER="This file was automatically generated by configure"
681 CPPFLAGS=${CPPFLAGS:-""}        # we don't want -g -O junk
682 CXXFLAGS=${CXXFLAGS:-""}        # we don't want -g -O junk
683
684 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
685 do
686 # Extract the first word of "$ac_prog", so it can be a program name with args.
687 set dummy $ac_prog; ac_word=$2
688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
689 echo "configure:690: checking for $ac_word" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
691   echo $ac_n "(cached) $ac_c" 1>&6
692 else
693   if test -n "$CXX"; then
694   ac_cv_prog_CXX="$CXX" # Let the user override the test.
695 else
696   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
697   for ac_dir in $PATH; do
698     test -z "$ac_dir" && ac_dir=.
699     if test -f $ac_dir/$ac_word; then
700       ac_cv_prog_CXX="$ac_prog"
701       break
702     fi
703   done
704   IFS="$ac_save_ifs"
705 fi
706 fi
707 CXX="$ac_cv_prog_CXX"
708 if test -n "$CXX"; then
709   echo "$ac_t""$CXX" 1>&6
710 else
711   echo "$ac_t""no" 1>&6
712 fi
713
714 test -n "$CXX" && break
715 done
716 test -n "$CXX" || CXX="gcc"
717
718
719 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
720 echo "configure:721: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
721
722 ac_ext=C
723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
724 ac_cpp='$CXXCPP $CPPFLAGS'
725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
726 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
727 cross_compiling=$ac_cv_prog_cxx_cross
728
729 cat > conftest.$ac_ext <<EOF
730 #line 731 "configure"
731 #include "confdefs.h"
732 main(){return(0);}
733 EOF
734 if { (eval echo configure:735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
735   ac_cv_prog_cxx_works=yes
736   # If we can't run a trivial program, we are probably using a cross compiler.
737   if (./conftest; exit) 2>/dev/null; then
738     ac_cv_prog_cxx_cross=no
739   else
740     ac_cv_prog_cxx_cross=yes
741   fi
742 else
743   echo "configure: failed program was:" >&5
744   cat conftest.$ac_ext >&5
745   ac_cv_prog_cxx_works=no
746 fi
747 rm -fr conftest*
748
749 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
750 if test $ac_cv_prog_cxx_works = no; then
751   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
752 fi
753 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
754 echo "configure:755: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
755 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
756 cross_compiling=$ac_cv_prog_cxx_cross
757
758 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
759 echo "configure:760: checking whether we are using GNU C++" >&5
760 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
761   echo $ac_n "(cached) $ac_c" 1>&6
762 else
763   cat > conftest.C <<EOF
764 #ifdef __GNUC__
765   yes;
766 #endif
767 EOF
768 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
769   ac_cv_prog_gxx=yes
770 else
771   ac_cv_prog_gxx=no
772 fi
773 fi
774
775 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
776
777 if test $ac_cv_prog_gxx = yes; then
778   GXX=yes
779   ac_test_CXXFLAGS="${CXXFLAGS+set}"
780   ac_save_CXXFLAGS="$CXXFLAGS"
781   CXXFLAGS=
782   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
783 echo "configure:784: checking whether ${CXX-g++} accepts -g" >&5
784 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
785   echo $ac_n "(cached) $ac_c" 1>&6
786 else
787   echo 'void f(){}' > conftest.cc
788 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
789   ac_cv_prog_cxx_g=yes
790 else
791   ac_cv_prog_cxx_g=no
792 fi
793 rm -f conftest*
794
795 fi
796
797 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
798   if test "$ac_test_CXXFLAGS" = set; then
799     CXXFLAGS="$ac_save_CXXFLAGS"
800   elif test $ac_cv_prog_cxx_g = yes; then
801     CXXFLAGS="-g -O2"
802   else
803     CXXFLAGS="-O2"
804   fi
805 else
806   GXX=
807   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
808 fi
809
810 # Extract the first word of "ranlib", so it can be a program name with args.
811 set dummy ranlib; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
815   echo $ac_n "(cached) $ac_c" 1>&6
816 else
817   if test -n "$RANLIB"; then
818   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
819 else
820   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
821   for ac_dir in $PATH; do
822     test -z "$ac_dir" && ac_dir=.
823     if test -f $ac_dir/$ac_word; then
824       ac_cv_prog_RANLIB="ranlib"
825       break
826     fi
827   done
828   IFS="$ac_save_ifs"
829   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
830 fi
831 fi
832 RANLIB="$ac_cv_prog_RANLIB"
833 if test -n "$RANLIB"; then
834   echo "$ac_t""$RANLIB" 1>&6
835 else
836   echo "$ac_t""no" 1>&6
837 fi
838
839 ac_aux_dir=
840 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
841   if test -f $ac_dir/install-sh; then
842     ac_aux_dir=$ac_dir
843     ac_install_sh="$ac_aux_dir/install-sh -c"
844     break
845   elif test -f $ac_dir/install.sh; then
846     ac_aux_dir=$ac_dir
847     ac_install_sh="$ac_aux_dir/install.sh -c"
848     break
849   fi
850 done
851 if test -z "$ac_aux_dir"; then
852   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
853 fi
854 ac_config_guess=$ac_aux_dir/config.guess
855 ac_config_sub=$ac_aux_dir/config.sub
856 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
857
858 # Find a good install program.  We prefer a C program (faster),
859 # so one script is as good as another.  But avoid the broken or
860 # incompatible versions:
861 # SysV /etc/install, /usr/sbin/install
862 # SunOS /usr/etc/install
863 # IRIX /sbin/install
864 # AIX /bin/install
865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
867 # ./install, which can be erroneously created by make from ./install.sh.
868 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
869 echo "configure:870: checking for a BSD compatible install" >&5
870 if test -z "$INSTALL"; then
871 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
872   echo $ac_n "(cached) $ac_c" 1>&6
873 else
874     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
875   for ac_dir in $PATH; do
876     # Account for people who put trailing slashes in PATH elements.
877     case "$ac_dir/" in
878     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
879     *)
880       # OSF1 and SCO ODT 3.0 have their own names for install.
881       for ac_prog in ginstall installbsd scoinst install; do
882         if test -f $ac_dir/$ac_prog; then
883           if test $ac_prog = install &&
884             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
885             # AIX install.  It has an incompatible calling convention.
886             # OSF/1 installbsd also uses dspmsg, but is usable.
887             :
888           else
889             ac_cv_path_install="$ac_dir/$ac_prog -c"
890             break 2
891           fi
892         fi
893       done
894       ;;
895     esac
896   done
897   IFS="$ac_save_IFS"
898
899 fi
900   if test "${ac_cv_path_install+set}" = set; then
901     INSTALL="$ac_cv_path_install"
902   else
903     # As a last resort, use the slow shell script.  We don't cache a
904     # path for INSTALL within a source directory, because that will
905     # break other packages using the cache if that directory is
906     # removed, or if the path is relative.
907     INSTALL="$ac_install_sh"
908   fi
909 fi
910 echo "$ac_t""$INSTALL" 1>&6
911
912 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
913 # It thinks the first close brace ends the variable substitution.
914 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
915
916 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
917
918 for ac_prog in tar
919 do
920 # Extract the first word of "$ac_prog", so it can be a program name with args.
921 set dummy $ac_prog; ac_word=$2
922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
923 echo "configure:924: checking for $ac_word" >&5
924 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
925   echo $ac_n "(cached) $ac_c" 1>&6
926 else
927   if test -n "$TAR"; then
928   ac_cv_prog_TAR="$TAR" # Let the user override the test.
929 else
930   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
931   for ac_dir in $PATH; do
932     test -z "$ac_dir" && ac_dir=.
933     if test -f $ac_dir/$ac_word; then
934       ac_cv_prog_TAR="$ac_prog"
935       break
936     fi
937   done
938   IFS="$ac_save_ifs"
939 fi
940 fi
941 TAR="$ac_cv_prog_TAR"
942 if test -n "$TAR"; then
943   echo "$ac_t""$TAR" 1>&6
944 else
945   echo "$ac_t""no" 1>&6
946 fi
947
948 test -n "$TAR" && break
949 done
950 test -n "$TAR" || TAR="error"
951
952 for ac_prog in find
953 do
954 # Extract the first word of "$ac_prog", so it can be a program name with args.
955 set dummy $ac_prog; ac_word=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
959   echo $ac_n "(cached) $ac_c" 1>&6
960 else
961   if test -n "$FIND"; then
962   ac_cv_prog_FIND="$FIND" # Let the user override the test.
963 else
964   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
965   for ac_dir in $PATH; do
966     test -z "$ac_dir" && ac_dir=.
967     if test -f $ac_dir/$ac_word; then
968       ac_cv_prog_FIND="$ac_prog"
969       break
970     fi
971   done
972   IFS="$ac_save_ifs"
973 fi
974 fi
975 FIND="$ac_cv_prog_FIND"
976 if test -n "$FIND"; then
977   echo "$ac_t""$FIND" 1>&6
978 else
979   echo "$ac_t""no" 1>&6
980 fi
981
982 test -n "$FIND" && break
983 done
984 test -n "$FIND" || FIND="error"
985
986
987
988         if test $FIND = "error" 
989         then
990                 
991     echo "configure: warning: can't find \`find\'. Please use --enable-tex-dir. " 1>&2
992     warn_b=yes
993
994         fi
995
996
997     
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018 for ac_prog in bison
1019 do
1020 # Extract the first word of "$ac_prog", so it can be a program name with args.
1021 set dummy $ac_prog; ac_word=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_word" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1025   echo $ac_n "(cached) $ac_c" 1>&6
1026 else
1027   if test -n "$BISON"; then
1028   ac_cv_prog_BISON="$BISON" # Let the user override the test.
1029 else
1030   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1031   for ac_dir in $PATH; do
1032     test -z "$ac_dir" && ac_dir=.
1033     if test -f $ac_dir/$ac_word; then
1034       ac_cv_prog_BISON="$ac_prog"
1035       break
1036     fi
1037   done
1038   IFS="$ac_save_ifs"
1039 fi
1040 fi
1041 BISON="$ac_cv_prog_BISON"
1042 if test -n "$BISON"; then
1043   echo "$ac_t""$BISON" 1>&6
1044 else
1045   echo "$ac_t""no" 1>&6
1046 fi
1047
1048 test -n "$BISON" && break
1049 done
1050 test -n "$BISON" || BISON="error"
1051
1052 for ac_prog in flex
1053 do
1054 # Extract the first word of "$ac_prog", so it can be a program name with args.
1055 set dummy $ac_prog; ac_word=$2
1056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057 echo "configure:1058: checking for $ac_word" >&5
1058 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1059   echo $ac_n "(cached) $ac_c" 1>&6
1060 else
1061   if test -n "$FLEX"; then
1062   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1063 else
1064   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1065   for ac_dir in $PATH; do
1066     test -z "$ac_dir" && ac_dir=.
1067     if test -f $ac_dir/$ac_word; then
1068       ac_cv_prog_FLEX="$ac_prog"
1069       break
1070     fi
1071   done
1072   IFS="$ac_save_ifs"
1073 fi
1074 fi
1075 FLEX="$ac_cv_prog_FLEX"
1076 if test -n "$FLEX"; then
1077   echo "$ac_t""$FLEX" 1>&6
1078 else
1079   echo "$ac_t""no" 1>&6
1080 fi
1081
1082 test -n "$FLEX" && break
1083 done
1084 test -n "$FLEX" || FLEX="error"
1085
1086 for ac_prog in make
1087 do
1088 # Extract the first word of "$ac_prog", so it can be a program name with args.
1089 set dummy $ac_prog; ac_word=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1093   echo $ac_n "(cached) $ac_c" 1>&6
1094 else
1095   if test -n "$MAKE"; then
1096   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1097 else
1098   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1099   for ac_dir in $PATH; do
1100     test -z "$ac_dir" && ac_dir=.
1101     if test -f $ac_dir/$ac_word; then
1102       ac_cv_prog_MAKE="$ac_prog"
1103       break
1104     fi
1105   done
1106   IFS="$ac_save_ifs"
1107 fi
1108 fi
1109 MAKE="$ac_cv_prog_MAKE"
1110 if test -n "$MAKE"; then
1111   echo "$ac_t""$MAKE" 1>&6
1112 else
1113   echo "$ac_t""no" 1>&6
1114 fi
1115
1116 test -n "$MAKE" && break
1117 done
1118 test -n "$MAKE" || MAKE="error"
1119
1120 # Extract the first word of "perl", so it can be a program name with args.
1121 set dummy perl; ac_word=$2
1122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1123 echo "configure:1124: checking for $ac_word" >&5
1124 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1125   echo $ac_n "(cached) $ac_c" 1>&6
1126 else
1127   case "$PERL" in
1128   /*)
1129   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1130   ;;
1131   *)
1132   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1133   for ac_dir in $PATH; do
1134     test -z "$ac_dir" && ac_dir=.
1135     if test -f $ac_dir/$ac_word; then
1136       ac_cv_path_PERL="$ac_dir/$ac_word"
1137       break
1138     fi
1139   done
1140   IFS="$ac_save_ifs"
1141   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
1142   ;;
1143 esac
1144 fi
1145 PERL="$ac_cv_path_PERL"
1146 if test -n "$PERL"; then
1147   echo "$ac_t""$PERL" 1>&6
1148 else
1149   echo "$ac_t""no" 1>&6
1150 fi
1151
1152 for ac_prog in pod2man
1153 do
1154 # Extract the first word of "$ac_prog", so it can be a program name with args.
1155 set dummy $ac_prog; ac_word=$2
1156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1157 echo "configure:1158: checking for $ac_word" >&5
1158 if eval "test \"`echo '$''{'ac_cv_prog_PODMAN'+set}'`\" = set"; then
1159   echo $ac_n "(cached) $ac_c" 1>&6
1160 else
1161   if test -n "$PODMAN"; then
1162   ac_cv_prog_PODMAN="$PODMAN" # Let the user override the test.
1163 else
1164   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1165   for ac_dir in $PATH; do
1166     test -z "$ac_dir" && ac_dir=.
1167     if test -f $ac_dir/$ac_word; then
1168       ac_cv_prog_PODMAN="$ac_prog"
1169       break
1170     fi
1171   done
1172   IFS="$ac_save_ifs"
1173 fi
1174 fi
1175 PODMAN="$ac_cv_prog_PODMAN"
1176 if test -n "$PODMAN"; then
1177   echo "$ac_t""$PODMAN" 1>&6
1178 else
1179   echo "$ac_t""no" 1>&6
1180 fi
1181
1182 test -n "$PODMAN" && break
1183 done
1184 test -n "$PODMAN" || PODMAN="error"
1185
1186
1187
1188 if test "x$TEXPREFIX" = xauto ; then
1189     
1190     
1191
1192     echo $ac_n "checking TeX/MF root dir directory""... $ac_c" 1>&6
1193 echo "configure:1194: checking TeX/MF root dir directory" >&5    
1194
1195     find_root_prefix="$prefix"
1196     
1197
1198     test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
1199     find_texpostfix="";
1200     for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
1201         find_texprefix="$find_root_prefix$postfix"
1202         if test -d $find_texprefix; then
1203             find_texpostfix=$postfix
1204             break;
1205         fi
1206     done
1207     
1208     if test "x$find_texpostfix" = x; then
1209         find_texpostfix='/lib/texmf/tex'
1210         
1211     echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
1212     warn_b=yes
1213
1214     fi
1215
1216     find_texprefix="$find_root_prefix/$find_texpostfix"
1217
1218     # only assign if variablename not empty
1219     if test x != "xTEXPREFIX"; then
1220         TEXPREFIX='${prefix}'/"$find_texpostfix"
1221     fi
1222     echo "$ac_t""$find_texprefix" 1>&6
1223
1224
1225 else
1226  find_texprefix=$TEXPREFIX
1227 fi
1228     
1229 if test "x$TEXDIR" = xauto ; then
1230     
1231     
1232     
1233     echo $ac_n "checking TeX input directory""... $ac_c" 1>&6
1234 echo "configure:1235: checking TeX input directory" >&5    
1235     find_dirdir=`(cd $find_texprefix; 
1236       $FIND ./ -type d -a -name tex -print |sort|head -1|sed 's#^\./##')`
1237     
1238
1239     if test "x$find_dirdir" = x; then
1240        find_dirdir="/tex";
1241        
1242     echo "configure: warning: Cannot determine TeX input subdirectory. Please set from command-line" 1>&2
1243     warn_b=yes
1244
1245         true
1246     fi
1247     TEXDIR=$find_dirdir
1248     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1249
1250     TEXDIR="$TEXPREFIX/$TEXDIR"
1251
1252 fi
1253
1254
1255
1256
1257
1258
1259         if test $MAKE = "error" 
1260         then
1261                 
1262     echo "configure: warning: can't find GNU make. You should install GNU make" 1>&2
1263     warn_b=yes
1264
1265         fi
1266
1267
1268         if test $BISON = "error" 
1269         then
1270                 
1271     echo "configure: warning: can't find bison. Please install Bison" 1>&2
1272     warn_b=yes
1273
1274         fi
1275
1276
1277         if test $PERL = "error" 
1278         then
1279                 
1280     echo "configure: warning: can't find perl. You should install Perl" 1>&2
1281     warn_b=yes
1282
1283         fi
1284
1285
1286         if test $PODMAN = "error" 
1287         then
1288                 
1289     echo "configure: warning: can't find pod. You should install Perl" 1>&2
1290     warn_b=yes
1291
1292         fi
1293
1294
1295         if test $FLEX = "error" 
1296         then
1297                 
1298     echo "configure: warning: can't find flex. Please install Flex" 1>&2
1299     warn_b=yes
1300
1301         fi
1302
1303
1304
1305 if test $MAKE != "error" ; then
1306     $MAKE -v| grep GNU > /dev/null
1307     if test "$?" = 1
1308     then
1309             
1310     echo "configure: warning: Please install *GNU* make" 1>&2
1311     warn_b=yes
1312  
1313     fi 
1314 fi 
1315     
1316 if test $BISON != "error"; then
1317     bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
1318     if test $bison_version -lt 25; then
1319         
1320     echo "configure: warning: Your bison is too old (1.$bison_version). Please install 1.25" 1>&2
1321     warn_b=yes
1322
1323     fi  
1324 fi
1325
1326 if $CXX --version | grep '2\.7' > /dev/null
1327 then
1328         true
1329 else
1330         
1331     echo "configure: warning: can't find g++ 2.7" 1>&2
1332     warn_b=yes
1333
1334 fi
1335
1336 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1337 echo "configure:1338: checking how to run the C++ preprocessor" >&5
1338 if test -z "$CXXCPP"; then
1339 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1340   echo $ac_n "(cached) $ac_c" 1>&6
1341 else
1342   ac_ext=C
1343 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1344 ac_cpp='$CXXCPP $CPPFLAGS'
1345 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1346 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1347 cross_compiling=$ac_cv_prog_cxx_cross
1348   CXXCPP="${CXX-g++} -E"
1349   cat > conftest.$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1352 #include <stdlib.h>
1353 EOF
1354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1355 { (eval echo configure:1356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1356 ac_err=`grep -v '^ *+' conftest.out`
1357 if test -z "$ac_err"; then
1358   :
1359 else
1360   echo "$ac_err" >&5
1361   echo "configure: failed program was:" >&5
1362   cat conftest.$ac_ext >&5
1363   rm -rf conftest*
1364   CXXCPP=/lib/cpp
1365 fi
1366 rm -f conftest*
1367   ac_cv_prog_CXXCPP="$CXXCPP"
1368 fi
1369 fi
1370 CXXCPP="$ac_cv_prog_CXXCPP"
1371 echo "$ac_t""$CXXCPP" 1>&6
1372
1373 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1374 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1375 echo "configure:1376: checking for FlexLexer.h" >&5
1376 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1377   echo $ac_n "(cached) $ac_c" 1>&6
1378 else
1379   cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1382 #include <FlexLexer.h>
1383 EOF
1384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1385 { (eval echo configure:1386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1386 ac_err=`grep -v '^ *+' conftest.out`
1387 if test -z "$ac_err"; then
1388   rm -rf conftest*
1389   eval "ac_cv_header_$ac_safe=yes"
1390 else
1391   echo "$ac_err" >&5
1392   echo "configure: failed program was:" >&5
1393   cat conftest.$ac_ext >&5
1394   rm -rf conftest*
1395   eval "ac_cv_header_$ac_safe=no"
1396 fi
1397 rm -f conftest*
1398 fi
1399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1400   echo "$ac_t""yes" 1>&6
1401   true
1402 else
1403   echo "$ac_t""no" 1>&6
1404
1405     echo "configure: warning: can't find flex header. Please install Flex headers correctly" 1>&2
1406     warn_b=yes
1407
1408 fi
1409
1410
1411 for a in `find . -type d -and -not -name 'out*' -print`; do
1412     if test ! -d  $a/$OUTDIR_NAME; then
1413         mkdir $a/$OUTDIR_NAME
1414     fi
1415 done
1416
1417 subdirs="flower"
1418
1419
1420     
1421 trap '' 1 2 15
1422 cat > confcache <<\EOF
1423 # This file is a shell script that caches the results of configure
1424 # tests run on this system so they can be shared between configure
1425 # scripts and configure runs.  It is not useful on other systems.
1426 # If it contains results you don't want to keep, you may remove or edit it.
1427 #
1428 # By default, configure uses ./config.cache as the cache file,
1429 # creating it if it does not exist already.  You can give configure
1430 # the --cache-file=FILE option to use a different cache file; that is
1431 # what configure does when it calls configure scripts in
1432 # subdirectories, so they share the cache.
1433 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1434 # config.status only pays attention to the cache file if you give it the
1435 # --recheck option to rerun configure.
1436 #
1437 EOF
1438 # The following way of writing the cache mishandles newlines in values,
1439 # but we know of no workaround that is simple, portable, and efficient.
1440 # So, don't put newlines in cache variables' values.
1441 # Ultrix sh set writes to stderr and can't be redirected directly,
1442 # and sets the high bit in the cache file unless we assign to the vars.
1443 (set) 2>&1 |
1444   case `(ac_space=' '; set) 2>&1` in
1445   *ac_space=\ *)
1446     # `set' does not quote correctly, so add quotes (double-quote substitution
1447     # turns \\\\ into \\, and sed turns \\ into \).
1448     sed -n \
1449       -e "s/'/'\\\\''/g" \
1450       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1451     ;;
1452   *)
1453     # `set' quotes correctly as required by POSIX, so do not add quotes.
1454     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1455     ;;
1456   esac >> confcache
1457 if cmp -s $cache_file confcache; then
1458   :
1459 else
1460   if test -w $cache_file; then
1461     echo "updating cache $cache_file"
1462     cat confcache > $cache_file
1463   else
1464     echo "not updating unwritable cache $cache_file"
1465   fi
1466 fi
1467 rm -f confcache
1468
1469 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1470
1471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1472 # Let make expand exec_prefix.
1473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1474
1475 # Any assignment to VPATH causes Sun make to only execute
1476 # the first set of double-colon rules, so remove it if not needed.
1477 # If there is a colon in the path, we need to keep it.
1478 if test "x$srcdir" = x.; then
1479   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1480 fi
1481
1482 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1483
1484 # Transform confdefs.h into DEFS.
1485 # Protect against shell expansion while executing Makefile rules.
1486 # Protect against Makefile macro expansion.
1487 cat > conftest.defs <<\EOF
1488 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1489 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1490 s%\[%\\&%g
1491 s%\]%\\&%g
1492 s%\$%$$%g
1493 EOF
1494 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1495 rm -f conftest.defs
1496
1497
1498 # Without the "./", some shells look in PATH for config.status.
1499 : ${CONFIG_STATUS=./config.status}
1500
1501 echo creating $CONFIG_STATUS
1502 rm -f $CONFIG_STATUS
1503 cat > $CONFIG_STATUS <<EOF
1504 #! /bin/sh
1505 # Generated automatically by configure.
1506 # Run this file to recreate the current configuration.
1507 # This directory was configured as follows,
1508 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1509 #
1510 # $0 $ac_configure_args
1511 #
1512 # Compiler output produced by configure, useful for debugging
1513 # configure, is in ./config.log if it exists.
1514
1515 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1516 for ac_option
1517 do
1518   case "\$ac_option" in
1519   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1520     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1521     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1522   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1523     echo "$CONFIG_STATUS generated by autoconf version 2.12"
1524     exit 0 ;;
1525   -help | --help | --hel | --he | --h)
1526     echo "\$ac_cs_usage"; exit 0 ;;
1527   *) echo "\$ac_cs_usage"; exit 1 ;;
1528   esac
1529 done
1530
1531 ac_given_srcdir=$srcdir
1532 ac_given_INSTALL="$INSTALL"
1533
1534 trap 'rm -fr `echo "make/$OUTDIR_NAME/Configure_variables.make:make/Configure_variables.make.in
1535     Makefile:make/Toplevel.make.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1536 EOF
1537 cat >> $CONFIG_STATUS <<EOF
1538
1539 # Protect against being on the right side of a sed subst in config.status.
1540 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1541  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1542 $ac_vpsub
1543 $extrasub
1544 s%@CFLAGS@%$CFLAGS%g
1545 s%@CPPFLAGS@%$CPPFLAGS%g
1546 s%@CXXFLAGS@%$CXXFLAGS%g
1547 s%@DEFS@%$DEFS%g
1548 s%@LDFLAGS@%$LDFLAGS%g
1549 s%@LIBS@%$LIBS%g
1550 s%@exec_prefix@%$exec_prefix%g
1551 s%@prefix@%$prefix%g
1552 s%@program_transform_name@%$program_transform_name%g
1553 s%@bindir@%$bindir%g
1554 s%@sbindir@%$sbindir%g
1555 s%@libexecdir@%$libexecdir%g
1556 s%@datadir@%$datadir%g
1557 s%@sysconfdir@%$sysconfdir%g
1558 s%@sharedstatedir@%$sharedstatedir%g
1559 s%@localstatedir@%$localstatedir%g
1560 s%@libdir@%$libdir%g
1561 s%@includedir@%$includedir%g
1562 s%@oldincludedir@%$oldincludedir%g
1563 s%@infodir@%$infodir%g
1564 s%@mandir@%$mandir%g
1565 s%@CXX@%$CXX%g
1566 s%@RANLIB@%$RANLIB%g
1567 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1568 s%@INSTALL_DATA@%$INSTALL_DATA%g
1569 s%@TAR@%$TAR%g
1570 s%@FIND@%$FIND%g
1571 s%@OUTDIR_NAME@%$OUTDIR_NAME%g
1572 s%@ICFLAGS@%$ICFLAGS%g
1573 s%@ILDFLAGS@%$ILDFLAGS%g
1574 s%@DEFINES@%$DEFINES%g
1575 s%@COMPILEINFO@%$COMPILEINFO%g
1576 s%@AUTOHEADER@%$AUTOHEADER%g
1577 s%@BISON@%$BISON%g
1578 s%@FLEX@%$FLEX%g
1579 s%@LN@%$LN%g
1580 s%@PERL@%$PERL%g
1581 s%@ZIP@%$ZIP%g
1582 s%@TEXPREFIX@%$TEXPREFIX%g
1583 s%@TEXDIR@%$TEXDIR%g
1584 s%@MFDIR@%$MFDIR%g
1585 s%@DIR_DATADIR@%$DIR_DATADIR%g
1586 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
1587 s%@MAKE@%$MAKE%g
1588 s%@PODMAN@%$PODMAN%g
1589 s%@CXXCPP@%$CXXCPP%g
1590 s%@subdirs@%$subdirs%g
1591
1592 CEOF
1593 EOF
1594
1595 cat >> $CONFIG_STATUS <<\EOF
1596
1597 # Split the substitutions into bite-sized pieces for seds with
1598 # small command number limits, like on Digital OSF/1 and HP-UX.
1599 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1600 ac_file=1 # Number of current file.
1601 ac_beg=1 # First line for current file.
1602 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1603 ac_more_lines=:
1604 ac_sed_cmds=""
1605 while $ac_more_lines; do
1606   if test $ac_beg -gt 1; then
1607     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1608   else
1609     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1610   fi
1611   if test ! -s conftest.s$ac_file; then
1612     ac_more_lines=false
1613     rm -f conftest.s$ac_file
1614   else
1615     if test -z "$ac_sed_cmds"; then
1616       ac_sed_cmds="sed -f conftest.s$ac_file"
1617     else
1618       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1619     fi
1620     ac_file=`expr $ac_file + 1`
1621     ac_beg=$ac_end
1622     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1623   fi
1624 done
1625 if test -z "$ac_sed_cmds"; then
1626   ac_sed_cmds=cat
1627 fi
1628 EOF
1629
1630 cat >> $CONFIG_STATUS <<EOF
1631
1632 CONFIG_FILES=\${CONFIG_FILES-"make/$OUTDIR_NAME/Configure_variables.make:make/Configure_variables.make.in
1633     Makefile:make/Toplevel.make.in"}
1634 EOF
1635 cat >> $CONFIG_STATUS <<\EOF
1636 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1637   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1638   case "$ac_file" in
1639   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1640        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1641   *) ac_file_in="${ac_file}.in" ;;
1642   esac
1643
1644   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1645
1646   # Remove last slash and all that follows it.  Not all systems have dirname.
1647   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1648   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1649     # The file is in a subdirectory.
1650     test ! -d "$ac_dir" && mkdir "$ac_dir"
1651     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1652     # A "../" for each directory in $ac_dir_suffix.
1653     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1654   else
1655     ac_dir_suffix= ac_dots=
1656   fi
1657
1658   case "$ac_given_srcdir" in
1659   .)  srcdir=.
1660       if test -z "$ac_dots"; then top_srcdir=.
1661       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1662   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1663   *) # Relative path.
1664     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1665     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1666   esac
1667
1668   case "$ac_given_INSTALL" in
1669   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1670   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1671   esac
1672
1673   echo creating "$ac_file"
1674   rm -f "$ac_file"
1675   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1676   case "$ac_file" in
1677   *Makefile*) ac_comsub="1i\\
1678 # $configure_input" ;;
1679   *) ac_comsub= ;;
1680   esac
1681
1682   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1683   sed -e "$ac_comsub
1684 s%@configure_input@%$configure_input%g
1685 s%@srcdir@%$srcdir%g
1686 s%@top_srcdir@%$top_srcdir%g
1687 s%@INSTALL@%$INSTALL%g
1688 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1689 fi; done
1690 rm -f conftest.s*
1691
1692 EOF
1693 cat >> $CONFIG_STATUS <<EOF
1694
1695 EOF
1696 cat >> $CONFIG_STATUS <<\EOF
1697
1698 exit 0
1699 EOF
1700 chmod +x $CONFIG_STATUS
1701 rm -fr confdefs* $ac_clean_files
1702 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1703
1704 if test "$no_recursion" != yes; then
1705
1706   # Remove --cache-file and --srcdir arguments so they do not pile up.
1707   ac_sub_configure_args=
1708   ac_prev=
1709   for ac_arg in $ac_configure_args; do
1710     if test -n "$ac_prev"; then
1711       ac_prev=
1712       continue
1713     fi
1714     case "$ac_arg" in
1715     -cache-file | --cache-file | --cache-fil | --cache-fi \
1716     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1717       ac_prev=cache_file ;;
1718     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1719     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1720       ;;
1721     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1722       ac_prev=srcdir ;;
1723     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1724       ;;
1725     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1726     esac
1727   done
1728
1729   for ac_config_dir in flower; do
1730
1731     # Do not complain, so a configure script can configure whichever
1732     # parts of a large source tree are present.
1733     if test ! -d $srcdir/$ac_config_dir; then
1734       continue
1735     fi
1736
1737     echo configuring in $ac_config_dir
1738
1739     case "$srcdir" in
1740     .) ;;
1741     *)
1742       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1743       else
1744         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1745       fi
1746       ;;
1747     esac
1748
1749     ac_popdir=`pwd`
1750     cd $ac_config_dir
1751
1752       # A "../" for each directory in /$ac_config_dir.
1753       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1754
1755     case "$srcdir" in
1756     .) # No --srcdir option.  We are building in place.
1757       ac_sub_srcdir=$srcdir ;;
1758     /*) # Absolute path.
1759       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1760     *) # Relative path.
1761       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1762     esac
1763
1764     # Check for guested configure; otherwise get Cygnus style configure.
1765     if test -f $ac_sub_srcdir/configure; then
1766       ac_sub_configure=$ac_sub_srcdir/configure
1767     elif test -f $ac_sub_srcdir/configure.in; then
1768       ac_sub_configure=$ac_configure
1769     else
1770       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1771       ac_sub_configure=
1772     fi
1773
1774     # The recursion is here.
1775     if test -n "$ac_sub_configure"; then
1776
1777       # Make the cache file name correct relative to the subdirectory.
1778       case "$cache_file" in
1779       /*) ac_sub_cache_file=$cache_file ;;
1780       *) # Relative path.
1781         ac_sub_cache_file="$ac_dots$cache_file" ;;
1782       esac
1783   case "$ac_given_INSTALL" in
1784         [/$]*) INSTALL="$ac_given_INSTALL" ;;
1785         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1786         esac
1787
1788       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1789       # The eval makes quoting arguments work.
1790       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1791       then :
1792       else
1793         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1794       fi
1795     fi
1796
1797     cd $ac_popdir
1798   done
1799 fi
1800
1801
1802 touch make/$OUTDIR_NAME/Site.make
1803
1804 cat << END
1805 For making everything, do:
1806
1807     make                # GNU make
1808
1809 or if you used --outdir=blabla
1810
1811     make OUTDIR_NAME=blabla
1812     
1813 If you want to make site-wide extensions to the makefiles, please use
1814
1815     make/$OUTDIR_NAME/Site.make
1816     
1817 END
1818
1819 if test x$warn_b = "xyes" ; then
1820 cat <<EOF
1821     
1822     **************************************************
1823     Warning: configure encountered warnings or errors.
1824     Please try to resolve these, and rerun configure 
1825     before sending a bugreport.
1826     If you cannot resolve some warnings, the make 
1827     process may still be succesful, but be warned.
1828     **************************************************
1829     
1830 EOF
1831 fi
1832