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