]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 1.3.107
[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
1506 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1507 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1508 echo "configure:1509: checking how to run the C preprocessor" >&5
1509 # On Suns, sometimes $CPP names a directory.
1510 if test -n "$CPP" && test -d "$CPP"; then
1511   CPP=
1512 fi
1513 if test -z "$CPP"; then
1514 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1515   echo $ac_n "(cached) $ac_c" 1>&6
1516 else
1517     # This must be in double quotes, not single quotes, because CPP may get
1518   # substituted into the Makefile and "${CC-cc}" will confuse make.
1519   CPP="${CC-cc} -E"
1520   # On the NeXT, cc -E runs the code through the compiler's parser,
1521   # not just through cpp.
1522   cat > conftest.$ac_ext <<EOF
1523 #line 1524 "configure"
1524 #include "confdefs.h"
1525 #include <assert.h>
1526 Syntax Error
1527 EOF
1528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1529 { (eval echo configure:1530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1531 if test -z "$ac_err"; then
1532   :
1533 else
1534   echo "$ac_err" >&5
1535   echo "configure: failed program was:" >&5
1536   cat conftest.$ac_ext >&5
1537   rm -rf conftest*
1538   CPP="${CC-cc} -E -traditional-cpp"
1539   cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1542 #include <assert.h>
1543 Syntax Error
1544 EOF
1545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1546 { (eval echo configure:1547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1548 if test -z "$ac_err"; then
1549   :
1550 else
1551   echo "$ac_err" >&5
1552   echo "configure: failed program was:" >&5
1553   cat conftest.$ac_ext >&5
1554   rm -rf conftest*
1555   CPP="${CC-cc} -nologo -E"
1556   cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1559 #include <assert.h>
1560 Syntax Error
1561 EOF
1562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1563 { (eval echo configure:1564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1565 if test -z "$ac_err"; then
1566   :
1567 else
1568   echo "$ac_err" >&5
1569   echo "configure: failed program was:" >&5
1570   cat conftest.$ac_ext >&5
1571   rm -rf conftest*
1572   CPP=/lib/cpp
1573 fi
1574 rm -f conftest*
1575 fi
1576 rm -f conftest*
1577 fi
1578 rm -f conftest*
1579   ac_cv_prog_CPP="$CPP"
1580 fi
1581   CPP="$ac_cv_prog_CPP"
1582 else
1583   ac_cv_prog_CPP="$CPP"
1584 fi
1585 echo "$ac_t""$CPP" 1>&6
1586
1587 for ac_hdr in assert.h sys/stat.h
1588 do
1589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1591 echo "configure:1592: checking for $ac_hdr" >&5
1592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1593   echo $ac_n "(cached) $ac_c" 1>&6
1594 else
1595   cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1598 #include <$ac_hdr>
1599 EOF
1600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601 { (eval echo configure:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1603 if test -z "$ac_err"; then
1604   rm -rf conftest*
1605   eval "ac_cv_header_$ac_safe=yes"
1606 else
1607   echo "$ac_err" >&5
1608   echo "configure: failed program was:" >&5
1609   cat conftest.$ac_ext >&5
1610   rm -rf conftest*
1611   eval "ac_cv_header_$ac_safe=no"
1612 fi
1613 rm -f conftest*
1614 fi
1615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1616   echo "$ac_t""yes" 1>&6
1617     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1618   cat >> confdefs.h <<EOF
1619 #define $ac_tr_hdr 1
1620 EOF
1621  
1622 else
1623   echo "$ac_t""no" 1>&6
1624 fi
1625 done
1626
1627 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1628 echo "configure:1629: checking whether stat file-mode macros are broken" >&5
1629 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1630   echo $ac_n "(cached) $ac_c" 1>&6
1631 else
1632   cat > conftest.$ac_ext <<EOF
1633 #line 1634 "configure"
1634 #include "confdefs.h"
1635 #include <sys/types.h>
1636 #include <sys/stat.h>
1637
1638 #if defined(S_ISBLK) && defined(S_IFDIR)
1639 # if S_ISBLK (S_IFDIR)
1640 You lose.
1641 # endif
1642 #endif
1643
1644 #if defined(S_ISBLK) && defined(S_IFCHR)
1645 # if S_ISBLK (S_IFCHR)
1646 You lose.
1647 # endif
1648 #endif
1649
1650 #if defined(S_ISLNK) && defined(S_IFREG)
1651 # if S_ISLNK (S_IFREG)
1652 You lose.
1653 # endif
1654 #endif
1655
1656 #if defined(S_ISSOCK) && defined(S_IFREG)
1657 # if S_ISSOCK (S_IFREG)
1658 You lose.
1659 # endif
1660 #endif
1661
1662 EOF
1663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1664   egrep "You lose" >/dev/null 2>&1; then
1665   rm -rf conftest*
1666   ac_cv_header_stat_broken=yes
1667 else
1668   rm -rf conftest*
1669   ac_cv_header_stat_broken=no
1670 fi
1671 rm -f conftest*
1672
1673 fi
1674
1675 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1676 if test $ac_cv_header_stat_broken = yes; then
1677   cat >> confdefs.h <<\EOF
1678 #define STAT_MACROS_BROKEN 1
1679 EOF
1680
1681 fi
1682
1683
1684 if test "$optimise_b" = yes; then
1685     DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1686     cat >> confdefs.h <<\EOF
1687 #define STRINGS_UTILS_INLINED 1
1688 EOF
1689
1690 fi
1691
1692
1693 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1694 echo "configure:1695: checking how to run the C++ preprocessor" >&5
1695 if test -z "$CXXCPP"; then
1696 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1697   echo $ac_n "(cached) $ac_c" 1>&6
1698 else
1699   ac_ext=C
1700 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1701 ac_cpp='$CXXCPP $CPPFLAGS'
1702 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1703 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1704 cross_compiling=$ac_cv_prog_cxx_cross
1705   CXXCPP="${CXX-g++} -E"
1706   cat > conftest.$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1709 #include <stdlib.h>
1710 EOF
1711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1712 { (eval echo configure:1713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1714 if test -z "$ac_err"; then
1715   :
1716 else
1717   echo "$ac_err" >&5
1718   echo "configure: failed program was:" >&5
1719   cat conftest.$ac_ext >&5
1720   rm -rf conftest*
1721   CXXCPP=/lib/cpp
1722 fi
1723 rm -f conftest*
1724   ac_cv_prog_CXXCPP="$CXXCPP"
1725 ac_ext=C
1726 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1727 ac_cpp='$CXXCPP $CPPFLAGS'
1728 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1729 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1730 cross_compiling=$ac_cv_prog_cxx_cross
1731 fi
1732 fi
1733 CXXCPP="$ac_cv_prog_CXXCPP"
1734 echo "$ac_t""$CXXCPP" 1>&6
1735
1736
1737     ac_ext=C
1738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1739 ac_cpp='$CXXCPP $CPPFLAGS'
1740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1742 cross_compiling=$ac_cv_prog_cxx_cross
1743
1744     for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1745 do
1746 # Extract the first word of "$ac_prog", so it can be a program name with args.
1747 set dummy $ac_prog; ac_word=$2
1748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1749 echo "configure:1750: checking for $ac_word" >&5
1750 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1751   echo $ac_n "(cached) $ac_c" 1>&6
1752 else
1753   if test -n "$CXX"; then
1754   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1755 else
1756   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1757   ac_dummy="$PATH"
1758   for ac_dir in $ac_dummy; do
1759     test -z "$ac_dir" && ac_dir=.
1760     if test -f $ac_dir/$ac_word; then
1761       ac_cv_prog_CXX="$ac_prog"
1762       break
1763     fi
1764   done
1765   IFS="$ac_save_ifs"
1766 fi
1767 fi
1768 CXX="$ac_cv_prog_CXX"
1769 if test -n "$CXX"; then
1770   echo "$ac_t""$CXX" 1>&6
1771 else
1772   echo "$ac_t""no" 1>&6
1773 fi
1774
1775 test -n "$CXX" && break
1776 done
1777 test -n "$CXX" || CXX="gcc"
1778
1779
1780 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1781 echo "configure:1782: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1782
1783 ac_ext=C
1784 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1785 ac_cpp='$CXXCPP $CPPFLAGS'
1786 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1787 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1788 cross_compiling=$ac_cv_prog_cxx_cross
1789
1790 cat > conftest.$ac_ext << EOF
1791
1792 #line 1793 "configure"
1793 #include "confdefs.h"
1794
1795 int main(){return(0);}
1796 EOF
1797 if { (eval echo configure:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1798   ac_cv_prog_cxx_works=yes
1799   # If we can't run a trivial program, we are probably using a cross compiler.
1800   if (./conftest; exit) 2>/dev/null; then
1801     ac_cv_prog_cxx_cross=no
1802   else
1803     ac_cv_prog_cxx_cross=yes
1804   fi
1805 else
1806   echo "configure: failed program was:" >&5
1807   cat conftest.$ac_ext >&5
1808   ac_cv_prog_cxx_works=no
1809 fi
1810 rm -fr conftest*
1811 ac_ext=C
1812 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1813 ac_cpp='$CXXCPP $CPPFLAGS'
1814 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1815 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1816 cross_compiling=$ac_cv_prog_cxx_cross
1817
1818 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1819 if test $ac_cv_prog_cxx_works = no; then
1820   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1821 fi
1822 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1823 echo "configure:1824: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1824 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1825 cross_compiling=$ac_cv_prog_cxx_cross
1826
1827 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1828 echo "configure:1829: checking whether we are using GNU C++" >&5
1829 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1830   echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832   cat > conftest.C <<EOF
1833 #ifdef __GNUC__
1834   yes;
1835 #endif
1836 EOF
1837 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1838   ac_cv_prog_gxx=yes
1839 else
1840   ac_cv_prog_gxx=no
1841 fi
1842 fi
1843
1844 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1845
1846 if test $ac_cv_prog_gxx = yes; then
1847   GXX=yes
1848 else
1849   GXX=
1850 fi
1851
1852 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1853 ac_save_CXXFLAGS="$CXXFLAGS"
1854 CXXFLAGS=
1855 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1856 echo "configure:1857: checking whether ${CXX-g++} accepts -g" >&5
1857 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1858   echo $ac_n "(cached) $ac_c" 1>&6
1859 else
1860   echo 'void f(){}' > conftest.cc
1861 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1862   ac_cv_prog_cxx_g=yes
1863 else
1864   ac_cv_prog_cxx_g=no
1865 fi
1866 rm -f conftest*
1867
1868 fi
1869
1870 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1871 if test "$ac_test_CXXFLAGS" = set; then
1872   CXXFLAGS="$ac_save_CXXFLAGS"
1873 elif test $ac_cv_prog_cxx_g = yes; then
1874   if test "$GXX" = yes; then
1875     CXXFLAGS="-g -O2"
1876   else
1877     CXXFLAGS="-g"
1878   fi
1879 else
1880   if test "$GXX" = yes; then
1881     CXXFLAGS="-O2"
1882   else
1883     CXXFLAGS=
1884   fi
1885 fi
1886
1887
1888     ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1889 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1890 echo "configure:1891: checking for FlexLexer.h" >&5
1891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1892   echo $ac_n "(cached) $ac_c" 1>&6
1893 else
1894   cat > conftest.$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1897 #include <FlexLexer.h>
1898 EOF
1899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1900 { (eval echo configure:1901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1902 if test -z "$ac_err"; then
1903   rm -rf conftest*
1904   eval "ac_cv_header_$ac_safe=yes"
1905 else
1906   echo "$ac_err" >&5
1907   echo "configure: failed program was:" >&5
1908   cat conftest.$ac_ext >&5
1909   rm -rf conftest*
1910   eval "ac_cv_header_$ac_safe=no"
1911 fi
1912 rm -f conftest*
1913 fi
1914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1915   echo "$ac_t""yes" 1>&6
1916   true
1917 else
1918   echo "$ac_t""no" 1>&6
1919
1920     echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1921     warn_b=yes
1922
1923 fi
1924
1925
1926     CPPFLAGS="$CPPFLAGS $DEFINES"
1927     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1928     LDFLAGS="$LDFLAGS $EXTRA_LIBES"
1929
1930     
1931     
1932     LD='$(CXX)'
1933     
1934
1935
1936     # ugh autoconf
1937     # urg, egcs: how to check for egcs >= 1.1?
1938         if $CXX --version | egrep '2\.[89]' > /dev/null ||
1939         $CXX --version | grep 'egcs' > /dev/null
1940         then
1941             true
1942     else
1943             
1944     echo "configure: warning: can\'t find g++ 2.8" 1>&2
1945     warn_b=yes
1946
1947     fi
1948
1949
1950     echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1951 echo "configure:1952: checking whether explicit instantiation is needed" >&5
1952 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1953   echo $ac_n "(cached) $ac_c" 1>&6
1954 else
1955   cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1958
1959     template <class T> struct foo { static int baz; };
1960     template <class T> int foo<T>::baz = 1;
1961     
1962 int main() {
1963  return foo<int>::baz; 
1964 ; return 0; }
1965 EOF
1966 if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1967   rm -rf conftest*
1968   lily_cv_need_explicit_instantiation=no
1969 else
1970   echo "configure: failed program was:" >&5
1971   cat conftest.$ac_ext >&5
1972   rm -rf conftest*
1973   lily_cv_need_explicit_instantiation=yes
1974 fi
1975 rm -f conftest*
1976 fi
1977
1978 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1979     if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1980         cat >> confdefs.h <<\EOF
1981 #define NEED_EXPLICIT_INSTANTIATION 1
1982 EOF
1983
1984     fi
1985
1986
1987     # ugh, automake: we want (and check for) bison
1988     for ac_prog in 'bison -y' byacc
1989 do
1990 # Extract the first word of "$ac_prog", so it can be a program name with args.
1991 set dummy $ac_prog; ac_word=$2
1992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1993 echo "configure:1994: checking for $ac_word" >&5
1994 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1995   echo $ac_n "(cached) $ac_c" 1>&6
1996 else
1997   if test -n "$YACC"; then
1998   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1999 else
2000   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2001   ac_dummy="$PATH"
2002   for ac_dir in $ac_dummy; do
2003     test -z "$ac_dir" && ac_dir=.
2004     if test -f $ac_dir/$ac_word; then
2005       ac_cv_prog_YACC="$ac_prog"
2006       break
2007     fi
2008   done
2009   IFS="$ac_save_ifs"
2010 fi
2011 fi
2012 YACC="$ac_cv_prog_YACC"
2013 if test -n "$YACC"; then
2014   echo "$ac_t""$YACC" 1>&6
2015 else
2016   echo "$ac_t""no" 1>&6
2017 fi
2018
2019 test -n "$YACC" && break
2020 done
2021 test -n "$YACC" || YACC="yacc"
2022
2023     # ugh, automake: we want (and check for) flex
2024     # AC_PROG_LEX
2025     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
2026
2027     # AC_DECL_YYTEXT
2028     # ugh, ugh
2029     ac_cv_prog_lex_root=lex.yy
2030
2031     for ac_prog in bison
2032 do
2033 # Extract the first word of "$ac_prog", so it can be a program name with args.
2034 set dummy $ac_prog; ac_word=$2
2035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2036 echo "configure:2037: checking for $ac_word" >&5
2037 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2038   echo $ac_n "(cached) $ac_c" 1>&6
2039 else
2040   if test -n "$BISON"; then
2041   ac_cv_prog_BISON="$BISON" # Let the user override the test.
2042 else
2043   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2044   ac_dummy="$PATH"
2045   for ac_dir in $ac_dummy; do
2046     test -z "$ac_dir" && ac_dir=.
2047     if test -f $ac_dir/$ac_word; then
2048       ac_cv_prog_BISON="$ac_prog"
2049       break
2050     fi
2051   done
2052   IFS="$ac_save_ifs"
2053 fi
2054 fi
2055 BISON="$ac_cv_prog_BISON"
2056 if test -n "$BISON"; then
2057   echo "$ac_t""$BISON" 1>&6
2058 else
2059   echo "$ac_t""no" 1>&6
2060 fi
2061
2062 test -n "$BISON" && break
2063 done
2064 test -n "$BISON" || BISON="error"
2065
2066     for ac_prog in flex
2067 do
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy $ac_prog; ac_word=$2
2070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_word" >&5
2072 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2073   echo $ac_n "(cached) $ac_c" 1>&6
2074 else
2075   if test -n "$FLEX"; then
2076   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2077 else
2078   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2079   ac_dummy="$PATH"
2080   for ac_dir in $ac_dummy; do
2081     test -z "$ac_dir" && ac_dir=.
2082     if test -f $ac_dir/$ac_word; then
2083       ac_cv_prog_FLEX="$ac_prog"
2084       break
2085     fi
2086   done
2087   IFS="$ac_save_ifs"
2088 fi
2089 fi
2090 FLEX="$ac_cv_prog_FLEX"
2091 if test -n "$FLEX"; then
2092   echo "$ac_t""$FLEX" 1>&6
2093 else
2094   echo "$ac_t""no" 1>&6
2095 fi
2096
2097 test -n "$FLEX" && break
2098 done
2099 test -n "$FLEX" || FLEX="error"
2100
2101     
2102         result="`echo \"$BISON\" | grep echo`"
2103         if test "x$BISON" = "xerror" -o "x$result" != "x"; then
2104                 
2105     echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
2106     warn_b=yes
2107
2108         fi
2109
2110     
2111         result="`echo \"$FLEX\" | grep echo`"
2112         if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
2113                 
2114     echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
2115     warn_b=yes
2116
2117         fi
2118
2119
2120     if test $BISON != "error"; then
2121         bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
2122         if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
2123             
2124     echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
2125     warn_b=yes
2126
2127         fi      
2128     fi
2129
2130     
2131     
2132
2133
2134     for ac_prog in ar
2135 do
2136 # Extract the first word of "$ac_prog", so it can be a program name with args.
2137 set dummy $ac_prog; ac_word=$2
2138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2139 echo "configure:2140: checking for $ac_word" >&5
2140 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2141   echo $ac_n "(cached) $ac_c" 1>&6
2142 else
2143   if test -n "$AR"; then
2144   ac_cv_prog_AR="$AR" # Let the user override the test.
2145 else
2146   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2147   ac_dummy="$PATH"
2148   for ac_dir in $ac_dummy; do
2149     test -z "$ac_dir" && ac_dir=.
2150     if test -f $ac_dir/$ac_word; then
2151       ac_cv_prog_AR="$ac_prog"
2152       break
2153     fi
2154   done
2155   IFS="$ac_save_ifs"
2156 fi
2157 fi
2158 AR="$ac_cv_prog_AR"
2159 if test -n "$AR"; then
2160   echo "$ac_t""$AR" 1>&6
2161 else
2162   echo "$ac_t""no" 1>&6
2163 fi
2164
2165 test -n "$AR" && break
2166 done
2167 test -n "$AR" || AR="error"
2168
2169     # Extract the first word of "ranlib", so it can be a program name with args.
2170 set dummy ranlib; ac_word=$2
2171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2172 echo "configure:2173: checking for $ac_word" >&5
2173 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2174   echo $ac_n "(cached) $ac_c" 1>&6
2175 else
2176   if test -n "$RANLIB"; then
2177   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2178 else
2179   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2180   ac_dummy="$PATH"
2181   for ac_dir in $ac_dummy; do
2182     test -z "$ac_dir" && ac_dir=.
2183     if test -f $ac_dir/$ac_word; then
2184       ac_cv_prog_RANLIB="ranlib"
2185       break
2186     fi
2187   done
2188   IFS="$ac_save_ifs"
2189   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2190 fi
2191 fi
2192 RANLIB="$ac_cv_prog_RANLIB"
2193 if test -n "$RANLIB"; then
2194   echo "$ac_t""$RANLIB" 1>&6
2195 else
2196   echo "$ac_t""no" 1>&6
2197 fi
2198
2199
2200     
2201     
2202
2203 # AC_STEPMAKE_LIBTOOL
2204
2205     lang=English
2206     ALL_LINGUAS="en nl"
2207
2208     # with/enable ??
2209     # Check whether --with-localedir or --without-localedir was given.
2210 if test "${with_localedir+set}" = set; then
2211   withval="$with_localedir"
2212   localedir=$with_localedir
2213 else
2214   localedir='${prefix}/share/locale'
2215 fi
2216
2217
2218     # Check whether --with-lang or --without-lang was given.
2219 if test "${with_lang+set}" = set; then
2220   withval="$with_lang"
2221   language=$with_lang
2222 else
2223   language=English
2224 fi
2225
2226
2227     echo $ac_n "checking language""... $ac_c" 1>&6
2228 echo "configure:2229: checking language" >&5    
2229     case "$language" in
2230       En* | en* | Am* | am* | US* | us*)
2231             lang=English;;
2232       NL | nl | Du* | du* | Ned* | ned*)
2233             lang=Dutch;;
2234       "")
2235             lang=English;;
2236       *)
2237             lang=unknown;;
2238     esac
2239     echo "$ac_t""$lang" 1>&6
2240
2241     if test "$lang" = "unknown" ; then
2242         
2243     echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2244     warn_b=yes
2245
2246     fi
2247
2248
2249
2250     DIR_LOCALEDIR=${localedir}
2251     presome=${prefix}
2252     if test "$prefix" = "NONE"; then
2253             presome=${ac_default_prefix}
2254     fi
2255     DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2256     
2257     
2258     cat >> confdefs.h <<EOF
2259 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2260 EOF
2261
2262
2263     echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2264 echo "configure:2265: checking for gettext in -lintl" >&5
2265 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2267   echo $ac_n "(cached) $ac_c" 1>&6
2268 else
2269   ac_save_LIBS="$LIBS"
2270 LIBS="-lintl  $LIBS"
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 /* Override any gcc2 internal prototype to avoid an error.  */
2275 #ifdef __cplusplus
2276 extern "C"
2277 #endif
2278 /* We use char because int might match the return type of a gcc2
2279     builtin and then its argument prototype would still apply.  */
2280 char gettext();
2281
2282 int main() {
2283 gettext()
2284 ; return 0; }
2285 EOF
2286 if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2287   rm -rf conftest*
2288   eval "ac_cv_lib_$ac_lib_var=yes"
2289 else
2290   echo "configure: failed program was:" >&5
2291   cat conftest.$ac_ext >&5
2292   rm -rf conftest*
2293   eval "ac_cv_lib_$ac_lib_var=no"
2294 fi
2295 rm -f conftest*
2296 LIBS="$ac_save_LIBS"
2297
2298 fi
2299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2300   echo "$ac_t""yes" 1>&6
2301     ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2302     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2303   cat >> confdefs.h <<EOF
2304 #define $ac_tr_lib 1
2305 EOF
2306
2307   LIBS="-lintl $LIBS"
2308
2309 else
2310   echo "$ac_t""no" 1>&6
2311 fi
2312
2313     for ac_func in gettext
2314 do
2315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_func" >&5
2317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2318   echo $ac_n "(cached) $ac_c" 1>&6
2319 else
2320   cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2323 /* System header to define __stub macros and hopefully few prototypes,
2324     which can conflict with char $ac_func(); below.  */
2325 #include <assert.h>
2326 /* Override any gcc2 internal prototype to avoid an error.  */
2327 #ifdef __cplusplus
2328 extern "C"
2329 #endif
2330 /* We use char because int might match the return type of a gcc2
2331     builtin and then its argument prototype would still apply.  */
2332 char $ac_func();
2333
2334 int main() {
2335
2336 /* The GNU C library defines this for functions which it implements
2337     to always fail with ENOSYS.  Some functions are actually named
2338     something starting with __ and the normal name is an alias.  */
2339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2340 choke me
2341 #else
2342 $ac_func();
2343 #endif
2344
2345 ; return 0; }
2346 EOF
2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2348   rm -rf conftest*
2349   eval "ac_cv_func_$ac_func=yes"
2350 else
2351   echo "configure: failed program was:" >&5
2352   cat conftest.$ac_ext >&5
2353   rm -rf conftest*
2354   eval "ac_cv_func_$ac_func=no"
2355 fi
2356 rm -f conftest*
2357 fi
2358
2359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2360   echo "$ac_t""yes" 1>&6
2361     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2362   cat >> confdefs.h <<EOF
2363 #define $ac_tr_func 1
2364 EOF
2365  
2366 else
2367   echo "$ac_t""no" 1>&6
2368 fi
2369 done
2370
2371
2372
2373     # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2374     for ac_prog in msgfmt
2375 do
2376 # Extract the first word of "$ac_prog", so it can be a program name with args.
2377 set dummy $ac_prog; ac_word=$2
2378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2379 echo "configure:2380: checking for $ac_word" >&5
2380 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2381   echo $ac_n "(cached) $ac_c" 1>&6
2382 else
2383   if test -n "$MSGFMT"; then
2384   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2385 else
2386   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2387   ac_dummy="$PATH"
2388   for ac_dir in $ac_dummy; do
2389     test -z "$ac_dir" && ac_dir=.
2390     if test -f $ac_dir/$ac_word; then
2391       ac_cv_prog_MSGFMT="$ac_prog"
2392       break
2393     fi
2394   done
2395   IFS="$ac_save_ifs"
2396 fi
2397 fi
2398 MSGFMT="$ac_cv_prog_MSGFMT"
2399 if test -n "$MSGFMT"; then
2400   echo "$ac_t""$MSGFMT" 1>&6
2401 else
2402   echo "$ac_t""no" 1>&6
2403 fi
2404
2405 test -n "$MSGFMT" && break
2406 done
2407 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2408
2409     echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2410 echo "configure:2411: checking whether msgfmt accepts -o" >&5
2411     msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2412     if test "$msgfmt_output" = ""; then
2413         echo "$ac_t""yes" 1>&6
2414     else
2415         # urg
2416         MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2417         echo "$ac_t""no" 1>&6
2418         
2419     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2420     warn_b=yes
2421
2422     fi
2423     if test ! -n "$MSGFMT"; then
2424         
2425     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2426     warn_b=yes
2427
2428     fi
2429
2430
2431     # urg, never know what names these teTeX guys will think up
2432
2433     for ac_prog in mf
2434 do
2435 # Extract the first word of "$ac_prog", so it can be a program name with args.
2436 set dummy $ac_prog; ac_word=$2
2437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2438 echo "configure:2439: checking for $ac_word" >&5
2439 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2440   echo $ac_n "(cached) $ac_c" 1>&6
2441 else
2442   if test -n "$METAFONT"; then
2443   ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2444 else
2445   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2446   ac_dummy="$PATH"
2447   for ac_dir in $ac_dummy; do
2448     test -z "$ac_dir" && ac_dir=.
2449     if test -f $ac_dir/$ac_word; then
2450       ac_cv_prog_METAFONT="$ac_prog"
2451       break
2452     fi
2453   done
2454   IFS="$ac_save_ifs"
2455 fi
2456 fi
2457 METAFONT="$ac_cv_prog_METAFONT"
2458 if test -n "$METAFONT"; then
2459   echo "$ac_t""$METAFONT" 1>&6
2460 else
2461   echo "$ac_t""no" 1>&6
2462 fi
2463
2464 test -n "$METAFONT" && break
2465 done
2466 test -n "$METAFONT" || METAFONT="no"
2467
2468     if test "x$METAFONT" = "xno"; then
2469         for ac_prog in mfont
2470 do
2471 # Extract the first word of "$ac_prog", so it can be a program name with args.
2472 set dummy $ac_prog; ac_word=$2
2473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2474 echo "configure:2475: checking for $ac_word" >&5
2475 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2476   echo $ac_n "(cached) $ac_c" 1>&6
2477 else
2478   if test -n "$MFONT"; then
2479   ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2480 else
2481   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2482   ac_dummy="$PATH"
2483   for ac_dir in $ac_dummy; do
2484     test -z "$ac_dir" && ac_dir=.
2485     if test -f $ac_dir/$ac_word; then
2486       ac_cv_prog_MFONT="$ac_prog"
2487       break
2488     fi
2489   done
2490   IFS="$ac_save_ifs"
2491 fi
2492 fi
2493 MFONT="$ac_cv_prog_MFONT"
2494 if test -n "$MFONT"; then
2495   echo "$ac_t""$MFONT" 1>&6
2496 else
2497   echo "$ac_t""no" 1>&6
2498 fi
2499
2500 test -n "$MFONT" && break
2501 done
2502 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2503
2504         METAFONT=$MFONT
2505     fi
2506
2507     for ac_prog in mp
2508 do
2509 # Extract the first word of "$ac_prog", so it can be a program name with args.
2510 set dummy $ac_prog; ac_word=$2
2511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2512 echo "configure:2513: checking for $ac_word" >&5
2513 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2514   echo $ac_n "(cached) $ac_c" 1>&6
2515 else
2516   if test -n "$METAPOST"; then
2517   ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2518 else
2519   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2520   ac_dummy="$PATH"
2521   for ac_dir in $ac_dummy; do
2522     test -z "$ac_dir" && ac_dir=.
2523     if test -f $ac_dir/$ac_word; then
2524       ac_cv_prog_METAPOST="$ac_prog"
2525       break
2526     fi
2527   done
2528   IFS="$ac_save_ifs"
2529 fi
2530 fi
2531 METAPOST="$ac_cv_prog_METAPOST"
2532 if test -n "$METAPOST"; then
2533   echo "$ac_t""$METAPOST" 1>&6
2534 else
2535   echo "$ac_t""no" 1>&6
2536 fi
2537
2538 test -n "$METAPOST" && break
2539 done
2540 test -n "$METAPOST" || METAPOST="no"
2541
2542     if test "x$METAPOST" = "xno"; then
2543         for ac_prog in mpost
2544 do
2545 # Extract the first word of "$ac_prog", so it can be a program name with args.
2546 set dummy $ac_prog; ac_word=$2
2547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2548 echo "configure:2549: checking for $ac_word" >&5
2549 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2550   echo $ac_n "(cached) $ac_c" 1>&6
2551 else
2552   if test -n "$MPOST"; then
2553   ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2554 else
2555   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2556   ac_dummy="$PATH"
2557   for ac_dir in $ac_dummy; do
2558     test -z "$ac_dir" && ac_dir=.
2559     if test -f $ac_dir/$ac_word; then
2560       ac_cv_prog_MPOST="$ac_prog"
2561       break
2562     fi
2563   done
2564   IFS="$ac_save_ifs"
2565 fi
2566 fi
2567 MPOST="$ac_cv_prog_MPOST"
2568 if test -n "$MPOST"; then
2569   echo "$ac_t""$MPOST" 1>&6
2570 else
2571   echo "$ac_t""no" 1>&6
2572 fi
2573
2574 test -n "$MPOST" && break
2575 done
2576 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2577
2578
2579         METAPOST=$MPOST
2580     fi
2581
2582     for ac_prog in inimf
2583 do
2584 # Extract the first word of "$ac_prog", so it can be a program name with args.
2585 set dummy $ac_prog; ac_word=$2
2586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_word" >&5
2588 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2589   echo $ac_n "(cached) $ac_c" 1>&6
2590 else
2591   if test -n "$INIMETAFONT"; then
2592   ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2593 else
2594   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2595   ac_dummy="$PATH"
2596   for ac_dir in $ac_dummy; do
2597     test -z "$ac_dir" && ac_dir=.
2598     if test -f $ac_dir/$ac_word; then
2599       ac_cv_prog_INIMETAFONT="$ac_prog"
2600       break
2601     fi
2602   done
2603   IFS="$ac_save_ifs"
2604 fi
2605 fi
2606 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2607 if test -n "$INIMETAFONT"; then
2608   echo "$ac_t""$INIMETAFONT" 1>&6
2609 else
2610   echo "$ac_t""no" 1>&6
2611 fi
2612
2613 test -n "$INIMETAFONT" && break
2614 done
2615 test -n "$INIMETAFONT" || INIMETAFONT="no"
2616
2617     if test "x$INIMETAFONT" = "xno"; then
2618         for ac_prog in inimfont
2619 do
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2623 echo "configure:2624: checking for $ac_word" >&5
2624 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2625   echo $ac_n "(cached) $ac_c" 1>&6
2626 else
2627   if test -n "$INIMFONT"; then
2628   ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2629 else
2630   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2631   ac_dummy="$PATH"
2632   for ac_dir in $ac_dummy; do
2633     test -z "$ac_dir" && ac_dir=.
2634     if test -f $ac_dir/$ac_word; then
2635       ac_cv_prog_INIMFONT="$ac_prog"
2636       break
2637     fi
2638   done
2639   IFS="$ac_save_ifs"
2640 fi
2641 fi
2642 INIMFONT="$ac_cv_prog_INIMFONT"
2643 if test -n "$INIMFONT"; then
2644   echo "$ac_t""$INIMFONT" 1>&6
2645 else
2646   echo "$ac_t""no" 1>&6
2647 fi
2648
2649 test -n "$INIMFONT" && break
2650 done
2651 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2652
2653         INIMETAFONT=$INIMFONT
2654     fi
2655
2656     for ac_prog in inimp
2657 do
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659 set dummy $ac_prog; ac_word=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2663   echo $ac_n "(cached) $ac_c" 1>&6
2664 else
2665   if test -n "$INIMETAPOST"; then
2666   ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test.
2667 else
2668   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2669   ac_dummy="$PATH"
2670   for ac_dir in $ac_dummy; do
2671     test -z "$ac_dir" && ac_dir=.
2672     if test -f $ac_dir/$ac_word; then
2673       ac_cv_prog_INIMETAPOST="$ac_prog"
2674       break
2675     fi
2676   done
2677   IFS="$ac_save_ifs"
2678 fi
2679 fi
2680 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2681 if test -n "$INIMETAPOST"; then
2682   echo "$ac_t""$INIMETAPOST" 1>&6
2683 else
2684   echo "$ac_t""no" 1>&6
2685 fi
2686
2687 test -n "$INIMETAPOST" && break
2688 done
2689 test -n "$INIMETAPOST" || INIMETAPOST="no"
2690
2691     if test "x$INIMETAPOST" = "xno"; then
2692         for ac_prog in inimpost
2693 do
2694 # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_word" >&5
2698 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2699   echo $ac_n "(cached) $ac_c" 1>&6
2700 else
2701   if test -n "$INIMPOST"; then
2702   ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2703 else
2704   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2705   ac_dummy="$PATH"
2706   for ac_dir in $ac_dummy; do
2707     test -z "$ac_dir" && ac_dir=.
2708     if test -f $ac_dir/$ac_word; then
2709       ac_cv_prog_INIMPOST="$ac_prog"
2710       break
2711     fi
2712   done
2713   IFS="$ac_save_ifs"
2714 fi
2715 fi
2716 INIMPOST="$ac_cv_prog_INIMPOST"
2717 if test -n "$INIMPOST"; then
2718   echo "$ac_t""$INIMPOST" 1>&6
2719 else
2720   echo "$ac_t""no" 1>&6
2721 fi
2722
2723 test -n "$INIMPOST" && break
2724 done
2725 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2726
2727         INIMETAPOST=$INIMPOST
2728     fi
2729
2730     echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2731 echo "configure:2732: checking for working metafont mode" >&5
2732     modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2733     for MFMODE in $modelist; do
2734         $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2735         if test -f mfput.tfm; then
2736             break;
2737         fi
2738     done
2739     echo "$ac_t""$MFMODE" 1>&6
2740
2741     echo $ac_n "checking for mfplain.mp""... $ac_c" 1>&6
2742 echo "configure:2743: checking for mfplain.mp" >&5
2743     #
2744     # For now let people define these in their environments
2745     #
2746     : ${MFPLAIN_MP=`kpsewhich mp mfplain.mp`}
2747     echo "$ac_t""$MFPLAIN_MP" 1>&6
2748
2749     echo $ac_n "checking for inimetapost flags""... $ac_c" 1>&6
2750 echo "configure:2751: checking for inimetapost flags" >&5
2751     if test  ${INIMETAPOST} = "inimp" ; then
2752        : ${INIMETAPOST_FLAGS=''}
2753     else
2754        : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2755     fi
2756     echo "$ac_t""$INIMETAPOST_FLAGS" 1>&6
2757
2758     rm -f mfput.*
2759
2760     
2761     
2762     
2763     
2764     
2765     
2766     
2767
2768
2769     # Check whether --enable-tfm-path or --disable-tfm-path was given.
2770 if test "${enable_tfm_path+set}" = set; then
2771   enableval="$enable_tfm_path"
2772   tfm_path=$enableval
2773 else
2774   tfm_path=auto 
2775 fi
2776
2777
2778     for ac_prog in kpsewhich
2779 do
2780 # Extract the first word of "$ac_prog", so it can be a program name with args.
2781 set dummy $ac_prog; ac_word=$2
2782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2783 echo "configure:2784: checking for $ac_word" >&5
2784 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2785   echo $ac_n "(cached) $ac_c" 1>&6
2786 else
2787   if test -n "$KPSEWHICH"; then
2788   ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2789 else
2790   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2791   ac_dummy="$PATH"
2792   for ac_dir in $ac_dummy; do
2793     test -z "$ac_dir" && ac_dir=.
2794     if test -f $ac_dir/$ac_word; then
2795       ac_cv_prog_KPSEWHICH="$ac_prog"
2796       break
2797     fi
2798   done
2799   IFS="$ac_save_ifs"
2800 fi
2801 fi
2802 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2803 if test -n "$KPSEWHICH"; then
2804   echo "$ac_t""$KPSEWHICH" 1>&6
2805 else
2806   echo "$ac_t""no" 1>&6
2807 fi
2808
2809 test -n "$KPSEWHICH" && break
2810 done
2811 test -n "$KPSEWHICH" || KPSEWHICH="no"
2812
2813     echo $ac_n "checking for tfm path""... $ac_c" 1>&6
2814 echo "configure:2815: checking for tfm path" >&5
2815
2816     TFM_FONTS="cmr msam"
2817
2818     if test "x$tfm_path" = xauto ; then
2819         if test "x$KPSEWHICH" != "xno" ; then
2820             for i in $TFM_FONTS; do
2821                 dir=`$KPSEWHICH tfm ${i}10.tfm`
2822                 TFM_PATH="$TFM_PATH `dirname $dir`"
2823             done
2824         else
2825             
2826     echo "configure: warning: Please specify where cmr10.tfm lives:
2827     ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
2828     warn_b=yes
2829
2830         fi
2831     else
2832          TFM_PATH=$tfm_path
2833     fi
2834
2835     TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
2836     echo "$ac_t""$TFM_PATH" 1>&6
2837     
2838
2839
2840     ## First, let's just see if we can find Guile at all.
2841     echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6
2842 echo "configure:2843: checking "for guile-config"" >&5
2843     for guile_config in guile-config $target-guile-config $build-guile-config; do
2844         echo "$ac_t"""$guile_config"" 1>&6
2845         if ! $guile_config --version > /dev/null 2>&1 ; then
2846             echo "configure: warning: "cannot execute $guile_config"" 1>&2
2847             echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6
2848 echo "configure:2849: checking "if we are cross compiling"" >&5
2849             guile_config=error
2850         else
2851             break
2852         fi
2853     done
2854     if test "$guile_config" = "error"; then
2855         { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2856         exit 1
2857     fi
2858     echo $ac_n "checking "Guile version"""... $ac_c" 1>&6
2859 echo "configure:2860: checking "Guile version"" >&5
2860     need_guile_version="1.3.4"
2861     need_guile_version_numeric=100304
2862     guile_version=`$guile_config --version 2>&1 | awk '{print $NF}'`
2863     guile_version_numeric=`echo $guile_version | awk -F. '
2864 {if ($3) {last = $3}
2865 else {last =0}}
2866 {printf "%s%s%s\n",$1*100, $2*10,last}'`
2867     echo "$ac_t"""$guile_version"" 1>&6
2868     if test $guile_version_numeric -lt $need_guile_version_numeric
2869     then
2870         
2871     echo "configure: warning: "Guile version "$need_guile_version" or newer is needed"" 1>&2
2872     warn_b=yes
2873
2874     fi
2875     
2876 ## The GUILE_FLAGS macro.
2877   echo $ac_n "checking for Guile""... $ac_c" 1>&6
2878 echo "configure:2879: checking for Guile" >&5
2879   if ! $guile_config link > /dev/null ; then
2880       echo "$ac_t"""cannot execute $guile_config"" 1>&6
2881       { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2882       exit 1
2883   fi
2884   GUILE_CFLAGS="`$guile_config compile`"
2885   GUILE_LDFLAGS="`$guile_config link`"
2886   
2887   
2888   echo "$ac_t""yes" 1>&6
2889
2890     # Extract the first word of "guile", so it can be a program name with args.
2891 set dummy guile; ac_word=$2
2892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2893 echo "configure:2894: checking for $ac_word" >&5
2894 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2895   echo $ac_n "(cached) $ac_c" 1>&6
2896 else
2897   case "$GUILE" in
2898   /*)
2899   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
2900   ;;
2901   ?:/*)                  
2902   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
2903   ;;
2904   *)
2905   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2906   ac_dummy="$PATH"
2907   for ac_dir in $ac_dummy; do 
2908     test -z "$ac_dir" && ac_dir=.
2909     if test -f $ac_dir/$ac_word; then
2910       ac_cv_path_GUILE="$ac_dir/$ac_word"
2911       break
2912     fi
2913   done
2914   IFS="$ac_save_ifs"
2915   test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error"
2916   ;;
2917 esac
2918 fi
2919 GUILE="$ac_cv_path_GUILE"
2920 if test -n "$GUILE"; then
2921   echo "$ac_t""$GUILE" 1>&6
2922 else
2923   echo "$ac_t""no" 1>&6
2924 fi
2925
2926     
2927
2928
2929
2930     kpathsea_b=yes
2931     # Check whether --enable-kpathsea or --disable-kpathsea was given.
2932 if test "${enable_kpathsea+set}" = set; then
2933   enableval="$enable_kpathsea"
2934   kpathsea_b=$enableval
2935 fi
2936
2937
2938     if test $kpathsea_b = yes; then     
2939         for ac_hdr in kpathsea/kpathsea.h
2940 do
2941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2943 echo "configure:2944: checking for $ac_hdr" >&5
2944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2945   echo $ac_n "(cached) $ac_c" 1>&6
2946 else
2947   cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 #include <$ac_hdr>
2951 EOF
2952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2953 { (eval echo configure:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2955 if test -z "$ac_err"; then
2956   rm -rf conftest*
2957   eval "ac_cv_header_$ac_safe=yes"
2958 else
2959   echo "$ac_err" >&5
2960   echo "configure: failed program was:" >&5
2961   cat conftest.$ac_ext >&5
2962   rm -rf conftest*
2963   eval "ac_cv_header_$ac_safe=no"
2964 fi
2965 rm -f conftest*
2966 fi
2967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2968   echo "$ac_t""yes" 1>&6
2969     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2970   cat >> confdefs.h <<EOF
2971 #define $ac_tr_hdr 1
2972 EOF
2973  
2974 else
2975   echo "$ac_t""no" 1>&6
2976 fi
2977 done
2978
2979         echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
2980 echo "configure:2981: checking for kpse_find_file in -lkpathsea" >&5
2981 ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
2982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2983   echo $ac_n "(cached) $ac_c" 1>&6
2984 else
2985   ac_save_LIBS="$LIBS"
2986 LIBS="-lkpathsea  $LIBS"
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 /* Override any gcc2 internal prototype to avoid an error.  */
2991 #ifdef __cplusplus
2992 extern "C"
2993 #endif
2994 /* We use char because int might match the return type of a gcc2
2995     builtin and then its argument prototype would still apply.  */
2996 char kpse_find_file();
2997
2998 int main() {
2999 kpse_find_file()
3000 ; return 0; }
3001 EOF
3002 if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3003   rm -rf conftest*
3004   eval "ac_cv_lib_$ac_lib_var=yes"
3005 else
3006   echo "configure: failed program was:" >&5
3007   cat conftest.$ac_ext >&5
3008   rm -rf conftest*
3009   eval "ac_cv_lib_$ac_lib_var=no"
3010 fi
3011 rm -f conftest*
3012 LIBS="$ac_save_LIBS"
3013
3014 fi
3015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3016   echo "$ac_t""yes" 1>&6
3017     ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3018     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3019   cat >> confdefs.h <<EOF
3020 #define $ac_tr_lib 1
3021 EOF
3022
3023   LIBS="-lkpathsea $LIBS"
3024
3025 else
3026   echo "$ac_t""no" 1>&6
3027 fi
3028
3029         # urg: kpse_find_tfm is a #define, how to check for this?
3030         # AC_CHECK_LIB(kpathsea, kpse_find_tfm)
3031         # AC_CHECK_FUNCS(kpse_find_file kpse_find_tfm,, AC_STEPMAKE_WARN(Cannot find kpathsea functions.  You may have to create TFM files manually.))
3032         for ac_func in kpse_find_file
3033 do
3034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3035 echo "configure:3036: checking for $ac_func" >&5
3036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3037   echo $ac_n "(cached) $ac_c" 1>&6
3038 else
3039   cat > conftest.$ac_ext <<EOF
3040 #line 3041 "configure"
3041 #include "confdefs.h"
3042 /* System header to define __stub macros and hopefully few prototypes,
3043     which can conflict with char $ac_func(); below.  */
3044 #include <assert.h>
3045 /* Override any gcc2 internal prototype to avoid an error.  */
3046 #ifdef __cplusplus
3047 extern "C"
3048 #endif
3049 /* We use char because int might match the return type of a gcc2
3050     builtin and then its argument prototype would still apply.  */
3051 char $ac_func();
3052
3053 int main() {
3054
3055 /* The GNU C library defines this for functions which it implements
3056     to always fail with ENOSYS.  Some functions are actually named
3057     something starting with __ and the normal name is an alias.  */
3058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3059 choke me
3060 #else
3061 $ac_func();
3062 #endif
3063
3064 ; return 0; }
3065 EOF
3066 if { (eval echo configure:3067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3067   rm -rf conftest*
3068   eval "ac_cv_func_$ac_func=yes"
3069 else
3070   echo "configure: failed program was:" >&5
3071   cat conftest.$ac_ext >&5
3072   rm -rf conftest*
3073   eval "ac_cv_func_$ac_func=no"
3074 fi
3075 rm -f conftest*
3076 fi
3077
3078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3079   echo "$ac_t""yes" 1>&6
3080     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3081   cat >> confdefs.h <<EOF
3082 #define $ac_tr_func 1
3083 EOF
3084  
3085 else
3086   echo "$ac_t""no" 1>&6
3087 echo "configure: warning: Cannot find kpathsea functions.  You may have to create TFM files manually." 1>&2
3088     warn_b=yes
3089  kpathsea_b=no
3090 fi
3091 done
3092
3093     fi
3094     echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
3095 echo "configure:3096: checking whether to use kpathsea" >&5
3096     if test $kpathsea_b = yes; then
3097         echo "$ac_t""yes" 1>&6
3098         KPATHSEA=1
3099     else
3100         echo "$ac_t""no" 1>&6
3101         KPATHSEA=0
3102     fi
3103
3104     
3105     cat >> confdefs.h <<EOF
3106 #define KPATHSEA $KPATHSEA
3107 EOF
3108
3109
3110
3111
3112 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3113 echo "configure:3114: checking for 8-bit clean memcmp" >&5
3114 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3115   echo $ac_n "(cached) $ac_c" 1>&6
3116 else
3117   if test "$cross_compiling" = yes; then
3118   ac_cv_func_memcmp_clean=no
3119 else
3120   cat > conftest.$ac_ext <<EOF
3121 #line 3122 "configure"
3122 #include "confdefs.h"
3123 #ifdef __cplusplus
3124 extern "C" void exit(int);
3125 #endif
3126
3127 main()
3128 {
3129   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3130   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3131 }
3132
3133 EOF
3134 if { (eval echo configure:3135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3135 then
3136   ac_cv_func_memcmp_clean=yes
3137 else
3138   echo "configure: failed program was:" >&5
3139   cat conftest.$ac_ext >&5
3140   rm -fr conftest*
3141   ac_cv_func_memcmp_clean=no
3142 fi
3143 rm -fr conftest*
3144 fi
3145
3146 fi
3147
3148 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3149 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3150
3151 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3152 echo "configure:3153: checking for vprintf" >&5
3153 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3154   echo $ac_n "(cached) $ac_c" 1>&6
3155 else
3156   cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 /* System header to define __stub macros and hopefully few prototypes,
3160     which can conflict with char vprintf(); below.  */
3161 #include <assert.h>
3162 /* Override any gcc2 internal prototype to avoid an error.  */
3163 #ifdef __cplusplus
3164 extern "C"
3165 #endif
3166 /* We use char because int might match the return type of a gcc2
3167     builtin and then its argument prototype would still apply.  */
3168 char vprintf();
3169
3170 int main() {
3171
3172 /* The GNU C library defines this for functions which it implements
3173     to always fail with ENOSYS.  Some functions are actually named
3174     something starting with __ and the normal name is an alias.  */
3175 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3176 choke me
3177 #else
3178 vprintf();
3179 #endif
3180
3181 ; return 0; }
3182 EOF
3183 if { (eval echo configure:3184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3184   rm -rf conftest*
3185   eval "ac_cv_func_vprintf=yes"
3186 else
3187   echo "configure: failed program was:" >&5
3188   cat conftest.$ac_ext >&5
3189   rm -rf conftest*
3190   eval "ac_cv_func_vprintf=no"
3191 fi
3192 rm -f conftest*
3193 fi
3194
3195 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3196   echo "$ac_t""yes" 1>&6
3197   cat >> confdefs.h <<\EOF
3198 #define HAVE_VPRINTF 1
3199 EOF
3200
3201 else
3202   echo "$ac_t""no" 1>&6
3203 fi
3204
3205 if test "$ac_cv_func_vprintf" != yes; then
3206 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3207 echo "configure:3208: checking for _doprnt" >&5
3208 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3209   echo $ac_n "(cached) $ac_c" 1>&6
3210 else
3211   cat > conftest.$ac_ext <<EOF
3212 #line 3213 "configure"
3213 #include "confdefs.h"
3214 /* System header to define __stub macros and hopefully few prototypes,
3215     which can conflict with char _doprnt(); below.  */
3216 #include <assert.h>
3217 /* Override any gcc2 internal prototype to avoid an error.  */
3218 #ifdef __cplusplus
3219 extern "C"
3220 #endif
3221 /* We use char because int might match the return type of a gcc2
3222     builtin and then its argument prototype would still apply.  */
3223 char _doprnt();
3224
3225 int main() {
3226
3227 /* The GNU C library defines this for functions which it implements
3228     to always fail with ENOSYS.  Some functions are actually named
3229     something starting with __ and the normal name is an alias.  */
3230 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3231 choke me
3232 #else
3233 _doprnt();
3234 #endif
3235
3236 ; return 0; }
3237 EOF
3238 if { (eval echo configure:3239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3239   rm -rf conftest*
3240   eval "ac_cv_func__doprnt=yes"
3241 else
3242   echo "configure: failed program was:" >&5
3243   cat conftest.$ac_ext >&5
3244   rm -rf conftest*
3245   eval "ac_cv_func__doprnt=no"
3246 fi
3247 rm -f conftest*
3248 fi
3249
3250 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3251   echo "$ac_t""yes" 1>&6
3252   cat >> confdefs.h <<\EOF
3253 #define HAVE_DOPRNT 1
3254 EOF
3255
3256 else
3257   echo "$ac_t""no" 1>&6
3258 fi
3259
3260 fi
3261
3262 for ac_func in memmem snprintf vsnprintf gettext isinf
3263 do
3264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3265 echo "configure:3266: checking for $ac_func" >&5
3266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3267   echo $ac_n "(cached) $ac_c" 1>&6
3268 else
3269   cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3272 /* System header to define __stub macros and hopefully few prototypes,
3273     which can conflict with char $ac_func(); below.  */
3274 #include <assert.h>
3275 /* Override any gcc2 internal prototype to avoid an error.  */
3276 #ifdef __cplusplus
3277 extern "C"
3278 #endif
3279 /* We use char because int might match the return type of a gcc2
3280     builtin and then its argument prototype would still apply.  */
3281 char $ac_func();
3282
3283 int main() {
3284
3285 /* The GNU C library defines this for functions which it implements
3286     to always fail with ENOSYS.  Some functions are actually named
3287     something starting with __ and the normal name is an alias.  */
3288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3289 choke me
3290 #else
3291 $ac_func();
3292 #endif
3293
3294 ; return 0; }
3295 EOF
3296 if { (eval echo configure:3297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3297   rm -rf conftest*
3298   eval "ac_cv_func_$ac_func=yes"
3299 else
3300   echo "configure: failed program was:" >&5
3301   cat conftest.$ac_ext >&5
3302   rm -rf conftest*
3303   eval "ac_cv_func_$ac_func=no"
3304 fi
3305 rm -f conftest*
3306 fi
3307
3308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3309   echo "$ac_t""yes" 1>&6
3310     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3311   cat >> confdefs.h <<EOF
3312 #define $ac_tr_func 1
3313 EOF
3314  
3315 else
3316   echo "$ac_t""no" 1>&6
3317 fi
3318 done
3319
3320
3321 cat >> confdefs.h <<EOF
3322 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3323 EOF
3324
3325 cat >> confdefs.h <<EOF
3326 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3327 EOF
3328
3329
3330 for ac_prog in makeinfo
3331 do
3332 # Extract the first word of "$ac_prog", so it can be a program name with args.
3333 set dummy $ac_prog; ac_word=$2
3334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3335 echo "configure:3336: checking for $ac_word" >&5
3336 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3337   echo $ac_n "(cached) $ac_c" 1>&6
3338 else
3339   if test -n "$MAKEINFO"; then
3340   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3341 else
3342   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3343   ac_dummy="$PATH"
3344   for ac_dir in $ac_dummy; do
3345     test -z "$ac_dir" && ac_dir=.
3346     if test -f $ac_dir/$ac_word; then
3347       ac_cv_prog_MAKEINFO="$ac_prog"
3348       break
3349     fi
3350   done
3351   IFS="$ac_save_ifs"
3352 fi
3353 fi
3354 MAKEINFO="$ac_cv_prog_MAKEINFO"
3355 if test -n "$MAKEINFO"; then
3356   echo "$ac_t""$MAKEINFO" 1>&6
3357 else
3358   echo "$ac_t""no" 1>&6
3359 fi
3360
3361 test -n "$MAKEINFO" && break
3362 done
3363 test -n "$MAKEINFO" || MAKEINFO="error"
3364
3365 # Extract the first word of "perl", so it can be a program name with args.
3366 set dummy perl; ac_word=$2
3367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3368 echo "configure:3369: checking for $ac_word" >&5
3369 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3370   echo $ac_n "(cached) $ac_c" 1>&6
3371 else
3372   case "$PERL" in
3373   /*)
3374   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3375   ;;
3376   ?:/*)                  
3377   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3378   ;;
3379   *)
3380   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3381   ac_dummy="$PATH"
3382   for ac_dir in $ac_dummy; do 
3383     test -z "$ac_dir" && ac_dir=.
3384     if test -f $ac_dir/$ac_word; then
3385       ac_cv_path_PERL="$ac_dir/$ac_word"
3386       break
3387     fi
3388   done
3389   IFS="$ac_save_ifs"
3390   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
3391   ;;
3392 esac
3393 fi
3394 PERL="$ac_cv_path_PERL"
3395 if test -n "$PERL"; then
3396   echo "$ac_t""$PERL" 1>&6
3397 else
3398   echo "$ac_t""no" 1>&6
3399 fi
3400
3401
3402
3403     trap '' 1 2 15
3404 cat > confcache <<\EOF
3405 # This file is a shell script that caches the results of configure
3406 # tests run on this system so they can be shared between configure
3407 # scripts and configure runs.  It is not useful on other systems.
3408 # If it contains results you don't want to keep, you may remove or edit it.
3409 #
3410 # By default, configure uses ./config.cache as the cache file,
3411 # creating it if it does not exist already.  You can give configure
3412 # the --cache-file=FILE option to use a different cache file; that is
3413 # what configure does when it calls configure scripts in
3414 # subdirectories, so they share the cache.
3415 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3416 # config.status only pays attention to the cache file if you give it the
3417 # --recheck option to rerun configure.
3418 #
3419 EOF
3420 # The following way of writing the cache mishandles newlines in values,
3421 # but we know of no workaround that is simple, portable, and efficient.
3422 # So, don't put newlines in cache variables' values.
3423 # Ultrix sh set writes to stderr and can't be redirected directly,
3424 # and sets the high bit in the cache file unless we assign to the vars.
3425 (set) 2>&1 |
3426   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3427   *ac_space=\ *)
3428     # `set' does not quote correctly, so add quotes (double-quote substitution
3429     # turns \\\\ into \\, and sed turns \\ into \).
3430     sed -n \
3431       -e "s/'/'\\\\''/g" \
3432       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3433     ;;
3434   *)
3435     # `set' quotes correctly as required by POSIX, so do not add quotes.
3436     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3437     ;;
3438   esac >> confcache
3439 if cmp -s $cache_file confcache; then
3440   :
3441 else
3442   if test -w $cache_file; then
3443     echo "updating cache $cache_file"
3444     cat confcache > $cache_file
3445   else
3446     echo "not updating unwritable cache $cache_file"
3447   fi
3448 fi
3449 rm -f confcache
3450
3451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3452
3453 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3454 # Let make expand exec_prefix.
3455 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3456
3457 # Any assignment to VPATH causes Sun make to only execute
3458 # the first set of double-colon rules, so remove it if not needed.
3459 # If there is a colon in the path, we need to keep it.
3460 if test "x$srcdir" = x.; then
3461   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3462 fi
3463
3464 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3465
3466 DEFS=-DHAVE_CONFIG_H
3467
3468 # Without the "./", some shells look in PATH for config.status.
3469 : ${CONFIG_STATUS=./config.status}
3470
3471 echo creating $CONFIG_STATUS
3472 rm -f $CONFIG_STATUS
3473 cat > $CONFIG_STATUS <<EOF
3474 #! /bin/sh
3475 # Generated automatically by configure.
3476 # Run this file to recreate the current configuration.
3477 # This directory was configured as follows,
3478 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3479 #
3480 # $0 $ac_configure_args
3481 #
3482 # Compiler output produced by configure, useful for debugging
3483 # configure, is in ./config.log if it exists.
3484
3485 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3486 for ac_option
3487 do
3488   case "\$ac_option" in
3489   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3490     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3491     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3492   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3493     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3494     exit 0 ;;
3495   -help | --help | --hel | --he | --h)
3496     echo "\$ac_cs_usage"; exit 0 ;;
3497   *) echo "\$ac_cs_usage"; exit 1 ;;
3498   esac
3499 done
3500
3501 ac_given_srcdir=$srcdir
3502
3503 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3504 EOF
3505 cat >> $CONFIG_STATUS <<EOF
3506
3507 # Protect against being on the right side of a sed subst in config.status.
3508 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3509  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3510 $ac_vpsub
3511 $extrasub
3512 s%@SHELL@%$SHELL%g
3513 s%@CFLAGS@%$CFLAGS%g
3514 s%@CPPFLAGS@%$CPPFLAGS%g
3515 s%@CXXFLAGS@%$CXXFLAGS%g
3516 s%@FFLAGS@%$FFLAGS%g
3517 s%@DEFS@%$DEFS%g
3518 s%@LDFLAGS@%$LDFLAGS%g
3519 s%@LIBS@%$LIBS%g
3520 s%@exec_prefix@%$exec_prefix%g
3521 s%@prefix@%$prefix%g
3522 s%@program_transform_name@%$program_transform_name%g
3523 s%@bindir@%$bindir%g
3524 s%@sbindir@%$sbindir%g
3525 s%@libexecdir@%$libexecdir%g
3526 s%@datadir@%$datadir%g
3527 s%@sysconfdir@%$sysconfdir%g
3528 s%@sharedstatedir@%$sharedstatedir%g
3529 s%@localstatedir@%$localstatedir%g
3530 s%@libdir@%$libdir%g
3531 s%@includedir@%$includedir%g
3532 s%@oldincludedir@%$oldincludedir%g
3533 s%@infodir@%$infodir%g
3534 s%@mandir@%$mandir%g
3535 s%@builddir@%$builddir%g
3536 s%@stepmake@%$stepmake%g
3537 s%@package@%$package%g
3538 s%@PACKAGE@%$PACKAGE%g
3539 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3540 s%@package_depth@%$package_depth%g
3541 s%@AUTOGENERATE@%$AUTOGENERATE%g
3542 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3543 s%@host@%$host%g
3544 s%@host_alias@%$host_alias%g
3545 s%@host_cpu@%$host_cpu%g
3546 s%@host_vendor@%$host_vendor%g
3547 s%@host_os@%$host_os%g
3548 s%@MAKE@%$MAKE%g
3549 s%@FIND@%$FIND%g
3550 s%@TAR@%$TAR%g
3551 s%@BASH@%$BASH%g
3552 s%@PYTHON@%$PYTHON%g
3553 s%@program_prefix@%$program_prefix%g
3554 s%@program_suffix@%$program_suffix%g
3555 s%@ZIP@%$ZIP%g
3556 s%@LN@%$LN%g
3557 s%@LN_S@%$LN_S%g
3558 s%@INSTALL@%$INSTALL%g
3559 s%@PATHSEP@%$PATHSEP%g
3560 s%@DIRSEP@%$DIRSEP%g
3561 s%@DIR_DATADIR@%$DIR_DATADIR%g
3562 s%@subdirs@%$subdirs%g
3563 s%@CC@%$CC%g
3564 s%@LD@%$LD%g
3565 s%@cross_compiling@%$cross_compiling%g
3566 s%@ICFLAGS@%$ICFLAGS%g
3567 s%@ILDFLAGS@%$ILDFLAGS%g
3568 s%@DEFINES@%$DEFINES%g
3569 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3570 s%@CPP@%$CPP%g
3571 s%@CXX@%$CXX%g
3572 s%@CXXCPP@%$CXXCPP%g
3573 s%@YACC@%$YACC%g
3574 s%@BISON@%$BISON%g
3575 s%@FLEX@%$FLEX%g
3576 s%@AR@%$AR%g
3577 s%@RANLIB@%$RANLIB%g
3578 s%@localedir@%$localedir%g
3579 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3580 s%@MSGFMT@%$MSGFMT%g
3581 s%@METAFONT@%$METAFONT%g
3582 s%@MFONT@%$MFONT%g
3583 s%@METAPOST@%$METAPOST%g
3584 s%@MPOST@%$MPOST%g
3585 s%@INIMETAFONT@%$INIMETAFONT%g
3586 s%@INIMFONT@%$INIMFONT%g
3587 s%@INIMETAPOST@%$INIMETAPOST%g
3588 s%@INIMPOST@%$INIMPOST%g
3589 s%@MFMODE@%$MFMODE%g
3590 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3591 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3592 s%@KPSEWHICH@%$KPSEWHICH%g
3593 s%@TFM_PATH@%$TFM_PATH%g
3594 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3595 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3596 s%@GUILE@%$GUILE%g
3597 s%@KPATHSEA@%$KPATHSEA%g
3598 s%@LIBOBJS@%$LIBOBJS%g
3599 s%@MAKEINFO@%$MAKEINFO%g
3600 s%@PERL@%$PERL%g
3601
3602 CEOF
3603 EOF
3604
3605 cat >> $CONFIG_STATUS <<\EOF
3606
3607 # Split the substitutions into bite-sized pieces for seds with
3608 # small command number limits, like on Digital OSF/1 and HP-UX.
3609 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3610 ac_file=1 # Number of current file.
3611 ac_beg=1 # First line for current file.
3612 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3613 ac_more_lines=:
3614 ac_sed_cmds=""
3615 while $ac_more_lines; do
3616   if test $ac_beg -gt 1; then
3617     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3618   else
3619     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3620   fi
3621   if test ! -s conftest.s$ac_file; then
3622     ac_more_lines=false
3623     rm -f conftest.s$ac_file
3624   else
3625     if test -z "$ac_sed_cmds"; then
3626       ac_sed_cmds="sed -f conftest.s$ac_file"
3627     else
3628       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3629     fi
3630     ac_file=`expr $ac_file + 1`
3631     ac_beg=$ac_end
3632     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3633   fi
3634 done
3635 if test -z "$ac_sed_cmds"; then
3636   ac_sed_cmds=cat
3637 fi
3638 EOF
3639
3640 cat >> $CONFIG_STATUS <<EOF
3641
3642 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3643 EOF
3644 cat >> $CONFIG_STATUS <<\EOF
3645 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3646   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3647   case "$ac_file" in
3648   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3649        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3650   *) ac_file_in="${ac_file}.in" ;;
3651   esac
3652
3653   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3654
3655   # Remove last slash and all that follows it.  Not all systems have dirname.
3656   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3657   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3658     # The file is in a subdirectory.
3659     test ! -d "$ac_dir" && mkdir "$ac_dir"
3660     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3661     # A "../" for each directory in $ac_dir_suffix.
3662     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3663   else
3664     ac_dir_suffix= ac_dots=
3665   fi
3666
3667   case "$ac_given_srcdir" in
3668   .)  srcdir=.
3669       if test -z "$ac_dots"; then top_srcdir=.
3670       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3671   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3672   *) # Relative path.
3673     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3674     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3675   esac
3676
3677
3678   echo creating "$ac_file"
3679   rm -f "$ac_file"
3680   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3681   case "$ac_file" in
3682   *Makefile*) ac_comsub="1i\\
3683 # $configure_input" ;;
3684   *) ac_comsub= ;;
3685   esac
3686
3687   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3688   sed -e "$ac_comsub
3689 s%@configure_input@%$configure_input%g
3690 s%@srcdir@%$srcdir%g
3691 s%@top_srcdir@%$top_srcdir%g
3692 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3693 fi; done
3694 rm -f conftest.s*
3695
3696 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3697 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3698 #
3699 # ac_d sets the value in "#define NAME VALUE" lines.
3700 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3701 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3702 ac_dC='\3'
3703 ac_dD='%g'
3704 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3705 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3706 ac_uB='\([      ]\)%\1#\2define\3'
3707 ac_uC=' '
3708 ac_uD='\4%g'
3709 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3710 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3711 ac_eB='$%\1#\2define\3'
3712 ac_eC=' '
3713 ac_eD='%g'
3714
3715 if test "${CONFIG_HEADERS+set}" != set; then
3716 EOF
3717 cat >> $CONFIG_STATUS <<EOF
3718   CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3719 EOF
3720 cat >> $CONFIG_STATUS <<\EOF
3721 fi
3722 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3723   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3724   case "$ac_file" in
3725   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3726        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3727   *) ac_file_in="${ac_file}.in" ;;
3728   esac
3729
3730   echo creating $ac_file
3731
3732   rm -f conftest.frag conftest.in conftest.out
3733   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3734   cat $ac_file_inputs > conftest.in
3735
3736 EOF
3737
3738 # Transform confdefs.h into a sed script conftest.vals that substitutes
3739 # the proper values into config.h.in to produce config.h.  And first:
3740 # Protect against being on the right side of a sed subst in config.status.
3741 # Protect against being in an unquoted here document in config.status.
3742 rm -f conftest.vals
3743 cat > conftest.hdr <<\EOF
3744 s/[\\&%]/\\&/g
3745 s%[\\$`]%\\&%g
3746 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3747 s%ac_d%ac_u%gp
3748 s%ac_u%ac_e%gp
3749 EOF
3750 sed -n -f conftest.hdr confdefs.h > conftest.vals
3751 rm -f conftest.hdr
3752
3753 # This sed command replaces #undef with comments.  This is necessary, for
3754 # example, in the case of _POSIX_SOURCE, which is predefined and required
3755 # on some systems where configure will not decide to define it.
3756 cat >> conftest.vals <<\EOF
3757 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3758 EOF
3759
3760 # Break up conftest.vals because some shells have a limit on
3761 # the size of here documents, and old seds have small limits too.
3762
3763 rm -f conftest.tail
3764 while :
3765 do
3766   ac_lines=`grep -c . conftest.vals`
3767   # grep -c gives empty output for an empty file on some AIX systems.
3768   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3769   # Write a limited-size here document to conftest.frag.
3770   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3771   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3772   echo 'CEOF
3773   sed -f conftest.frag conftest.in > conftest.out
3774   rm -f conftest.in
3775   mv conftest.out conftest.in
3776 ' >> $CONFIG_STATUS
3777   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3778   rm -f conftest.vals
3779   mv conftest.tail conftest.vals
3780 done
3781 rm -f conftest.vals
3782
3783 cat >> $CONFIG_STATUS <<\EOF
3784   rm -f conftest.frag conftest.h
3785   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3786   cat conftest.in >> conftest.h
3787   rm -f conftest.in
3788   if cmp -s $ac_file conftest.h 2>/dev/null; then
3789     echo "$ac_file is unchanged"
3790     rm -f conftest.h
3791   else
3792     # Remove last slash and all that follows it.  Not all systems have dirname.
3793       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3794       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3795       # The file is in a subdirectory.
3796       test ! -d "$ac_dir" && mkdir "$ac_dir"
3797     fi
3798     rm -f $ac_file
3799     mv conftest.h $ac_file
3800   fi
3801 fi; done
3802
3803 EOF
3804 cat >> $CONFIG_STATUS <<EOF
3805
3806 EOF
3807 cat >> $CONFIG_STATUS <<\EOF
3808
3809 exit 0
3810 EOF
3811 chmod +x $CONFIG_STATUS
3812 rm -fr confdefs* $ac_clean_files
3813 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3814
3815 if test "$no_recursion" != yes; then
3816
3817   # Remove --cache-file and --srcdir arguments so they do not pile up.
3818   ac_sub_configure_args=
3819   ac_prev=
3820   for ac_arg in $ac_configure_args; do
3821     if test -n "$ac_prev"; then
3822       ac_prev=
3823       continue
3824     fi
3825     case "$ac_arg" in
3826     -cache-file | --cache-file | --cache-fil | --cache-fi \
3827     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3828       ac_prev=cache_file ;;
3829     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3830     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3831       ;;
3832     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3833       ac_prev=srcdir ;;
3834     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3835       ;;
3836     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3837     esac
3838   done
3839
3840   for ac_config_dir in stepmake; do
3841
3842     # Do not complain, so a configure script can configure whichever
3843     # parts of a large source tree are present.
3844     if test ! -d $srcdir/$ac_config_dir; then
3845       continue
3846     fi
3847
3848     echo configuring in $ac_config_dir
3849
3850     case "$srcdir" in
3851     .) ;;
3852     *)
3853       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3854       else
3855         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3856       fi
3857       ;;
3858     esac
3859
3860     ac_popdir=`pwd`
3861     cd $ac_config_dir
3862
3863       # A "../" for each directory in /$ac_config_dir.
3864       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3865
3866     case "$srcdir" in
3867     .) # No --srcdir option.  We are building in place.
3868       ac_sub_srcdir=$srcdir ;;
3869     /*) # Absolute path.
3870       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3871     *) # Relative path.
3872       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3873     esac
3874
3875     # Check for guested configure; otherwise get Cygnus style configure.
3876     if test -f $ac_sub_srcdir/configure; then
3877       ac_sub_configure=$ac_sub_srcdir/configure
3878     elif test -f $ac_sub_srcdir/configure.in; then
3879       ac_sub_configure=$ac_configure
3880     else
3881       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3882       ac_sub_configure=
3883     fi
3884
3885     # The recursion is here.
3886     if test -n "$ac_sub_configure"; then
3887
3888       # Make the cache file name correct relative to the subdirectory.
3889       case "$cache_file" in
3890       /*) ac_sub_cache_file=$cache_file ;;
3891       *) # Relative path.
3892         ac_sub_cache_file="$ac_dots$cache_file" ;;
3893       esac
3894
3895       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3896       # The eval makes quoting arguments work.
3897       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3898       then :
3899       else
3900         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3901       fi
3902     fi
3903
3904     cd $ac_popdir
3905   done
3906 fi
3907
3908
3909     rm -f $srcdir/GNUmakefile
3910     cp $srcdir/make/toplevel.make.in $srcdir/GNUmakefile
3911     chmod 444 $srcdir/GNUmakefile
3912     if test "$builddir" != "."; then
3913         rm -f GNUmakefile
3914         cp $srcdir/make/srcdir.make.in GNUmakefile
3915         chmod 444 GNUmakefile
3916     fi
3917
3918