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