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