lilypond-1.3.15
[lilypond.git] / configure
blob394dda912c856a06751a0eecc3970deffcce2131
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-tex-tfmdir=DIR set the tex-directory where cmr10.tfm lives (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 echo $ac_n "checking Package""... $ac_c" 1>&6
622 echo "configure:623: checking Package" >&5
623 if test "x$PACKAGE" = "xSTEPMAKE"; then
624 echo "$ac_t""Stepmake package!" 1>&6
625 (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
626 (cd stepmake; rm -f bin; ln -s ../bin .)
627 ac_aux_dir=
628 for ac_dir in bin $srcdir/bin; do
629 if test -f $ac_dir/install-sh; then
630 ac_aux_dir=$ac_dir
631 ac_install_sh="$ac_aux_dir/install-sh -c"
632 break
633 elif test -f $ac_dir/install.sh; then
634 ac_aux_dir=$ac_dir
635 ac_install_sh="$ac_aux_dir/install.sh -c"
636 break
638 done
639 if test -z "$ac_aux_dir"; then
640 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
642 ac_config_guess=$ac_aux_dir/config.guess
643 ac_config_sub=$ac_aux_dir/config.sub
644 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
646 stepmake=stepmake
647 else
648 echo "$ac_t""$PACKAGE" 1>&6
649 echo $ac_n "checking for stepmake""... $ac_c" 1>&6
650 echo "configure:651: checking for stepmake" >&5
651 # Check for installed stepmake
652 if test -d $stepmake; then
653 echo "$ac_t""$stepmake" 1>&6
654 else
655 stepmake='$(depth)'/stepmake
656 echo "$ac_t""./stepmake ($datadir/stepmake not found)" 1>&6
658 ac_aux_dir=
659 for ac_dir in \
660 $HOME/usr/local/share/stepmake/bin\
661 $HOME/usr/local/lib/stepmake/bin\
662 $HOME/usr/share/stepmake/bin\
663 $HOME/usr/lib/stepmake/bin\
664 /usr/local/share/stepmake/bin\
665 /usr/local/lib/stepmake/bin\
666 /usr/share/stepmake/bin\
667 /usr/lib/stepmake/bin\
668 stepmake/bin\
669 $srcdir/\
670 $HOME/usr/local/share/stepmake/bin\
671 $HOME/usr/local/lib/stepmake/bin\
672 $HOME/usr/share/stepmake/bin\
673 $HOME/usr/lib/stepmake/bin\
674 /usr/local/share/stepmake/bin\
675 /usr/local/lib/stepmake/bin\
676 /usr/share/stepmake/bin\
677 /usr/lib/stepmake/bin\
678 stepmake/bin\
679 ; do
680 if test -f $ac_dir/install-sh; then
681 ac_aux_dir=$ac_dir
682 ac_install_sh="$ac_aux_dir/install-sh -c"
683 break
684 elif test -f $ac_dir/install.sh; then
685 ac_aux_dir=$ac_dir
686 ac_install_sh="$ac_aux_dir/install.sh -c"
687 break
689 done
690 if test -z "$ac_aux_dir"; then
691 { echo "configure: error: can not find install-sh or install.sh 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/\
702 $HOME/usr/local/share/stepmake/bin\
703 $HOME/usr/local/lib/stepmake/bin\
704 $HOME/usr/share/stepmake/bin\
705 $HOME/usr/lib/stepmake/bin\
706 /usr/local/share/stepmake/bin\
707 /usr/local/lib/stepmake/bin\
708 /usr/share/stepmake/bin\
709 /usr/lib/stepmake/bin\
710 stepmake/bin\
711 " 1>&2; exit 1; }
713 ac_config_guess=$ac_aux_dir/config.guess
714 ac_config_sub=$ac_aux_dir/config.sub
715 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
723 cat >> confdefs.h <<EOF
724 #define PACKAGE "${PACKAGE_NAME}"
727 cat >> confdefs.h <<EOF
728 #define TOPLEVEL_VERSION "${FULL_VERSION}"
732 if test "$package_depth" = "" ; then
733 package_depth="."
734 else
735 package_depth="../$package_depth"
737 export package_depth
740 AUTOGENERATE="This file was automatically generated by configure"
742 absolute_builddir="`pwd`"
745 STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
746 if test "x$STATE_VECTOR" != "x"; then
747 STATE_VECTOR="\$(depth)/$STATE_VECTOR"
751 CONFIGSUFFIX=
752 # Check whether --enable-config or --disable-config was given.
753 if test "${enable_config+set}" = set; then
754 enableval="$enable_config"
755 CONFIGSUFFIX=$enableval
759 if test "$CONFIGSUFFIX" != "" ; then
760 CONFIGFILE=config-$CONFIGSUFFIX
761 else
762 CONFIGFILE=config
767 # Make sure we can run config.sub.
768 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
769 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
772 echo $ac_n "checking host system type""... $ac_c" 1>&6
773 echo "configure:774: checking host system type" >&5
775 host_alias=$host
776 case "$host_alias" in
777 NONE)
778 case $nonopt in
779 NONE)
780 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
781 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
782 fi ;;
783 *) host_alias=$nonopt ;;
784 esac ;;
785 esac
787 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
788 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
789 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
790 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
791 echo "$ac_t""$host" 1>&6
793 for ac_prog in gmake make
795 # Extract the first word of "$ac_prog", so it can be a program name with args.
796 set dummy $ac_prog; ac_word=$2
797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
798 echo "configure:799: checking for $ac_word" >&5
799 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
800 echo $ac_n "(cached) $ac_c" 1>&6
801 else
802 if test -n "$MAKE"; then
803 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
804 else
805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
806 ac_dummy="$PATH"
807 for ac_dir in $ac_dummy; do
808 test -z "$ac_dir" && ac_dir=.
809 if test -f $ac_dir/$ac_word; then
810 ac_cv_prog_MAKE="$ac_prog"
811 break
813 done
814 IFS="$ac_save_ifs"
817 MAKE="$ac_cv_prog_MAKE"
818 if test -n "$MAKE"; then
819 echo "$ac_t""$MAKE" 1>&6
820 else
821 echo "$ac_t""no" 1>&6
824 test -n "$MAKE" && break
825 done
826 test -n "$MAKE" || MAKE="error"
828 for ac_prog in find
830 # Extract the first word of "$ac_prog", so it can be a program name with args.
831 set dummy $ac_prog; ac_word=$2
832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
833 echo "configure:834: checking for $ac_word" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
836 else
837 if test -n "$FIND"; then
838 ac_cv_prog_FIND="$FIND" # Let the user override the test.
839 else
840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
841 ac_dummy="$PATH"
842 for ac_dir in $ac_dummy; do
843 test -z "$ac_dir" && ac_dir=.
844 if test -f $ac_dir/$ac_word; then
845 ac_cv_prog_FIND="$ac_prog"
846 break
848 done
849 IFS="$ac_save_ifs"
852 FIND="$ac_cv_prog_FIND"
853 if test -n "$FIND"; then
854 echo "$ac_t""$FIND" 1>&6
855 else
856 echo "$ac_t""no" 1>&6
859 test -n "$FIND" && break
860 done
861 test -n "$FIND" || FIND="error"
865 for ac_prog in tar
867 # Extract the first word of "$ac_prog", so it can be a program name with args.
868 set dummy $ac_prog; ac_word=$2
869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
870 echo "configure:871: checking for $ac_word" >&5
871 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
873 else
874 if test -n "$TAR"; then
875 ac_cv_prog_TAR="$TAR" # Let the user override the test.
876 else
877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
878 ac_dummy="$PATH"
879 for ac_dir in $ac_dummy; do
880 test -z "$ac_dir" && ac_dir=.
881 if test -f $ac_dir/$ac_word; then
882 ac_cv_prog_TAR="$ac_prog"
883 break
885 done
886 IFS="$ac_save_ifs"
889 TAR="$ac_cv_prog_TAR"
890 if test -n "$TAR"; then
891 echo "$ac_t""$TAR" 1>&6
892 else
893 echo "$ac_t""no" 1>&6
896 test -n "$TAR" && break
897 done
898 test -n "$TAR" || TAR="error"
901 if test "x`uname`" = "xHP-UX"; then
902 # Extract the first word of "bash", so it can be a program name with args.
903 set dummy bash; ac_word=$2
904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
905 echo "configure:906: checking for $ac_word" >&5
906 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
908 else
909 case "$BASH" in
911 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
913 ?:/*)
914 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
918 ac_dummy="$PATH"
919 for ac_dir in $ac_dummy; do
920 test -z "$ac_dir" && ac_dir=.
921 if test -f $ac_dir/$ac_word; then
922 ac_cv_path_BASH="$ac_dir/$ac_word"
923 break
925 done
926 IFS="$ac_save_ifs"
927 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
929 esac
931 BASH="$ac_cv_path_BASH"
932 if test -n "$BASH"; then
933 echo "$ac_t""$BASH" 1>&6
934 else
935 echo "$ac_t""no" 1>&6
939 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
940 warn_b=yes
942 # Extract the first word of "bash", so it can be a program name with args.
943 set dummy bash; ac_word=$2
944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
945 echo "configure:946: checking for $ac_word" >&5
946 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
948 else
949 case "$SHELL" in
951 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
953 ?:/*)
954 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
958 ac_dummy="$PATH"
959 for ac_dir in $ac_dummy; do
960 test -z "$ac_dir" && ac_dir=.
961 if test -f $ac_dir/$ac_word; then
962 ac_cv_path_SHELL="$ac_dir/$ac_word"
963 break
965 done
966 IFS="$ac_save_ifs"
967 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
969 esac
971 SHELL="$ac_cv_path_SHELL"
972 if test -n "$SHELL"; then
973 echo "$ac_t""$SHELL" 1>&6
974 else
975 echo "$ac_t""no" 1>&6
978 else
979 # Extract the first word of "bash", so it can be a program name with args.
980 set dummy bash; ac_word=$2
981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
982 echo "configure:983: checking for $ac_word" >&5
983 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
985 else
986 case "$BASH" in
988 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
990 ?:/*)
991 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
995 ac_dummy="$PATH"
996 for ac_dir in $ac_dummy; do
997 test -z "$ac_dir" && ac_dir=.
998 if test -f $ac_dir/$ac_word; then
999 ac_cv_path_BASH="$ac_dir/$ac_word"
1000 break
1002 done
1003 IFS="$ac_save_ifs"
1004 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1006 esac
1008 BASH="$ac_cv_path_BASH"
1009 if test -n "$BASH"; then
1010 echo "$ac_t""$BASH" 1>&6
1011 else
1012 echo "$ac_t""no" 1>&6
1015 SHELL=/bin/sh
1020 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1021 set dummy ${PYTHON:-python}; ac_word=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_word" >&5
1024 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1026 else
1027 case "$PYTHON" in
1029 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1031 ?:/*)
1032 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1036 ac_dummy="$PATH"
1037 for ac_dir in $ac_dummy; do
1038 test -z "$ac_dir" && ac_dir=.
1039 if test -f $ac_dir/$ac_word; then
1040 ac_cv_path_PYTHON="$ac_dir/$ac_word"
1041 break
1043 done
1044 IFS="$ac_save_ifs"
1045 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1047 esac
1049 PYTHON="$ac_cv_path_PYTHON"
1050 if test -n "$PYTHON"; then
1051 echo "$ac_t""$PYTHON" 1>&6
1052 else
1053 echo "$ac_t""no" 1>&6
1058 if test $MAKE != "error" ; then
1059 $MAKE -v 2> /dev/null | grep GNU > /dev/null
1060 if test "$?" = 1
1061 then
1063 echo "configure: warning: Please install *GNU* make" 1>&2
1064 warn_b=yes
1070 result="`echo \"$PYTHON\" | grep echo`"
1071 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1073 echo "configure: warning: can\'t find python. You should install Python" 1>&2
1074 warn_b=yes
1079 if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
1080 LN=cp # hard link does not work under cygnus-nt
1081 LN_S='cp -r' # symbolic link does not work for native nt
1082 ZIP="zip -r -9" #
1083 DOTEXE=.exe
1084 # urg
1085 # DIRSEP='\\'
1086 # PATHSEP=';'
1088 # cygwin fixes all these things.
1089 # it seems these were used because of dos-style TEXINPUTS and
1090 # MFINPUTS needed for miktex.
1091 # but this breaks parsing of all other cygwin/unix style paths.
1093 # if your (mik)tex breaks, make a:
1094 # /usr/local/bin/tex:
1095 # #!/bin/sh
1096 # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex
1098 # and
1100 # /usr/local/bin/mf:
1101 # #!/bin/sh
1102 # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf
1104 # this way, you may have buildscripts/out/lilypond-profile
1105 # 'automatically' sourced from /usr/etc/profile.d/ too.
1107 DIRSEP='/'
1108 PATHSEP=':'
1109 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1110 else
1111 DIRSEP='/'
1112 PATHSEP=':'
1113 LN=ln
1114 LN_S='ln -s'
1115 ZIP="zip -r -9"
1116 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1123 cat >> confdefs.h <<EOF
1124 #define DIRSEP '${DIRSEP}'
1127 cat >> confdefs.h <<EOF
1128 #define PATHSEP '${PATHSEP}'
1135 if test "$datadir" = "\${prefix}/share"; then
1136 datadir='${prefix}/share/'$package
1138 DIR_DATADIR=${datadir}
1139 presome=${prefix}
1140 if test "$prefix" = "NONE"; then
1141 presome=${ac_default_prefix}
1143 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1146 cat >> confdefs.h <<EOF
1147 #define DIR_DATADIR "${DIR_DATADIR}"
1153 # For all packages except the StepMake package itself
1154 subdirs="stepmake"
1157 # Uncomment the configuration options your package needs.
1159 # -O is necessary to get inlining
1160 OPTIMIZE=""
1161 CFLAGS=${CFLAGS:-""}
1162 CXXFLAGS=${CXXFLAGS:-$CFLAGS}
1163 LDFLAGS=${LDFLAGS:-""}
1164 checking_b=yes
1165 optimise_b=no
1166 profile_b=no
1167 debug_b=yes
1169 # Check whether --enable-checking or --disable-checking was given.
1170 if test "${enable_checking+set}" = set; then
1171 enableval="$enable_checking"
1172 checking_b=$enableval
1176 # actually, the default is: tja='-O' to get inlining...
1177 # off='' --jcn
1179 #actually, that sucks.
1180 # tja looks like a typo. Default is optimisation off. --hwn
1182 # Check whether --enable-optimise or --disable-optimise was given.
1183 if test "${enable_optimise+set}" = set; then
1184 enableval="$enable_optimise"
1185 optimise_b=$enableval
1189 # Check whether --enable-profiling or --disable-profiling was given.
1190 if test "${enable_profiling+set}" = set; then
1191 enableval="$enable_profiling"
1192 profile_b=$enableval
1196 # Check whether --enable-debugging or --disable-debugging was given.
1197 if test "${enable_debugging+set}" = set; then
1198 enableval="$enable_debugging"
1199 debug_b=$enableval
1203 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1204 if test "${enable_mingw_prefix+set}" = set; then
1205 enableval="$enable_mingw_prefix"
1206 MINGWPREFIX=$enableval
1207 else
1208 MINGWPREFIX=no
1212 if test "$checking_b" = no; then
1213 # ugh
1214 cat >> confdefs.h <<\EOF
1215 #define NDEBUG 1
1218 DEFINES="$DEFINES -DNDEBUG"
1221 if test "$optimise_b" = yes; then
1222 OPTIMIZE="-O2 -finline-functions"
1225 if test "$optimise_b" = no; then
1226 OPTIMIZE=""
1229 if test $profile_b = yes; then
1230 EXTRA_LIBES="-pg"
1231 OPTIMIZE="$OPTIMIZE -pg"
1234 if test $debug_b = yes; then
1235 OPTIMIZE="$OPTIMIZE -g"
1238 # however, C++ support in mingw32 v 0.1.4 is still flaky
1239 if test x$MINGWPREFIX != xno; then
1240 ICFLAGS="-I$MINGWPREFIX/include"
1241 ILDFLAGS="-$MINGWPREFIX/lib"
1244 # Extract the first word of "gcc", so it can be a program name with args.
1245 set dummy gcc; ac_word=$2
1246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_word" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1250 else
1251 if test -n "$CC"; then
1252 ac_cv_prog_CC="$CC" # Let the user override the test.
1253 else
1254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1255 ac_dummy="$PATH"
1256 for ac_dir in $ac_dummy; do
1257 test -z "$ac_dir" && ac_dir=.
1258 if test -f $ac_dir/$ac_word; then
1259 ac_cv_prog_CC="gcc"
1260 break
1262 done
1263 IFS="$ac_save_ifs"
1266 CC="$ac_cv_prog_CC"
1267 if test -n "$CC"; then
1268 echo "$ac_t""$CC" 1>&6
1269 else
1270 echo "$ac_t""no" 1>&6
1273 if test -z "$CC"; then
1274 # Extract the first word of "cc", so it can be a program name with args.
1275 set dummy cc; ac_word=$2
1276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1277 echo "configure:1278: checking for $ac_word" >&5
1278 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1280 else
1281 if test -n "$CC"; then
1282 ac_cv_prog_CC="$CC" # Let the user override the test.
1283 else
1284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1285 ac_prog_rejected=no
1286 ac_dummy="$PATH"
1287 for ac_dir in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir=.
1289 if test -f $ac_dir/$ac_word; then
1290 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1291 ac_prog_rejected=yes
1292 continue
1294 ac_cv_prog_CC="cc"
1295 break
1297 done
1298 IFS="$ac_save_ifs"
1299 if test $ac_prog_rejected = yes; then
1300 # We found a bogon in the path, so make sure we never use it.
1301 set dummy $ac_cv_prog_CC
1302 shift
1303 if test $# -gt 0; then
1304 # We chose a different compiler from the bogus one.
1305 # However, it has the same basename, so the bogon will be chosen
1306 # first if we set CC to just the basename; use the full file name.
1307 shift
1308 set dummy "$ac_dir/$ac_word" "$@"
1309 shift
1310 ac_cv_prog_CC="$@"
1315 CC="$ac_cv_prog_CC"
1316 if test -n "$CC"; then
1317 echo "$ac_t""$CC" 1>&6
1318 else
1319 echo "$ac_t""no" 1>&6
1322 if test -z "$CC"; then
1323 case "`uname -s`" in
1324 *win32* | *WIN32*)
1325 # Extract the first word of "cl", so it can be a program name with args.
1326 set dummy cl; ac_word=$2
1327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1328 echo "configure:1329: checking for $ac_word" >&5
1329 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1331 else
1332 if test -n "$CC"; then
1333 ac_cv_prog_CC="$CC" # Let the user override the test.
1334 else
1335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1336 ac_dummy="$PATH"
1337 for ac_dir in $ac_dummy; do
1338 test -z "$ac_dir" && ac_dir=.
1339 if test -f $ac_dir/$ac_word; then
1340 ac_cv_prog_CC="cl"
1341 break
1343 done
1344 IFS="$ac_save_ifs"
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 esac
1356 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1359 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1360 echo "configure:1361: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1362 ac_ext=c
1363 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1364 ac_cpp='$CPP $CPPFLAGS'
1365 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1366 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1367 cross_compiling=$ac_cv_prog_cc_cross
1369 cat > conftest.$ac_ext << EOF
1371 #line 1372 "configure"
1372 #include "confdefs.h"
1374 main(){return(0);}
1376 if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1377 ac_cv_prog_cc_works=yes
1378 # If we can't run a trivial program, we are probably using a cross compiler.
1379 if (./conftest; exit) 2>/dev/null; then
1380 ac_cv_prog_cc_cross=no
1381 else
1382 ac_cv_prog_cc_cross=yes
1384 else
1385 echo "configure: failed program was:" >&5
1386 cat conftest.$ac_ext >&5
1387 ac_cv_prog_cc_works=no
1389 rm -fr conftest*
1390 ac_ext=c
1391 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1392 ac_cpp='$CPP $CPPFLAGS'
1393 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1394 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1395 cross_compiling=$ac_cv_prog_cc_cross
1397 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1398 if test $ac_cv_prog_cc_works = no; then
1399 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1401 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1402 echo "configure:1403: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1403 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1404 cross_compiling=$ac_cv_prog_cc_cross
1406 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1407 echo "configure:1408: checking whether we are using GNU C" >&5
1408 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1410 else
1411 cat > conftest.c <<EOF
1412 #ifdef __GNUC__
1413 yes;
1414 #endif
1416 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1417 ac_cv_prog_gcc=yes
1418 else
1419 ac_cv_prog_gcc=no
1423 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1425 if test $ac_cv_prog_gcc = yes; then
1426 GCC=yes
1427 else
1428 GCC=
1431 ac_test_CFLAGS="${CFLAGS+set}"
1432 ac_save_CFLAGS="$CFLAGS"
1433 CFLAGS=
1434 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1435 echo "configure:1436: checking whether ${CC-cc} accepts -g" >&5
1436 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1438 else
1439 echo 'void f(){}' > conftest.c
1440 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1441 ac_cv_prog_cc_g=yes
1442 else
1443 ac_cv_prog_cc_g=no
1445 rm -f conftest*
1449 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1450 if test "$ac_test_CFLAGS" = set; then
1451 CFLAGS="$ac_save_CFLAGS"
1452 elif test $ac_cv_prog_cc_g = yes; then
1453 if test "$GCC" = yes; then
1454 CFLAGS="-g -O2"
1455 else
1456 CFLAGS="-g"
1458 else
1459 if test "$GCC" = yes; then
1460 CFLAGS="-O2"
1461 else
1462 CFLAGS=
1466 LD='$(CC)'
1469 CFLAGS="$CFLAGS $OPTIMIZE"
1470 CPPFLAGS=${CPPFLAGS:-""}
1479 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1481 printing_b=no
1482 # Check whether --enable-printing or --disable-printing was given.
1483 if test "${enable_printing+set}" = set; then
1484 enableval="$enable_printing"
1485 printing_b=$enableval
1489 if test "$optimise_b" = yes; then
1490 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1491 cat >> confdefs.h <<\EOF
1492 #define STRINGS_UTILS_INLINED 1
1497 if test "$printing_b" = no; then
1498 # ugh
1499 cat >> confdefs.h <<\EOF
1500 #define NPRINT 1
1503 DEFINES="$DEFINES -DNPRINT"
1506 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1507 echo "configure:1508: checking how to run the C++ preprocessor" >&5
1508 if test -z "$CXXCPP"; then
1509 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1511 else
1512 ac_ext=C
1513 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1514 ac_cpp='$CXXCPP $CPPFLAGS'
1515 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1516 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1517 cross_compiling=$ac_cv_prog_cxx_cross
1518 CXXCPP="${CXX-g++} -E"
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522 #include <stdlib.h>
1524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1525 { (eval echo configure:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1527 if test -z "$ac_err"; then
1529 else
1530 echo "$ac_err" >&5
1531 echo "configure: failed program was:" >&5
1532 cat conftest.$ac_ext >&5
1533 rm -rf conftest*
1534 CXXCPP=/lib/cpp
1536 rm -f conftest*
1537 ac_cv_prog_CXXCPP="$CXXCPP"
1538 ac_ext=C
1539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1540 ac_cpp='$CXXCPP $CPPFLAGS'
1541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1543 cross_compiling=$ac_cv_prog_cxx_cross
1546 CXXCPP="$ac_cv_prog_CXXCPP"
1547 echo "$ac_t""$CXXCPP" 1>&6
1550 ac_ext=C
1551 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1552 ac_cpp='$CXXCPP $CPPFLAGS'
1553 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1554 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1555 cross_compiling=$ac_cv_prog_cxx_cross
1557 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1559 # Extract the first word of "$ac_prog", so it can be a program name with args.
1560 set dummy $ac_prog; ac_word=$2
1561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1562 echo "configure:1563: checking for $ac_word" >&5
1563 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1565 else
1566 if test -n "$CXX"; then
1567 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1568 else
1569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1570 ac_dummy="$PATH"
1571 for ac_dir in $ac_dummy; do
1572 test -z "$ac_dir" && ac_dir=.
1573 if test -f $ac_dir/$ac_word; then
1574 ac_cv_prog_CXX="$ac_prog"
1575 break
1577 done
1578 IFS="$ac_save_ifs"
1581 CXX="$ac_cv_prog_CXX"
1582 if test -n "$CXX"; then
1583 echo "$ac_t""$CXX" 1>&6
1584 else
1585 echo "$ac_t""no" 1>&6
1588 test -n "$CXX" && break
1589 done
1590 test -n "$CXX" || CXX="gcc"
1593 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1594 echo "configure:1595: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1596 ac_ext=C
1597 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1598 ac_cpp='$CXXCPP $CPPFLAGS'
1599 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1600 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1601 cross_compiling=$ac_cv_prog_cxx_cross
1603 cat > conftest.$ac_ext << EOF
1605 #line 1606 "configure"
1606 #include "confdefs.h"
1608 int main(){return(0);}
1610 if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1611 ac_cv_prog_cxx_works=yes
1612 # If we can't run a trivial program, we are probably using a cross compiler.
1613 if (./conftest; exit) 2>/dev/null; then
1614 ac_cv_prog_cxx_cross=no
1615 else
1616 ac_cv_prog_cxx_cross=yes
1618 else
1619 echo "configure: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1621 ac_cv_prog_cxx_works=no
1623 rm -fr conftest*
1624 ac_ext=C
1625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1626 ac_cpp='$CXXCPP $CPPFLAGS'
1627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1629 cross_compiling=$ac_cv_prog_cxx_cross
1631 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1632 if test $ac_cv_prog_cxx_works = no; then
1633 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1635 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1636 echo "configure:1637: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1637 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1638 cross_compiling=$ac_cv_prog_cxx_cross
1640 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1641 echo "configure:1642: checking whether we are using GNU C++" >&5
1642 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1644 else
1645 cat > conftest.C <<EOF
1646 #ifdef __GNUC__
1647 yes;
1648 #endif
1650 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1651 ac_cv_prog_gxx=yes
1652 else
1653 ac_cv_prog_gxx=no
1657 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1659 if test $ac_cv_prog_gxx = yes; then
1660 GXX=yes
1661 else
1662 GXX=
1665 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1666 ac_save_CXXFLAGS="$CXXFLAGS"
1667 CXXFLAGS=
1668 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1669 echo "configure:1670: checking whether ${CXX-g++} accepts -g" >&5
1670 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1672 else
1673 echo 'void f(){}' > conftest.cc
1674 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1675 ac_cv_prog_cxx_g=yes
1676 else
1677 ac_cv_prog_cxx_g=no
1679 rm -f conftest*
1683 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1684 if test "$ac_test_CXXFLAGS" = set; then
1685 CXXFLAGS="$ac_save_CXXFLAGS"
1686 elif test $ac_cv_prog_cxx_g = yes; then
1687 if test "$GXX" = yes; then
1688 CXXFLAGS="-g -O2"
1689 else
1690 CXXFLAGS="-g"
1692 else
1693 if test "$GXX" = yes; then
1694 CXXFLAGS="-O2"
1695 else
1696 CXXFLAGS=
1701 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1702 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1703 echo "configure:1704: checking for FlexLexer.h" >&5
1704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1706 else
1707 cat > conftest.$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1710 #include <FlexLexer.h>
1712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1713 { (eval echo configure:1714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1715 if test -z "$ac_err"; then
1716 rm -rf conftest*
1717 eval "ac_cv_header_$ac_safe=yes"
1718 else
1719 echo "$ac_err" >&5
1720 echo "configure: failed program was:" >&5
1721 cat conftest.$ac_ext >&5
1722 rm -rf conftest*
1723 eval "ac_cv_header_$ac_safe=no"
1725 rm -f conftest*
1727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1728 echo "$ac_t""yes" 1>&6
1729 true
1730 else
1731 echo "$ac_t""no" 1>&6
1733 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1734 warn_b=yes
1739 CPPFLAGS="$CPPFLAGS $DEFINES"
1740 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1741 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
1745 LD='$(CXX)'
1749 # ugh autoconf
1750 # urg, egcs: how to check for egcs >= 1.1?
1751 if $CXX --version | egrep '2\.[89]' > /dev/null ||
1752 $CXX --version | grep 'egcs' > /dev/null
1753 then
1754 true
1755 else
1757 echo "configure: warning: can\'t find g++ 2.8 or egcs 1.1" 1>&2
1758 warn_b=yes
1763 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1764 echo "configure:1765: checking whether explicit instantiation is needed" >&5
1765 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1767 else
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1772 template <class T> struct foo { static int baz; };
1773 template <class T> int foo<T>::baz = 1;
1775 int main() {
1776 return foo<int>::baz;
1777 ; return 0; }
1779 if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1780 rm -rf conftest*
1781 lily_cv_need_explicit_instantiation=no
1782 else
1783 echo "configure: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1785 rm -rf conftest*
1786 lily_cv_need_explicit_instantiation=yes
1788 rm -f conftest*
1791 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1792 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1793 cat >> confdefs.h <<\EOF
1794 #define NEED_EXPLICIT_INSTANTIATION 1
1800 # ugh, automake: we want (and check for) bison
1801 for ac_prog in 'bison -y' byacc
1803 # Extract the first word of "$ac_prog", so it can be a program name with args.
1804 set dummy $ac_prog; ac_word=$2
1805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1806 echo "configure:1807: checking for $ac_word" >&5
1807 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1809 else
1810 if test -n "$YACC"; then
1811 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1812 else
1813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1814 ac_dummy="$PATH"
1815 for ac_dir in $ac_dummy; do
1816 test -z "$ac_dir" && ac_dir=.
1817 if test -f $ac_dir/$ac_word; then
1818 ac_cv_prog_YACC="$ac_prog"
1819 break
1821 done
1822 IFS="$ac_save_ifs"
1825 YACC="$ac_cv_prog_YACC"
1826 if test -n "$YACC"; then
1827 echo "$ac_t""$YACC" 1>&6
1828 else
1829 echo "$ac_t""no" 1>&6
1832 test -n "$YACC" && break
1833 done
1834 test -n "$YACC" || YACC="yacc"
1836 # ugh, automake: we want (and check for) flex
1837 # AC_PROG_LEX
1838 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
1840 # AC_DECL_YYTEXT
1841 # ugh, ugh
1842 ac_cv_prog_lex_root=lex.yy
1844 for ac_prog in bison
1846 # Extract the first word of "$ac_prog", so it can be a program name with args.
1847 set dummy $ac_prog; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1850 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1852 else
1853 if test -n "$BISON"; then
1854 ac_cv_prog_BISON="$BISON" # Let the user override the test.
1855 else
1856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1857 ac_dummy="$PATH"
1858 for ac_dir in $ac_dummy; do
1859 test -z "$ac_dir" && ac_dir=.
1860 if test -f $ac_dir/$ac_word; then
1861 ac_cv_prog_BISON="$ac_prog"
1862 break
1864 done
1865 IFS="$ac_save_ifs"
1868 BISON="$ac_cv_prog_BISON"
1869 if test -n "$BISON"; then
1870 echo "$ac_t""$BISON" 1>&6
1871 else
1872 echo "$ac_t""no" 1>&6
1875 test -n "$BISON" && break
1876 done
1877 test -n "$BISON" || BISON="error"
1879 for ac_prog in flex
1881 # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1884 echo "configure:1885: checking for $ac_word" >&5
1885 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1887 else
1888 if test -n "$FLEX"; then
1889 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1890 else
1891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1892 ac_dummy="$PATH"
1893 for ac_dir in $ac_dummy; do
1894 test -z "$ac_dir" && ac_dir=.
1895 if test -f $ac_dir/$ac_word; then
1896 ac_cv_prog_FLEX="$ac_prog"
1897 break
1899 done
1900 IFS="$ac_save_ifs"
1903 FLEX="$ac_cv_prog_FLEX"
1904 if test -n "$FLEX"; then
1905 echo "$ac_t""$FLEX" 1>&6
1906 else
1907 echo "$ac_t""no" 1>&6
1910 test -n "$FLEX" && break
1911 done
1912 test -n "$FLEX" || FLEX="error"
1915 result="`echo \"$BISON\" | grep echo`"
1916 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
1918 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
1919 warn_b=yes
1924 result="`echo \"$FLEX\" | grep echo`"
1925 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
1927 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
1928 warn_b=yes
1933 if test $BISON != "error"; then
1934 bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
1935 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
1937 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
1938 warn_b=yes
1947 for ac_prog in ar
1949 # Extract the first word of "$ac_prog", so it can be a program name with args.
1950 set dummy $ac_prog; ac_word=$2
1951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1952 echo "configure:1953: checking for $ac_word" >&5
1953 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1955 else
1956 if test -n "$AR"; then
1957 ac_cv_prog_AR="$AR" # Let the user override the test.
1958 else
1959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1960 ac_dummy="$PATH"
1961 for ac_dir in $ac_dummy; do
1962 test -z "$ac_dir" && ac_dir=.
1963 if test -f $ac_dir/$ac_word; then
1964 ac_cv_prog_AR="$ac_prog"
1965 break
1967 done
1968 IFS="$ac_save_ifs"
1971 AR="$ac_cv_prog_AR"
1972 if test -n "$AR"; then
1973 echo "$ac_t""$AR" 1>&6
1974 else
1975 echo "$ac_t""no" 1>&6
1978 test -n "$AR" && break
1979 done
1980 test -n "$AR" || AR="error"
1982 # Extract the first word of "ranlib", so it can be a program name with args.
1983 set dummy ranlib; ac_word=$2
1984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1985 echo "configure:1986: checking for $ac_word" >&5
1986 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1988 else
1989 if test -n "$RANLIB"; then
1990 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1991 else
1992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1993 ac_dummy="$PATH"
1994 for ac_dir in $ac_dummy; do
1995 test -z "$ac_dir" && ac_dir=.
1996 if test -f $ac_dir/$ac_word; then
1997 ac_cv_prog_RANLIB="ranlib"
1998 break
2000 done
2001 IFS="$ac_save_ifs"
2002 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2005 RANLIB="$ac_cv_prog_RANLIB"
2006 if test -n "$RANLIB"; then
2007 echo "$ac_t""$RANLIB" 1>&6
2008 else
2009 echo "$ac_t""no" 1>&6
2016 # AC_STEPMAKE_LIBTOOL
2018 lang=English
2019 ALL_LINGUAS="en nl"
2021 # with/enable ??
2022 # Check whether --with-localedir or --without-localedir was given.
2023 if test "${with_localedir+set}" = set; then
2024 withval="$with_localedir"
2025 localedir=$with_localedir
2026 else
2027 localedir='${prefix}/share/locale'
2031 # Check whether --with-lang or --without-lang was given.
2032 if test "${with_lang+set}" = set; then
2033 withval="$with_lang"
2034 language=$with_lang
2035 else
2036 language=English
2040 echo $ac_n "checking language""... $ac_c" 1>&6
2041 echo "configure:2042: checking language" >&5
2042 case "$language" in
2043 En* | en* | Am* | am* | US* | us*)
2044 lang=English;;
2045 NL | nl | Du* | du* | Ned* | ned*)
2046 lang=Dutch;;
2048 lang=English;;
2050 lang=unknown;;
2051 esac
2052 echo "$ac_t""$lang" 1>&6
2054 if test "$lang" = "unknown" ; then
2056 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2057 warn_b=yes
2063 DIR_LOCALEDIR=${localedir}
2064 presome=${prefix}
2065 if test "$prefix" = "NONE"; then
2066 presome=${ac_default_prefix}
2068 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2071 cat >> confdefs.h <<EOF
2072 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2076 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2077 echo "configure:2078: checking for gettext in -lintl" >&5
2078 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2080 echo $ac_n "(cached) $ac_c" 1>&6
2081 else
2082 ac_save_LIBS="$LIBS"
2083 LIBS="-lintl $LIBS"
2084 cat > conftest.$ac_ext <<EOF
2085 #line 2086 "configure"
2086 #include "confdefs.h"
2087 /* Override any gcc2 internal prototype to avoid an error. */
2088 #ifdef __cplusplus
2089 extern "C"
2090 #endif
2091 /* We use char because int might match the return type of a gcc2
2092 builtin and then its argument prototype would still apply. */
2093 char gettext();
2095 int main() {
2096 gettext()
2097 ; return 0; }
2099 if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2100 rm -rf conftest*
2101 eval "ac_cv_lib_$ac_lib_var=yes"
2102 else
2103 echo "configure: failed program was:" >&5
2104 cat conftest.$ac_ext >&5
2105 rm -rf conftest*
2106 eval "ac_cv_lib_$ac_lib_var=no"
2108 rm -f conftest*
2109 LIBS="$ac_save_LIBS"
2112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2113 echo "$ac_t""yes" 1>&6
2114 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2115 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2116 cat >> confdefs.h <<EOF
2117 #define $ac_tr_lib 1
2120 LIBS="-lintl $LIBS"
2122 else
2123 echo "$ac_t""no" 1>&6
2126 for ac_func in gettext
2128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_func" >&5
2130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2132 else
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 /* System header to define __stub macros and hopefully few prototypes,
2137 which can conflict with char $ac_func(); below. */
2138 #include <assert.h>
2139 /* Override any gcc2 internal prototype to avoid an error. */
2140 #ifdef __cplusplus
2141 extern "C"
2142 #endif
2143 /* We use char because int might match the return type of a gcc2
2144 builtin and then its argument prototype would still apply. */
2145 char $ac_func();
2147 int main() {
2149 /* The GNU C library defines this for functions which it implements
2150 to always fail with ENOSYS. Some functions are actually named
2151 something starting with __ and the normal name is an alias. */
2152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2153 choke me
2154 #else
2155 $ac_func();
2156 #endif
2158 ; return 0; }
2160 if { (eval echo configure:2161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2161 rm -rf conftest*
2162 eval "ac_cv_func_$ac_func=yes"
2163 else
2164 echo "configure: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2166 rm -rf conftest*
2167 eval "ac_cv_func_$ac_func=no"
2169 rm -f conftest*
2172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2173 echo "$ac_t""yes" 1>&6
2174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2175 cat >> confdefs.h <<EOF
2176 #define $ac_tr_func 1
2179 else
2180 echo "$ac_t""no" 1>&6
2182 done
2186 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2187 for ac_prog in msgfmt
2189 # Extract the first word of "$ac_prog", so it can be a program name with args.
2190 set dummy $ac_prog; ac_word=$2
2191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2192 echo "configure:2193: checking for $ac_word" >&5
2193 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2195 else
2196 if test -n "$MSGFMT"; then
2197 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2198 else
2199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2200 ac_dummy="$PATH"
2201 for ac_dir in $ac_dummy; do
2202 test -z "$ac_dir" && ac_dir=.
2203 if test -f $ac_dir/$ac_word; then
2204 ac_cv_prog_MSGFMT="$ac_prog"
2205 break
2207 done
2208 IFS="$ac_save_ifs"
2211 MSGFMT="$ac_cv_prog_MSGFMT"
2212 if test -n "$MSGFMT"; then
2213 echo "$ac_t""$MSGFMT" 1>&6
2214 else
2215 echo "$ac_t""no" 1>&6
2218 test -n "$MSGFMT" && break
2219 done
2220 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2222 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2223 echo "configure:2224: checking whether msgfmt accepts -o" >&5
2224 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2225 if test "$msgfmt_output" = ""; then
2226 echo "$ac_t""yes" 1>&6
2227 else
2228 # urg
2229 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2230 echo "$ac_t""no" 1>&6
2232 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2233 warn_b=yes
2236 if test ! -n "$MSGFMT"; then
2238 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2239 warn_b=yes
2244 # urg, never know what names these teTeX guys will think up
2246 for ac_prog in mf
2248 # Extract the first word of "$ac_prog", so it can be a program name with args.
2249 set dummy $ac_prog; ac_word=$2
2250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2251 echo "configure:2252: checking for $ac_word" >&5
2252 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2254 else
2255 if test -n "$METAFONT"; then
2256 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2257 else
2258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2259 ac_dummy="$PATH"
2260 for ac_dir in $ac_dummy; do
2261 test -z "$ac_dir" && ac_dir=.
2262 if test -f $ac_dir/$ac_word; then
2263 ac_cv_prog_METAFONT="$ac_prog"
2264 break
2266 done
2267 IFS="$ac_save_ifs"
2270 METAFONT="$ac_cv_prog_METAFONT"
2271 if test -n "$METAFONT"; then
2272 echo "$ac_t""$METAFONT" 1>&6
2273 else
2274 echo "$ac_t""no" 1>&6
2277 test -n "$METAFONT" && break
2278 done
2279 test -n "$METAFONT" || METAFONT="no"
2281 if test "x$METAFONT" = "xno"; then
2282 for ac_prog in mfont
2284 # Extract the first word of "$ac_prog", so it can be a program name with args.
2285 set dummy $ac_prog; ac_word=$2
2286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2287 echo "configure:2288: checking for $ac_word" >&5
2288 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2290 else
2291 if test -n "$MFONT"; then
2292 ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2293 else
2294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2295 ac_dummy="$PATH"
2296 for ac_dir in $ac_dummy; do
2297 test -z "$ac_dir" && ac_dir=.
2298 if test -f $ac_dir/$ac_word; then
2299 ac_cv_prog_MFONT="$ac_prog"
2300 break
2302 done
2303 IFS="$ac_save_ifs"
2306 MFONT="$ac_cv_prog_MFONT"
2307 if test -n "$MFONT"; then
2308 echo "$ac_t""$MFONT" 1>&6
2309 else
2310 echo "$ac_t""no" 1>&6
2313 test -n "$MFONT" && break
2314 done
2315 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2317 METAFONT=$MFONT
2320 for ac_prog in mp
2322 # Extract the first word of "$ac_prog", so it can be a program name with args.
2323 set dummy $ac_prog; ac_word=$2
2324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2325 echo "configure:2326: checking for $ac_word" >&5
2326 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2328 else
2329 if test -n "$METAPOST"; then
2330 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2331 else
2332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2333 ac_dummy="$PATH"
2334 for ac_dir in $ac_dummy; do
2335 test -z "$ac_dir" && ac_dir=.
2336 if test -f $ac_dir/$ac_word; then
2337 ac_cv_prog_METAPOST="$ac_prog"
2338 break
2340 done
2341 IFS="$ac_save_ifs"
2344 METAPOST="$ac_cv_prog_METAPOST"
2345 if test -n "$METAPOST"; then
2346 echo "$ac_t""$METAPOST" 1>&6
2347 else
2348 echo "$ac_t""no" 1>&6
2351 test -n "$METAPOST" && break
2352 done
2353 test -n "$METAPOST" || METAPOST="no"
2355 if test "x$METAPOST" = "xno"; then
2356 for ac_prog in mpost
2358 # Extract the first word of "$ac_prog", so it can be a program name with args.
2359 set dummy $ac_prog; ac_word=$2
2360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2361 echo "configure:2362: checking for $ac_word" >&5
2362 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2364 else
2365 if test -n "$MPOST"; then
2366 ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2367 else
2368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2369 ac_dummy="$PATH"
2370 for ac_dir in $ac_dummy; do
2371 test -z "$ac_dir" && ac_dir=.
2372 if test -f $ac_dir/$ac_word; then
2373 ac_cv_prog_MPOST="$ac_prog"
2374 break
2376 done
2377 IFS="$ac_save_ifs"
2380 MPOST="$ac_cv_prog_MPOST"
2381 if test -n "$MPOST"; then
2382 echo "$ac_t""$MPOST" 1>&6
2383 else
2384 echo "$ac_t""no" 1>&6
2387 test -n "$MPOST" && break
2388 done
2389 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2392 METAPOST=$MPOST
2395 for ac_prog in inimf
2397 # Extract the first word of "$ac_prog", so it can be a program name with args.
2398 set dummy $ac_prog; ac_word=$2
2399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2400 echo "configure:2401: checking for $ac_word" >&5
2401 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2403 else
2404 if test -n "$INIMETAFONT"; then
2405 ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2406 else
2407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2408 ac_dummy="$PATH"
2409 for ac_dir in $ac_dummy; do
2410 test -z "$ac_dir" && ac_dir=.
2411 if test -f $ac_dir/$ac_word; then
2412 ac_cv_prog_INIMETAFONT="$ac_prog"
2413 break
2415 done
2416 IFS="$ac_save_ifs"
2419 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2420 if test -n "$INIMETAFONT"; then
2421 echo "$ac_t""$INIMETAFONT" 1>&6
2422 else
2423 echo "$ac_t""no" 1>&6
2426 test -n "$INIMETAFONT" && break
2427 done
2428 test -n "$INIMETAFONT" || INIMETAFONT="no"
2430 if test "x$INIMETAFONT" = "xno"; then
2431 for ac_prog in inimfont
2433 # Extract the first word of "$ac_prog", so it can be a program name with args.
2434 set dummy $ac_prog; ac_word=$2
2435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_word" >&5
2437 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2439 else
2440 if test -n "$INIMFONT"; then
2441 ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2442 else
2443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2444 ac_dummy="$PATH"
2445 for ac_dir in $ac_dummy; do
2446 test -z "$ac_dir" && ac_dir=.
2447 if test -f $ac_dir/$ac_word; then
2448 ac_cv_prog_INIMFONT="$ac_prog"
2449 break
2451 done
2452 IFS="$ac_save_ifs"
2455 INIMFONT="$ac_cv_prog_INIMFONT"
2456 if test -n "$INIMFONT"; then
2457 echo "$ac_t""$INIMFONT" 1>&6
2458 else
2459 echo "$ac_t""no" 1>&6
2462 test -n "$INIMFONT" && break
2463 done
2464 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2466 INIMETAFONT=$INIMFONT
2469 for ac_prog in inimp
2471 # Extract the first word of "$ac_prog", so it can be a program name with args.
2472 set dummy $ac_prog; ac_word=$2
2473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2474 echo "configure:2475: checking for $ac_word" >&5
2475 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2477 else
2478 if test -n "$INIMETAPOST"; then
2479 ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test.
2480 else
2481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2482 ac_dummy="$PATH"
2483 for ac_dir in $ac_dummy; do
2484 test -z "$ac_dir" && ac_dir=.
2485 if test -f $ac_dir/$ac_word; then
2486 ac_cv_prog_INIMETAPOST="$ac_prog"
2487 break
2489 done
2490 IFS="$ac_save_ifs"
2493 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2494 if test -n "$INIMETAPOST"; then
2495 echo "$ac_t""$INIMETAPOST" 1>&6
2496 else
2497 echo "$ac_t""no" 1>&6
2500 test -n "$INIMETAPOST" && break
2501 done
2502 test -n "$INIMETAPOST" || INIMETAPOST="no"
2504 if test "x$INIMETAPOST" = "xno"; then
2505 for ac_prog in inimpost
2507 # Extract the first word of "$ac_prog", so it can be a program name with args.
2508 set dummy $ac_prog; ac_word=$2
2509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2510 echo "configure:2511: checking for $ac_word" >&5
2511 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2513 else
2514 if test -n "$INIMPOST"; then
2515 ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2516 else
2517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2518 ac_dummy="$PATH"
2519 for ac_dir in $ac_dummy; do
2520 test -z "$ac_dir" && ac_dir=.
2521 if test -f $ac_dir/$ac_word; then
2522 ac_cv_prog_INIMPOST="$ac_prog"
2523 break
2525 done
2526 IFS="$ac_save_ifs"
2529 INIMPOST="$ac_cv_prog_INIMPOST"
2530 if test -n "$INIMPOST"; then
2531 echo "$ac_t""$INIMPOST" 1>&6
2532 else
2533 echo "$ac_t""no" 1>&6
2536 test -n "$INIMPOST" && break
2537 done
2538 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2540 INIMETAPOST=$INIMPOST
2543 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2544 echo "configure:2545: checking for working metafont mode" >&5
2545 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2546 for MFMODE in $modelist; do
2547 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2548 if test -f mfput.tfm; then
2549 break;
2551 done
2554 # For now let people define these in their environments
2556 : ${MFPLAIN_MP=`kpsewhich mp mfplain.mp`}
2557 : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2559 rm -f mfput.*
2560 echo "$ac_t""$MFMODE" 1>&6
2571 # Check whether --enable-tex-tfmdir or --disable-tex-tfmdir was given.
2572 if test "${enable_tex_tfmdir+set}" = set; then
2573 enableval="$enable_tex_tfmdir"
2574 TFMDIR=$enableval
2575 else
2576 TFMDIR=auto
2580 for ac_prog in kpsewhich
2582 # Extract the first word of "$ac_prog", so it can be a program name with args.
2583 set dummy $ac_prog; ac_word=$2
2584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_word" >&5
2586 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2588 else
2589 if test -n "$KPSEWHICH"; then
2590 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2591 else
2592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2593 ac_dummy="$PATH"
2594 for ac_dir in $ac_dummy; do
2595 test -z "$ac_dir" && ac_dir=.
2596 if test -f $ac_dir/$ac_word; then
2597 ac_cv_prog_KPSEWHICH="$ac_prog"
2598 break
2600 done
2601 IFS="$ac_save_ifs"
2604 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2605 if test -n "$KPSEWHICH"; then
2606 echo "$ac_t""$KPSEWHICH" 1>&6
2607 else
2608 echo "$ac_t""no" 1>&6
2611 test -n "$KPSEWHICH" && break
2612 done
2613 test -n "$KPSEWHICH" || KPSEWHICH="no"
2615 echo $ac_n "checking for TeX TFM directory""... $ac_c" 1>&6
2616 echo "configure:2617: checking for TeX TFM directory" >&5
2617 if test "x$TFMDIR" = xauto ; then
2618 if test "x$TEX_TFMDIR" = "x" ; then
2619 if test "x$KPSEWHICH" != "xno" ; then
2620 CMR10=`kpsewhich tfm cmr10.tfm`
2621 TEX_TFMDIR=`dirname $CMR10`
2622 else
2624 echo "configure: warning: Please set TEX_TFMDIR (to where cmr10.tfm lives):
2625 TEX_TFMDIR=/usr/local/TeX/lib/tex/fonts ./configure" 1>&2
2626 warn_b=yes
2631 echo "$ac_t""$TEX_TFMDIR" 1>&6
2636 ## The GUILE_FLAGS macro.
2637 ## First, let's just see if we can find Guile at all.
2638 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2639 echo "configure:2640: checking for Guile" >&5
2640 guile-config link > /dev/null || {
2641 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
2642 exit 1
2644 GUILE_CFLAGS="`guile-config compile`"
2645 GUILE_LDFLAGS="`guile-config link`"
2648 echo "$ac_t""yes" 1>&6
2650 if guile-config --version 2>&1 | grep -q 'version 1\.012'; then
2652 echo "configure: warning: Guile version 1.3 or better needed" 1>&2
2653 warn_b=yes
2659 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2660 echo "configure:2661: checking for 8-bit clean memcmp" >&5
2661 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2663 else
2664 if test "$cross_compiling" = yes; then
2665 ac_cv_func_memcmp_clean=no
2666 else
2667 cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 #ifdef __cplusplus
2671 extern "C" void exit(int);
2672 #endif
2674 main()
2676 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2677 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2681 if { (eval echo configure:2682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2682 then
2683 ac_cv_func_memcmp_clean=yes
2684 else
2685 echo "configure: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2687 rm -fr conftest*
2688 ac_cv_func_memcmp_clean=no
2690 rm -fr conftest*
2695 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2696 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2698 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2699 echo "configure:2700: checking for vprintf" >&5
2700 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2702 else
2703 cat > conftest.$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2706 /* System header to define __stub macros and hopefully few prototypes,
2707 which can conflict with char vprintf(); below. */
2708 #include <assert.h>
2709 /* Override any gcc2 internal prototype to avoid an error. */
2710 #ifdef __cplusplus
2711 extern "C"
2712 #endif
2713 /* We use char because int might match the return type of a gcc2
2714 builtin and then its argument prototype would still apply. */
2715 char vprintf();
2717 int main() {
2719 /* The GNU C library defines this for functions which it implements
2720 to always fail with ENOSYS. Some functions are actually named
2721 something starting with __ and the normal name is an alias. */
2722 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2723 choke me
2724 #else
2725 vprintf();
2726 #endif
2728 ; return 0; }
2730 if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2731 rm -rf conftest*
2732 eval "ac_cv_func_vprintf=yes"
2733 else
2734 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2736 rm -rf conftest*
2737 eval "ac_cv_func_vprintf=no"
2739 rm -f conftest*
2742 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2743 echo "$ac_t""yes" 1>&6
2744 cat >> confdefs.h <<\EOF
2745 #define HAVE_VPRINTF 1
2748 else
2749 echo "$ac_t""no" 1>&6
2752 if test "$ac_cv_func_vprintf" != yes; then
2753 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2754 echo "configure:2755: checking for _doprnt" >&5
2755 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2757 else
2758 cat > conftest.$ac_ext <<EOF
2759 #line 2760 "configure"
2760 #include "confdefs.h"
2761 /* System header to define __stub macros and hopefully few prototypes,
2762 which can conflict with char _doprnt(); below. */
2763 #include <assert.h>
2764 /* Override any gcc2 internal prototype to avoid an error. */
2765 #ifdef __cplusplus
2766 extern "C"
2767 #endif
2768 /* We use char because int might match the return type of a gcc2
2769 builtin and then its argument prototype would still apply. */
2770 char _doprnt();
2772 int main() {
2774 /* The GNU C library defines this for functions which it implements
2775 to always fail with ENOSYS. Some functions are actually named
2776 something starting with __ and the normal name is an alias. */
2777 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2778 choke me
2779 #else
2780 _doprnt();
2781 #endif
2783 ; return 0; }
2785 if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2786 rm -rf conftest*
2787 eval "ac_cv_func__doprnt=yes"
2788 else
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2791 rm -rf conftest*
2792 eval "ac_cv_func__doprnt=no"
2794 rm -f conftest*
2797 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 cat >> confdefs.h <<\EOF
2800 #define HAVE_DOPRNT 1
2803 else
2804 echo "$ac_t""no" 1>&6
2809 for ac_func in memmem snprintf vsnprintf gettext
2811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2812 echo "configure:2813: checking for $ac_func" >&5
2813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2815 else
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 /* System header to define __stub macros and hopefully few prototypes,
2820 which can conflict with char $ac_func(); below. */
2821 #include <assert.h>
2822 /* Override any gcc2 internal prototype to avoid an error. */
2823 #ifdef __cplusplus
2824 extern "C"
2825 #endif
2826 /* We use char because int might match the return type of a gcc2
2827 builtin and then its argument prototype would still apply. */
2828 char $ac_func();
2830 int main() {
2832 /* The GNU C library defines this for functions which it implements
2833 to always fail with ENOSYS. Some functions are actually named
2834 something starting with __ and the normal name is an alias. */
2835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2836 choke me
2837 #else
2838 $ac_func();
2839 #endif
2841 ; return 0; }
2843 if { (eval echo configure:2844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2844 rm -rf conftest*
2845 eval "ac_cv_func_$ac_func=yes"
2846 else
2847 echo "configure: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2849 rm -rf conftest*
2850 eval "ac_cv_func_$ac_func=no"
2852 rm -f conftest*
2855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2856 echo "$ac_t""yes" 1>&6
2857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2858 cat >> confdefs.h <<EOF
2859 #define $ac_tr_func 1
2862 else
2863 echo "$ac_t""no" 1>&6
2865 done
2868 cat >> confdefs.h <<EOF
2869 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2872 cat >> confdefs.h <<EOF
2873 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
2877 for ac_prog in makeinfo
2879 # Extract the first word of "$ac_prog", so it can be a program name with args.
2880 set dummy $ac_prog; ac_word=$2
2881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2882 echo "configure:2883: checking for $ac_word" >&5
2883 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2885 else
2886 if test -n "$MAKEINFO"; then
2887 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2888 else
2889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2890 ac_dummy="$PATH"
2891 for ac_dir in $ac_dummy; do
2892 test -z "$ac_dir" && ac_dir=.
2893 if test -f $ac_dir/$ac_word; then
2894 ac_cv_prog_MAKEINFO="$ac_prog"
2895 break
2897 done
2898 IFS="$ac_save_ifs"
2901 MAKEINFO="$ac_cv_prog_MAKEINFO"
2902 if test -n "$MAKEINFO"; then
2903 echo "$ac_t""$MAKEINFO" 1>&6
2904 else
2905 echo "$ac_t""no" 1>&6
2908 test -n "$MAKEINFO" && break
2909 done
2910 test -n "$MAKEINFO" || MAKEINFO="error"
2912 for ac_prog in perl
2914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915 set dummy $ac_prog; ac_word=$2
2916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2917 echo "configure:2918: checking for $ac_word" >&5
2918 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
2919 echo $ac_n "(cached) $ac_c" 1>&6
2920 else
2921 if test -n "$PERL"; then
2922 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2923 else
2924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2925 ac_dummy="$PATH"
2926 for ac_dir in $ac_dummy; do
2927 test -z "$ac_dir" && ac_dir=.
2928 if test -f $ac_dir/$ac_word; then
2929 ac_cv_prog_PERL="$ac_prog"
2930 break
2932 done
2933 IFS="$ac_save_ifs"
2936 PERL="$ac_cv_prog_PERL"
2937 if test -n "$PERL"; then
2938 echo "$ac_t""$PERL" 1>&6
2939 else
2940 echo "$ac_t""no" 1>&6
2943 test -n "$PERL" && break
2944 done
2945 test -n "$PERL" || PERL="error"
2950 trap '' 1 2 15
2951 cat > confcache <<\EOF
2952 # This file is a shell script that caches the results of configure
2953 # tests run on this system so they can be shared between configure
2954 # scripts and configure runs. It is not useful on other systems.
2955 # If it contains results you don't want to keep, you may remove or edit it.
2957 # By default, configure uses ./config.cache as the cache file,
2958 # creating it if it does not exist already. You can give configure
2959 # the --cache-file=FILE option to use a different cache file; that is
2960 # what configure does when it calls configure scripts in
2961 # subdirectories, so they share the cache.
2962 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2963 # config.status only pays attention to the cache file if you give it the
2964 # --recheck option to rerun configure.
2967 # The following way of writing the cache mishandles newlines in values,
2968 # but we know of no workaround that is simple, portable, and efficient.
2969 # So, don't put newlines in cache variables' values.
2970 # Ultrix sh set writes to stderr and can't be redirected directly,
2971 # and sets the high bit in the cache file unless we assign to the vars.
2972 (set) 2>&1 |
2973 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2974 *ac_space=\ *)
2975 # `set' does not quote correctly, so add quotes (double-quote substitution
2976 # turns \\\\ into \\, and sed turns \\ into \).
2977 sed -n \
2978 -e "s/'/'\\\\''/g" \
2979 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2982 # `set' quotes correctly as required by POSIX, so do not add quotes.
2983 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2985 esac >> confcache
2986 if cmp -s $cache_file confcache; then
2988 else
2989 if test -w $cache_file; then
2990 echo "updating cache $cache_file"
2991 cat confcache > $cache_file
2992 else
2993 echo "not updating unwritable cache $cache_file"
2996 rm -f confcache
2998 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3000 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3001 # Let make expand exec_prefix.
3002 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3004 # Any assignment to VPATH causes Sun make to only execute
3005 # the first set of double-colon rules, so remove it if not needed.
3006 # If there is a colon in the path, we need to keep it.
3007 if test "x$srcdir" = x.; then
3008 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3011 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3013 DEFS=-DHAVE_CONFIG_H
3015 # Without the "./", some shells look in PATH for config.status.
3016 : ${CONFIG_STATUS=./config.status}
3018 echo creating $CONFIG_STATUS
3019 rm -f $CONFIG_STATUS
3020 cat > $CONFIG_STATUS <<EOF
3021 #! /bin/sh
3022 # Generated automatically by configure.
3023 # Run this file to recreate the current configuration.
3024 # This directory was configured as follows,
3025 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3027 # $0 $ac_configure_args
3029 # Compiler output produced by configure, useful for debugging
3030 # configure, is in ./config.log if it exists.
3032 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3033 for ac_option
3035 case "\$ac_option" in
3036 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3037 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3038 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3039 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3040 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3041 exit 0 ;;
3042 -help | --help | --hel | --he | --h)
3043 echo "\$ac_cs_usage"; exit 0 ;;
3044 *) echo "\$ac_cs_usage"; exit 1 ;;
3045 esac
3046 done
3048 ac_given_srcdir=$srcdir
3050 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3052 cat >> $CONFIG_STATUS <<EOF
3054 # Protect against being on the right side of a sed subst in config.status.
3055 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3056 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3057 $ac_vpsub
3058 $extrasub
3059 s%@SHELL@%$SHELL%g
3060 s%@CFLAGS@%$CFLAGS%g
3061 s%@CPPFLAGS@%$CPPFLAGS%g
3062 s%@CXXFLAGS@%$CXXFLAGS%g
3063 s%@FFLAGS@%$FFLAGS%g
3064 s%@DEFS@%$DEFS%g
3065 s%@LDFLAGS@%$LDFLAGS%g
3066 s%@LIBS@%$LIBS%g
3067 s%@exec_prefix@%$exec_prefix%g
3068 s%@prefix@%$prefix%g
3069 s%@program_transform_name@%$program_transform_name%g
3070 s%@bindir@%$bindir%g
3071 s%@sbindir@%$sbindir%g
3072 s%@libexecdir@%$libexecdir%g
3073 s%@datadir@%$datadir%g
3074 s%@sysconfdir@%$sysconfdir%g
3075 s%@sharedstatedir@%$sharedstatedir%g
3076 s%@localstatedir@%$localstatedir%g
3077 s%@libdir@%$libdir%g
3078 s%@includedir@%$includedir%g
3079 s%@oldincludedir@%$oldincludedir%g
3080 s%@infodir@%$infodir%g
3081 s%@mandir@%$mandir%g
3082 s%@stepmake@%$stepmake%g
3083 s%@package@%$package%g
3084 s%@PACKAGE@%$PACKAGE%g
3085 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3086 s%@package_depth@%$package_depth%g
3087 s%@AUTOGENERATE@%$AUTOGENERATE%g
3088 s%@absolute_builddir@%$absolute_builddir%g
3089 s%@STATE_VECTOR@%$STATE_VECTOR%g
3090 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3091 s%@host@%$host%g
3092 s%@host_alias@%$host_alias%g
3093 s%@host_cpu@%$host_cpu%g
3094 s%@host_vendor@%$host_vendor%g
3095 s%@host_os@%$host_os%g
3096 s%@MAKE@%$MAKE%g
3097 s%@FIND@%$FIND%g
3098 s%@TAR@%$TAR%g
3099 s%@BASH@%$BASH%g
3100 s%@PYTHON@%$PYTHON%g
3101 s%@DOTEXE@%$DOTEXE%g
3102 s%@ZIP@%$ZIP%g
3103 s%@LN@%$LN%g
3104 s%@LN_S@%$LN_S%g
3105 s%@INSTALL@%$INSTALL%g
3106 s%@PATHSEP@%$PATHSEP%g
3107 s%@DIRSEP@%$DIRSEP%g
3108 s%@DIR_DATADIR@%$DIR_DATADIR%g
3109 s%@subdirs@%$subdirs%g
3110 s%@CC@%$CC%g
3111 s%@LD@%$LD%g
3112 s%@ICFLAGS@%$ICFLAGS%g
3113 s%@ILDFLAGS@%$ILDFLAGS%g
3114 s%@DEFINES@%$DEFINES%g
3115 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3116 s%@CXX@%$CXX%g
3117 s%@CXXCPP@%$CXXCPP%g
3118 s%@YACC@%$YACC%g
3119 s%@BISON@%$BISON%g
3120 s%@FLEX@%$FLEX%g
3121 s%@AR@%$AR%g
3122 s%@RANLIB@%$RANLIB%g
3123 s%@localedir@%$localedir%g
3124 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3125 s%@MSGFMT@%$MSGFMT%g
3126 s%@METAFONT@%$METAFONT%g
3127 s%@MFONT@%$MFONT%g
3128 s%@METAPOST@%$METAPOST%g
3129 s%@MPOST@%$MPOST%g
3130 s%@INIMETAFONT@%$INIMETAFONT%g
3131 s%@INIMFONT@%$INIMFONT%g
3132 s%@INIMETAPOST@%$INIMETAPOST%g
3133 s%@INIMPOST@%$INIMPOST%g
3134 s%@MFMODE@%$MFMODE%g
3135 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3136 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3137 s%@KPSEWHICH@%$KPSEWHICH%g
3138 s%@TEX_TFMDIR@%$TEX_TFMDIR%g
3139 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3140 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3141 s%@LIBOBJS@%$LIBOBJS%g
3142 s%@MAKEINFO@%$MAKEINFO%g
3143 s%@PERL@%$PERL%g
3145 CEOF
3148 cat >> $CONFIG_STATUS <<\EOF
3150 # Split the substitutions into bite-sized pieces for seds with
3151 # small command number limits, like on Digital OSF/1 and HP-UX.
3152 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3153 ac_file=1 # Number of current file.
3154 ac_beg=1 # First line for current file.
3155 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3156 ac_more_lines=:
3157 ac_sed_cmds=""
3158 while $ac_more_lines; do
3159 if test $ac_beg -gt 1; then
3160 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3161 else
3162 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3164 if test ! -s conftest.s$ac_file; then
3165 ac_more_lines=false
3166 rm -f conftest.s$ac_file
3167 else
3168 if test -z "$ac_sed_cmds"; then
3169 ac_sed_cmds="sed -f conftest.s$ac_file"
3170 else
3171 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3173 ac_file=`expr $ac_file + 1`
3174 ac_beg=$ac_end
3175 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3177 done
3178 if test -z "$ac_sed_cmds"; then
3179 ac_sed_cmds=cat
3183 cat >> $CONFIG_STATUS <<EOF
3185 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3187 cat >> $CONFIG_STATUS <<\EOF
3188 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3189 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3190 case "$ac_file" in
3191 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3192 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3193 *) ac_file_in="${ac_file}.in" ;;
3194 esac
3196 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3198 # Remove last slash and all that follows it. Not all systems have dirname.
3199 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3200 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3201 # The file is in a subdirectory.
3202 test ! -d "$ac_dir" && mkdir "$ac_dir"
3203 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3204 # A "../" for each directory in $ac_dir_suffix.
3205 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3206 else
3207 ac_dir_suffix= ac_dots=
3210 case "$ac_given_srcdir" in
3211 .) srcdir=.
3212 if test -z "$ac_dots"; then top_srcdir=.
3213 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3214 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3215 *) # Relative path.
3216 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3217 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3218 esac
3221 echo creating "$ac_file"
3222 rm -f "$ac_file"
3223 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3224 case "$ac_file" in
3225 *Makefile*) ac_comsub="1i\\
3226 # $configure_input" ;;
3227 *) ac_comsub= ;;
3228 esac
3230 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3231 sed -e "$ac_comsub
3232 s%@configure_input@%$configure_input%g
3233 s%@srcdir@%$srcdir%g
3234 s%@top_srcdir@%$top_srcdir%g
3235 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3236 fi; done
3237 rm -f conftest.s*
3239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3242 # ac_d sets the value in "#define NAME VALUE" lines.
3243 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3244 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3245 ac_dC='\3'
3246 ac_dD='%g'
3247 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3248 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3249 ac_uB='\([ ]\)%\1#\2define\3'
3250 ac_uC=' '
3251 ac_uD='\4%g'
3252 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3253 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3254 ac_eB='$%\1#\2define\3'
3255 ac_eC=' '
3256 ac_eD='%g'
3258 if test "${CONFIG_HEADERS+set}" != set; then
3260 cat >> $CONFIG_STATUS <<EOF
3261 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3263 cat >> $CONFIG_STATUS <<\EOF
3265 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3266 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3267 case "$ac_file" in
3268 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3269 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3270 *) ac_file_in="${ac_file}.in" ;;
3271 esac
3273 echo creating $ac_file
3275 rm -f conftest.frag conftest.in conftest.out
3276 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3277 cat $ac_file_inputs > conftest.in
3281 # Transform confdefs.h into a sed script conftest.vals that substitutes
3282 # the proper values into config.h.in to produce config.h. And first:
3283 # Protect against being on the right side of a sed subst in config.status.
3284 # Protect against being in an unquoted here document in config.status.
3285 rm -f conftest.vals
3286 cat > conftest.hdr <<\EOF
3287 s/[\\&%]/\\&/g
3288 s%[\\$`]%\\&%g
3289 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3290 s%ac_d%ac_u%gp
3291 s%ac_u%ac_e%gp
3293 sed -n -f conftest.hdr confdefs.h > conftest.vals
3294 rm -f conftest.hdr
3296 # This sed command replaces #undef with comments. This is necessary, for
3297 # example, in the case of _POSIX_SOURCE, which is predefined and required
3298 # on some systems where configure will not decide to define it.
3299 cat >> conftest.vals <<\EOF
3300 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3303 # Break up conftest.vals because some shells have a limit on
3304 # the size of here documents, and old seds have small limits too.
3306 rm -f conftest.tail
3307 while :
3309 ac_lines=`grep -c . conftest.vals`
3310 # grep -c gives empty output for an empty file on some AIX systems.
3311 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3312 # Write a limited-size here document to conftest.frag.
3313 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3314 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3315 echo 'CEOF
3316 sed -f conftest.frag conftest.in > conftest.out
3317 rm -f conftest.in
3318 mv conftest.out conftest.in
3319 ' >> $CONFIG_STATUS
3320 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3321 rm -f conftest.vals
3322 mv conftest.tail conftest.vals
3323 done
3324 rm -f conftest.vals
3326 cat >> $CONFIG_STATUS <<\EOF
3327 rm -f conftest.frag conftest.h
3328 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3329 cat conftest.in >> conftest.h
3330 rm -f conftest.in
3331 if cmp -s $ac_file conftest.h 2>/dev/null; then
3332 echo "$ac_file is unchanged"
3333 rm -f conftest.h
3334 else
3335 # Remove last slash and all that follows it. Not all systems have dirname.
3336 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3337 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3338 # The file is in a subdirectory.
3339 test ! -d "$ac_dir" && mkdir "$ac_dir"
3341 rm -f $ac_file
3342 mv conftest.h $ac_file
3344 fi; done
3347 cat >> $CONFIG_STATUS <<EOF
3350 cat >> $CONFIG_STATUS <<\EOF
3352 exit 0
3354 chmod +x $CONFIG_STATUS
3355 rm -fr confdefs* $ac_clean_files
3356 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3358 if test "$no_recursion" != yes; then
3360 # Remove --cache-file and --srcdir arguments so they do not pile up.
3361 ac_sub_configure_args=
3362 ac_prev=
3363 for ac_arg in $ac_configure_args; do
3364 if test -n "$ac_prev"; then
3365 ac_prev=
3366 continue
3368 case "$ac_arg" in
3369 -cache-file | --cache-file | --cache-fil | --cache-fi \
3370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3371 ac_prev=cache_file ;;
3372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3376 ac_prev=srcdir ;;
3377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3379 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3380 esac
3381 done
3383 for ac_config_dir in stepmake; do
3385 # Do not complain, so a configure script can configure whichever
3386 # parts of a large source tree are present.
3387 if test ! -d $srcdir/$ac_config_dir; then
3388 continue
3391 echo configuring in $ac_config_dir
3393 case "$srcdir" in
3394 .) ;;
3396 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3397 else
3398 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3401 esac
3403 ac_popdir=`pwd`
3404 cd $ac_config_dir
3406 # A "../" for each directory in /$ac_config_dir.
3407 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3409 case "$srcdir" in
3410 .) # No --srcdir option. We are building in place.
3411 ac_sub_srcdir=$srcdir ;;
3412 /*) # Absolute path.
3413 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3414 *) # Relative path.
3415 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3416 esac
3418 # Check for guested configure; otherwise get Cygnus style configure.
3419 if test -f $ac_sub_srcdir/configure; then
3420 ac_sub_configure=$ac_sub_srcdir/configure
3421 elif test -f $ac_sub_srcdir/configure.in; then
3422 ac_sub_configure=$ac_configure
3423 else
3424 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3425 ac_sub_configure=
3428 # The recursion is here.
3429 if test -n "$ac_sub_configure"; then
3431 # Make the cache file name correct relative to the subdirectory.
3432 case "$cache_file" in
3433 /*) ac_sub_cache_file=$cache_file ;;
3434 *) # Relative path.
3435 ac_sub_cache_file="$ac_dots$cache_file" ;;
3436 esac
3438 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3439 # The eval makes quoting arguments work.
3440 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3441 then :
3442 else
3443 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3447 cd $ac_popdir
3448 done
3452 rm -f GNUmakefile
3453 cp make/toplevel.make.in ./GNUmakefile
3454 chmod 444 GNUmakefile