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