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