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