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