]> git.donarmstrong.com Git - lilypond.git/blob - configure
patch::: 1.3.102.jcn1
[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     need_guile_version_numeric=100304
2861     guile_version=`$guile_config --version 2>&1 | awk '{print $NF}'`
2862     guile_version_numeric=`echo $guile_version | awk -F. '
2863 {if ($3) {last = $3}
2864 else {last =0}}
2865 {printf "%s%s%s\n",$1*100, $2*10,last}'`
2866     echo "$ac_t"""$guile_version"" 1>&6
2867     if test $guile_version_numeric -lt $need_guile_version_numeric
2868     then
2869         
2870     echo "configure: warning: "Guile version "$need_guile_version" or newer is needed"" 1>&2
2871     warn_b=yes
2872
2873     fi
2874     
2875 ## The GUILE_FLAGS macro.
2876   echo $ac_n "checking for Guile""... $ac_c" 1>&6
2877 echo "configure:2878: checking for Guile" >&5
2878   if ! $guile_config link > /dev/null ; then
2879       echo "$ac_t"""cannot execute $guile_config"" 1>&6
2880       { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2881       exit 1
2882   fi
2883   GUILE_CFLAGS="`$guile_config compile`"
2884   GUILE_LDFLAGS="`$guile_config link`"
2885   
2886   
2887   echo "$ac_t""yes" 1>&6
2888
2889     # Extract the first word of "guile", so it can be a program name with args.
2890 set dummy guile; ac_word=$2
2891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2892 echo "configure:2893: checking for $ac_word" >&5
2893 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2894   echo $ac_n "(cached) $ac_c" 1>&6
2895 else
2896   case "$GUILE" in
2897   /*)
2898   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
2899   ;;
2900   ?:/*)                  
2901   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
2902   ;;
2903   *)
2904   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2905   ac_dummy="$PATH"
2906   for ac_dir in $ac_dummy; do 
2907     test -z "$ac_dir" && ac_dir=.
2908     if test -f $ac_dir/$ac_word; then
2909       ac_cv_path_GUILE="$ac_dir/$ac_word"
2910       break
2911     fi
2912   done
2913   IFS="$ac_save_ifs"
2914   test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error"
2915   ;;
2916 esac
2917 fi
2918 GUILE="$ac_cv_path_GUILE"
2919 if test -n "$GUILE"; then
2920   echo "$ac_t""$GUILE" 1>&6
2921 else
2922   echo "$ac_t""no" 1>&6
2923 fi
2924
2925     
2926
2927
2928
2929     kpathsea_b=yes
2930     # Check whether --enable-kpathsea or --disable-kpathsea was given.
2931 if test "${enable_kpathsea+set}" = set; then
2932   enableval="$enable_kpathsea"
2933   kpathsea_b=$enableval
2934 fi
2935
2936
2937     if test $kpathsea_b = yes; then     
2938         for ac_hdr in kpathsea/kpathsea.h
2939 do
2940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2941 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2942 echo "configure:2943: checking for $ac_hdr" >&5
2943 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2944   echo $ac_n "(cached) $ac_c" 1>&6
2945 else
2946   cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2949 #include <$ac_hdr>
2950 EOF
2951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2952 { (eval echo configure:2953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2954 if test -z "$ac_err"; then
2955   rm -rf conftest*
2956   eval "ac_cv_header_$ac_safe=yes"
2957 else
2958   echo "$ac_err" >&5
2959   echo "configure: failed program was:" >&5
2960   cat conftest.$ac_ext >&5
2961   rm -rf conftest*
2962   eval "ac_cv_header_$ac_safe=no"
2963 fi
2964 rm -f conftest*
2965 fi
2966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2967   echo "$ac_t""yes" 1>&6
2968     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2969   cat >> confdefs.h <<EOF
2970 #define $ac_tr_hdr 1
2971 EOF
2972  
2973 else
2974   echo "$ac_t""no" 1>&6
2975 fi
2976 done
2977
2978         echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
2979 echo "configure:2980: checking for kpse_find_file in -lkpathsea" >&5
2980 ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
2981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2982   echo $ac_n "(cached) $ac_c" 1>&6
2983 else
2984   ac_save_LIBS="$LIBS"
2985 LIBS="-lkpathsea  $LIBS"
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 /* Override any gcc2 internal prototype to avoid an error.  */
2990 #ifdef __cplusplus
2991 extern "C"
2992 #endif
2993 /* We use char because int might match the return type of a gcc2
2994     builtin and then its argument prototype would still apply.  */
2995 char kpse_find_file();
2996
2997 int main() {
2998 kpse_find_file()
2999 ; return 0; }
3000 EOF
3001 if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3002   rm -rf conftest*
3003   eval "ac_cv_lib_$ac_lib_var=yes"
3004 else
3005   echo "configure: failed program was:" >&5
3006   cat conftest.$ac_ext >&5
3007   rm -rf conftest*
3008   eval "ac_cv_lib_$ac_lib_var=no"
3009 fi
3010 rm -f conftest*
3011 LIBS="$ac_save_LIBS"
3012
3013 fi
3014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3015   echo "$ac_t""yes" 1>&6
3016     ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3017     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3018   cat >> confdefs.h <<EOF
3019 #define $ac_tr_lib 1
3020 EOF
3021
3022   LIBS="-lkpathsea $LIBS"
3023
3024 else
3025   echo "$ac_t""no" 1>&6
3026 fi
3027
3028         # urg: kpse_find_tfm is a #define, how to check for this?
3029         # AC_CHECK_LIB(kpathsea, kpse_find_tfm)
3030         # AC_CHECK_FUNCS(kpse_find_file kpse_find_tfm,, AC_STEPMAKE_WARN(Cannot find kpathsea functions.  You may have to create TFM files manually.))
3031         for ac_func in kpse_find_file
3032 do
3033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3034 echo "configure:3035: checking for $ac_func" >&5
3035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3036   echo $ac_n "(cached) $ac_c" 1>&6
3037 else
3038   cat > conftest.$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3041 /* System header to define __stub macros and hopefully few prototypes,
3042     which can conflict with char $ac_func(); below.  */
3043 #include <assert.h>
3044 /* Override any gcc2 internal prototype to avoid an error.  */
3045 #ifdef __cplusplus
3046 extern "C"
3047 #endif
3048 /* We use char because int might match the return type of a gcc2
3049     builtin and then its argument prototype would still apply.  */
3050 char $ac_func();
3051
3052 int main() {
3053
3054 /* The GNU C library defines this for functions which it implements
3055     to always fail with ENOSYS.  Some functions are actually named
3056     something starting with __ and the normal name is an alias.  */
3057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3058 choke me
3059 #else
3060 $ac_func();
3061 #endif
3062
3063 ; return 0; }
3064 EOF
3065 if { (eval echo configure:3066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3066   rm -rf conftest*
3067   eval "ac_cv_func_$ac_func=yes"
3068 else
3069   echo "configure: failed program was:" >&5
3070   cat conftest.$ac_ext >&5
3071   rm -rf conftest*
3072   eval "ac_cv_func_$ac_func=no"
3073 fi
3074 rm -f conftest*
3075 fi
3076
3077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3078   echo "$ac_t""yes" 1>&6
3079     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3080   cat >> confdefs.h <<EOF
3081 #define $ac_tr_func 1
3082 EOF
3083  
3084 else
3085   echo "$ac_t""no" 1>&6
3086 echo "configure: warning: Cannot find kpathsea functions.  You may have to create TFM files manually." 1>&2
3087     warn_b=yes
3088  kpathsea_b=no
3089 fi
3090 done
3091
3092     fi
3093     echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
3094 echo "configure:3095: checking whether to use kpathsea" >&5
3095     if test $kpathsea_b = yes; then
3096         echo "$ac_t""yes" 1>&6
3097         KPATHSEA=1
3098     else
3099         echo "$ac_t""no" 1>&6
3100         KPATHSEA=0
3101     fi
3102
3103     
3104     cat >> confdefs.h <<EOF
3105 #define KPATHSEA $KPATHSEA
3106 EOF
3107
3108
3109
3110
3111 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3112 echo "configure:3113: checking for 8-bit clean memcmp" >&5
3113 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3114   echo $ac_n "(cached) $ac_c" 1>&6
3115 else
3116   if test "$cross_compiling" = yes; then
3117   ac_cv_func_memcmp_clean=no
3118 else
3119   cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 #ifdef __cplusplus
3123 extern "C" void exit(int);
3124 #endif
3125
3126 main()
3127 {
3128   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3129   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3130 }
3131
3132 EOF
3133 if { (eval echo configure:3134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3134 then
3135   ac_cv_func_memcmp_clean=yes
3136 else
3137   echo "configure: failed program was:" >&5
3138   cat conftest.$ac_ext >&5
3139   rm -fr conftest*
3140   ac_cv_func_memcmp_clean=no
3141 fi
3142 rm -fr conftest*
3143 fi
3144
3145 fi
3146
3147 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3148 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3149
3150 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3151 echo "configure:3152: checking for vprintf" >&5
3152 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3153   echo $ac_n "(cached) $ac_c" 1>&6
3154 else
3155   cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3158 /* System header to define __stub macros and hopefully few prototypes,
3159     which can conflict with char vprintf(); below.  */
3160 #include <assert.h>
3161 /* Override any gcc2 internal prototype to avoid an error.  */
3162 #ifdef __cplusplus
3163 extern "C"
3164 #endif
3165 /* We use char because int might match the return type of a gcc2
3166     builtin and then its argument prototype would still apply.  */
3167 char vprintf();
3168
3169 int main() {
3170
3171 /* The GNU C library defines this for functions which it implements
3172     to always fail with ENOSYS.  Some functions are actually named
3173     something starting with __ and the normal name is an alias.  */
3174 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3175 choke me
3176 #else
3177 vprintf();
3178 #endif
3179
3180 ; return 0; }
3181 EOF
3182 if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3183   rm -rf conftest*
3184   eval "ac_cv_func_vprintf=yes"
3185 else
3186   echo "configure: failed program was:" >&5
3187   cat conftest.$ac_ext >&5
3188   rm -rf conftest*
3189   eval "ac_cv_func_vprintf=no"
3190 fi
3191 rm -f conftest*
3192 fi
3193
3194 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3195   echo "$ac_t""yes" 1>&6
3196   cat >> confdefs.h <<\EOF
3197 #define HAVE_VPRINTF 1
3198 EOF
3199
3200 else
3201   echo "$ac_t""no" 1>&6
3202 fi
3203
3204 if test "$ac_cv_func_vprintf" != yes; then
3205 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3206 echo "configure:3207: checking for _doprnt" >&5
3207 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3208   echo $ac_n "(cached) $ac_c" 1>&6
3209 else
3210   cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 /* System header to define __stub macros and hopefully few prototypes,
3214     which can conflict with char _doprnt(); below.  */
3215 #include <assert.h>
3216 /* Override any gcc2 internal prototype to avoid an error.  */
3217 #ifdef __cplusplus
3218 extern "C"
3219 #endif
3220 /* We use char because int might match the return type of a gcc2
3221     builtin and then its argument prototype would still apply.  */
3222 char _doprnt();
3223
3224 int main() {
3225
3226 /* The GNU C library defines this for functions which it implements
3227     to always fail with ENOSYS.  Some functions are actually named
3228     something starting with __ and the normal name is an alias.  */
3229 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3230 choke me
3231 #else
3232 _doprnt();
3233 #endif
3234
3235 ; return 0; }
3236 EOF
3237 if { (eval echo configure:3238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3238   rm -rf conftest*
3239   eval "ac_cv_func__doprnt=yes"
3240 else
3241   echo "configure: failed program was:" >&5
3242   cat conftest.$ac_ext >&5
3243   rm -rf conftest*
3244   eval "ac_cv_func__doprnt=no"
3245 fi
3246 rm -f conftest*
3247 fi
3248
3249 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3250   echo "$ac_t""yes" 1>&6
3251   cat >> confdefs.h <<\EOF
3252 #define HAVE_DOPRNT 1
3253 EOF
3254
3255 else
3256   echo "$ac_t""no" 1>&6
3257 fi
3258
3259 fi
3260
3261 for ac_func in memmem snprintf vsnprintf gettext isinf
3262 do
3263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3264 echo "configure:3265: checking for $ac_func" >&5
3265 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3266   echo $ac_n "(cached) $ac_c" 1>&6
3267 else
3268   cat > conftest.$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3271 /* System header to define __stub macros and hopefully few prototypes,
3272     which can conflict with char $ac_func(); below.  */
3273 #include <assert.h>
3274 /* Override any gcc2 internal prototype to avoid an error.  */
3275 #ifdef __cplusplus
3276 extern "C"
3277 #endif
3278 /* We use char because int might match the return type of a gcc2
3279     builtin and then its argument prototype would still apply.  */
3280 char $ac_func();
3281
3282 int main() {
3283
3284 /* The GNU C library defines this for functions which it implements
3285     to always fail with ENOSYS.  Some functions are actually named
3286     something starting with __ and the normal name is an alias.  */
3287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3288 choke me
3289 #else
3290 $ac_func();
3291 #endif
3292
3293 ; return 0; }
3294 EOF
3295 if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3296   rm -rf conftest*
3297   eval "ac_cv_func_$ac_func=yes"
3298 else
3299   echo "configure: failed program was:" >&5
3300   cat conftest.$ac_ext >&5
3301   rm -rf conftest*
3302   eval "ac_cv_func_$ac_func=no"
3303 fi
3304 rm -f conftest*
3305 fi
3306
3307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3308   echo "$ac_t""yes" 1>&6
3309     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3310   cat >> confdefs.h <<EOF
3311 #define $ac_tr_func 1
3312 EOF
3313  
3314 else
3315   echo "$ac_t""no" 1>&6
3316 fi
3317 done
3318
3319
3320 cat >> confdefs.h <<EOF
3321 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3322 EOF
3323
3324 cat >> confdefs.h <<EOF
3325 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3326 EOF
3327
3328
3329 for ac_prog in makeinfo
3330 do
3331 # Extract the first word of "$ac_prog", so it can be a program name with args.
3332 set dummy $ac_prog; ac_word=$2
3333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3334 echo "configure:3335: checking for $ac_word" >&5
3335 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3336   echo $ac_n "(cached) $ac_c" 1>&6
3337 else
3338   if test -n "$MAKEINFO"; then
3339   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3340 else
3341   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3342   ac_dummy="$PATH"
3343   for ac_dir in $ac_dummy; do
3344     test -z "$ac_dir" && ac_dir=.
3345     if test -f $ac_dir/$ac_word; then
3346       ac_cv_prog_MAKEINFO="$ac_prog"
3347       break
3348     fi
3349   done
3350   IFS="$ac_save_ifs"
3351 fi
3352 fi
3353 MAKEINFO="$ac_cv_prog_MAKEINFO"
3354 if test -n "$MAKEINFO"; then
3355   echo "$ac_t""$MAKEINFO" 1>&6
3356 else
3357   echo "$ac_t""no" 1>&6
3358 fi
3359
3360 test -n "$MAKEINFO" && break
3361 done
3362 test -n "$MAKEINFO" || MAKEINFO="error"
3363
3364 # Extract the first word of "perl", so it can be a program name with args.
3365 set dummy perl; ac_word=$2
3366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3367 echo "configure:3368: checking for $ac_word" >&5
3368 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3369   echo $ac_n "(cached) $ac_c" 1>&6
3370 else
3371   case "$PERL" in
3372   /*)
3373   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3374   ;;
3375   ?:/*)                  
3376   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3377   ;;
3378   *)
3379   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3380   ac_dummy="$PATH"
3381   for ac_dir in $ac_dummy; do 
3382     test -z "$ac_dir" && ac_dir=.
3383     if test -f $ac_dir/$ac_word; then
3384       ac_cv_path_PERL="$ac_dir/$ac_word"
3385       break
3386     fi
3387   done
3388   IFS="$ac_save_ifs"
3389   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
3390   ;;
3391 esac
3392 fi
3393 PERL="$ac_cv_path_PERL"
3394 if test -n "$PERL"; then
3395   echo "$ac_t""$PERL" 1>&6
3396 else
3397   echo "$ac_t""no" 1>&6
3398 fi
3399
3400
3401
3402     trap '' 1 2 15
3403 cat > confcache <<\EOF
3404 # This file is a shell script that caches the results of configure
3405 # tests run on this system so they can be shared between configure
3406 # scripts and configure runs.  It is not useful on other systems.
3407 # If it contains results you don't want to keep, you may remove or edit it.
3408 #
3409 # By default, configure uses ./config.cache as the cache file,
3410 # creating it if it does not exist already.  You can give configure
3411 # the --cache-file=FILE option to use a different cache file; that is
3412 # what configure does when it calls configure scripts in
3413 # subdirectories, so they share the cache.
3414 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3415 # config.status only pays attention to the cache file if you give it the
3416 # --recheck option to rerun configure.
3417 #
3418 EOF
3419 # The following way of writing the cache mishandles newlines in values,
3420 # but we know of no workaround that is simple, portable, and efficient.
3421 # So, don't put newlines in cache variables' values.
3422 # Ultrix sh set writes to stderr and can't be redirected directly,
3423 # and sets the high bit in the cache file unless we assign to the vars.
3424 (set) 2>&1 |
3425   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3426   *ac_space=\ *)
3427     # `set' does not quote correctly, so add quotes (double-quote substitution
3428     # turns \\\\ into \\, and sed turns \\ into \).
3429     sed -n \
3430       -e "s/'/'\\\\''/g" \
3431       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3432     ;;
3433   *)
3434     # `set' quotes correctly as required by POSIX, so do not add quotes.
3435     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3436     ;;
3437   esac >> confcache
3438 if cmp -s $cache_file confcache; then
3439   :
3440 else
3441   if test -w $cache_file; then
3442     echo "updating cache $cache_file"
3443     cat confcache > $cache_file
3444   else
3445     echo "not updating unwritable cache $cache_file"
3446   fi
3447 fi
3448 rm -f confcache
3449
3450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3451
3452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3453 # Let make expand exec_prefix.
3454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3455
3456 # Any assignment to VPATH causes Sun make to only execute
3457 # the first set of double-colon rules, so remove it if not needed.
3458 # If there is a colon in the path, we need to keep it.
3459 if test "x$srcdir" = x.; then
3460   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3461 fi
3462
3463 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3464
3465 DEFS=-DHAVE_CONFIG_H
3466
3467 # Without the "./", some shells look in PATH for config.status.
3468 : ${CONFIG_STATUS=./config.status}
3469
3470 echo creating $CONFIG_STATUS
3471 rm -f $CONFIG_STATUS
3472 cat > $CONFIG_STATUS <<EOF
3473 #! /bin/sh
3474 # Generated automatically by configure.
3475 # Run this file to recreate the current configuration.
3476 # This directory was configured as follows,
3477 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3478 #
3479 # $0 $ac_configure_args
3480 #
3481 # Compiler output produced by configure, useful for debugging
3482 # configure, is in ./config.log if it exists.
3483
3484 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3485 for ac_option
3486 do
3487   case "\$ac_option" in
3488   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3489     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3490     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3491   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3492     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3493     exit 0 ;;
3494   -help | --help | --hel | --he | --h)
3495     echo "\$ac_cs_usage"; exit 0 ;;
3496   *) echo "\$ac_cs_usage"; exit 1 ;;
3497   esac
3498 done
3499
3500 ac_given_srcdir=$srcdir
3501
3502 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3503 EOF
3504 cat >> $CONFIG_STATUS <<EOF
3505
3506 # Protect against being on the right side of a sed subst in config.status.
3507 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3508  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3509 $ac_vpsub
3510 $extrasub
3511 s%@SHELL@%$SHELL%g
3512 s%@CFLAGS@%$CFLAGS%g
3513 s%@CPPFLAGS@%$CPPFLAGS%g
3514 s%@CXXFLAGS@%$CXXFLAGS%g
3515 s%@FFLAGS@%$FFLAGS%g
3516 s%@DEFS@%$DEFS%g
3517 s%@LDFLAGS@%$LDFLAGS%g
3518 s%@LIBS@%$LIBS%g
3519 s%@exec_prefix@%$exec_prefix%g
3520 s%@prefix@%$prefix%g
3521 s%@program_transform_name@%$program_transform_name%g
3522 s%@bindir@%$bindir%g
3523 s%@sbindir@%$sbindir%g
3524 s%@libexecdir@%$libexecdir%g
3525 s%@datadir@%$datadir%g
3526 s%@sysconfdir@%$sysconfdir%g
3527 s%@sharedstatedir@%$sharedstatedir%g
3528 s%@localstatedir@%$localstatedir%g
3529 s%@libdir@%$libdir%g
3530 s%@includedir@%$includedir%g
3531 s%@oldincludedir@%$oldincludedir%g
3532 s%@infodir@%$infodir%g
3533 s%@mandir@%$mandir%g
3534 s%@builddir@%$builddir%g
3535 s%@stepmake@%$stepmake%g
3536 s%@package@%$package%g
3537 s%@PACKAGE@%$PACKAGE%g
3538 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3539 s%@package_depth@%$package_depth%g
3540 s%@AUTOGENERATE@%$AUTOGENERATE%g
3541 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3542 s%@host@%$host%g
3543 s%@host_alias@%$host_alias%g
3544 s%@host_cpu@%$host_cpu%g
3545 s%@host_vendor@%$host_vendor%g
3546 s%@host_os@%$host_os%g
3547 s%@MAKE@%$MAKE%g
3548 s%@FIND@%$FIND%g
3549 s%@TAR@%$TAR%g
3550 s%@BASH@%$BASH%g
3551 s%@PYTHON@%$PYTHON%g
3552 s%@program_prefix@%$program_prefix%g
3553 s%@program_suffix@%$program_suffix%g
3554 s%@ZIP@%$ZIP%g
3555 s%@LN@%$LN%g
3556 s%@LN_S@%$LN_S%g
3557 s%@INSTALL@%$INSTALL%g
3558 s%@PATHSEP@%$PATHSEP%g
3559 s%@DIRSEP@%$DIRSEP%g
3560 s%@DIR_DATADIR@%$DIR_DATADIR%g
3561 s%@subdirs@%$subdirs%g
3562 s%@CC@%$CC%g
3563 s%@LD@%$LD%g
3564 s%@ICFLAGS@%$ICFLAGS%g
3565 s%@ILDFLAGS@%$ILDFLAGS%g
3566 s%@DEFINES@%$DEFINES%g
3567 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3568 s%@CPP@%$CPP%g
3569 s%@CXX@%$CXX%g
3570 s%@CXXCPP@%$CXXCPP%g
3571 s%@YACC@%$YACC%g
3572 s%@BISON@%$BISON%g
3573 s%@FLEX@%$FLEX%g
3574 s%@AR@%$AR%g
3575 s%@RANLIB@%$RANLIB%g
3576 s%@localedir@%$localedir%g
3577 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3578 s%@MSGFMT@%$MSGFMT%g
3579 s%@METAFONT@%$METAFONT%g
3580 s%@MFONT@%$MFONT%g
3581 s%@METAPOST@%$METAPOST%g
3582 s%@MPOST@%$MPOST%g
3583 s%@INIMETAFONT@%$INIMETAFONT%g
3584 s%@INIMFONT@%$INIMFONT%g
3585 s%@INIMETAPOST@%$INIMETAPOST%g
3586 s%@INIMPOST@%$INIMPOST%g
3587 s%@MFMODE@%$MFMODE%g
3588 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3589 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3590 s%@KPSEWHICH@%$KPSEWHICH%g
3591 s%@TFM_PATH@%$TFM_PATH%g
3592 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3593 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3594 s%@GUILE@%$GUILE%g
3595 s%@KPATHSEA@%$KPATHSEA%g
3596 s%@LIBOBJS@%$LIBOBJS%g
3597 s%@MAKEINFO@%$MAKEINFO%g
3598 s%@PERL@%$PERL%g
3599
3600 CEOF
3601 EOF
3602
3603 cat >> $CONFIG_STATUS <<\EOF
3604
3605 # Split the substitutions into bite-sized pieces for seds with
3606 # small command number limits, like on Digital OSF/1 and HP-UX.
3607 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3608 ac_file=1 # Number of current file.
3609 ac_beg=1 # First line for current file.
3610 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3611 ac_more_lines=:
3612 ac_sed_cmds=""
3613 while $ac_more_lines; do
3614   if test $ac_beg -gt 1; then
3615     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3616   else
3617     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3618   fi
3619   if test ! -s conftest.s$ac_file; then
3620     ac_more_lines=false
3621     rm -f conftest.s$ac_file
3622   else
3623     if test -z "$ac_sed_cmds"; then
3624       ac_sed_cmds="sed -f conftest.s$ac_file"
3625     else
3626       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3627     fi
3628     ac_file=`expr $ac_file + 1`
3629     ac_beg=$ac_end
3630     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3631   fi
3632 done
3633 if test -z "$ac_sed_cmds"; then
3634   ac_sed_cmds=cat
3635 fi
3636 EOF
3637
3638 cat >> $CONFIG_STATUS <<EOF
3639
3640 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3641 EOF
3642 cat >> $CONFIG_STATUS <<\EOF
3643 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3644   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3645   case "$ac_file" in
3646   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3647        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3648   *) ac_file_in="${ac_file}.in" ;;
3649   esac
3650
3651   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3652
3653   # Remove last slash and all that follows it.  Not all systems have dirname.
3654   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3655   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3656     # The file is in a subdirectory.
3657     test ! -d "$ac_dir" && mkdir "$ac_dir"
3658     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3659     # A "../" for each directory in $ac_dir_suffix.
3660     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3661   else
3662     ac_dir_suffix= ac_dots=
3663   fi
3664
3665   case "$ac_given_srcdir" in
3666   .)  srcdir=.
3667       if test -z "$ac_dots"; then top_srcdir=.
3668       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3669   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3670   *) # Relative path.
3671     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3672     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3673   esac
3674
3675
3676   echo creating "$ac_file"
3677   rm -f "$ac_file"
3678   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3679   case "$ac_file" in
3680   *Makefile*) ac_comsub="1i\\
3681 # $configure_input" ;;
3682   *) ac_comsub= ;;
3683   esac
3684
3685   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3686   sed -e "$ac_comsub
3687 s%@configure_input@%$configure_input%g
3688 s%@srcdir@%$srcdir%g
3689 s%@top_srcdir@%$top_srcdir%g
3690 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3691 fi; done
3692 rm -f conftest.s*
3693
3694 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3695 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3696 #
3697 # ac_d sets the value in "#define NAME VALUE" lines.
3698 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3699 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3700 ac_dC='\3'
3701 ac_dD='%g'
3702 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3703 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3704 ac_uB='\([      ]\)%\1#\2define\3'
3705 ac_uC=' '
3706 ac_uD='\4%g'
3707 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3708 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3709 ac_eB='$%\1#\2define\3'
3710 ac_eC=' '
3711 ac_eD='%g'
3712
3713 if test "${CONFIG_HEADERS+set}" != set; then
3714 EOF
3715 cat >> $CONFIG_STATUS <<EOF
3716   CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3717 EOF
3718 cat >> $CONFIG_STATUS <<\EOF
3719 fi
3720 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3721   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3722   case "$ac_file" in
3723   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3724        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3725   *) ac_file_in="${ac_file}.in" ;;
3726   esac
3727
3728   echo creating $ac_file
3729
3730   rm -f conftest.frag conftest.in conftest.out
3731   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3732   cat $ac_file_inputs > conftest.in
3733
3734 EOF
3735
3736 # Transform confdefs.h into a sed script conftest.vals that substitutes
3737 # the proper values into config.h.in to produce config.h.  And first:
3738 # Protect against being on the right side of a sed subst in config.status.
3739 # Protect against being in an unquoted here document in config.status.
3740 rm -f conftest.vals
3741 cat > conftest.hdr <<\EOF
3742 s/[\\&%]/\\&/g
3743 s%[\\$`]%\\&%g
3744 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3745 s%ac_d%ac_u%gp
3746 s%ac_u%ac_e%gp
3747 EOF
3748 sed -n -f conftest.hdr confdefs.h > conftest.vals
3749 rm -f conftest.hdr
3750
3751 # This sed command replaces #undef with comments.  This is necessary, for
3752 # example, in the case of _POSIX_SOURCE, which is predefined and required
3753 # on some systems where configure will not decide to define it.
3754 cat >> conftest.vals <<\EOF
3755 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3756 EOF
3757
3758 # Break up conftest.vals because some shells have a limit on
3759 # the size of here documents, and old seds have small limits too.
3760
3761 rm -f conftest.tail
3762 while :
3763 do
3764   ac_lines=`grep -c . conftest.vals`
3765   # grep -c gives empty output for an empty file on some AIX systems.
3766   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3767   # Write a limited-size here document to conftest.frag.
3768   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3769   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3770   echo 'CEOF
3771   sed -f conftest.frag conftest.in > conftest.out
3772   rm -f conftest.in
3773   mv conftest.out conftest.in
3774 ' >> $CONFIG_STATUS
3775   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3776   rm -f conftest.vals
3777   mv conftest.tail conftest.vals
3778 done
3779 rm -f conftest.vals
3780
3781 cat >> $CONFIG_STATUS <<\EOF
3782   rm -f conftest.frag conftest.h
3783   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3784   cat conftest.in >> conftest.h
3785   rm -f conftest.in
3786   if cmp -s $ac_file conftest.h 2>/dev/null; then
3787     echo "$ac_file is unchanged"
3788     rm -f conftest.h
3789   else
3790     # Remove last slash and all that follows it.  Not all systems have dirname.
3791       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3792       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3793       # The file is in a subdirectory.
3794       test ! -d "$ac_dir" && mkdir "$ac_dir"
3795     fi
3796     rm -f $ac_file
3797     mv conftest.h $ac_file
3798   fi
3799 fi; done
3800
3801 EOF
3802 cat >> $CONFIG_STATUS <<EOF
3803
3804 EOF
3805 cat >> $CONFIG_STATUS <<\EOF
3806
3807 exit 0
3808 EOF
3809 chmod +x $CONFIG_STATUS
3810 rm -fr confdefs* $ac_clean_files
3811 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3812
3813 if test "$no_recursion" != yes; then
3814
3815   # Remove --cache-file and --srcdir arguments so they do not pile up.
3816   ac_sub_configure_args=
3817   ac_prev=
3818   for ac_arg in $ac_configure_args; do
3819     if test -n "$ac_prev"; then
3820       ac_prev=
3821       continue
3822     fi
3823     case "$ac_arg" in
3824     -cache-file | --cache-file | --cache-fil | --cache-fi \
3825     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3826       ac_prev=cache_file ;;
3827     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3828     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3829       ;;
3830     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3831       ac_prev=srcdir ;;
3832     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3833       ;;
3834     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3835     esac
3836   done
3837
3838   for ac_config_dir in stepmake; do
3839
3840     # Do not complain, so a configure script can configure whichever
3841     # parts of a large source tree are present.
3842     if test ! -d $srcdir/$ac_config_dir; then
3843       continue
3844     fi
3845
3846     echo configuring in $ac_config_dir
3847
3848     case "$srcdir" in
3849     .) ;;
3850     *)
3851       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3852       else
3853         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3854       fi
3855       ;;
3856     esac
3857
3858     ac_popdir=`pwd`
3859     cd $ac_config_dir
3860
3861       # A "../" for each directory in /$ac_config_dir.
3862       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3863
3864     case "$srcdir" in
3865     .) # No --srcdir option.  We are building in place.
3866       ac_sub_srcdir=$srcdir ;;
3867     /*) # Absolute path.
3868       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3869     *) # Relative path.
3870       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3871     esac
3872
3873     # Check for guested configure; otherwise get Cygnus style configure.
3874     if test -f $ac_sub_srcdir/configure; then
3875       ac_sub_configure=$ac_sub_srcdir/configure
3876     elif test -f $ac_sub_srcdir/configure.in; then
3877       ac_sub_configure=$ac_configure
3878     else
3879       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3880       ac_sub_configure=
3881     fi
3882
3883     # The recursion is here.
3884     if test -n "$ac_sub_configure"; then
3885
3886       # Make the cache file name correct relative to the subdirectory.
3887       case "$cache_file" in
3888       /*) ac_sub_cache_file=$cache_file ;;
3889       *) # Relative path.
3890         ac_sub_cache_file="$ac_dots$cache_file" ;;
3891       esac
3892
3893       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3894       # The eval makes quoting arguments work.
3895       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3896       then :
3897       else
3898         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3899       fi
3900     fi
3901
3902     cd $ac_popdir
3903   done
3904 fi
3905
3906
3907     rm -f $srcdir/GNUmakefile
3908     cp $srcdir/make/toplevel.make.in $srcdir/GNUmakefile
3909     chmod 444 $srcdir/GNUmakefile
3910     if test "$builddir" != "."; then
3911         rm -f GNUmakefile
3912         cp $srcdir/make/srcdir.make.in GNUmakefile
3913         chmod 444 GNUmakefile
3914     fi
3915
3916