]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 1.1.19
[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         # urg
991         # DIRSEP='\\'
992         # PATHSEP=';'
993         #
994         # cygwin fixes all these things.  
995         # it seems these were used because of dos-style TEXINPUTS and
996         # MFINPUTS needed for miktex.
997         # but this breaks parsing of all other cygwin/unix style paths.
998         #
999         # if your (mik)tex breaks, make a:
1000         #    /usr/local/bin/tex:
1001         #    #!/bin/sh
1002         #    TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex 
1003         #
1004         # and
1005         #
1006         #    /usr/local/bin/mf:
1007         #    #!/bin/sh
1008         #    MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf 
1009         #
1010         # this way, you may have buildscripts/out/lilypond-profile 
1011         # 'automatically' sourced from /usr/etc/profile.d/ too.
1012         #
1013         DIRSEP='/'
1014         PATHSEP=':'
1015         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1016     else
1017         DIRSEP='/'
1018         PATHSEP=':'
1019         LN=ln
1020         LN_S='ln -s'
1021         ZIP="zip -r -9"
1022         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1023     fi
1024     
1025     
1026     
1027     
1028     
1029     cat >> confdefs.h <<EOF
1030 #define DIRSEP '${DIRSEP}'
1031 EOF
1032
1033     cat >> confdefs.h <<EOF
1034 #define PATHSEP '${PATHSEP}'
1035 EOF
1036
1037     
1038     
1039   
1040    
1041     
1042     if test "$datadir" = "\${prefix}/share"; then
1043             datadir='${prefix}/share/'$package
1044     fi
1045     DIR_DATADIR=${datadir}
1046     presome=${prefix}
1047     if test "$prefix" = "NONE"; then
1048             presome=${ac_default_prefix}
1049     fi
1050     DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1051     
1052     
1053     cat >> confdefs.h <<EOF
1054 #define DIR_DATADIR "${DIR_DATADIR}"
1055 EOF
1056
1057
1058
1059
1060 # For all packages except the StepMake package itself
1061 subdirs="stepmake"
1062
1063
1064 # Uncomment the configuration options your package needs.
1065
1066     # -O is necessary to get inlining
1067     OPTIMIZE=""
1068     CXXFLAGS=${CXXFLAGS:-""}
1069     CFLAGS=${CFLAGS:-""}
1070     checking_b=yes
1071     optimise_b=no
1072     profile_b=no
1073     debug_b=yes
1074
1075     # Check whether --enable-checking or --disable-checking was given.
1076 if test "${enable_checking+set}" = set; then
1077   enableval="$enable_checking"
1078   checking_b=$enableval 
1079 fi
1080
1081
1082     # actually, the default is: tja='-O' to get inlining...
1083     # off=''  --jcn
1084
1085     #actually, that sucks.
1086     #  tja looks like a typo.  Default is optimisation off. --hwn
1087     
1088     # Check whether --enable-optimise or --disable-optimise was given.
1089 if test "${enable_optimise+set}" = set; then
1090   enableval="$enable_optimise"
1091   optimise_b=$enableval
1092 fi
1093
1094     
1095     # Check whether --enable-profiling or --disable-profiling was given.
1096 if test "${enable_profiling+set}" = set; then
1097   enableval="$enable_profiling"
1098   profile_b=$enableval
1099 fi
1100
1101     
1102     # Check whether --enable-debugging or --disable-debugging was given.
1103 if test "${enable_debugging+set}" = set; then
1104   enableval="$enable_debugging"
1105   debug_b=$enableval
1106 fi
1107
1108
1109     # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1110 if test "${enable_mingw_prefix+set}" = set; then
1111   enableval="$enable_mingw_prefix"
1112   MINGWPREFIX=$enableval
1113 else
1114   MINGWPREFIX=no
1115 fi
1116
1117
1118     if test "$printing_b" = no; then
1119         # ugh
1120         cat >> confdefs.h <<\EOF
1121 #define NPRINT 1
1122 EOF
1123
1124         DEFINES="$DEFINES -DNPRINT"
1125     fi
1126         
1127     if test "$checking_b" = no; then
1128         # ugh
1129         cat >> confdefs.h <<\EOF
1130 #define NDEBUG 1
1131 EOF
1132
1133         DEFINES="$DEFINES -DNDEBUG"
1134     fi
1135
1136     if test "$optimise_b" = yes; then
1137         OPTIMIZE="-O2 -finline-functions"
1138     fi
1139
1140     if test "$optimise_b" = no; then
1141         OPTIMIZE=""
1142     fi
1143
1144     if test $profile_b = yes; then
1145         EXTRA_LIBES="-pg"
1146         OPTIMIZE="$OPTIMIZE -pg"
1147     fi
1148
1149     if test $debug_b = yes; then        
1150         OPTIMIZE="$OPTIMIZE -g"
1151     fi
1152
1153     # however, C++ support in mingw32 v 0.1.4 is still flaky
1154     if test x$MINGWPREFIX != xno; then 
1155         ICFLAGS="-I$MINGWPREFIX/include"
1156         ILDFLAGS="-$MINGWPREFIX/lib"
1157     fi
1158
1159     # Extract the first word of "gcc", so it can be a program name with args.
1160 set dummy gcc; ac_word=$2
1161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162 echo "configure:1163: checking for $ac_word" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1164   echo $ac_n "(cached) $ac_c" 1>&6
1165 else
1166   if test -n "$CC"; then
1167   ac_cv_prog_CC="$CC" # Let the user override the test.
1168 else
1169   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1170   for ac_dir in $PATH; do
1171     test -z "$ac_dir" && ac_dir=.
1172     if test -f $ac_dir/$ac_word; then
1173       ac_cv_prog_CC="gcc"
1174       break
1175     fi
1176   done
1177   IFS="$ac_save_ifs"
1178 fi
1179 fi
1180 CC="$ac_cv_prog_CC"
1181 if test -n "$CC"; then
1182   echo "$ac_t""$CC" 1>&6
1183 else
1184   echo "$ac_t""no" 1>&6
1185 fi
1186
1187 if test -z "$CC"; then
1188   # Extract the first word of "cc", so it can be a program name with args.
1189 set dummy cc; ac_word=$2
1190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1191 echo "configure:1192: checking for $ac_word" >&5
1192 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1193   echo $ac_n "(cached) $ac_c" 1>&6
1194 else
1195   if test -n "$CC"; then
1196   ac_cv_prog_CC="$CC" # Let the user override the test.
1197 else
1198   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1199   ac_prog_rejected=no
1200   for ac_dir in $PATH; do
1201     test -z "$ac_dir" && ac_dir=.
1202     if test -f $ac_dir/$ac_word; then
1203       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1204         ac_prog_rejected=yes
1205         continue
1206       fi
1207       ac_cv_prog_CC="cc"
1208       break
1209     fi
1210   done
1211   IFS="$ac_save_ifs"
1212 if test $ac_prog_rejected = yes; then
1213   # We found a bogon in the path, so make sure we never use it.
1214   set dummy $ac_cv_prog_CC
1215   shift
1216   if test $# -gt 0; then
1217     # We chose a different compiler from the bogus one.
1218     # However, it has the same basename, so the bogon will be chosen
1219     # first if we set CC to just the basename; use the full file name.
1220     shift
1221     set dummy "$ac_dir/$ac_word" "$@"
1222     shift
1223     ac_cv_prog_CC="$@"
1224   fi
1225 fi
1226 fi
1227 fi
1228 CC="$ac_cv_prog_CC"
1229 if test -n "$CC"; then
1230   echo "$ac_t""$CC" 1>&6
1231 else
1232   echo "$ac_t""no" 1>&6
1233 fi
1234
1235   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1236 fi
1237
1238 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1239 echo "configure:1240: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1240
1241 ac_ext=c
1242 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1243 ac_cpp='$CPP $CPPFLAGS'
1244 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1245 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1246 cross_compiling=$ac_cv_prog_cc_cross
1247
1248 cat > conftest.$ac_ext <<EOF
1249 #line 1250 "configure"
1250 #include "confdefs.h"
1251 main(){return(0);}
1252 EOF
1253 if { (eval echo configure:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1254   ac_cv_prog_cc_works=yes
1255   # If we can't run a trivial program, we are probably using a cross compiler.
1256   if (./conftest; exit) 2>/dev/null; then
1257     ac_cv_prog_cc_cross=no
1258   else
1259     ac_cv_prog_cc_cross=yes
1260   fi
1261 else
1262   echo "configure: failed program was:" >&5
1263   cat conftest.$ac_ext >&5
1264   ac_cv_prog_cc_works=no
1265 fi
1266 rm -fr conftest*
1267
1268 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1269 if test $ac_cv_prog_cc_works = no; then
1270   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1271 fi
1272 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1273 echo "configure:1274: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1274 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1275 cross_compiling=$ac_cv_prog_cc_cross
1276
1277 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1278 echo "configure:1279: checking whether we are using GNU C" >&5
1279 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1280   echo $ac_n "(cached) $ac_c" 1>&6
1281 else
1282   cat > conftest.c <<EOF
1283 #ifdef __GNUC__
1284   yes;
1285 #endif
1286 EOF
1287 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1288   ac_cv_prog_gcc=yes
1289 else
1290   ac_cv_prog_gcc=no
1291 fi
1292 fi
1293
1294 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1295
1296 if test $ac_cv_prog_gcc = yes; then
1297   GCC=yes
1298   ac_test_CFLAGS="${CFLAGS+set}"
1299   ac_save_CFLAGS="$CFLAGS"
1300   CFLAGS=
1301   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1302 echo "configure:1303: checking whether ${CC-cc} accepts -g" >&5
1303 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1304   echo $ac_n "(cached) $ac_c" 1>&6
1305 else
1306   echo 'void f(){}' > conftest.c
1307 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1308   ac_cv_prog_cc_g=yes
1309 else
1310   ac_cv_prog_cc_g=no
1311 fi
1312 rm -f conftest*
1313
1314 fi
1315
1316 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1317   if test "$ac_test_CFLAGS" = set; then
1318     CFLAGS="$ac_save_CFLAGS"
1319   elif test $ac_cv_prog_cc_g = yes; then
1320     CFLAGS="-g -O2"
1321   else
1322     CFLAGS="-O2"
1323   fi
1324 else
1325   GCC=
1326   test "${CFLAGS+set}" = set || CFLAGS="-g"
1327 fi
1328
1329     LD='$(CC)'
1330     
1331
1332     CFLAGS="$CFLAGS $OPTIMIZE"
1333     CPPFLAGS=${CPPFLAGS:-""}
1334     
1335     
1336     
1337     
1338     
1339     
1340     
1341
1342 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1343
1344 printing_b=no
1345 # Check whether --enable-printing or --disable-printing was given.
1346 if test "${enable_printing+set}" = set; then
1347   enableval="$enable_printing"
1348   printing_b=$enableval
1349 fi
1350
1351     
1352 if test "$optimise_b" = yes; then
1353     DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1354     cat >> confdefs.h <<\EOF
1355 #define STRINGS_UTILS_INLINED 1
1356 EOF
1357
1358 fi
1359
1360 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1361 echo "configure:1362: checking how to run the C++ preprocessor" >&5
1362 if test -z "$CXXCPP"; then
1363 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1364   echo $ac_n "(cached) $ac_c" 1>&6
1365 else
1366   ac_ext=C
1367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1368 ac_cpp='$CXXCPP $CPPFLAGS'
1369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1370 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1371 cross_compiling=$ac_cv_prog_cxx_cross
1372   CXXCPP="${CXX-g++} -E"
1373   cat > conftest.$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1376 #include <stdlib.h>
1377 EOF
1378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1379 { (eval echo configure:1380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1380 ac_err=`grep -v '^ *+' conftest.out`
1381 if test -z "$ac_err"; then
1382   :
1383 else
1384   echo "$ac_err" >&5
1385   echo "configure: failed program was:" >&5
1386   cat conftest.$ac_ext >&5
1387   rm -rf conftest*
1388   CXXCPP=/lib/cpp
1389 fi
1390 rm -f conftest*
1391   ac_cv_prog_CXXCPP="$CXXCPP"
1392 fi
1393 fi
1394 CXXCPP="$ac_cv_prog_CXXCPP"
1395 echo "$ac_t""$CXXCPP" 1>&6
1396
1397
1398     ac_ext=C
1399 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1400 ac_cpp='$CXXCPP $CPPFLAGS'
1401 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1402 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1403 cross_compiling=$ac_cv_prog_cxx_cross
1404
1405     for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1406 do
1407 # Extract the first word of "$ac_prog", so it can be a program name with args.
1408 set dummy $ac_prog; ac_word=$2
1409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1410 echo "configure:1411: checking for $ac_word" >&5
1411 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1412   echo $ac_n "(cached) $ac_c" 1>&6
1413 else
1414   if test -n "$CXX"; then
1415   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1416 else
1417   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1418   for ac_dir in $PATH; do
1419     test -z "$ac_dir" && ac_dir=.
1420     if test -f $ac_dir/$ac_word; then
1421       ac_cv_prog_CXX="$ac_prog"
1422       break
1423     fi
1424   done
1425   IFS="$ac_save_ifs"
1426 fi
1427 fi
1428 CXX="$ac_cv_prog_CXX"
1429 if test -n "$CXX"; then
1430   echo "$ac_t""$CXX" 1>&6
1431 else
1432   echo "$ac_t""no" 1>&6
1433 fi
1434
1435 test -n "$CXX" && break
1436 done
1437 test -n "$CXX" || CXX="gcc"
1438
1439
1440 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1441 echo "configure:1442: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1442
1443 ac_ext=C
1444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1445 ac_cpp='$CXXCPP $CPPFLAGS'
1446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1447 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1448 cross_compiling=$ac_cv_prog_cxx_cross
1449
1450 cat > conftest.$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1453 main(){return(0);}
1454 EOF
1455 if { (eval echo configure:1456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1456   ac_cv_prog_cxx_works=yes
1457   # If we can't run a trivial program, we are probably using a cross compiler.
1458   if (./conftest; exit) 2>/dev/null; then
1459     ac_cv_prog_cxx_cross=no
1460   else
1461     ac_cv_prog_cxx_cross=yes
1462   fi
1463 else
1464   echo "configure: failed program was:" >&5
1465   cat conftest.$ac_ext >&5
1466   ac_cv_prog_cxx_works=no
1467 fi
1468 rm -fr conftest*
1469
1470 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1471 if test $ac_cv_prog_cxx_works = no; then
1472   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1473 fi
1474 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1475 echo "configure:1476: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1476 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1477 cross_compiling=$ac_cv_prog_cxx_cross
1478
1479 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1480 echo "configure:1481: checking whether we are using GNU C++" >&5
1481 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1482   echo $ac_n "(cached) $ac_c" 1>&6
1483 else
1484   cat > conftest.C <<EOF
1485 #ifdef __GNUC__
1486   yes;
1487 #endif
1488 EOF
1489 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1490   ac_cv_prog_gxx=yes
1491 else
1492   ac_cv_prog_gxx=no
1493 fi
1494 fi
1495
1496 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1497
1498 if test $ac_cv_prog_gxx = yes; then
1499   GXX=yes
1500   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1501   ac_save_CXXFLAGS="$CXXFLAGS"
1502   CXXFLAGS=
1503   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1504 echo "configure:1505: checking whether ${CXX-g++} accepts -g" >&5
1505 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1506   echo $ac_n "(cached) $ac_c" 1>&6
1507 else
1508   echo 'void f(){}' > conftest.cc
1509 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1510   ac_cv_prog_cxx_g=yes
1511 else
1512   ac_cv_prog_cxx_g=no
1513 fi
1514 rm -f conftest*
1515
1516 fi
1517
1518 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1519   if test "$ac_test_CXXFLAGS" = set; then
1520     CXXFLAGS="$ac_save_CXXFLAGS"
1521   elif test $ac_cv_prog_cxx_g = yes; then
1522     CXXFLAGS="-g -O2"
1523   else
1524     CXXFLAGS="-O2"
1525   fi
1526 else
1527   GXX=
1528   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1529 fi
1530
1531
1532     ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1533 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1534 echo "configure:1535: checking for FlexLexer.h" >&5
1535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1536   echo $ac_n "(cached) $ac_c" 1>&6
1537 else
1538   cat > conftest.$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1541 #include <FlexLexer.h>
1542 EOF
1543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1544 { (eval echo configure:1545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1545 ac_err=`grep -v '^ *+' conftest.out`
1546 if test -z "$ac_err"; then
1547   rm -rf conftest*
1548   eval "ac_cv_header_$ac_safe=yes"
1549 else
1550   echo "$ac_err" >&5
1551   echo "configure: failed program was:" >&5
1552   cat conftest.$ac_ext >&5
1553   rm -rf conftest*
1554   eval "ac_cv_header_$ac_safe=no"
1555 fi
1556 rm -f conftest*
1557 fi
1558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1559   echo "$ac_t""yes" 1>&6
1560   true
1561 else
1562   echo "$ac_t""no" 1>&6
1563
1564     echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1565     warn_b=yes
1566
1567 fi
1568
1569
1570     CPPFLAGS="$CPPFLAGS $DEFINES"
1571     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1572     LDFLAGS=$EXTRA_LIBES
1573
1574     
1575     
1576     LD='$(CXX)'
1577     
1578
1579
1580     # ugh autoconf
1581     # urg, egcs: how to check for egcs >= 1.1?
1582         if $CXX --version | grep '2\.8' > /dev/null ||
1583         $CXX --version | grep 'egcs' > /dev/null
1584         then
1585             true
1586     else
1587             
1588     echo "configure: warning: can\'t find g++ 2.8 or egcs 1.1" 1>&2
1589     warn_b=yes
1590
1591     fi
1592
1593
1594     echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1595 echo "configure:1596: checking whether explicit instantiation is needed" >&5
1596 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1597   echo $ac_n "(cached) $ac_c" 1>&6
1598 else
1599   cat > conftest.$ac_ext <<EOF
1600 #line 1601 "configure"
1601 #include "confdefs.h"
1602
1603     template <class T> struct foo { static int baz; };
1604     template <class T> int foo<T>::baz = 1;
1605     
1606 int main() {
1607  return foo<int>::baz; 
1608 ; return 0; }
1609 EOF
1610 if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1611   rm -rf conftest*
1612   lily_cv_need_explicit_instantiation=no
1613 else
1614   echo "configure: failed program was:" >&5
1615   cat conftest.$ac_ext >&5
1616   rm -rf conftest*
1617   lily_cv_need_explicit_instantiation=yes
1618 fi
1619 rm -f conftest*
1620 fi
1621
1622 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1623     if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1624         cat >> confdefs.h <<\EOF
1625 #define NEED_EXPLICIT_INSTANTIATION 1
1626 EOF
1627
1628     fi
1629
1630
1631     # ugh, automake: we want (and check for) bison
1632     for ac_prog in 'bison -y' byacc
1633 do
1634 # Extract the first word of "$ac_prog", so it can be a program name with args.
1635 set dummy $ac_prog; ac_word=$2
1636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1637 echo "configure:1638: checking for $ac_word" >&5
1638 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1639   echo $ac_n "(cached) $ac_c" 1>&6
1640 else
1641   if test -n "$YACC"; then
1642   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1643 else
1644   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1645   for ac_dir in $PATH; do
1646     test -z "$ac_dir" && ac_dir=.
1647     if test -f $ac_dir/$ac_word; then
1648       ac_cv_prog_YACC="$ac_prog"
1649       break
1650     fi
1651   done
1652   IFS="$ac_save_ifs"
1653 fi
1654 fi
1655 YACC="$ac_cv_prog_YACC"
1656 if test -n "$YACC"; then
1657   echo "$ac_t""$YACC" 1>&6
1658 else
1659   echo "$ac_t""no" 1>&6
1660 fi
1661
1662 test -n "$YACC" && break
1663 done
1664 test -n "$YACC" || YACC="yacc"
1665
1666     # ugh, automake: we want (and check for) flex
1667     # AC_PROG_LEX
1668     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
1669
1670     # AC_DECL_YYTEXT
1671     # ugh, ugh
1672     ac_cv_prog_lex_root=lex.yy
1673
1674     for ac_prog in bison
1675 do
1676 # Extract the first word of "$ac_prog", so it can be a program name with args.
1677 set dummy $ac_prog; ac_word=$2
1678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1679 echo "configure:1680: checking for $ac_word" >&5
1680 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1681   echo $ac_n "(cached) $ac_c" 1>&6
1682 else
1683   if test -n "$BISON"; then
1684   ac_cv_prog_BISON="$BISON" # Let the user override the test.
1685 else
1686   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1687   for ac_dir in $PATH; do
1688     test -z "$ac_dir" && ac_dir=.
1689     if test -f $ac_dir/$ac_word; then
1690       ac_cv_prog_BISON="$ac_prog"
1691       break
1692     fi
1693   done
1694   IFS="$ac_save_ifs"
1695 fi
1696 fi
1697 BISON="$ac_cv_prog_BISON"
1698 if test -n "$BISON"; then
1699   echo "$ac_t""$BISON" 1>&6
1700 else
1701   echo "$ac_t""no" 1>&6
1702 fi
1703
1704 test -n "$BISON" && break
1705 done
1706 test -n "$BISON" || BISON="error"
1707
1708     for ac_prog in flex
1709 do
1710 # Extract the first word of "$ac_prog", so it can be a program name with args.
1711 set dummy $ac_prog; ac_word=$2
1712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1713 echo "configure:1714: checking for $ac_word" >&5
1714 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1715   echo $ac_n "(cached) $ac_c" 1>&6
1716 else
1717   if test -n "$FLEX"; then
1718   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1719 else
1720   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1721   for ac_dir in $PATH; do
1722     test -z "$ac_dir" && ac_dir=.
1723     if test -f $ac_dir/$ac_word; then
1724       ac_cv_prog_FLEX="$ac_prog"
1725       break
1726     fi
1727   done
1728   IFS="$ac_save_ifs"
1729 fi
1730 fi
1731 FLEX="$ac_cv_prog_FLEX"
1732 if test -n "$FLEX"; then
1733   echo "$ac_t""$FLEX" 1>&6
1734 else
1735   echo "$ac_t""no" 1>&6
1736 fi
1737
1738 test -n "$FLEX" && break
1739 done
1740 test -n "$FLEX" || FLEX="error"
1741
1742     
1743         result="`echo \"$BISON\" | grep echo`"
1744         if test "x$BISON" = "xerror" -o "x$result" != "x"; then
1745                 
1746     echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
1747     warn_b=yes
1748
1749         fi
1750
1751     
1752         result="`echo \"$FLEX\" | grep echo`"
1753         if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
1754                 
1755     echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
1756     warn_b=yes
1757
1758         fi
1759
1760
1761     if test $BISON != "error"; then
1762         bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
1763         if test $bison_version -lt 25; then
1764             
1765     echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
1766     warn_b=yes
1767
1768         fi      
1769     fi
1770
1771     
1772     
1773
1774
1775     for ac_prog in ar
1776 do
1777 # Extract the first word of "$ac_prog", so it can be a program name with args.
1778 set dummy $ac_prog; ac_word=$2
1779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1780 echo "configure:1781: checking for $ac_word" >&5
1781 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1782   echo $ac_n "(cached) $ac_c" 1>&6
1783 else
1784   if test -n "$AR"; then
1785   ac_cv_prog_AR="$AR" # Let the user override the test.
1786 else
1787   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1788   for ac_dir in $PATH; do
1789     test -z "$ac_dir" && ac_dir=.
1790     if test -f $ac_dir/$ac_word; then
1791       ac_cv_prog_AR="$ac_prog"
1792       break
1793     fi
1794   done
1795   IFS="$ac_save_ifs"
1796 fi
1797 fi
1798 AR="$ac_cv_prog_AR"
1799 if test -n "$AR"; then
1800   echo "$ac_t""$AR" 1>&6
1801 else
1802   echo "$ac_t""no" 1>&6
1803 fi
1804
1805 test -n "$AR" && break
1806 done
1807 test -n "$AR" || AR="error"
1808
1809     # Extract the first word of "ranlib", so it can be a program name with args.
1810 set dummy ranlib; ac_word=$2
1811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1812 echo "configure:1813: checking for $ac_word" >&5
1813 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1814   echo $ac_n "(cached) $ac_c" 1>&6
1815 else
1816   if test -n "$RANLIB"; then
1817   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1818 else
1819   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1820   for ac_dir in $PATH; do
1821     test -z "$ac_dir" && ac_dir=.
1822     if test -f $ac_dir/$ac_word; then
1823       ac_cv_prog_RANLIB="ranlib"
1824       break
1825     fi
1826   done
1827   IFS="$ac_save_ifs"
1828   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1829 fi
1830 fi
1831 RANLIB="$ac_cv_prog_RANLIB"
1832 if test -n "$RANLIB"; then
1833   echo "$ac_t""$RANLIB" 1>&6
1834 else
1835   echo "$ac_t""no" 1>&6
1836 fi
1837
1838
1839     
1840     
1841
1842 # AC_STEPMAKE_LIBTOOL
1843
1844     lang=English
1845     ALL_LINGUAS="en nl"
1846
1847     # with/enable ??
1848     # Check whether --with-localedir or --without-localedir was given.
1849 if test "${with_localedir+set}" = set; then
1850   withval="$with_localedir"
1851   localedir=$with_localedir
1852 else
1853   localedir='${prefix}/share/locale'
1854 fi
1855
1856
1857     # Check whether --with-lang or --without-lang was given.
1858 if test "${with_lang+set}" = set; then
1859   withval="$with_lang"
1860   language=$with_lang
1861 else
1862   language=English
1863 fi
1864
1865
1866     echo $ac_n "checking language""... $ac_c" 1>&6
1867 echo "configure:1868: checking language" >&5    
1868     case "$language" in
1869       En* | en* | Am* | am* | US* | us*)
1870             lang=English;;
1871       NL | nl | Du* | du* | Ned* | ned*)
1872             lang=Dutch;;
1873       "")
1874             lang=English;;
1875       *)
1876             lang=unknown;;
1877     esac
1878     echo "$ac_t""$lang" 1>&6
1879
1880     if test "$lang" = "unknown" ; then
1881         
1882     echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
1883     warn_b=yes
1884
1885     fi
1886
1887
1888
1889     DIR_LOCALEDIR=${localedir}
1890     presome=${prefix}
1891     if test "$prefix" = "NONE"; then
1892             presome=${ac_default_prefix}
1893     fi
1894     DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
1895     
1896     
1897     cat >> confdefs.h <<EOF
1898 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
1899 EOF
1900
1901
1902     echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
1903 echo "configure:1904: checking for gettext in -lintl" >&5
1904 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
1905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1906   echo $ac_n "(cached) $ac_c" 1>&6
1907 else
1908   ac_save_LIBS="$LIBS"
1909 LIBS="-lintl  $LIBS"
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 /* Override any gcc2 internal prototype to avoid an error.  */
1914 #ifdef __cplusplus
1915 extern "C"
1916 #endif
1917 /* We use char because int might match the return type of a gcc2
1918     builtin and then its argument prototype would still apply.  */
1919 char gettext();
1920
1921 int main() {
1922 gettext()
1923 ; return 0; }
1924 EOF
1925 if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1926   rm -rf conftest*
1927   eval "ac_cv_lib_$ac_lib_var=yes"
1928 else
1929   echo "configure: failed program was:" >&5
1930   cat conftest.$ac_ext >&5
1931   rm -rf conftest*
1932   eval "ac_cv_lib_$ac_lib_var=no"
1933 fi
1934 rm -f conftest*
1935 LIBS="$ac_save_LIBS"
1936
1937 fi
1938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1939   echo "$ac_t""yes" 1>&6
1940     ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1941     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1942   cat >> confdefs.h <<EOF
1943 #define $ac_tr_lib 1
1944 EOF
1945
1946   LIBS="-lintl $LIBS"
1947
1948 else
1949   echo "$ac_t""no" 1>&6
1950 fi
1951
1952     for ac_func in gettext
1953 do
1954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1955 echo "configure:1956: checking for $ac_func" >&5
1956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1957   echo $ac_n "(cached) $ac_c" 1>&6
1958 else
1959   cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1962 /* System header to define __stub macros and hopefully few prototypes,
1963     which can conflict with char $ac_func(); below.  */
1964 #include <assert.h>
1965 /* Override any gcc2 internal prototype to avoid an error.  */
1966 #ifdef __cplusplus
1967 extern "C"
1968 #endif
1969 /* We use char because int might match the return type of a gcc2
1970     builtin and then its argument prototype would still apply.  */
1971 char $ac_func();
1972
1973 int main() {
1974
1975 /* The GNU C library defines this for functions which it implements
1976     to always fail with ENOSYS.  Some functions are actually named
1977     something starting with __ and the normal name is an alias.  */
1978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1979 choke me
1980 #else
1981 $ac_func();
1982 #endif
1983
1984 ; return 0; }
1985 EOF
1986 if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1987   rm -rf conftest*
1988   eval "ac_cv_func_$ac_func=yes"
1989 else
1990   echo "configure: failed program was:" >&5
1991   cat conftest.$ac_ext >&5
1992   rm -rf conftest*
1993   eval "ac_cv_func_$ac_func=no"
1994 fi
1995 rm -f conftest*
1996 fi
1997
1998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1999   echo "$ac_t""yes" 1>&6
2000     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2001   cat >> confdefs.h <<EOF
2002 #define $ac_tr_func 1
2003 EOF
2004  
2005 else
2006   echo "$ac_t""no" 1>&6
2007 fi
2008 done
2009
2010
2011
2012     # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2013     for ac_prog in msgfmt
2014 do
2015 # Extract the first word of "$ac_prog", so it can be a program name with args.
2016 set dummy $ac_prog; ac_word=$2
2017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2018 echo "configure:2019: checking for $ac_word" >&5
2019 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2020   echo $ac_n "(cached) $ac_c" 1>&6
2021 else
2022   if test -n "$MSGFMT"; then
2023   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2024 else
2025   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2026   for ac_dir in $PATH; do
2027     test -z "$ac_dir" && ac_dir=.
2028     if test -f $ac_dir/$ac_word; then
2029       ac_cv_prog_MSGFMT="$ac_prog"
2030       break
2031     fi
2032   done
2033   IFS="$ac_save_ifs"
2034 fi
2035 fi
2036 MSGFMT="$ac_cv_prog_MSGFMT"
2037 if test -n "$MSGFMT"; then
2038   echo "$ac_t""$MSGFMT" 1>&6
2039 else
2040   echo "$ac_t""no" 1>&6
2041 fi
2042
2043 test -n "$MSGFMT" && break
2044 done
2045 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2046
2047     echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2048 echo "configure:2049: checking whether msgfmt accepts -o" >&5
2049     msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2050     if test "$msgfmt_output" = ""; then
2051         echo "$ac_t""yes" 1>&6
2052     else
2053         # urg
2054         MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2055         echo "$ac_t""no" 1>&6
2056         
2057     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2058     warn_b=yes
2059
2060     fi
2061     if test ! -n "$MSGFMT"; then
2062         
2063     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2064     warn_b=yes
2065
2066     fi
2067
2068
2069     # urg, never know what names these teTeX guys will think up
2070     for ac_prog in mf
2071 do
2072 # Extract the first word of "$ac_prog", so it can be a program name with args.
2073 set dummy $ac_prog; ac_word=$2
2074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2075 echo "configure:2076: checking for $ac_word" >&5
2076 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2077   echo $ac_n "(cached) $ac_c" 1>&6
2078 else
2079   if test -n "$METAFONT"; then
2080   ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2081 else
2082   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2083   for ac_dir in $PATH; do
2084     test -z "$ac_dir" && ac_dir=.
2085     if test -f $ac_dir/$ac_word; then
2086       ac_cv_prog_METAFONT="$ac_prog"
2087       break
2088     fi
2089   done
2090   IFS="$ac_save_ifs"
2091 fi
2092 fi
2093 METAFONT="$ac_cv_prog_METAFONT"
2094 if test -n "$METAFONT"; then
2095   echo "$ac_t""$METAFONT" 1>&6
2096 else
2097   echo "$ac_t""no" 1>&6
2098 fi
2099
2100 test -n "$METAFONT" && break
2101 done
2102 test -n "$METAFONT" || METAFONT="no"
2103
2104     if test "x$METAFONT" = "xno"; then
2105         for ac_prog in mfont
2106 do
2107 # Extract the first word of "$ac_prog", so it can be a program name with args.
2108 set dummy $ac_prog; ac_word=$2
2109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2110 echo "configure:2111: checking for $ac_word" >&5
2111 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2112   echo $ac_n "(cached) $ac_c" 1>&6
2113 else
2114   if test -n "$MFONT"; then
2115   ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2116 else
2117   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2118   for ac_dir in $PATH; do
2119     test -z "$ac_dir" && ac_dir=.
2120     if test -f $ac_dir/$ac_word; then
2121       ac_cv_prog_MFONT="$ac_prog"
2122       break
2123     fi
2124   done
2125   IFS="$ac_save_ifs"
2126 fi
2127 fi
2128 MFONT="$ac_cv_prog_MFONT"
2129 if test -n "$MFONT"; then
2130   echo "$ac_t""$MFONT" 1>&6
2131 else
2132   echo "$ac_t""no" 1>&6
2133 fi
2134
2135 test -n "$MFONT" && break
2136 done
2137 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2138
2139         METAFONT=$MFONT
2140     fi
2141
2142     for ac_prog in mp
2143 do
2144 # Extract the first word of "$ac_prog", so it can be a program name with args.
2145 set dummy $ac_prog; ac_word=$2
2146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2147 echo "configure:2148: checking for $ac_word" >&5
2148 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2149   echo $ac_n "(cached) $ac_c" 1>&6
2150 else
2151   if test -n "$METAPOST"; then
2152   ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2153 else
2154   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2155   for ac_dir in $PATH; do
2156     test -z "$ac_dir" && ac_dir=.
2157     if test -f $ac_dir/$ac_word; then
2158       ac_cv_prog_METAPOST="$ac_prog"
2159       break
2160     fi
2161   done
2162   IFS="$ac_save_ifs"
2163 fi
2164 fi
2165 METAPOST="$ac_cv_prog_METAPOST"
2166 if test -n "$METAPOST"; then
2167   echo "$ac_t""$METAPOST" 1>&6
2168 else
2169   echo "$ac_t""no" 1>&6
2170 fi
2171
2172 test -n "$METAPOST" && break
2173 done
2174 test -n "$METAPOST" || METAPOST="no"
2175
2176     if test "x$METAPOST" = "xno"; then
2177         for ac_prog in mpost
2178 do
2179 # Extract the first word of "$ac_prog", so it can be a program name with args.
2180 set dummy $ac_prog; ac_word=$2
2181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_word" >&5
2183 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2184   echo $ac_n "(cached) $ac_c" 1>&6
2185 else
2186   if test -n "$MPOST"; then
2187   ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2188 else
2189   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2190   for ac_dir in $PATH; do
2191     test -z "$ac_dir" && ac_dir=.
2192     if test -f $ac_dir/$ac_word; then
2193       ac_cv_prog_MPOST="$ac_prog"
2194       break
2195     fi
2196   done
2197   IFS="$ac_save_ifs"
2198 fi
2199 fi
2200 MPOST="$ac_cv_prog_MPOST"
2201 if test -n "$MPOST"; then
2202   echo "$ac_t""$MPOST" 1>&6
2203 else
2204   echo "$ac_t""no" 1>&6
2205 fi
2206
2207 test -n "$MPOST" && break
2208 done
2209 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2210
2211         METAPOST=$MPOST
2212     fi
2213
2214     
2215     
2216
2217 # AC_STEPMAKE_TEXMF_DIRS
2218
2219     if test "x$YODL" = "x"; then 
2220         for ac_prog in striproff
2221 do
2222 # Extract the first word of "$ac_prog", so it can be a program name with args.
2223 set dummy $ac_prog; ac_word=$2
2224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2225 echo "configure:2226: checking for $ac_word" >&5
2226 if eval "test \"`echo '$''{'ac_cv_prog_STRIPROFF'+set}'`\" = set"; then
2227   echo $ac_n "(cached) $ac_c" 1>&6
2228 else
2229   if test -n "$STRIPROFF"; then
2230   ac_cv_prog_STRIPROFF="$STRIPROFF" # Let the user override the test.
2231 else
2232   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2233   for ac_dir in $PATH; do
2234     test -z "$ac_dir" && ac_dir=.
2235     if test -f $ac_dir/$ac_word; then
2236       ac_cv_prog_STRIPROFF="$ac_prog"
2237       break
2238     fi
2239   done
2240   IFS="$ac_save_ifs"
2241 fi
2242 fi
2243 STRIPROFF="$ac_cv_prog_STRIPROFF"
2244 if test -n "$STRIPROFF"; then
2245   echo "$ac_t""$STRIPROFF" 1>&6
2246 else
2247   echo "$ac_t""no" 1>&6
2248 fi
2249
2250 test -n "$STRIPROFF" && break
2251 done
2252 test -n "$STRIPROFF" || STRIPROFF="-echo no striproff"
2253
2254         for ac_prog in yodl
2255 do
2256 # Extract the first word of "$ac_prog", so it can be a program name with args.
2257 set dummy $ac_prog; ac_word=$2
2258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2259 echo "configure:2260: checking for $ac_word" >&5
2260 if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
2261   echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263   if test -n "$YODL"; then
2264   ac_cv_prog_YODL="$YODL" # Let the user override the test.
2265 else
2266   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2267   for ac_dir in $PATH; do
2268     test -z "$ac_dir" && ac_dir=.
2269     if test -f $ac_dir/$ac_word; then
2270       ac_cv_prog_YODL="$ac_prog"
2271       break
2272     fi
2273   done
2274   IFS="$ac_save_ifs"
2275 fi
2276 fi
2277 YODL="$ac_cv_prog_YODL"
2278 if test -n "$YODL"; then
2279   echo "$ac_t""$YODL" 1>&6
2280 else
2281   echo "$ac_t""no" 1>&6
2282 fi
2283
2284 test -n "$YODL" && break
2285 done
2286 test -n "$YODL" || YODL="-echo no yodl"
2287
2288         for ac_prog in yodl2html
2289 do
2290 # Extract the first word of "$ac_prog", so it can be a program name with args.
2291 set dummy $ac_prog; ac_word=$2
2292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2293 echo "configure:2294: checking for $ac_word" >&5
2294 if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
2295   echo $ac_n "(cached) $ac_c" 1>&6
2296 else
2297   if test -n "$YODL2HTML"; then
2298   ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
2299 else
2300   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2301   for ac_dir in $PATH; do
2302     test -z "$ac_dir" && ac_dir=.
2303     if test -f $ac_dir/$ac_word; then
2304       ac_cv_prog_YODL2HTML="$ac_prog"
2305       break
2306     fi
2307   done
2308   IFS="$ac_save_ifs"
2309 fi
2310 fi
2311 YODL2HTML="$ac_cv_prog_YODL2HTML"
2312 if test -n "$YODL2HTML"; then
2313   echo "$ac_t""$YODL2HTML" 1>&6
2314 else
2315   echo "$ac_t""no" 1>&6
2316 fi
2317
2318 test -n "$YODL2HTML" && break
2319 done
2320 test -n "$YODL2HTML" || YODL2HTML="-echo no yodl"
2321
2322         for ac_prog in yodl2latex
2323 do
2324 # Extract the first word of "$ac_prog", so it can be a program name with args.
2325 set dummy $ac_prog; ac_word=$2
2326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_word" >&5
2328 if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
2329   echo $ac_n "(cached) $ac_c" 1>&6
2330 else
2331   if test -n "$YODL2LATEX"; then
2332   ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test.
2333 else
2334   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2335   for ac_dir in $PATH; do
2336     test -z "$ac_dir" && ac_dir=.
2337     if test -f $ac_dir/$ac_word; then
2338       ac_cv_prog_YODL2LATEX="$ac_prog"
2339       break
2340     fi
2341   done
2342   IFS="$ac_save_ifs"
2343 fi
2344 fi
2345 YODL2LATEX="$ac_cv_prog_YODL2LATEX"
2346 if test -n "$YODL2LATEX"; then
2347   echo "$ac_t""$YODL2LATEX" 1>&6
2348 else
2349   echo "$ac_t""no" 1>&6
2350 fi
2351
2352 test -n "$YODL2LATEX" && break
2353 done
2354
2355         for ac_prog in yodl2man
2356 do
2357 # Extract the first word of "$ac_prog", so it can be a program name with args.
2358 set dummy $ac_prog; ac_word=$2
2359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2360 echo "configure:2361: checking for $ac_word" >&5
2361 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then
2362   echo $ac_n "(cached) $ac_c" 1>&6
2363 else
2364   if test -n "$YODL2MAN"; then
2365   ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
2366 else
2367   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2368   for ac_dir in $PATH; do
2369     test -z "$ac_dir" && ac_dir=.
2370     if test -f $ac_dir/$ac_word; then
2371       ac_cv_prog_YODL2MAN="$ac_prog"
2372       break
2373     fi
2374   done
2375   IFS="$ac_save_ifs"
2376 fi
2377 fi
2378 YODL2MAN="$ac_cv_prog_YODL2MAN"
2379 if test -n "$YODL2MAN"; then
2380   echo "$ac_t""$YODL2MAN" 1>&6
2381 else
2382   echo "$ac_t""no" 1>&6
2383 fi
2384
2385 test -n "$YODL2MAN" && break
2386 done
2387 test -n "$YODL2MAN" || YODL2MAN="-echo no yodl"
2388
2389         for ac_prog in yodl2msless
2390 do
2391 # Extract the first word of "$ac_prog", so it can be a program name with args.
2392 set dummy $ac_prog; ac_word=$2
2393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2394 echo "configure:2395: checking for $ac_word" >&5
2395 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MSLESS'+set}'`\" = set"; then
2396   echo $ac_n "(cached) $ac_c" 1>&6
2397 else
2398   if test -n "$YODL2MSLESS"; then
2399   ac_cv_prog_YODL2MSLESS="$YODL2MSLESS" # Let the user override the test.
2400 else
2401   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2402   for ac_dir in $PATH; do
2403     test -z "$ac_dir" && ac_dir=.
2404     if test -f $ac_dir/$ac_word; then
2405       ac_cv_prog_YODL2MSLESS="$ac_prog"
2406       break
2407     fi
2408   done
2409   IFS="$ac_save_ifs"
2410 fi
2411 fi
2412 YODL2MSLESS="$ac_cv_prog_YODL2MSLESS"
2413 if test -n "$YODL2MSLESS"; then
2414   echo "$ac_t""$YODL2MSLESS" 1>&6
2415 else
2416   echo "$ac_t""no" 1>&6
2417 fi
2418
2419 test -n "$YODL2MSLESS" && break
2420 done
2421 test -n "$YODL2MSLESS" || YODL2MSLESS="-echo no yodl"
2422
2423         for ac_prog in yodl2texinfo
2424 do
2425 # Extract the first word of "$ac_prog", so it can be a program name with args.
2426 set dummy $ac_prog; ac_word=$2
2427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2428 echo "configure:2429: checking for $ac_word" >&5
2429 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
2430   echo $ac_n "(cached) $ac_c" 1>&6
2431 else
2432   if test -n "$YODL2TEXINFO"; then
2433   ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test.
2434 else
2435   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2436   for ac_dir in $PATH; do
2437     test -z "$ac_dir" && ac_dir=.
2438     if test -f $ac_dir/$ac_word; then
2439       ac_cv_prog_YODL2TEXINFO="$ac_prog"
2440       break
2441     fi
2442   done
2443   IFS="$ac_save_ifs"
2444 fi
2445 fi
2446 YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO"
2447 if test -n "$YODL2TEXINFO"; then
2448   echo "$ac_t""$YODL2TEXINFO" 1>&6
2449 else
2450   echo "$ac_t""no" 1>&6
2451 fi
2452
2453 test -n "$YODL2TEXINFO" && break
2454 done
2455 test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl"
2456
2457         for ac_prog in yodl2txt
2458 do
2459 # Extract the first word of "$ac_prog", so it can be a program name with args.
2460 set dummy $ac_prog; ac_word=$2
2461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2462 echo "configure:2463: checking for $ac_word" >&5
2463 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then
2464   echo $ac_n "(cached) $ac_c" 1>&6
2465 else
2466   if test -n "$YODL2TXT"; then
2467   ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test.
2468 else
2469   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2470   for ac_dir in $PATH; do
2471     test -z "$ac_dir" && ac_dir=.
2472     if test -f $ac_dir/$ac_word; then
2473       ac_cv_prog_YODL2TXT="$ac_prog"
2474       break
2475     fi
2476   done
2477   IFS="$ac_save_ifs"
2478 fi
2479 fi
2480 YODL2TXT="$ac_cv_prog_YODL2TXT"
2481 if test -n "$YODL2TXT"; then
2482   echo "$ac_t""$YODL2TXT" 1>&6
2483 else
2484   echo "$ac_t""no" 1>&6
2485 fi
2486
2487 test -n "$YODL2TXT" && break
2488 done
2489 test -n "$YODL2TXT" || YODL2TXT="-echo no yodl"
2490
2491         YODL2LESS_DIR='$(bindir)/'
2492     else
2493         
2494         
2495         
2496         
2497         
2498         
2499         
2500         
2501         
2502         export STRIPROFF YODL YODL2HTML YODL2LATEX YODL2MAN YODL2MSLESS YODL2TEXINFO YODL2TXT
2503     fi
2504     if test "x$YODL" = "-echo no yodl"; then
2505         
2506     echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2
2507     warn_b=yes
2508
2509     fi    
2510
2511
2512     # on some systems, -lguile succeeds for guile-1.3
2513     # others need readline, dl (or even more)
2514     # urg, must check for different functions in libguile
2515     # to force new check iso reading from cache
2516
2517     # gh_scm2doubles,gh_doubles2scm are new in 1.3
2518     echo $ac_n "checking for gh_scm2doubles in -lguile""... $ac_c" 1>&6
2519 echo "configure:2520: checking for gh_scm2doubles in -lguile" >&5
2520 ac_lib_var=`echo guile'_'gh_scm2doubles | sed 'y%./+-%__p_%'`
2521 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2522   echo $ac_n "(cached) $ac_c" 1>&6
2523 else
2524   ac_save_LIBS="$LIBS"
2525 LIBS="-lguile  $LIBS"
2526 cat > conftest.$ac_ext <<EOF
2527 #line 2528 "configure"
2528 #include "confdefs.h"
2529 /* Override any gcc2 internal prototype to avoid an error.  */
2530 #ifdef __cplusplus
2531 extern "C"
2532 #endif
2533 /* We use char because int might match the return type of a gcc2
2534     builtin and then its argument prototype would still apply.  */
2535 char gh_scm2doubles();
2536
2537 int main() {
2538 gh_scm2doubles()
2539 ; return 0; }
2540 EOF
2541 if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2542   rm -rf conftest*
2543   eval "ac_cv_lib_$ac_lib_var=yes"
2544 else
2545   echo "configure: failed program was:" >&5
2546   cat conftest.$ac_ext >&5
2547   rm -rf conftest*
2548   eval "ac_cv_lib_$ac_lib_var=no"
2549 fi
2550 rm -f conftest*
2551 LIBS="$ac_save_LIBS"
2552
2553 fi
2554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2555   echo "$ac_t""yes" 1>&6
2556   \
2557       LIBS="-lguile $LIBS"; cat >> confdefs.h <<\EOF
2558 #define HAVE_LIBGUILE 1
2559 EOF
2560
2561 else
2562   echo "$ac_t""no" 1>&6
2563 \
2564       echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2565 echo "configure:2566: checking for readline in -lreadline" >&5
2566 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2568   echo $ac_n "(cached) $ac_c" 1>&6
2569 else
2570   ac_save_LIBS="$LIBS"
2571 LIBS="-lreadline  $LIBS"
2572 cat > conftest.$ac_ext <<EOF
2573 #line 2574 "configure"
2574 #include "confdefs.h"
2575 /* Override any gcc2 internal prototype to avoid an error.  */
2576 #ifdef __cplusplus
2577 extern "C"
2578 #endif
2579 /* We use char because int might match the return type of a gcc2
2580     builtin and then its argument prototype would still apply.  */
2581 char readline();
2582
2583 int main() {
2584 readline()
2585 ; return 0; }
2586 EOF
2587 if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2588   rm -rf conftest*
2589   eval "ac_cv_lib_$ac_lib_var=yes"
2590 else
2591   echo "configure: failed program was:" >&5
2592   cat conftest.$ac_ext >&5
2593   rm -rf conftest*
2594   eval "ac_cv_lib_$ac_lib_var=no"
2595 fi
2596 rm -f conftest*
2597 LIBS="$ac_save_LIBS"
2598
2599 fi
2600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2601   echo "$ac_t""yes" 1>&6
2602     ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/^a-zA-Z0-9_/_/g' \
2603     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2604   cat >> confdefs.h <<EOF
2605 #define $ac_tr_lib 1
2606 EOF
2607
2608   LIBS="-lreadline $LIBS"
2609
2610 else
2611   echo "$ac_t""no" 1>&6
2612 fi
2613  \
2614       echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2615 echo "configure:2616: checking for dlopen in -ldl" >&5
2616 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2618   echo $ac_n "(cached) $ac_c" 1>&6
2619 else
2620   ac_save_LIBS="$LIBS"
2621 LIBS="-ldl  $LIBS"
2622 cat > conftest.$ac_ext <<EOF
2623 #line 2624 "configure"
2624 #include "confdefs.h"
2625 /* Override any gcc2 internal prototype to avoid an error.  */
2626 #ifdef __cplusplus
2627 extern "C"
2628 #endif
2629 /* We use char because int might match the return type of a gcc2
2630     builtin and then its argument prototype would still apply.  */
2631 char dlopen();
2632
2633 int main() {
2634 dlopen()
2635 ; return 0; }
2636 EOF
2637 if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2638   rm -rf conftest*
2639   eval "ac_cv_lib_$ac_lib_var=yes"
2640 else
2641   echo "configure: failed program was:" >&5
2642   cat conftest.$ac_ext >&5
2643   rm -rf conftest*
2644   eval "ac_cv_lib_$ac_lib_var=no"
2645 fi
2646 rm -f conftest*
2647 LIBS="$ac_save_LIBS"
2648
2649 fi
2650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2651   echo "$ac_t""yes" 1>&6
2652     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/^a-zA-Z0-9_/_/g' \
2653     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2654   cat >> confdefs.h <<EOF
2655 #define $ac_tr_lib 1
2656 EOF
2657
2658   LIBS="-ldl $LIBS"
2659
2660 else
2661   echo "$ac_t""no" 1>&6
2662 fi
2663  \
2664       echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2665 echo "configure:2666: checking for socket in -lsocket" >&5
2666 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2668   echo $ac_n "(cached) $ac_c" 1>&6
2669 else
2670   ac_save_LIBS="$LIBS"
2671 LIBS="-lsocket  $LIBS"
2672 cat > conftest.$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2675 /* Override any gcc2 internal prototype to avoid an error.  */
2676 #ifdef __cplusplus
2677 extern "C"
2678 #endif
2679 /* We use char because int might match the return type of a gcc2
2680     builtin and then its argument prototype would still apply.  */
2681 char socket();
2682
2683 int main() {
2684 socket()
2685 ; return 0; }
2686 EOF
2687 if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2688   rm -rf conftest*
2689   eval "ac_cv_lib_$ac_lib_var=yes"
2690 else
2691   echo "configure: failed program was:" >&5
2692   cat conftest.$ac_ext >&5
2693   rm -rf conftest*
2694   eval "ac_cv_lib_$ac_lib_var=no"
2695 fi
2696 rm -f conftest*
2697 LIBS="$ac_save_LIBS"
2698
2699 fi
2700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2701   echo "$ac_t""yes" 1>&6
2702     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2703     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2704   cat >> confdefs.h <<EOF
2705 #define $ac_tr_lib 1
2706 EOF
2707
2708   LIBS="-lsocket $LIBS"
2709
2710 else
2711   echo "$ac_t""no" 1>&6
2712 fi
2713 \
2714       echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
2715 echo "configure:2716: checking for tgetent in -ltermcap" >&5
2716 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
2717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2718   echo $ac_n "(cached) $ac_c" 1>&6
2719 else
2720   ac_save_LIBS="$LIBS"
2721 LIBS="-ltermcap  $LIBS"
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 /* Override any gcc2 internal prototype to avoid an error.  */
2726 #ifdef __cplusplus
2727 extern "C"
2728 #endif
2729 /* We use char because int might match the return type of a gcc2
2730     builtin and then its argument prototype would still apply.  */
2731 char tgetent();
2732
2733 int main() {
2734 tgetent()
2735 ; return 0; }
2736 EOF
2737 if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2738   rm -rf conftest*
2739   eval "ac_cv_lib_$ac_lib_var=yes"
2740 else
2741   echo "configure: failed program was:" >&5
2742   cat conftest.$ac_ext >&5
2743   rm -rf conftest*
2744   eval "ac_cv_lib_$ac_lib_var=no"
2745 fi
2746 rm -f conftest*
2747 LIBS="$ac_save_LIBS"
2748
2749 fi
2750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2751   echo "$ac_t""yes" 1>&6
2752     ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \
2753     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2754   cat >> confdefs.h <<EOF
2755 #define $ac_tr_lib 1
2756 EOF
2757
2758   LIBS="-ltermcap $LIBS"
2759
2760 else
2761   echo "$ac_t""no" 1>&6
2762 fi
2763 \
2764       echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
2765 echo "configure:2766: checking for fabs in -lm" >&5
2766 ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'`
2767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2768   echo $ac_n "(cached) $ac_c" 1>&6
2769 else
2770   ac_save_LIBS="$LIBS"
2771 LIBS="-lm  $LIBS"
2772 cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 /* Override any gcc2 internal prototype to avoid an error.  */
2776 #ifdef __cplusplus
2777 extern "C"
2778 #endif
2779 /* We use char because int might match the return type of a gcc2
2780     builtin and then its argument prototype would still apply.  */
2781 char fabs();
2782
2783 int main() {
2784 fabs()
2785 ; return 0; }
2786 EOF
2787 if { (eval echo configure:2788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2788   rm -rf conftest*
2789   eval "ac_cv_lib_$ac_lib_var=yes"
2790 else
2791   echo "configure: failed program was:" >&5
2792   cat conftest.$ac_ext >&5
2793   rm -rf conftest*
2794   eval "ac_cv_lib_$ac_lib_var=no"
2795 fi
2796 rm -f conftest*
2797 LIBS="$ac_save_LIBS"
2798
2799 fi
2800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2801   echo "$ac_t""yes" 1>&6
2802     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
2803     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2804   cat >> confdefs.h <<EOF
2805 #define $ac_tr_lib 1
2806 EOF
2807
2808   LIBS="-lm $LIBS"
2809
2810 else
2811   echo "$ac_t""no" 1>&6
2812 fi
2813 \
2814       echo $ac_n "checking for gh_doubles2scm in -lguile""... $ac_c" 1>&6
2815 echo "configure:2816: checking for gh_doubles2scm in -lguile" >&5
2816 ac_lib_var=`echo guile'_'gh_doubles2scm | sed 'y%./+-%__p_%'`
2817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2818   echo $ac_n "(cached) $ac_c" 1>&6
2819 else
2820   ac_save_LIBS="$LIBS"
2821 LIBS="-lguile  $LIBS"
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2825 /* Override any gcc2 internal prototype to avoid an error.  */
2826 #ifdef __cplusplus
2827 extern "C"
2828 #endif
2829 /* We use char because int might match the return type of a gcc2
2830     builtin and then its argument prototype would still apply.  */
2831 char gh_doubles2scm();
2832
2833 int main() {
2834 gh_doubles2scm()
2835 ; return 0; }
2836 EOF
2837 if { (eval echo configure:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2838   rm -rf conftest*
2839   eval "ac_cv_lib_$ac_lib_var=yes"
2840 else
2841   echo "configure: failed program was:" >&5
2842   cat conftest.$ac_ext >&5
2843   rm -rf conftest*
2844   eval "ac_cv_lib_$ac_lib_var=no"
2845 fi
2846 rm -f conftest*
2847 LIBS="$ac_save_LIBS"
2848
2849 fi
2850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2851   echo "$ac_t""yes" 1>&6
2852     ac_tr_lib=HAVE_LIB`echo guile | sed -e 's/^a-zA-Z0-9_/_/g' \
2853     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2854   cat >> confdefs.h <<EOF
2855 #define $ac_tr_lib 1
2856 EOF
2857
2858   LIBS="-lguile $LIBS"
2859
2860 else
2861   echo "$ac_t""no" 1>&6
2862 fi
2863 \
2864     
2865 fi
2866
2867     if test "$ac_cv_lib_guile_gh_scm2doubles" != yes -a \
2868       "$ac_cv_lib_guile_gh_doubles2scm" != yes ; then
2869             
2870     echo "configure: warning: You should install guile 1.3 or newer" 1>&2
2871     warn_b=yes
2872
2873     fi
2874
2875
2876 CXXFLAGS="$CXXFLAGS -fhandle-signatures" 
2877
2878
2879 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2880 echo "configure:2881: checking for 8-bit clean memcmp" >&5
2881 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2882   echo $ac_n "(cached) $ac_c" 1>&6
2883 else
2884   if test "$cross_compiling" = yes; then
2885   ac_cv_func_memcmp_clean=no
2886 else
2887   cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 #ifdef __cplusplus
2891 extern "C" void exit(int);
2892 #endif
2893
2894 main()
2895 {
2896   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2897   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2898 }
2899
2900 EOF
2901 if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2902 then
2903   ac_cv_func_memcmp_clean=yes
2904 else
2905   echo "configure: failed program was:" >&5
2906   cat conftest.$ac_ext >&5
2907   rm -fr conftest*
2908   ac_cv_func_memcmp_clean=no
2909 fi
2910 rm -fr conftest*
2911 fi
2912
2913 fi
2914
2915 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2916 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2917
2918 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2919 echo "configure:2920: checking for vprintf" >&5
2920 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2921   echo $ac_n "(cached) $ac_c" 1>&6
2922 else
2923   cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2926 /* System header to define __stub macros and hopefully few prototypes,
2927     which can conflict with char vprintf(); below.  */
2928 #include <assert.h>
2929 /* Override any gcc2 internal prototype to avoid an error.  */
2930 #ifdef __cplusplus
2931 extern "C"
2932 #endif
2933 /* We use char because int might match the return type of a gcc2
2934     builtin and then its argument prototype would still apply.  */
2935 char vprintf();
2936
2937 int main() {
2938
2939 /* The GNU C library defines this for functions which it implements
2940     to always fail with ENOSYS.  Some functions are actually named
2941     something starting with __ and the normal name is an alias.  */
2942 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2943 choke me
2944 #else
2945 vprintf();
2946 #endif
2947
2948 ; return 0; }
2949 EOF
2950 if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2951   rm -rf conftest*
2952   eval "ac_cv_func_vprintf=yes"
2953 else
2954   echo "configure: failed program was:" >&5
2955   cat conftest.$ac_ext >&5
2956   rm -rf conftest*
2957   eval "ac_cv_func_vprintf=no"
2958 fi
2959 rm -f conftest*
2960 fi
2961
2962 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2963   echo "$ac_t""yes" 1>&6
2964   cat >> confdefs.h <<\EOF
2965 #define HAVE_VPRINTF 1
2966 EOF
2967
2968 else
2969   echo "$ac_t""no" 1>&6
2970 fi
2971
2972 if test "$ac_cv_func_vprintf" != yes; then
2973 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2974 echo "configure:2975: checking for _doprnt" >&5
2975 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2976   echo $ac_n "(cached) $ac_c" 1>&6
2977 else
2978   cat > conftest.$ac_ext <<EOF
2979 #line 2980 "configure"
2980 #include "confdefs.h"
2981 /* System header to define __stub macros and hopefully few prototypes,
2982     which can conflict with char _doprnt(); below.  */
2983 #include <assert.h>
2984 /* Override any gcc2 internal prototype to avoid an error.  */
2985 #ifdef __cplusplus
2986 extern "C"
2987 #endif
2988 /* We use char because int might match the return type of a gcc2
2989     builtin and then its argument prototype would still apply.  */
2990 char _doprnt();
2991
2992 int main() {
2993
2994 /* The GNU C library defines this for functions which it implements
2995     to always fail with ENOSYS.  Some functions are actually named
2996     something starting with __ and the normal name is an alias.  */
2997 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2998 choke me
2999 #else
3000 _doprnt();
3001 #endif
3002
3003 ; return 0; }
3004 EOF
3005 if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3006   rm -rf conftest*
3007   eval "ac_cv_func__doprnt=yes"
3008 else
3009   echo "configure: failed program was:" >&5
3010   cat conftest.$ac_ext >&5
3011   rm -rf conftest*
3012   eval "ac_cv_func__doprnt=no"
3013 fi
3014 rm -f conftest*
3015 fi
3016
3017 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3018   echo "$ac_t""yes" 1>&6
3019   cat >> confdefs.h <<\EOF
3020 #define HAVE_DOPRNT 1
3021 EOF
3022
3023 else
3024   echo "$ac_t""no" 1>&6
3025 fi
3026
3027 fi
3028
3029 for ac_func in memmem snprintf vsnprintf gettext
3030 do
3031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3032 echo "configure:3033: checking for $ac_func" >&5
3033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3034   echo $ac_n "(cached) $ac_c" 1>&6
3035 else
3036   cat > conftest.$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3039 /* System header to define __stub macros and hopefully few prototypes,
3040     which can conflict with char $ac_func(); below.  */
3041 #include <assert.h>
3042 /* Override any gcc2 internal prototype to avoid an error.  */
3043 #ifdef __cplusplus
3044 extern "C"
3045 #endif
3046 /* We use char because int might match the return type of a gcc2
3047     builtin and then its argument prototype would still apply.  */
3048 char $ac_func();
3049
3050 int main() {
3051
3052 /* The GNU C library defines this for functions which it implements
3053     to always fail with ENOSYS.  Some functions are actually named
3054     something starting with __ and the normal name is an alias.  */
3055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3056 choke me
3057 #else
3058 $ac_func();
3059 #endif
3060
3061 ; return 0; }
3062 EOF
3063 if { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3064   rm -rf conftest*
3065   eval "ac_cv_func_$ac_func=yes"
3066 else
3067   echo "configure: failed program was:" >&5
3068   cat conftest.$ac_ext >&5
3069   rm -rf conftest*
3070   eval "ac_cv_func_$ac_func=no"
3071 fi
3072 rm -f conftest*
3073 fi
3074
3075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3076   echo "$ac_t""yes" 1>&6
3077     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3078   cat >> confdefs.h <<EOF
3079 #define $ac_tr_func 1
3080 EOF
3081  
3082 else
3083   echo "$ac_t""no" 1>&6
3084 fi
3085 done
3086
3087
3088 cat >> confdefs.h <<EOF
3089 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3090 EOF
3091
3092 cat >> confdefs.h <<EOF
3093 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3094 EOF
3095
3096
3097 for ac_prog in makeinfo
3098 do
3099 # Extract the first word of "$ac_prog", so it can be a program name with args.
3100 set dummy $ac_prog; ac_word=$2
3101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3102 echo "configure:3103: checking for $ac_word" >&5
3103 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3104   echo $ac_n "(cached) $ac_c" 1>&6
3105 else
3106   if test -n "$MAKEINFO"; then
3107   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3108 else
3109   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3110   for ac_dir in $PATH; do
3111     test -z "$ac_dir" && ac_dir=.
3112     if test -f $ac_dir/$ac_word; then
3113       ac_cv_prog_MAKEINFO="$ac_prog"
3114       break
3115     fi
3116   done
3117   IFS="$ac_save_ifs"
3118 fi
3119 fi
3120 MAKEINFO="$ac_cv_prog_MAKEINFO"
3121 if test -n "$MAKEINFO"; then
3122   echo "$ac_t""$MAKEINFO" 1>&6
3123 else
3124   echo "$ac_t""no" 1>&6
3125 fi
3126
3127 test -n "$MAKEINFO" && break
3128 done
3129 test -n "$MAKEINFO" || MAKEINFO="error"
3130
3131
3132         result="`echo \"$YODL2TEXINFO\" | grep echo`"
3133         if test "x$YODL2TEXINFO" = "xerror" -o "x$result" != "x"; then
3134                 
3135     echo "configure: warning: can\'t find yodl. You should install Yodl 1.30.2 or newer" 1>&2
3136     warn_b=yes
3137
3138         fi
3139
3140
3141
3142     trap '' 1 2 15
3143 cat > confcache <<\EOF
3144 # This file is a shell script that caches the results of configure
3145 # tests run on this system so they can be shared between configure
3146 # scripts and configure runs.  It is not useful on other systems.
3147 # If it contains results you don't want to keep, you may remove or edit it.
3148 #
3149 # By default, configure uses ./config.cache as the cache file,
3150 # creating it if it does not exist already.  You can give configure
3151 # the --cache-file=FILE option to use a different cache file; that is
3152 # what configure does when it calls configure scripts in
3153 # subdirectories, so they share the cache.
3154 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3155 # config.status only pays attention to the cache file if you give it the
3156 # --recheck option to rerun configure.
3157 #
3158 EOF
3159 # The following way of writing the cache mishandles newlines in values,
3160 # but we know of no workaround that is simple, portable, and efficient.
3161 # So, don't put newlines in cache variables' values.
3162 # Ultrix sh set writes to stderr and can't be redirected directly,
3163 # and sets the high bit in the cache file unless we assign to the vars.
3164 (set) 2>&1 |
3165   case `(ac_space=' '; set) 2>&1` in
3166   *ac_space=\ *)
3167     # `set' does not quote correctly, so add quotes (double-quote substitution
3168     # turns \\\\ into \\, and sed turns \\ into \).
3169     sed -n \
3170       -e "s/'/'\\\\''/g" \
3171       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3172     ;;
3173   *)
3174     # `set' quotes correctly as required by POSIX, so do not add quotes.
3175     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3176     ;;
3177   esac >> confcache
3178 if cmp -s $cache_file confcache; then
3179   :
3180 else
3181   if test -w $cache_file; then
3182     echo "updating cache $cache_file"
3183     cat confcache > $cache_file
3184   else
3185     echo "not updating unwritable cache $cache_file"
3186   fi
3187 fi
3188 rm -f confcache
3189
3190 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3191
3192 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3193 # Let make expand exec_prefix.
3194 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3195
3196 # Any assignment to VPATH causes Sun make to only execute
3197 # the first set of double-colon rules, so remove it if not needed.
3198 # If there is a colon in the path, we need to keep it.
3199 if test "x$srcdir" = x.; then
3200   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3201 fi
3202
3203 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3204
3205 DEFS=-DHAVE_CONFIG_H
3206
3207 # Without the "./", some shells look in PATH for config.status.
3208 : ${CONFIG_STATUS=./config.status}
3209
3210 echo creating $CONFIG_STATUS
3211 rm -f $CONFIG_STATUS
3212 cat > $CONFIG_STATUS <<EOF
3213 #! /bin/sh
3214 # Generated automatically by configure.
3215 # Run this file to recreate the current configuration.
3216 # This directory was configured as follows,
3217 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3218 #
3219 # $0 $ac_configure_args
3220 #
3221 # Compiler output produced by configure, useful for debugging
3222 # configure, is in ./config.log if it exists.
3223
3224 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3225 for ac_option
3226 do
3227   case "\$ac_option" in
3228   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3229     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3230     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3231   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3232     echo "$CONFIG_STATUS generated by autoconf version 2.12"
3233     exit 0 ;;
3234   -help | --help | --hel | --he | --h)
3235     echo "\$ac_cs_usage"; exit 0 ;;
3236   *) echo "\$ac_cs_usage"; exit 1 ;;
3237   esac
3238 done
3239
3240 ac_given_srcdir=$srcdir
3241
3242 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3243 EOF
3244 cat >> $CONFIG_STATUS <<EOF
3245
3246 # Protect against being on the right side of a sed subst in config.status.
3247 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3248  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3249 $ac_vpsub
3250 $extrasub
3251 s%@CFLAGS@%$CFLAGS%g
3252 s%@CPPFLAGS@%$CPPFLAGS%g
3253 s%@CXXFLAGS@%$CXXFLAGS%g
3254 s%@DEFS@%$DEFS%g
3255 s%@LDFLAGS@%$LDFLAGS%g
3256 s%@LIBS@%$LIBS%g
3257 s%@exec_prefix@%$exec_prefix%g
3258 s%@prefix@%$prefix%g
3259 s%@program_transform_name@%$program_transform_name%g
3260 s%@bindir@%$bindir%g
3261 s%@sbindir@%$sbindir%g
3262 s%@libexecdir@%$libexecdir%g
3263 s%@datadir@%$datadir%g
3264 s%@sysconfdir@%$sysconfdir%g
3265 s%@sharedstatedir@%$sharedstatedir%g
3266 s%@localstatedir@%$localstatedir%g
3267 s%@libdir@%$libdir%g
3268 s%@includedir@%$includedir%g
3269 s%@oldincludedir@%$oldincludedir%g
3270 s%@infodir@%$infodir%g
3271 s%@mandir@%$mandir%g
3272 s%@stepmake@%$stepmake%g
3273 s%@package@%$package%g
3274 s%@PACKAGE@%$PACKAGE%g
3275 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3276 s%@package_depth@%$package_depth%g
3277 s%@AUTOGENERATE@%$AUTOGENERATE%g
3278 s%@absolute_builddir@%$absolute_builddir%g
3279 s%@STATE_VECTOR@%$STATE_VECTOR%g
3280 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3281 s%@host@%$host%g
3282 s%@host_alias@%$host_alias%g
3283 s%@host_cpu@%$host_cpu%g
3284 s%@host_vendor@%$host_vendor%g
3285 s%@host_os@%$host_os%g
3286 s%@MAKE@%$MAKE%g
3287 s%@FIND@%$FIND%g
3288 s%@TAR@%$TAR%g
3289 s%@BASH@%$BASH%g
3290 s%@PYTHON@%$PYTHON%g
3291 s%@DOTEXE@%$DOTEXE%g
3292 s%@ZIP@%$ZIP%g
3293 s%@LN@%$LN%g
3294 s%@LN_S@%$LN_S%g
3295 s%@INSTALL@%$INSTALL%g
3296 s%@PATHSEP@%$PATHSEP%g
3297 s%@DIRSEP@%$DIRSEP%g
3298 s%@DIR_DATADIR@%$DIR_DATADIR%g
3299 s%@subdirs@%$subdirs%g
3300 s%@CC@%$CC%g
3301 s%@LD@%$LD%g
3302 s%@ICFLAGS@%$ICFLAGS%g
3303 s%@ILDFLAGS@%$ILDFLAGS%g
3304 s%@DEFINES@%$DEFINES%g
3305 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3306 s%@CXX@%$CXX%g
3307 s%@CXXCPP@%$CXXCPP%g
3308 s%@YACC@%$YACC%g
3309 s%@BISON@%$BISON%g
3310 s%@FLEX@%$FLEX%g
3311 s%@AR@%$AR%g
3312 s%@RANLIB@%$RANLIB%g
3313 s%@localedir@%$localedir%g
3314 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3315 s%@MSGFMT@%$MSGFMT%g
3316 s%@METAFONT@%$METAFONT%g
3317 s%@MFONT@%$MFONT%g
3318 s%@METAPOST@%$METAPOST%g
3319 s%@MPOST@%$MPOST%g
3320 s%@STRIPROFF@%$STRIPROFF%g
3321 s%@YODL@%$YODL%g
3322 s%@YODL2HTML@%$YODL2HTML%g
3323 s%@YODL2LATEX@%$YODL2LATEX%g
3324 s%@YODL2MAN@%$YODL2MAN%g
3325 s%@YODL2MSLESS@%$YODL2MSLESS%g
3326 s%@YODL2TEXINFO@%$YODL2TEXINFO%g
3327 s%@YODL2TXT@%$YODL2TXT%g
3328 s%@YODL2LESS_DIR@%$YODL2LESS_DIR%g
3329 s%@LIBOBJS@%$LIBOBJS%g
3330 s%@MAKEINFO@%$MAKEINFO%g
3331
3332 CEOF
3333 EOF
3334
3335 cat >> $CONFIG_STATUS <<\EOF
3336
3337 # Split the substitutions into bite-sized pieces for seds with
3338 # small command number limits, like on Digital OSF/1 and HP-UX.
3339 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3340 ac_file=1 # Number of current file.
3341 ac_beg=1 # First line for current file.
3342 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3343 ac_more_lines=:
3344 ac_sed_cmds=""
3345 while $ac_more_lines; do
3346   if test $ac_beg -gt 1; then
3347     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3348   else
3349     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3350   fi
3351   if test ! -s conftest.s$ac_file; then
3352     ac_more_lines=false
3353     rm -f conftest.s$ac_file
3354   else
3355     if test -z "$ac_sed_cmds"; then
3356       ac_sed_cmds="sed -f conftest.s$ac_file"
3357     else
3358       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3359     fi
3360     ac_file=`expr $ac_file + 1`
3361     ac_beg=$ac_end
3362     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3363   fi
3364 done
3365 if test -z "$ac_sed_cmds"; then
3366   ac_sed_cmds=cat
3367 fi
3368 EOF
3369
3370 cat >> $CONFIG_STATUS <<EOF
3371
3372 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3373 EOF
3374 cat >> $CONFIG_STATUS <<\EOF
3375 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3376   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3377   case "$ac_file" in
3378   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3379        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3380   *) ac_file_in="${ac_file}.in" ;;
3381   esac
3382
3383   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3384
3385   # Remove last slash and all that follows it.  Not all systems have dirname.
3386   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3387   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3388     # The file is in a subdirectory.
3389     test ! -d "$ac_dir" && mkdir "$ac_dir"
3390     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3391     # A "../" for each directory in $ac_dir_suffix.
3392     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3393   else
3394     ac_dir_suffix= ac_dots=
3395   fi
3396
3397   case "$ac_given_srcdir" in
3398   .)  srcdir=.
3399       if test -z "$ac_dots"; then top_srcdir=.
3400       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3401   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3402   *) # Relative path.
3403     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3404     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3405   esac
3406
3407
3408   echo creating "$ac_file"
3409   rm -f "$ac_file"
3410   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3411   case "$ac_file" in
3412   *Makefile*) ac_comsub="1i\\
3413 # $configure_input" ;;
3414   *) ac_comsub= ;;
3415   esac
3416
3417   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3418   sed -e "$ac_comsub
3419 s%@configure_input@%$configure_input%g
3420 s%@srcdir@%$srcdir%g
3421 s%@top_srcdir@%$top_srcdir%g
3422 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3423 fi; done
3424 rm -f conftest.s*
3425
3426 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3427 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3428 #
3429 # ac_d sets the value in "#define NAME VALUE" lines.
3430 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3431 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3432 ac_dC='\3'
3433 ac_dD='%g'
3434 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3435 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3436 ac_uB='\([      ]\)%\1#\2define\3'
3437 ac_uC=' '
3438 ac_uD='\4%g'
3439 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3440 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3441 ac_eB='$%\1#\2define\3'
3442 ac_eC=' '
3443 ac_eD='%g'
3444
3445 if test "${CONFIG_HEADERS+set}" != set; then
3446 EOF
3447 cat >> $CONFIG_STATUS <<EOF
3448   CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3449 EOF
3450 cat >> $CONFIG_STATUS <<\EOF
3451 fi
3452 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3453   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3454   case "$ac_file" in
3455   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3456        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3457   *) ac_file_in="${ac_file}.in" ;;
3458   esac
3459
3460   echo creating $ac_file
3461
3462   rm -f conftest.frag conftest.in conftest.out
3463   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3464   cat $ac_file_inputs > conftest.in
3465
3466 EOF
3467
3468 # Transform confdefs.h into a sed script conftest.vals that substitutes
3469 # the proper values into config.h.in to produce config.h.  And first:
3470 # Protect against being on the right side of a sed subst in config.status.
3471 # Protect against being in an unquoted here document in config.status.
3472 rm -f conftest.vals
3473 cat > conftest.hdr <<\EOF
3474 s/[\\&%]/\\&/g
3475 s%[\\$`]%\\&%g
3476 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3477 s%ac_d%ac_u%gp
3478 s%ac_u%ac_e%gp
3479 EOF
3480 sed -n -f conftest.hdr confdefs.h > conftest.vals
3481 rm -f conftest.hdr
3482
3483 # This sed command replaces #undef with comments.  This is necessary, for
3484 # example, in the case of _POSIX_SOURCE, which is predefined and required
3485 # on some systems where configure will not decide to define it.
3486 cat >> conftest.vals <<\EOF
3487 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3488 EOF
3489
3490 # Break up conftest.vals because some shells have a limit on
3491 # the size of here documents, and old seds have small limits too.
3492
3493 rm -f conftest.tail
3494 while :
3495 do
3496   ac_lines=`grep -c . conftest.vals`
3497   # grep -c gives empty output for an empty file on some AIX systems.
3498   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3499   # Write a limited-size here document to conftest.frag.
3500   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3501   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3502   echo 'CEOF
3503   sed -f conftest.frag conftest.in > conftest.out
3504   rm -f conftest.in
3505   mv conftest.out conftest.in
3506 ' >> $CONFIG_STATUS
3507   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3508   rm -f conftest.vals
3509   mv conftest.tail conftest.vals
3510 done
3511 rm -f conftest.vals
3512
3513 cat >> $CONFIG_STATUS <<\EOF
3514   rm -f conftest.frag conftest.h
3515   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3516   cat conftest.in >> conftest.h
3517   rm -f conftest.in
3518   if cmp -s $ac_file conftest.h 2>/dev/null; then
3519     echo "$ac_file is unchanged"
3520     rm -f conftest.h
3521   else
3522     # Remove last slash and all that follows it.  Not all systems have dirname.
3523       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3524       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3525       # The file is in a subdirectory.
3526       test ! -d "$ac_dir" && mkdir "$ac_dir"
3527     fi
3528     rm -f $ac_file
3529     mv conftest.h $ac_file
3530   fi
3531 fi; done
3532
3533 EOF
3534 cat >> $CONFIG_STATUS <<EOF
3535
3536 EOF
3537 cat >> $CONFIG_STATUS <<\EOF
3538
3539 exit 0
3540 EOF
3541 chmod +x $CONFIG_STATUS
3542 rm -fr confdefs* $ac_clean_files
3543 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3544
3545 if test "$no_recursion" != yes; then
3546
3547   # Remove --cache-file and --srcdir arguments so they do not pile up.
3548   ac_sub_configure_args=
3549   ac_prev=
3550   for ac_arg in $ac_configure_args; do
3551     if test -n "$ac_prev"; then
3552       ac_prev=
3553       continue
3554     fi
3555     case "$ac_arg" in
3556     -cache-file | --cache-file | --cache-fil | --cache-fi \
3557     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3558       ac_prev=cache_file ;;
3559     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3560     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3561       ;;
3562     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3563       ac_prev=srcdir ;;
3564     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3565       ;;
3566     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3567     esac
3568   done
3569
3570   for ac_config_dir in stepmake; do
3571
3572     # Do not complain, so a configure script can configure whichever
3573     # parts of a large source tree are present.
3574     if test ! -d $srcdir/$ac_config_dir; then
3575       continue
3576     fi
3577
3578     echo configuring in $ac_config_dir
3579
3580     case "$srcdir" in
3581     .) ;;
3582     *)
3583       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3584       else
3585         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3586       fi
3587       ;;
3588     esac
3589
3590     ac_popdir=`pwd`
3591     cd $ac_config_dir
3592
3593       # A "../" for each directory in /$ac_config_dir.
3594       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3595
3596     case "$srcdir" in
3597     .) # No --srcdir option.  We are building in place.
3598       ac_sub_srcdir=$srcdir ;;
3599     /*) # Absolute path.
3600       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3601     *) # Relative path.
3602       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3603     esac
3604
3605     # Check for guested configure; otherwise get Cygnus style configure.
3606     if test -f $ac_sub_srcdir/configure; then
3607       ac_sub_configure=$ac_sub_srcdir/configure
3608     elif test -f $ac_sub_srcdir/configure.in; then
3609       ac_sub_configure=$ac_configure
3610     else
3611       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3612       ac_sub_configure=
3613     fi
3614
3615     # The recursion is here.
3616     if test -n "$ac_sub_configure"; then
3617
3618       # Make the cache file name correct relative to the subdirectory.
3619       case "$cache_file" in
3620       /*) ac_sub_cache_file=$cache_file ;;
3621       *) # Relative path.
3622         ac_sub_cache_file="$ac_dots$cache_file" ;;
3623       esac
3624
3625       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3626       # The eval makes quoting arguments work.
3627       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3628       then :
3629       else
3630         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3631       fi
3632     fi
3633
3634     cd $ac_popdir
3635   done
3636 fi
3637
3638
3639     rm -f GNUmakefile
3640     cp make/toplevel.make.in ./GNUmakefile
3641     chmod 444 GNUmakefile
3642
3643