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