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