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"
11 gtkmm_config_prefix=""
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"
22 gtkmm_config_exec_prefix=""
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"
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.
65 ac_default_prefix=/usr/local
66 # Any additions from configure.in:
68 enable-config=FILE put configure settings in config-FILE.make"
70 enable-checking set runtime checks (assert calls). Default: on"
72 enable-optimise use maximal speed optimisations. Default: off"
74 enable-profiling compile with gprof support. Default: off"
76 enable-debugging set debug info. Default: on"
78 enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
80 enable-printing turn on debug printing. Default: off"
82 with-localedir=LOCALE use LOCALE as locale dir. Default: PREFIX/share/locale "
84 with-lang=LANG use LANG as language to emit messages"
86 enable-tfm-path=PATH set path of tex directories where tfm files live, esp.: cmr10.tfm. Default: use kpsewhich"
88 enable-kpathsea use kpathsea lib. Default: on"
90 # Initialize some variables set by options.
91 # The variables have the same names as the options, with
92 # dashes changed to underlines.
94 cache_file=./config.cache
103 program_transform_name=s,x,x,
111 bindir='${exec_prefix}/bin'
112 sbindir='${exec_prefix}/sbin'
113 libexecdir='${exec_prefix}/libexec'
114 datadir='${prefix}/share'
115 sysconfdir='${prefix}/etc'
116 sharedstatedir='${prefix}/com'
117 localstatedir='${prefix}/var'
118 libdir='${exec_prefix}/lib'
119 includedir='${prefix}/include'
120 oldincludedir='/usr/include'
121 infodir='${prefix}/info'
122 mandir='${prefix}/man'
124 # Initialize some other variables.
127 SHELL=${CONFIG_SHELL-/bin/sh}
128 # Maximum number of lines to put in a shell here document.
135 # If the previous option needs an argument, assign it.
136 if test -n "$ac_prev"; then
137 eval "$ac_prev=\$ac_option"
143 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
147 # Accept the important Cygnus configure options, so we can diagnose typos.
151 -bindir | --bindir | --bindi | --bind | --bin | --bi)
153 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
154 bindir="$ac_optarg" ;;
156 -build | --build | --buil | --bui | --bu)
158 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
159 build="$ac_optarg" ;;
161 -cache-file | --cache-file | --cache-fil | --cache-fi \
162 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
163 ac_prev=cache_file ;;
164 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
165 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
166 cache_file="$ac_optarg" ;;
168 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
170 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
172 datadir="$ac_optarg" ;;
174 -disable-* | --disable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}=no" ;;
183 -enable-* | --enable-*)
184 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
194 eval "enable_${ac_feature}='$ac_optarg'" ;;
196 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
197 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
198 | --exec | --exe | --ex)
199 ac_prev=exec_prefix ;;
200 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
201 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
202 | --exec=* | --exe=* | --ex=*)
203 exec_prefix="$ac_optarg" ;;
205 -gas | --gas | --ga | --g)
206 # Obsolete; use --with-gas.
209 -help | --help | --hel | --he)
210 # Omit some internal or obsolete options to make the list less imposing.
211 # This message is too long to be a string in the A/UX 3.1 sh.
213 Usage: configure [options] [host]
214 Options: [defaults in brackets after descriptions]
216 --cache-file=FILE cache test results in FILE
217 --help print this message
218 --no-create do not create output files
219 --quiet, --silent do not print \`checking...' messages
220 --version print the version of autoconf that created configure
221 Directory and file names:
222 --prefix=PREFIX install architecture-independent files in PREFIX
224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
226 --bindir=DIR user executables in DIR [EPREFIX/bin]
227 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
228 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
229 --datadir=DIR read-only architecture-independent data in DIR
231 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
232 --sharedstatedir=DIR modifiable architecture-independent data in DIR
234 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
235 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
236 --includedir=DIR C header files in DIR [PREFIX/include]
237 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
238 --infodir=DIR info documentation in DIR [PREFIX/info]
239 --mandir=DIR man documentation in DIR [PREFIX/man]
240 --srcdir=DIR find the sources in DIR [configure dir or ..]
241 --program-prefix=PREFIX prepend PREFIX to installed program names
242 --program-suffix=SUFFIX append SUFFIX to installed program names
243 --program-transform-name=PROGRAM
244 run sed PROGRAM on installed program names
248 --build=BUILD configure for building on BUILD [BUILD=HOST]
249 --host=HOST configure for HOST [guessed]
250 --target=TARGET configure for TARGET [TARGET=HOST]
251 Features and packages:
252 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
253 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
254 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
255 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
256 --x-includes=DIR X include files are in DIR
257 --x-libraries=DIR X library files are in DIR
259 if test -n "$ac_help"; then
260 echo "--enable and --with options recognized:$ac_help"
264 -host | --host | --hos | --ho)
266 -host=* | --host=* | --hos=* | --ho=*)
269 -includedir | --includedir | --includedi | --included | --include \
270 | --includ | --inclu | --incl | --inc)
271 ac_prev=includedir ;;
272 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
273 | --includ=* | --inclu=* | --incl=* | --inc=*)
274 includedir="$ac_optarg" ;;
276 -infodir | --infodir | --infodi | --infod | --info | --inf)
278 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
279 infodir="$ac_optarg" ;;
281 -libdir | --libdir | --libdi | --libd)
283 -libdir=* | --libdir=* | --libdi=* | --libd=*)
284 libdir="$ac_optarg" ;;
286 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
287 | --libexe | --libex | --libe)
288 ac_prev=libexecdir ;;
289 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
290 | --libexe=* | --libex=* | --libe=*)
291 libexecdir="$ac_optarg" ;;
293 -localstatedir | --localstatedir | --localstatedi | --localstated \
294 | --localstate | --localstat | --localsta | --localst \
295 | --locals | --local | --loca | --loc | --lo)
296 ac_prev=localstatedir ;;
297 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
298 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
299 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
300 localstatedir="$ac_optarg" ;;
302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
305 mandir="$ac_optarg" ;;
308 # Obsolete; use --without-fp.
311 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
315 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
316 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
319 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
320 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
321 | --oldin | --oldi | --old | --ol | --o)
322 ac_prev=oldincludedir ;;
323 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
326 oldincludedir="$ac_optarg" ;;
328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
331 prefix="$ac_optarg" ;;
333 -program-prefix | --program-prefix | --program-prefi | --program-pref \
334 | --program-pre | --program-pr | --program-p)
335 ac_prev=program_prefix ;;
336 -program-prefix=* | --program-prefix=* | --program-prefi=* \
337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
338 program_prefix="$ac_optarg" ;;
340 -program-suffix | --program-suffix | --program-suffi | --program-suff \
341 | --program-suf | --program-su | --program-s)
342 ac_prev=program_suffix ;;
343 -program-suffix=* | --program-suffix=* | --program-suffi=* \
344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
345 program_suffix="$ac_optarg" ;;
347 -program-transform-name | --program-transform-name \
348 | --program-transform-nam | --program-transform-na \
349 | --program-transform-n | --program-transform- \
350 | --program-transform | --program-transfor \
351 | --program-transfo | --program-transf \
352 | --program-trans | --program-tran \
353 | --progr-tra | --program-tr | --program-t)
354 ac_prev=program_transform_name ;;
355 -program-transform-name=* | --program-transform-name=* \
356 | --program-transform-nam=* | --program-transform-na=* \
357 | --program-transform-n=* | --program-transform-=* \
358 | --program-transform=* | --program-transfor=* \
359 | --program-transfo=* | --program-transf=* \
360 | --program-trans=* | --program-tran=* \
361 | --progr-tra=* | --program-tr=* | --program-t=*)
362 program_transform_name="$ac_optarg" ;;
364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
365 | -silent | --silent | --silen | --sile | --sil)
368 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
372 sbindir="$ac_optarg" ;;
374 -sharedstatedir | --sharedstatedir | --sharedstatedi \
375 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
376 | --sharedst | --shareds | --shared | --share | --shar \
378 ac_prev=sharedstatedir ;;
379 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
380 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
383 sharedstatedir="$ac_optarg" ;;
385 -site | --site | --sit)
387 -site=* | --site=* | --sit=*)
390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
393 srcdir="$ac_optarg" ;;
395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
396 | --syscon | --sysco | --sysc | --sys | --sy)
397 ac_prev=sysconfdir ;;
398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
400 sysconfdir="$ac_optarg" ;;
402 -target | --target | --targe | --targ | --tar | --ta | --t)
404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
405 target="$ac_optarg" ;;
407 -v | -verbose | --verbose | --verbos | --verbo | --verb)
410 -version | --version | --versio | --versi | --vers)
411 echo "configure generated by autoconf version 2.13"
415 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}='$ac_optarg'" ;;
427 -without-* | --without-*)
428 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}=no" ;;
437 # Obsolete; use --with-x.
440 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
441 | --x-incl | --x-inc | --x-in | --x-i)
442 ac_prev=x_includes ;;
443 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
444 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
445 x_includes="$ac_optarg" ;;
447 -x-libraries | --x-libraries | --x-librarie | --x-librari \
448 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
449 ac_prev=x_libraries ;;
450 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
451 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
452 x_libraries="$ac_optarg" ;;
454 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
458 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
459 echo "configure: warning: $ac_option: invalid host type" 1>&2
461 if test "x$nonopt" != xNONE; then
462 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
470 if test -n "$ac_prev"; then
471 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
476 # File descriptor usage:
479 # 2 errors and warnings
480 # 3 some systems may open it to /dev/tty
481 # 4 used on the Kubota Titan
482 # 6 checking for... messages and results
483 # 5 compiler messages saved in config.log
484 if test "$silent" = yes; then
492 This file contains any messages produced by compilers while
493 running configure, to aid debugging if configure makes a mistake.
496 # Strip out --no-create and --no-recursion so they do not pile up.
497 # Also quote any args containing shell metacharacters.
502 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
503 | --no-cr | --no-c) ;;
504 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
505 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
506 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
507 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
508 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
513 # Only set these to C if already set. These must not be set unconditionally
514 # because not all systems understand e.g. LANG=C (notably SCO).
515 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
516 # Non-C LC_CTYPE values break the ctype check.
517 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
518 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
519 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
520 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
523 rm -rf conftest* confdefs.h
524 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
527 # A filename unique to this package, relative to the directory that
528 # configure is in, which we can look for to find out if srcdir is correct.
529 ac_unique_file=make/lilypond.lsm.in
531 # Find the source files, if location was not specified.
532 if test -z "$srcdir"; then
533 ac_srcdir_defaulted=yes
534 # Try the directory containing this script, then its parent.
536 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
537 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
539 if test ! -r $srcdir/$ac_unique_file; then
543 ac_srcdir_defaulted=no
545 if test ! -r $srcdir/$ac_unique_file; then
546 if test "$ac_srcdir_defaulted" = yes; then
547 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
549 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
554 # Prefer explicitly selected file to automatically selected ones.
555 if test -z "$CONFIG_SITE"; then
556 if test "x$prefix" != xNONE; then
557 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
559 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
562 for ac_site_file in $CONFIG_SITE; do
563 if test -r "$ac_site_file"; then
564 echo "loading site script $ac_site_file"
569 if test -r "$cache_file"; then
570 echo "loading cache $cache_file"
573 echo "creating cache $cache_file"
578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
579 ac_cpp='$CPP $CPPFLAGS'
580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
582 cross_compiling=$ac_cv_prog_cc_cross
586 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
587 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
588 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
595 ac_n= ac_c='\c' ac_t=
601 # Bootstrap StepMake configure
605 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
606 if test x$MY_PATCH_LEVEL != x; then
607 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
610 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
611 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
612 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
614 # No versioning on directory names of sub-packages
616 stepmake=${datadir}/stepmake
618 if test "$prefix" = "NONE"; then
619 presome=${ac_default_prefix}
621 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
623 # urg, how is this supposed to work?
624 if test "$program_prefix" = "NONE"; then
627 if test "$program_suffix" = "NONE"; then
631 echo $ac_n "checking Package""... $ac_c" 1>&6
632 echo "configure:633: checking Package" >&5
633 if test "x$PACKAGE" = "xSTEPMAKE"; then
634 echo "$ac_t""Stepmake package!" 1>&6
636 #if test "x$builddir" != "x"; then
637 # builddir="../$builddir"
641 if test "$srcdir" != "."; then
642 absolute_builddir="`pwd`"
643 package_absolute_builddir="`dirname $absolute_builddir`"
644 package_srcdir="`dirname $srcdir`"
645 builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
650 (cd stepmake 2>/dev/null || mkdir stepmake)
651 (cd stepmake; rm -f stepmake; ln -s ../$srcdir/stepmake .)
652 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
654 for ac_dir in bin $srcdir/bin; do
655 if test -f $ac_dir/install-sh; then
657 ac_install_sh="$ac_aux_dir/install-sh -c"
659 elif test -f $ac_dir/install.sh; then
661 ac_install_sh="$ac_aux_dir/install.sh -c"
665 if test -z "$ac_aux_dir"; then
666 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
668 ac_config_guess=$ac_aux_dir/config.guess
669 ac_config_sub=$ac_aux_dir/config.sub
670 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
674 echo "$ac_t""$PACKAGE" 1>&6
676 if test "$srcdir" != "."; then
677 absolute_builddir="`pwd`"
678 builddir="`dirname $srcdir`/`basename $absolute_builddir`"
683 echo $ac_n "checking for stepmake""... $ac_c" 1>&6
684 echo "configure:685: checking for stepmake" >&5
685 # Check for installed stepmake
686 if test -d $stepmake; then
687 echo "$ac_t""$stepmake" 1>&6
689 stepmake='$(depth)'/$srcdir/stepmake
690 echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6
694 $HOME/usr/local/share/stepmake/bin\
695 $HOME/usr/local/lib/stepmake/bin\
696 $HOME/usr/share/stepmake/bin\
697 $HOME/usr/lib/stepmake/bin\
698 /usr/local/share/stepmake/bin\
699 /usr/local/lib/stepmake/bin\
700 /usr/share/stepmake/bin\
701 /usr/lib/stepmake/bin\
703 $srcdir/stepmake/bin\
705 $HOME/usr/local/share/stepmake/bin\
706 $HOME/usr/local/lib/stepmake/bin\
707 $HOME/usr/share/stepmake/bin\
708 $HOME/usr/lib/stepmake/bin\
709 /usr/local/share/stepmake/bin\
710 /usr/local/lib/stepmake/bin\
711 /usr/share/stepmake/bin\
712 /usr/lib/stepmake/bin\
714 $srcdir/stepmake/bin\
716 if test -f $ac_dir/install-sh; then
718 ac_install_sh="$ac_aux_dir/install-sh -c"
720 elif test -f $ac_dir/install.sh; then
722 ac_install_sh="$ac_aux_dir/install.sh -c"
726 if test -z "$ac_aux_dir"; then
727 { echo "configure: error: can not find install-sh or install.sh in \
728 $HOME/usr/local/share/stepmake/bin\
729 $HOME/usr/local/lib/stepmake/bin\
730 $HOME/usr/share/stepmake/bin\
731 $HOME/usr/lib/stepmake/bin\
732 /usr/local/share/stepmake/bin\
733 /usr/local/lib/stepmake/bin\
734 /usr/share/stepmake/bin\
735 /usr/lib/stepmake/bin\
737 $srcdir/stepmake/bin\
739 $HOME/usr/local/share/stepmake/bin\
740 $HOME/usr/local/lib/stepmake/bin\
741 $HOME/usr/share/stepmake/bin\
742 $HOME/usr/lib/stepmake/bin\
743 /usr/local/share/stepmake/bin\
744 /usr/local/lib/stepmake/bin\
745 /usr/share/stepmake/bin\
746 /usr/lib/stepmake/bin\
748 $srcdir/stepmake/bin\
751 ac_config_guess=$ac_aux_dir/config.guess
752 ac_config_sub=$ac_aux_dir/config.sub
753 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
762 cat >> confdefs.h <<EOF
763 #define PACKAGE "${PACKAGE_NAME}"
766 cat >> confdefs.h <<EOF
767 #define TOPLEVEL_VERSION "${FULL_VERSION}"
771 if test "$package_depth" = "" ; then
774 package_depth="../$package_depth"
779 AUTOGENERATE="This file was automatically generated by configure"
782 STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
783 if test "x$STATE_VECTOR" != "x"; then
784 STATE_VECTOR="\$(depth)/$STATE_VECTOR"
789 # Check whether --enable-config or --disable-config was given.
790 if test "${enable_config+set}" = set; then
791 enableval="$enable_config"
792 CONFIGSUFFIX=-$enableval
796 CONFIGFILE=config$CONFIGSUFFIX
800 # Make sure we can run config.sub.
801 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
802 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
805 echo $ac_n "checking host system type""... $ac_c" 1>&6
806 echo "configure:807: checking host system type" >&5
809 case "$host_alias" in
813 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
814 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
816 *) host_alias=$nonopt ;;
820 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
821 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
822 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
823 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
824 echo "$ac_t""$host" 1>&6
826 for ac_prog in gmake make
828 # Extract the first word of "$ac_prog", so it can be a program name with args.
829 set dummy $ac_prog; ac_word=$2
830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
831 echo "configure:832: checking for $ac_word" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
835 if test -n "$MAKE"; then
836 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
840 for ac_dir in $ac_dummy; do
841 test -z "$ac_dir" && ac_dir=.
842 if test -f $ac_dir/$ac_word; then
843 ac_cv_prog_MAKE="$ac_prog"
850 MAKE="$ac_cv_prog_MAKE"
851 if test -n "$MAKE"; then
852 echo "$ac_t""$MAKE" 1>&6
854 echo "$ac_t""no" 1>&6
857 test -n "$MAKE" && break
859 test -n "$MAKE" || MAKE="error"
863 # Extract the first word of "$ac_prog", so it can be a program name with args.
864 set dummy $ac_prog; ac_word=$2
865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
866 echo "configure:867: checking for $ac_word" >&5
867 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
868 echo $ac_n "(cached) $ac_c" 1>&6
870 if test -n "$FIND"; then
871 ac_cv_prog_FIND="$FIND" # Let the user override the test.
873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
875 for ac_dir in $ac_dummy; do
876 test -z "$ac_dir" && ac_dir=.
877 if test -f $ac_dir/$ac_word; then
878 ac_cv_prog_FIND="$ac_prog"
885 FIND="$ac_cv_prog_FIND"
886 if test -n "$FIND"; then
887 echo "$ac_t""$FIND" 1>&6
889 echo "$ac_t""no" 1>&6
892 test -n "$FIND" && break
894 test -n "$FIND" || FIND="error"
900 # Extract the first word of "$ac_prog", so it can be a program name with args.
901 set dummy $ac_prog; ac_word=$2
902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
903 echo "configure:904: checking for $ac_word" >&5
904 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
905 echo $ac_n "(cached) $ac_c" 1>&6
907 if test -n "$TAR"; then
908 ac_cv_prog_TAR="$TAR" # Let the user override the test.
910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
912 for ac_dir in $ac_dummy; do
913 test -z "$ac_dir" && ac_dir=.
914 if test -f $ac_dir/$ac_word; then
915 ac_cv_prog_TAR="$ac_prog"
922 TAR="$ac_cv_prog_TAR"
923 if test -n "$TAR"; then
924 echo "$ac_t""$TAR" 1>&6
926 echo "$ac_t""no" 1>&6
929 test -n "$TAR" && break
931 test -n "$TAR" || TAR="error"
934 if test "x`uname`" = "xHP-UX"; then
935 # Extract the first word of "bash", so it can be a program name with args.
936 set dummy bash; ac_word=$2
937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
938 echo "configure:939: checking for $ac_word" >&5
939 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
944 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
947 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
952 for ac_dir in $ac_dummy; do
953 test -z "$ac_dir" && ac_dir=.
954 if test -f $ac_dir/$ac_word; then
955 ac_cv_path_BASH="$ac_dir/$ac_word"
960 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
964 BASH="$ac_cv_path_BASH"
965 if test -n "$BASH"; then
966 echo "$ac_t""$BASH" 1>&6
968 echo "$ac_t""no" 1>&6
972 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
975 # Extract the first word of "bash", so it can be a program name with args.
976 set dummy bash; ac_word=$2
977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
978 echo "configure:979: checking for $ac_word" >&5
979 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
984 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
987 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
992 for ac_dir in $ac_dummy; do
993 test -z "$ac_dir" && ac_dir=.
994 if test -f $ac_dir/$ac_word; then
995 ac_cv_path_SHELL="$ac_dir/$ac_word"
1000 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
1004 SHELL="$ac_cv_path_SHELL"
1005 if test -n "$SHELL"; then
1006 echo "$ac_t""$SHELL" 1>&6
1008 echo "$ac_t""no" 1>&6
1012 # Extract the first word of "bash", so it can be a program name with args.
1013 set dummy bash; ac_word=$2
1014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1015 echo "configure:1016: checking for $ac_word" >&5
1016 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1021 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1024 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1029 for ac_dir in $ac_dummy; do
1030 test -z "$ac_dir" && ac_dir=.
1031 if test -f $ac_dir/$ac_word; then
1032 ac_cv_path_BASH="$ac_dir/$ac_word"
1037 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1041 BASH="$ac_cv_path_BASH"
1042 if test -n "$BASH"; then
1043 echo "$ac_t""$BASH" 1>&6
1045 echo "$ac_t""no" 1>&6
1053 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1054 set dummy ${PYTHON:-python}; ac_word=$2
1055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1056 echo "configure:1057: checking for $ac_word" >&5
1057 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1062 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1065 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1070 for ac_dir in $ac_dummy; do
1071 test -z "$ac_dir" && ac_dir=.
1072 if test -f $ac_dir/$ac_word; then
1073 ac_cv_path_PYTHON="$ac_dir/$ac_word"
1078 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1082 PYTHON="$ac_cv_path_PYTHON"
1083 if test -n "$PYTHON"; then
1084 echo "$ac_t""$PYTHON" 1>&6
1086 echo "$ac_t""no" 1>&6
1091 if test $MAKE != "error" ; then
1092 $MAKE -v 2> /dev/null | grep GNU > /dev/null
1096 echo "configure: warning: Please install *GNU* make" 1>&2
1103 result="`echo \"$PYTHON\" | grep echo`"
1104 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1106 echo "configure: warning: can\'t find python. You should install Python" 1>&2
1112 if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
1113 LN=cp # hard link does not work under cygnus-nt
1114 LN_S='cp -r' # symbolic link does not work for native nt
1121 # cygwin fixes all these things.
1122 # it seems these were used because of dos-style TEXINPUTS and
1123 # MFINPUTS needed for miktex.
1124 # but this breaks parsing of all other cygwin/unix style paths.
1126 # if your (mik)tex breaks, make a:
1127 # /usr/local/bin/tex:
1129 # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex
1133 # /usr/local/bin/mf:
1135 # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf
1137 # this way, you may have buildscripts/out/lilypond-profile
1138 # 'automatically' sourced from /usr/etc/profile.d/ too.
1142 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1149 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1157 cat >> confdefs.h <<EOF
1158 #define DIRSEP '${DIRSEP}'
1161 cat >> confdefs.h <<EOF
1162 #define PATHSEP '${PATHSEP}'
1169 if test "$datadir" = "\${prefix}/share"; then
1170 datadir='${prefix}/share/'$package
1172 DIR_DATADIR=${datadir}
1174 if test "$prefix" = "NONE"; then
1175 presome=${ac_default_prefix}
1177 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1180 cat >> confdefs.h <<EOF
1181 #define DIR_DATADIR "${DIR_DATADIR}"
1187 # For all packages except the StepMake package itself
1191 # Uncomment the configuration options your package needs.
1193 # -O is necessary to get inlining
1195 CFLAGS=${CFLAGS:-""}
1196 CXXFLAGS=${CXXFLAGS:-$CFLAGS}
1197 LDFLAGS=${LDFLAGS:-""}
1203 # Check whether --enable-checking or --disable-checking was given.
1204 if test "${enable_checking+set}" = set; then
1205 enableval="$enable_checking"
1206 checking_b=$enableval
1210 # actually, the default is: tja='-O' to get inlining...
1213 #actually, that sucks.
1214 # tja looks like a typo. Default is optimisation off. --hwn
1216 # Check whether --enable-optimise or --disable-optimise was given.
1217 if test "${enable_optimise+set}" = set; then
1218 enableval="$enable_optimise"
1219 optimise_b=$enableval
1223 # Check whether --enable-profiling or --disable-profiling was given.
1224 if test "${enable_profiling+set}" = set; then
1225 enableval="$enable_profiling"
1226 profile_b=$enableval
1230 # Check whether --enable-debugging or --disable-debugging was given.
1231 if test "${enable_debugging+set}" = set; then
1232 enableval="$enable_debugging"
1237 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1238 if test "${enable_mingw_prefix+set}" = set; then
1239 enableval="$enable_mingw_prefix"
1240 MINGWPREFIX=$enableval
1246 if test "$checking_b" = no; then
1248 cat >> confdefs.h <<\EOF
1252 DEFINES="$DEFINES -DNDEBUG"
1255 if test "$optimise_b" = yes; then
1256 OPTIMIZE="-O2 -finline-functions"
1259 if test "$optimise_b" = no; then
1263 if test $profile_b = yes; then
1265 OPTIMIZE="$OPTIMIZE -pg"
1268 if test $debug_b = yes; then
1269 OPTIMIZE="$OPTIMIZE -g"
1272 # however, C++ support in mingw32 v 0.1.4 is still flaky
1273 if test x$MINGWPREFIX != xno; then
1274 ICFLAGS="-I$MINGWPREFIX/include"
1275 ILDFLAGS="-$MINGWPREFIX/lib"
1278 # Extract the first word of "gcc", so it can be a program name with args.
1279 set dummy gcc; ac_word=$2
1280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1281 echo "configure:1282: checking for $ac_word" >&5
1282 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 if test -n "$CC"; then
1286 ac_cv_prog_CC="$CC" # Let the user override the test.
1288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1290 for ac_dir in $ac_dummy; do
1291 test -z "$ac_dir" && ac_dir=.
1292 if test -f $ac_dir/$ac_word; then
1301 if test -n "$CC"; then
1302 echo "$ac_t""$CC" 1>&6
1304 echo "$ac_t""no" 1>&6
1307 if test -z "$CC"; then
1308 # Extract the first word of "cc", so it can be a program name with args.
1309 set dummy cc; ac_word=$2
1310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1311 echo "configure:1312: checking for $ac_word" >&5
1312 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1315 if test -n "$CC"; then
1316 ac_cv_prog_CC="$CC" # Let the user override the test.
1318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1321 for ac_dir in $ac_dummy; do
1322 test -z "$ac_dir" && ac_dir=.
1323 if test -f $ac_dir/$ac_word; then
1324 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1325 ac_prog_rejected=yes
1333 if test $ac_prog_rejected = yes; then
1334 # We found a bogon in the path, so make sure we never use it.
1335 set dummy $ac_cv_prog_CC
1337 if test $# -gt 0; then
1338 # We chose a different compiler from the bogus one.
1339 # However, it has the same basename, so the bogon will be chosen
1340 # first if we set CC to just the basename; use the full file name.
1342 set dummy "$ac_dir/$ac_word" "$@"
1350 if test -n "$CC"; then
1351 echo "$ac_t""$CC" 1>&6
1353 echo "$ac_t""no" 1>&6
1356 if test -z "$CC"; then
1357 case "`uname -s`" in
1359 # Extract the first word of "cl", so it can be a program name with args.
1360 set dummy cl; ac_word=$2
1361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1362 echo "configure:1363: checking for $ac_word" >&5
1363 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 if test -n "$CC"; then
1367 ac_cv_prog_CC="$CC" # Let the user override the test.
1369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1371 for ac_dir in $ac_dummy; do
1372 test -z "$ac_dir" && ac_dir=.
1373 if test -f $ac_dir/$ac_word; then
1382 if test -n "$CC"; then
1383 echo "$ac_t""$CC" 1>&6
1385 echo "$ac_t""no" 1>&6
1390 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1393 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1394 echo "configure:1395: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1400 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1401 cross_compiling=$ac_cv_prog_cc_cross
1403 cat > conftest.$ac_ext << EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1410 if { (eval echo configure:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1411 ac_cv_prog_cc_works=yes
1412 # If we can't run a trivial program, we are probably using a cross compiler.
1413 if (./conftest; exit) 2>/dev/null; then
1414 ac_cv_prog_cc_cross=no
1416 ac_cv_prog_cc_cross=yes
1419 echo "configure: failed program was:" >&5
1420 cat conftest.$ac_ext >&5
1421 ac_cv_prog_cc_works=no
1425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1426 ac_cpp='$CPP $CPPFLAGS'
1427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1429 cross_compiling=$ac_cv_prog_cc_cross
1431 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1432 if test $ac_cv_prog_cc_works = no; then
1433 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1435 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1436 echo "configure:1437: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1437 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1438 cross_compiling=$ac_cv_prog_cc_cross
1440 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1441 echo "configure:1442: checking whether we are using GNU C" >&5
1442 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 cat > conftest.c <<EOF
1450 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1457 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1459 if test $ac_cv_prog_gcc = yes; then
1465 ac_test_CFLAGS="${CFLAGS+set}"
1466 ac_save_CFLAGS="$CFLAGS"
1468 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1469 echo "configure:1470: checking whether ${CC-cc} accepts -g" >&5
1470 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 echo 'void f(){}' > conftest.c
1474 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1483 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1484 if test "$ac_test_CFLAGS" = set; then
1485 CFLAGS="$ac_save_CFLAGS"
1486 elif test $ac_cv_prog_cc_g = yes; then
1487 if test "$GCC" = yes; then
1493 if test "$GCC" = yes; then
1503 CFLAGS="$CFLAGS $OPTIMIZE"
1504 CPPFLAGS=${CPPFLAGS:-""}
1513 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1514 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1515 echo "configure:1516: checking how to run the C preprocessor" >&5
1516 # On Suns, sometimes $CPP names a directory.
1517 if test -n "$CPP" && test -d "$CPP"; then
1520 if test -z "$CPP"; then
1521 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1524 # This must be in double quotes, not single quotes, because CPP may get
1525 # substituted into the Makefile and "${CC-cc}" will confuse make.
1527 # On the NeXT, cc -E runs the code through the compiler's parser,
1528 # not just through cpp.
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1536 { (eval echo configure:1537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1538 if test -z "$ac_err"; then
1542 echo "configure: failed program was:" >&5
1543 cat conftest.$ac_ext >&5
1545 CPP="${CC-cc} -E -traditional-cpp"
1546 cat > conftest.$ac_ext <<EOF
1547 #line 1548 "configure"
1548 #include "confdefs.h"
1552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1553 { (eval echo configure:1554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1555 if test -z "$ac_err"; then
1559 echo "configure: failed program was:" >&5
1560 cat conftest.$ac_ext >&5
1562 CPP="${CC-cc} -nologo -E"
1563 cat > conftest.$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1570 { (eval echo configure:1571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1572 if test -z "$ac_err"; then
1576 echo "configure: failed program was:" >&5
1577 cat conftest.$ac_ext >&5
1586 ac_cv_prog_CPP="$CPP"
1588 CPP="$ac_cv_prog_CPP"
1590 ac_cv_prog_CPP="$CPP"
1592 echo "$ac_t""$CPP" 1>&6
1594 for ac_hdr in assert.h sys/stat.h
1596 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1598 echo "configure:1599: checking for $ac_hdr" >&5
1599 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1608 { (eval echo configure:1609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1610 if test -z "$ac_err"; then
1612 eval "ac_cv_header_$ac_safe=yes"
1615 echo "configure: failed program was:" >&5
1616 cat conftest.$ac_ext >&5
1618 eval "ac_cv_header_$ac_safe=no"
1622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1623 echo "$ac_t""yes" 1>&6
1624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1625 cat >> confdefs.h <<EOF
1626 #define $ac_tr_hdr 1
1630 echo "$ac_t""no" 1>&6
1634 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1635 echo "configure:1636: checking whether stat file-mode macros are broken" >&5
1636 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 #include <sys/types.h>
1643 #include <sys/stat.h>
1645 #if defined(S_ISBLK) && defined(S_IFDIR)
1646 # if S_ISBLK (S_IFDIR)
1651 #if defined(S_ISBLK) && defined(S_IFCHR)
1652 # if S_ISBLK (S_IFCHR)
1657 #if defined(S_ISLNK) && defined(S_IFREG)
1658 # if S_ISLNK (S_IFREG)
1663 #if defined(S_ISSOCK) && defined(S_IFREG)
1664 # if S_ISSOCK (S_IFREG)
1670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1671 egrep "You lose" >/dev/null 2>&1; then
1673 ac_cv_header_stat_broken=yes
1676 ac_cv_header_stat_broken=no
1682 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1683 if test $ac_cv_header_stat_broken = yes; then
1684 cat >> confdefs.h <<\EOF
1685 #define STAT_MACROS_BROKEN 1
1692 # Check whether --enable-printing or --disable-printing was given.
1693 if test "${enable_printing+set}" = set; then
1694 enableval="$enable_printing"
1695 printing_b=$enableval
1699 if test "$optimise_b" = yes; then
1700 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1701 cat >> confdefs.h <<\EOF
1702 #define STRINGS_UTILS_INLINED 1
1707 if test "$printing_b" = no; then
1709 cat >> confdefs.h <<\EOF
1713 DEFINES="$DEFINES -DNPRINT"
1716 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1717 echo "configure:1718: checking how to run the C++ preprocessor" >&5
1718 if test -z "$CXXCPP"; then
1719 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1724 ac_cpp='$CXXCPP $CPPFLAGS'
1725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1727 cross_compiling=$ac_cv_prog_cxx_cross
1728 CXXCPP="${CXX-g++} -E"
1729 cat > conftest.$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1735 { (eval echo configure:1736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1737 if test -z "$ac_err"; then
1741 echo "configure: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1747 ac_cv_prog_CXXCPP="$CXXCPP"
1749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1750 ac_cpp='$CXXCPP $CPPFLAGS'
1751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1753 cross_compiling=$ac_cv_prog_cxx_cross
1756 CXXCPP="$ac_cv_prog_CXXCPP"
1757 echo "$ac_t""$CXXCPP" 1>&6
1761 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1762 ac_cpp='$CXXCPP $CPPFLAGS'
1763 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1764 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1765 cross_compiling=$ac_cv_prog_cxx_cross
1767 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1769 # Extract the first word of "$ac_prog", so it can be a program name with args.
1770 set dummy $ac_prog; ac_word=$2
1771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1772 echo "configure:1773: checking for $ac_word" >&5
1773 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1776 if test -n "$CXX"; then
1777 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1781 for ac_dir in $ac_dummy; do
1782 test -z "$ac_dir" && ac_dir=.
1783 if test -f $ac_dir/$ac_word; then
1784 ac_cv_prog_CXX="$ac_prog"
1791 CXX="$ac_cv_prog_CXX"
1792 if test -n "$CXX"; then
1793 echo "$ac_t""$CXX" 1>&6
1795 echo "$ac_t""no" 1>&6
1798 test -n "$CXX" && break
1800 test -n "$CXX" || CXX="gcc"
1803 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1804 echo "configure:1805: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1807 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1808 ac_cpp='$CXXCPP $CPPFLAGS'
1809 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1810 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1811 cross_compiling=$ac_cv_prog_cxx_cross
1813 cat > conftest.$ac_ext << EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1818 int main(){return(0);}
1820 if { (eval echo configure:1821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1821 ac_cv_prog_cxx_works=yes
1822 # If we can't run a trivial program, we are probably using a cross compiler.
1823 if (./conftest; exit) 2>/dev/null; then
1824 ac_cv_prog_cxx_cross=no
1826 ac_cv_prog_cxx_cross=yes
1829 echo "configure: failed program was:" >&5
1830 cat conftest.$ac_ext >&5
1831 ac_cv_prog_cxx_works=no
1835 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1836 ac_cpp='$CXXCPP $CPPFLAGS'
1837 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1838 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1839 cross_compiling=$ac_cv_prog_cxx_cross
1841 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1842 if test $ac_cv_prog_cxx_works = no; then
1843 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1845 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1846 echo "configure:1847: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1847 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1848 cross_compiling=$ac_cv_prog_cxx_cross
1850 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1851 echo "configure:1852: checking whether we are using GNU C++" >&5
1852 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 cat > conftest.C <<EOF
1860 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1867 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1869 if test $ac_cv_prog_gxx = yes; then
1875 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1876 ac_save_CXXFLAGS="$CXXFLAGS"
1878 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1879 echo "configure:1880: checking whether ${CXX-g++} accepts -g" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 echo 'void f(){}' > conftest.cc
1884 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1885 ac_cv_prog_cxx_g=yes
1893 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1894 if test "$ac_test_CXXFLAGS" = set; then
1895 CXXFLAGS="$ac_save_CXXFLAGS"
1896 elif test $ac_cv_prog_cxx_g = yes; then
1897 if test "$GXX" = yes; then
1903 if test "$GXX" = yes; then
1911 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1912 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1913 echo "configure:1914: checking for FlexLexer.h" >&5
1914 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1917 cat > conftest.$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1920 #include <FlexLexer.h>
1922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1923 { (eval echo configure:1924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1925 if test -z "$ac_err"; then
1927 eval "ac_cv_header_$ac_safe=yes"
1930 echo "configure: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1933 eval "ac_cv_header_$ac_safe=no"
1937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1938 echo "$ac_t""yes" 1>&6
1941 echo "$ac_t""no" 1>&6
1943 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1949 CPPFLAGS="$CPPFLAGS $DEFINES"
1950 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1951 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
1960 # urg, egcs: how to check for egcs >= 1.1?
1961 if $CXX --version | egrep '2\.[89]' > /dev/null ||
1962 $CXX --version | grep 'egcs' > /dev/null
1967 echo "configure: warning: can\'t find g++ 2.8" 1>&2
1973 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether explicit instantiation is needed" >&5
1975 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 cat > conftest.$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1982 template <class T> struct foo { static int baz; };
1983 template <class T> int foo<T>::baz = 1;
1986 return foo<int>::baz;
1989 if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1991 lily_cv_need_explicit_instantiation=no
1993 echo "configure: failed program was:" >&5
1994 cat conftest.$ac_ext >&5
1996 lily_cv_need_explicit_instantiation=yes
2001 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
2002 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
2003 cat >> confdefs.h <<\EOF
2004 #define NEED_EXPLICIT_INSTANTIATION 1
2010 # ugh, automake: we want (and check for) bison
2011 for ac_prog in 'bison -y' byacc
2013 # Extract the first word of "$ac_prog", so it can be a program name with args.
2014 set dummy $ac_prog; ac_word=$2
2015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2016 echo "configure:2017: checking for $ac_word" >&5
2017 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 if test -n "$YACC"; then
2021 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2025 for ac_dir in $ac_dummy; do
2026 test -z "$ac_dir" && ac_dir=.
2027 if test -f $ac_dir/$ac_word; then
2028 ac_cv_prog_YACC="$ac_prog"
2035 YACC="$ac_cv_prog_YACC"
2036 if test -n "$YACC"; then
2037 echo "$ac_t""$YACC" 1>&6
2039 echo "$ac_t""no" 1>&6
2042 test -n "$YACC" && break
2044 test -n "$YACC" || YACC="yacc"
2046 # ugh, automake: we want (and check for) flex
2048 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
2052 ac_cv_prog_lex_root=lex.yy
2054 for ac_prog in bison
2056 # Extract the first word of "$ac_prog", so it can be a program name with args.
2057 set dummy $ac_prog; ac_word=$2
2058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2059 echo "configure:2060: checking for $ac_word" >&5
2060 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2063 if test -n "$BISON"; then
2064 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2068 for ac_dir in $ac_dummy; do
2069 test -z "$ac_dir" && ac_dir=.
2070 if test -f $ac_dir/$ac_word; then
2071 ac_cv_prog_BISON="$ac_prog"
2078 BISON="$ac_cv_prog_BISON"
2079 if test -n "$BISON"; then
2080 echo "$ac_t""$BISON" 1>&6
2082 echo "$ac_t""no" 1>&6
2085 test -n "$BISON" && break
2087 test -n "$BISON" || BISON="error"
2091 # Extract the first word of "$ac_prog", so it can be a program name with args.
2092 set dummy $ac_prog; ac_word=$2
2093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2094 echo "configure:2095: checking for $ac_word" >&5
2095 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6
2098 if test -n "$FLEX"; then
2099 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2103 for ac_dir in $ac_dummy; do
2104 test -z "$ac_dir" && ac_dir=.
2105 if test -f $ac_dir/$ac_word; then
2106 ac_cv_prog_FLEX="$ac_prog"
2113 FLEX="$ac_cv_prog_FLEX"
2114 if test -n "$FLEX"; then
2115 echo "$ac_t""$FLEX" 1>&6
2117 echo "$ac_t""no" 1>&6
2120 test -n "$FLEX" && break
2122 test -n "$FLEX" || FLEX="error"
2125 result="`echo \"$BISON\" | grep echo`"
2126 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
2128 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
2134 result="`echo \"$FLEX\" | grep echo`"
2135 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
2137 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
2143 if test $BISON != "error"; then
2144 bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
2145 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
2147 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
2159 # Extract the first word of "$ac_prog", so it can be a program name with args.
2160 set dummy $ac_prog; ac_word=$2
2161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2162 echo "configure:2163: checking for $ac_word" >&5
2163 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 if test -n "$AR"; then
2167 ac_cv_prog_AR="$AR" # Let the user override the test.
2169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2171 for ac_dir in $ac_dummy; do
2172 test -z "$ac_dir" && ac_dir=.
2173 if test -f $ac_dir/$ac_word; then
2174 ac_cv_prog_AR="$ac_prog"
2182 if test -n "$AR"; then
2183 echo "$ac_t""$AR" 1>&6
2185 echo "$ac_t""no" 1>&6
2188 test -n "$AR" && break
2190 test -n "$AR" || AR="error"
2192 # Extract the first word of "ranlib", so it can be a program name with args.
2193 set dummy ranlib; ac_word=$2
2194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2195 echo "configure:2196: checking for $ac_word" >&5
2196 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 if test -n "$RANLIB"; then
2200 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2204 for ac_dir in $ac_dummy; do
2205 test -z "$ac_dir" && ac_dir=.
2206 if test -f $ac_dir/$ac_word; then
2207 ac_cv_prog_RANLIB="ranlib"
2212 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2215 RANLIB="$ac_cv_prog_RANLIB"
2216 if test -n "$RANLIB"; then
2217 echo "$ac_t""$RANLIB" 1>&6
2219 echo "$ac_t""no" 1>&6
2226 # AC_STEPMAKE_LIBTOOL
2232 # Check whether --with-localedir or --without-localedir was given.
2233 if test "${with_localedir+set}" = set; then
2234 withval="$with_localedir"
2235 localedir=$with_localedir
2237 localedir='${prefix}/share/locale'
2241 # Check whether --with-lang or --without-lang was given.
2242 if test "${with_lang+set}" = set; then
2243 withval="$with_lang"
2250 echo $ac_n "checking language""... $ac_c" 1>&6
2251 echo "configure:2252: checking language" >&5
2253 En* | en* | Am* | am* | US* | us*)
2255 NL | nl | Du* | du* | Ned* | ned*)
2262 echo "$ac_t""$lang" 1>&6
2264 if test "$lang" = "unknown" ; then
2266 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2273 DIR_LOCALEDIR=${localedir}
2275 if test "$prefix" = "NONE"; then
2276 presome=${ac_default_prefix}
2278 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2281 cat >> confdefs.h <<EOF
2282 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2286 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2287 echo "configure:2288: checking for gettext in -lintl" >&5
2288 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2292 ac_save_LIBS="$LIBS"
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2297 /* Override any gcc2 internal prototype to avoid an error. */
2301 /* We use char because int might match the return type of a gcc2
2302 builtin and then its argument prototype would still apply. */
2309 if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2311 eval "ac_cv_lib_$ac_lib_var=yes"
2313 echo "configure: failed program was:" >&5
2314 cat conftest.$ac_ext >&5
2316 eval "ac_cv_lib_$ac_lib_var=no"
2319 LIBS="$ac_save_LIBS"
2322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2323 echo "$ac_t""yes" 1>&6
2324 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2326 cat >> confdefs.h <<EOF
2327 #define $ac_tr_lib 1
2333 echo "$ac_t""no" 1>&6
2336 for ac_func in gettext
2338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2339 echo "configure:2340: checking for $ac_func" >&5
2340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2343 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2346 /* System header to define __stub macros and hopefully few prototypes,
2347 which can conflict with char $ac_func(); below. */
2349 /* Override any gcc2 internal prototype to avoid an error. */
2353 /* We use char because int might match the return type of a gcc2
2354 builtin and then its argument prototype would still apply. */
2359 /* The GNU C library defines this for functions which it implements
2360 to always fail with ENOSYS. Some functions are actually named
2361 something starting with __ and the normal name is an alias. */
2362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2370 if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2372 eval "ac_cv_func_$ac_func=yes"
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2377 eval "ac_cv_func_$ac_func=no"
2382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2383 echo "$ac_t""yes" 1>&6
2384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2385 cat >> confdefs.h <<EOF
2386 #define $ac_tr_func 1
2390 echo "$ac_t""no" 1>&6
2396 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2397 for ac_prog in msgfmt
2399 # Extract the first word of "$ac_prog", so it can be a program name with args.
2400 set dummy $ac_prog; ac_word=$2
2401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2402 echo "configure:2403: checking for $ac_word" >&5
2403 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 if test -n "$MSGFMT"; then
2407 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2411 for ac_dir in $ac_dummy; do
2412 test -z "$ac_dir" && ac_dir=.
2413 if test -f $ac_dir/$ac_word; then
2414 ac_cv_prog_MSGFMT="$ac_prog"
2421 MSGFMT="$ac_cv_prog_MSGFMT"
2422 if test -n "$MSGFMT"; then
2423 echo "$ac_t""$MSGFMT" 1>&6
2425 echo "$ac_t""no" 1>&6
2428 test -n "$MSGFMT" && break
2430 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2432 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2433 echo "configure:2434: checking whether msgfmt accepts -o" >&5
2434 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2435 if test "$msgfmt_output" = ""; then
2436 echo "$ac_t""yes" 1>&6
2439 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2440 echo "$ac_t""no" 1>&6
2442 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2446 if test ! -n "$MSGFMT"; then
2448 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2454 # urg, never know what names these teTeX guys will think up
2458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy $ac_prog; ac_word=$2
2460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_word" >&5
2462 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 if test -n "$METAFONT"; then
2466 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2470 for ac_dir in $ac_dummy; do
2471 test -z "$ac_dir" && ac_dir=.
2472 if test -f $ac_dir/$ac_word; then
2473 ac_cv_prog_METAFONT="$ac_prog"
2480 METAFONT="$ac_cv_prog_METAFONT"
2481 if test -n "$METAFONT"; then
2482 echo "$ac_t""$METAFONT" 1>&6
2484 echo "$ac_t""no" 1>&6
2487 test -n "$METAFONT" && break
2489 test -n "$METAFONT" || METAFONT="no"
2491 if test "x$METAFONT" = "xno"; then
2492 for ac_prog in mfont
2494 # Extract the first word of "$ac_prog", so it can be a program name with args.
2495 set dummy $ac_prog; ac_word=$2
2496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2497 echo "configure:2498: checking for $ac_word" >&5
2498 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 if test -n "$MFONT"; then
2502 ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2506 for ac_dir in $ac_dummy; do
2507 test -z "$ac_dir" && ac_dir=.
2508 if test -f $ac_dir/$ac_word; then
2509 ac_cv_prog_MFONT="$ac_prog"
2516 MFONT="$ac_cv_prog_MFONT"
2517 if test -n "$MFONT"; then
2518 echo "$ac_t""$MFONT" 1>&6
2520 echo "$ac_t""no" 1>&6
2523 test -n "$MFONT" && break
2525 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2532 # Extract the first word of "$ac_prog", so it can be a program name with args.
2533 set dummy $ac_prog; ac_word=$2
2534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2535 echo "configure:2536: checking for $ac_word" >&5
2536 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2539 if test -n "$METAPOST"; then
2540 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2544 for ac_dir in $ac_dummy; do
2545 test -z "$ac_dir" && ac_dir=.
2546 if test -f $ac_dir/$ac_word; then
2547 ac_cv_prog_METAPOST="$ac_prog"
2554 METAPOST="$ac_cv_prog_METAPOST"
2555 if test -n "$METAPOST"; then
2556 echo "$ac_t""$METAPOST" 1>&6
2558 echo "$ac_t""no" 1>&6
2561 test -n "$METAPOST" && break
2563 test -n "$METAPOST" || METAPOST="no"
2565 if test "x$METAPOST" = "xno"; then
2566 for ac_prog in mpost
2568 # Extract the first word of "$ac_prog", so it can be a program name with args.
2569 set dummy $ac_prog; ac_word=$2
2570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2571 echo "configure:2572: checking for $ac_word" >&5
2572 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2575 if test -n "$MPOST"; then
2576 ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2580 for ac_dir in $ac_dummy; do
2581 test -z "$ac_dir" && ac_dir=.
2582 if test -f $ac_dir/$ac_word; then
2583 ac_cv_prog_MPOST="$ac_prog"
2590 MPOST="$ac_cv_prog_MPOST"
2591 if test -n "$MPOST"; then
2592 echo "$ac_t""$MPOST" 1>&6
2594 echo "$ac_t""no" 1>&6
2597 test -n "$MPOST" && break
2599 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2605 for ac_prog in inimf
2607 # Extract the first word of "$ac_prog", so it can be a program name with args.
2608 set dummy $ac_prog; ac_word=$2
2609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2610 echo "configure:2611: checking for $ac_word" >&5
2611 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 if test -n "$INIMETAFONT"; then
2615 ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2619 for ac_dir in $ac_dummy; do
2620 test -z "$ac_dir" && ac_dir=.
2621 if test -f $ac_dir/$ac_word; then
2622 ac_cv_prog_INIMETAFONT="$ac_prog"
2629 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2630 if test -n "$INIMETAFONT"; then
2631 echo "$ac_t""$INIMETAFONT" 1>&6
2633 echo "$ac_t""no" 1>&6
2636 test -n "$INIMETAFONT" && break
2638 test -n "$INIMETAFONT" || INIMETAFONT="no"
2640 if test "x$INIMETAFONT" = "xno"; then
2641 for ac_prog in inimfont
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2646 echo "configure:2647: checking for $ac_word" >&5
2647 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2650 if test -n "$INIMFONT"; then
2651 ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2655 for ac_dir in $ac_dummy; do
2656 test -z "$ac_dir" && ac_dir=.
2657 if test -f $ac_dir/$ac_word; then
2658 ac_cv_prog_INIMFONT="$ac_prog"
2665 INIMFONT="$ac_cv_prog_INIMFONT"
2666 if test -n "$INIMFONT"; then
2667 echo "$ac_t""$INIMFONT" 1>&6
2669 echo "$ac_t""no" 1>&6
2672 test -n "$INIMFONT" && break
2674 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2676 INIMETAFONT=$INIMFONT
2679 for ac_prog in inimp
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2684 echo "configure:2685: checking for $ac_word" >&5
2685 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2688 if test -n "$INIMETAPOST"; then
2689 ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test.
2691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2693 for ac_dir in $ac_dummy; do
2694 test -z "$ac_dir" && ac_dir=.
2695 if test -f $ac_dir/$ac_word; then
2696 ac_cv_prog_INIMETAPOST="$ac_prog"
2703 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2704 if test -n "$INIMETAPOST"; then
2705 echo "$ac_t""$INIMETAPOST" 1>&6
2707 echo "$ac_t""no" 1>&6
2710 test -n "$INIMETAPOST" && break
2712 test -n "$INIMETAPOST" || INIMETAPOST="no"
2714 if test "x$INIMETAPOST" = "xno"; then
2715 for ac_prog in inimpost
2717 # Extract the first word of "$ac_prog", so it can be a program name with args.
2718 set dummy $ac_prog; ac_word=$2
2719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2720 echo "configure:2721: checking for $ac_word" >&5
2721 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2724 if test -n "$INIMPOST"; then
2725 ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2729 for ac_dir in $ac_dummy; do
2730 test -z "$ac_dir" && ac_dir=.
2731 if test -f $ac_dir/$ac_word; then
2732 ac_cv_prog_INIMPOST="$ac_prog"
2739 INIMPOST="$ac_cv_prog_INIMPOST"
2740 if test -n "$INIMPOST"; then
2741 echo "$ac_t""$INIMPOST" 1>&6
2743 echo "$ac_t""no" 1>&6
2746 test -n "$INIMPOST" && break
2748 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2750 INIMETAPOST=$INIMPOST
2753 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2754 echo "configure:2755: checking for working metafont mode" >&5
2755 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2756 for MFMODE in $modelist; do
2757 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2758 if test -f mfput.tfm; then
2762 echo "$ac_t""$MFMODE" 1>&6
2764 echo $ac_n "checking for mfplain.mp""... $ac_c" 1>&6
2765 echo "configure:2766: checking for mfplain.mp" >&5
2767 # For now let people define these in their environments
2769 : ${MFPLAIN_MP=`kpsewhich mp mfplain.mp`}
2770 echo "$ac_t""$MFPLAIN_MP" 1>&6
2772 echo $ac_n "checking for inimetapost flags""... $ac_c" 1>&6
2773 echo "configure:2774: checking for inimetapost flags" >&5
2774 if test ${INIMETAPOST} = "inimp" ; then
2775 : ${INIMETAPOST_FLAGS=''}
2777 : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2779 echo "$ac_t""$INIMETAPOST_FLAGS" 1>&6
2792 # Check whether --enable-tfm-path or --disable-tfm-path was given.
2793 if test "${enable_tfm_path+set}" = set; then
2794 enableval="$enable_tfm_path"
2801 for ac_prog in kpsewhich
2803 # Extract the first word of "$ac_prog", so it can be a program name with args.
2804 set dummy $ac_prog; ac_word=$2
2805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2806 echo "configure:2807: checking for $ac_word" >&5
2807 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2810 if test -n "$KPSEWHICH"; then
2811 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2815 for ac_dir in $ac_dummy; do
2816 test -z "$ac_dir" && ac_dir=.
2817 if test -f $ac_dir/$ac_word; then
2818 ac_cv_prog_KPSEWHICH="$ac_prog"
2825 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2826 if test -n "$KPSEWHICH"; then
2827 echo "$ac_t""$KPSEWHICH" 1>&6
2829 echo "$ac_t""no" 1>&6
2832 test -n "$KPSEWHICH" && break
2834 test -n "$KPSEWHICH" || KPSEWHICH="no"
2836 echo $ac_n "checking for tfm path""... $ac_c" 1>&6
2837 echo "configure:2838: checking for tfm path" >&5
2839 TFM_FONTS="cmr msam"
2841 if test "x$tfm_path" = xauto ; then
2842 if test "x$KPSEWHICH" != "xno" ; then
2843 for i in $TFM_FONTS; do
2844 dir=`$KPSEWHICH tfm ${i}10.tfm`
2845 TFM_PATH="$TFM_PATH `dirname $dir`"
2849 echo "configure: warning: Please specify where cmr10.tfm lives:
2850 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
2858 TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
2859 echo "$ac_t""$TFM_PATH" 1>&6
2863 ## First, let's just see if we can find Guile at all.
2864 echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6
2865 echo "configure:2866: checking "for guile-config"" >&5
2866 for guile_config in guile-config $target-guile-config $build-guile-config; do
2867 echo "$ac_t"""$guile_config"" 1>&6
2868 if ! $guile_config --version > /dev/null 2>&1 ; then
2869 echo "configure: warning: "cannot execute $guile_config"" 1>&2
2870 echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6
2871 echo "configure:2872: checking "if we are cross compiling"" >&5
2877 if test "$guile_config" = "error"; then
2878 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2881 echo $ac_n "checking "Guile version"""... $ac_c" 1>&6
2882 echo "configure:2883: checking "Guile version"" >&5
2883 need_guile_version="1.3.4"
2884 guile_version=`expr "\`$guile_config --version 2>&1\`" : ".*\($need_guile_version\).*"`
2885 echo "$ac_t"""$guile_version"" 1>&6
2886 if test "$guile_version" != "$need_guile_version"; then
2888 echo "configure: warning: "Guile version "$need_guile_version" or newer is needed"" 1>&2
2893 ## The GUILE_FLAGS macro.
2894 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2895 echo "configure:2896: checking for Guile" >&5
2896 if ! $guile_config link > /dev/null ; then
2897 echo "$ac_t"""cannot execute $guile_config"" 1>&6
2898 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2901 GUILE_CFLAGS="`$guile_config compile`"
2902 GUILE_LDFLAGS="`$guile_config link`"
2905 echo "$ac_t""yes" 1>&6
2907 # Extract the first word of "guile", so it can be a program name with args.
2908 set dummy guile; ac_word=$2
2909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_word" >&5
2911 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2916 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
2919 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
2922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2924 for ac_dir in $ac_dummy; do
2925 test -z "$ac_dir" && ac_dir=.
2926 if test -f $ac_dir/$ac_word; then
2927 ac_cv_path_GUILE="$ac_dir/$ac_word"
2932 test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error"
2936 GUILE="$ac_cv_path_GUILE"
2937 if test -n "$GUILE"; then
2938 echo "$ac_t""$GUILE" 1>&6
2940 echo "$ac_t""no" 1>&6
2948 # Check whether --enable-kpathsea or --disable-kpathsea was given.
2949 if test "${enable_kpathsea+set}" = set; then
2950 enableval="$enable_kpathsea"
2951 kpathsea_b=$enableval
2955 if test $kpathsea_b = yes; then
2956 for ac_hdr in kpathsea/kpathsea.h
2958 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2959 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2960 echo "configure:2961: checking for $ac_hdr" >&5
2961 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2964 cat > conftest.$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2970 { (eval echo configure:2971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2972 if test -z "$ac_err"; then
2974 eval "ac_cv_header_$ac_safe=yes"
2977 echo "configure: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
2980 eval "ac_cv_header_$ac_safe=no"
2984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2985 echo "$ac_t""yes" 1>&6
2986 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2987 cat >> confdefs.h <<EOF
2988 #define $ac_tr_hdr 1
2992 echo "$ac_t""no" 1>&6
2996 echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
2997 echo "configure:2998: checking for kpse_find_file in -lkpathsea" >&5
2998 ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
2999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3002 ac_save_LIBS="$LIBS"
3003 LIBS="-lkpathsea $LIBS"
3004 cat > conftest.$ac_ext <<EOF
3005 #line 3006 "configure"
3006 #include "confdefs.h"
3007 /* Override any gcc2 internal prototype to avoid an error. */
3011 /* We use char because int might match the return type of a gcc2
3012 builtin and then its argument prototype would still apply. */
3013 char kpse_find_file();
3019 if { (eval echo configure:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3021 eval "ac_cv_lib_$ac_lib_var=yes"
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3026 eval "ac_cv_lib_$ac_lib_var=no"
3029 LIBS="$ac_save_LIBS"
3032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3033 echo "$ac_t""yes" 1>&6
3034 ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3035 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3036 cat >> confdefs.h <<EOF
3037 #define $ac_tr_lib 1
3040 LIBS="-lkpathsea $LIBS"
3043 echo "$ac_t""no" 1>&6
3046 # urg: kpse_find_tfm is a #define, how to check for this?
3047 # AC_CHECK_LIB(kpathsea, kpse_find_tfm)
3048 # AC_CHECK_FUNCS(kpse_find_file kpse_find_tfm,, AC_STEPMAKE_WARN(Cannot find kpathsea functions. You may have to create TFM files manually.))
3049 for ac_func in kpse_find_file
3051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3052 echo "configure:3053: checking for $ac_func" >&5
3053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3056 cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3059 /* System header to define __stub macros and hopefully few prototypes,
3060 which can conflict with char $ac_func(); below. */
3062 /* Override any gcc2 internal prototype to avoid an error. */
3066 /* We use char because int might match the return type of a gcc2
3067 builtin and then its argument prototype would still apply. */
3072 /* The GNU C library defines this for functions which it implements
3073 to always fail with ENOSYS. Some functions are actually named
3074 something starting with __ and the normal name is an alias. */
3075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3083 if { (eval echo configure:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3085 eval "ac_cv_func_$ac_func=yes"
3087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3090 eval "ac_cv_func_$ac_func=no"
3095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3096 echo "$ac_t""yes" 1>&6
3097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3098 cat >> confdefs.h <<EOF
3099 #define $ac_tr_func 1
3103 echo "$ac_t""no" 1>&6
3104 echo "configure: warning: Cannot find kpathsea functions. You may have to create TFM files manually." 1>&2
3111 echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
3112 echo "configure:3113: checking whether to use kpathsea" >&5
3113 if test $kpathsea_b = yes; then
3114 echo "$ac_t""yes" 1>&6
3117 echo "$ac_t""no" 1>&6
3122 cat >> confdefs.h <<EOF
3123 #define KPATHSEA $KPATHSEA
3129 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3130 echo "configure:3131: checking for 8-bit clean memcmp" >&5
3131 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 if test "$cross_compiling" = yes; then
3135 ac_cv_func_memcmp_clean=no
3137 cat > conftest.$ac_ext <<EOF
3138 #line 3139 "configure"
3139 #include "confdefs.h"
3141 extern "C" void exit(int);
3146 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3147 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3151 if { (eval echo configure:3152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3153 ac_cv_func_memcmp_clean=yes
3155 echo "configure: failed program was:" >&5
3156 cat conftest.$ac_ext >&5
3158 ac_cv_func_memcmp_clean=no
3165 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3166 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3168 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3169 echo "configure:3170: checking for vprintf" >&5
3170 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3171 echo $ac_n "(cached) $ac_c" 1>&6
3173 cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3176 /* System header to define __stub macros and hopefully few prototypes,
3177 which can conflict with char vprintf(); below. */
3179 /* Override any gcc2 internal prototype to avoid an error. */
3183 /* We use char because int might match the return type of a gcc2
3184 builtin and then its argument prototype would still apply. */
3189 /* The GNU C library defines this for functions which it implements
3190 to always fail with ENOSYS. Some functions are actually named
3191 something starting with __ and the normal name is an alias. */
3192 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3200 if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3202 eval "ac_cv_func_vprintf=yes"
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3207 eval "ac_cv_func_vprintf=no"
3212 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3213 echo "$ac_t""yes" 1>&6
3214 cat >> confdefs.h <<\EOF
3215 #define HAVE_VPRINTF 1
3219 echo "$ac_t""no" 1>&6
3222 if test "$ac_cv_func_vprintf" != yes; then
3223 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3224 echo "configure:3225: checking for _doprnt" >&5
3225 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 cat > conftest.$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 /* System header to define __stub macros and hopefully few prototypes,
3232 which can conflict with char _doprnt(); below. */
3234 /* Override any gcc2 internal prototype to avoid an error. */
3238 /* We use char because int might match the return type of a gcc2
3239 builtin and then its argument prototype would still apply. */
3244 /* The GNU C library defines this for functions which it implements
3245 to always fail with ENOSYS. Some functions are actually named
3246 something starting with __ and the normal name is an alias. */
3247 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3255 if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3257 eval "ac_cv_func__doprnt=yes"
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3262 eval "ac_cv_func__doprnt=no"
3267 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3268 echo "$ac_t""yes" 1>&6
3269 cat >> confdefs.h <<\EOF
3270 #define HAVE_DOPRNT 1
3274 echo "$ac_t""no" 1>&6
3279 for ac_func in memmem snprintf vsnprintf gettext isinf
3281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3282 echo "configure:3283: checking for $ac_func" >&5
3283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 /* System header to define __stub macros and hopefully few prototypes,
3290 which can conflict with char $ac_func(); below. */
3292 /* Override any gcc2 internal prototype to avoid an error. */
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3302 /* The GNU C library defines this for functions which it implements
3303 to always fail with ENOSYS. Some functions are actually named
3304 something starting with __ and the normal name is an alias. */
3305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3313 if { (eval echo configure:3314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3315 eval "ac_cv_func_$ac_func=yes"
3317 echo "configure: failed program was:" >&5
3318 cat conftest.$ac_ext >&5
3320 eval "ac_cv_func_$ac_func=no"
3325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3326 echo "$ac_t""yes" 1>&6
3327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3328 cat >> confdefs.h <<EOF
3329 #define $ac_tr_func 1
3333 echo "$ac_t""no" 1>&6
3338 cat >> confdefs.h <<EOF
3339 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3342 cat >> confdefs.h <<EOF
3343 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3347 for ac_prog in makeinfo
3349 # Extract the first word of "$ac_prog", so it can be a program name with args.
3350 set dummy $ac_prog; ac_word=$2
3351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3352 echo "configure:3353: checking for $ac_word" >&5
3353 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 if test -n "$MAKEINFO"; then
3357 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3361 for ac_dir in $ac_dummy; do
3362 test -z "$ac_dir" && ac_dir=.
3363 if test -f $ac_dir/$ac_word; then
3364 ac_cv_prog_MAKEINFO="$ac_prog"
3371 MAKEINFO="$ac_cv_prog_MAKEINFO"
3372 if test -n "$MAKEINFO"; then
3373 echo "$ac_t""$MAKEINFO" 1>&6
3375 echo "$ac_t""no" 1>&6
3378 test -n "$MAKEINFO" && break
3380 test -n "$MAKEINFO" || MAKEINFO="error"
3382 # Extract the first word of "perl", so it can be a program name with args.
3383 set dummy perl; ac_word=$2
3384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3385 echo "configure:3386: checking for $ac_word" >&5
3386 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3387 echo $ac_n "(cached) $ac_c" 1>&6
3391 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3394 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3399 for ac_dir in $ac_dummy; do
3400 test -z "$ac_dir" && ac_dir=.
3401 if test -f $ac_dir/$ac_word; then
3402 ac_cv_path_PERL="$ac_dir/$ac_word"
3407 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
3411 PERL="$ac_cv_path_PERL"
3412 if test -n "$PERL"; then
3413 echo "$ac_t""$PERL" 1>&6
3415 echo "$ac_t""no" 1>&6
3421 cat > confcache <<\EOF
3422 # This file is a shell script that caches the results of configure
3423 # tests run on this system so they can be shared between configure
3424 # scripts and configure runs. It is not useful on other systems.
3425 # If it contains results you don't want to keep, you may remove or edit it.
3427 # By default, configure uses ./config.cache as the cache file,
3428 # creating it if it does not exist already. You can give configure
3429 # the --cache-file=FILE option to use a different cache file; that is
3430 # what configure does when it calls configure scripts in
3431 # subdirectories, so they share the cache.
3432 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3433 # config.status only pays attention to the cache file if you give it the
3434 # --recheck option to rerun configure.
3437 # The following way of writing the cache mishandles newlines in values,
3438 # but we know of no workaround that is simple, portable, and efficient.
3439 # So, don't put newlines in cache variables' values.
3440 # Ultrix sh set writes to stderr and can't be redirected directly,
3441 # and sets the high bit in the cache file unless we assign to the vars.
3443 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3445 # `set' does not quote correctly, so add quotes (double-quote substitution
3446 # turns \\\\ into \\, and sed turns \\ into \).
3448 -e "s/'/'\\\\''/g" \
3449 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3452 # `set' quotes correctly as required by POSIX, so do not add quotes.
3453 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3456 if cmp -s $cache_file confcache; then
3459 if test -w $cache_file; then
3460 echo "updating cache $cache_file"
3461 cat confcache > $cache_file
3463 echo "not updating unwritable cache $cache_file"
3468 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3470 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3471 # Let make expand exec_prefix.
3472 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3474 # Any assignment to VPATH causes Sun make to only execute
3475 # the first set of double-colon rules, so remove it if not needed.
3476 # If there is a colon in the path, we need to keep it.
3477 if test "x$srcdir" = x.; then
3478 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3481 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3483 DEFS=-DHAVE_CONFIG_H
3485 # Without the "./", some shells look in PATH for config.status.
3486 : ${CONFIG_STATUS=./config.status}
3488 echo creating $CONFIG_STATUS
3489 rm -f $CONFIG_STATUS
3490 cat > $CONFIG_STATUS <<EOF
3492 # Generated automatically by configure.
3493 # Run this file to recreate the current configuration.
3494 # This directory was configured as follows,
3495 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3497 # $0 $ac_configure_args
3499 # Compiler output produced by configure, useful for debugging
3500 # configure, is in ./config.log if it exists.
3502 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3505 case "\$ac_option" in
3506 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3507 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3508 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3509 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3510 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3512 -help | --help | --hel | --he | --h)
3513 echo "\$ac_cs_usage"; exit 0 ;;
3514 *) echo "\$ac_cs_usage"; exit 1 ;;
3518 ac_given_srcdir=$srcdir
3520 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3522 cat >> $CONFIG_STATUS <<EOF
3524 # Protect against being on the right side of a sed subst in config.status.
3525 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3526 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3530 s%@CFLAGS@%$CFLAGS%g
3531 s%@CPPFLAGS@%$CPPFLAGS%g
3532 s%@CXXFLAGS@%$CXXFLAGS%g
3533 s%@FFLAGS@%$FFLAGS%g
3535 s%@LDFLAGS@%$LDFLAGS%g
3537 s%@exec_prefix@%$exec_prefix%g
3538 s%@prefix@%$prefix%g
3539 s%@program_transform_name@%$program_transform_name%g
3540 s%@bindir@%$bindir%g
3541 s%@sbindir@%$sbindir%g
3542 s%@libexecdir@%$libexecdir%g
3543 s%@datadir@%$datadir%g
3544 s%@sysconfdir@%$sysconfdir%g
3545 s%@sharedstatedir@%$sharedstatedir%g
3546 s%@localstatedir@%$localstatedir%g
3547 s%@libdir@%$libdir%g
3548 s%@includedir@%$includedir%g
3549 s%@oldincludedir@%$oldincludedir%g
3550 s%@infodir@%$infodir%g
3551 s%@mandir@%$mandir%g
3552 s%@builddir@%$builddir%g
3553 s%@stepmake@%$stepmake%g
3554 s%@package@%$package%g
3555 s%@PACKAGE@%$PACKAGE%g
3556 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3557 s%@package_depth@%$package_depth%g
3558 s%@AUTOGENERATE@%$AUTOGENERATE%g
3559 s%@STATE_VECTOR@%$STATE_VECTOR%g
3560 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3562 s%@host_alias@%$host_alias%g
3563 s%@host_cpu@%$host_cpu%g
3564 s%@host_vendor@%$host_vendor%g
3565 s%@host_os@%$host_os%g
3570 s%@PYTHON@%$PYTHON%g
3571 s%@program_prefix@%$program_prefix%g
3572 s%@program_suffix@%$program_suffix%g
3576 s%@INSTALL@%$INSTALL%g
3577 s%@PATHSEP@%$PATHSEP%g
3578 s%@DIRSEP@%$DIRSEP%g
3579 s%@DIR_DATADIR@%$DIR_DATADIR%g
3580 s%@subdirs@%$subdirs%g
3583 s%@ICFLAGS@%$ICFLAGS%g
3584 s%@ILDFLAGS@%$ILDFLAGS%g
3585 s%@DEFINES@%$DEFINES%g
3586 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3589 s%@CXXCPP@%$CXXCPP%g
3594 s%@RANLIB@%$RANLIB%g
3595 s%@localedir@%$localedir%g
3596 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3597 s%@MSGFMT@%$MSGFMT%g
3598 s%@METAFONT@%$METAFONT%g
3600 s%@METAPOST@%$METAPOST%g
3602 s%@INIMETAFONT@%$INIMETAFONT%g
3603 s%@INIMFONT@%$INIMFONT%g
3604 s%@INIMETAPOST@%$INIMETAPOST%g
3605 s%@INIMPOST@%$INIMPOST%g
3606 s%@MFMODE@%$MFMODE%g
3607 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3608 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3609 s%@KPSEWHICH@%$KPSEWHICH%g
3610 s%@TFM_PATH@%$TFM_PATH%g
3611 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3612 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3614 s%@KPATHSEA@%$KPATHSEA%g
3615 s%@LIBOBJS@%$LIBOBJS%g
3616 s%@MAKEINFO@%$MAKEINFO%g
3622 cat >> $CONFIG_STATUS <<\EOF
3624 # Split the substitutions into bite-sized pieces for seds with
3625 # small command number limits, like on Digital OSF/1 and HP-UX.
3626 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3627 ac_file=1 # Number of current file.
3628 ac_beg=1 # First line for current file.
3629 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3632 while $ac_more_lines; do
3633 if test $ac_beg -gt 1; then
3634 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3636 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3638 if test ! -s conftest.s$ac_file; then
3640 rm -f conftest.s$ac_file
3642 if test -z "$ac_sed_cmds"; then
3643 ac_sed_cmds="sed -f conftest.s$ac_file"
3645 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3647 ac_file=`expr $ac_file + 1`
3649 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3652 if test -z "$ac_sed_cmds"; then
3657 cat >> $CONFIG_STATUS <<EOF
3659 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3661 cat >> $CONFIG_STATUS <<\EOF
3662 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3665 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3666 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3667 *) ac_file_in="${ac_file}.in" ;;
3670 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3672 # Remove last slash and all that follows it. Not all systems have dirname.
3673 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3674 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3675 # The file is in a subdirectory.
3676 test ! -d "$ac_dir" && mkdir "$ac_dir"
3677 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3678 # A "../" for each directory in $ac_dir_suffix.
3679 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3681 ac_dir_suffix= ac_dots=
3684 case "$ac_given_srcdir" in
3686 if test -z "$ac_dots"; then top_srcdir=.
3687 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3688 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3690 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3691 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3695 echo creating "$ac_file"
3697 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3699 *Makefile*) ac_comsub="1i\\
3700 # $configure_input" ;;
3704 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3706 s%@configure_input@%$configure_input%g
3707 s%@srcdir@%$srcdir%g
3708 s%@top_srcdir@%$top_srcdir%g
3709 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3713 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3714 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3716 # ac_d sets the value in "#define NAME VALUE" lines.
3717 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3718 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3721 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3722 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3723 ac_uB='\([ ]\)%\1#\2define\3'
3726 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3727 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3728 ac_eB='$%\1#\2define\3'
3732 if test "${CONFIG_HEADERS+set}" != set; then
3734 cat >> $CONFIG_STATUS <<EOF
3735 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3737 cat >> $CONFIG_STATUS <<\EOF
3739 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3740 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3742 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3743 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3744 *) ac_file_in="${ac_file}.in" ;;
3747 echo creating $ac_file
3749 rm -f conftest.frag conftest.in conftest.out
3750 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3751 cat $ac_file_inputs > conftest.in
3755 # Transform confdefs.h into a sed script conftest.vals that substitutes
3756 # the proper values into config.h.in to produce config.h. And first:
3757 # Protect against being on the right side of a sed subst in config.status.
3758 # Protect against being in an unquoted here document in config.status.
3760 cat > conftest.hdr <<\EOF
3763 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3767 sed -n -f conftest.hdr confdefs.h > conftest.vals
3770 # This sed command replaces #undef with comments. This is necessary, for
3771 # example, in the case of _POSIX_SOURCE, which is predefined and required
3772 # on some systems where configure will not decide to define it.
3773 cat >> conftest.vals <<\EOF
3774 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3777 # Break up conftest.vals because some shells have a limit on
3778 # the size of here documents, and old seds have small limits too.
3783 ac_lines=`grep -c . conftest.vals`
3784 # grep -c gives empty output for an empty file on some AIX systems.
3785 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3786 # Write a limited-size here document to conftest.frag.
3787 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3788 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3790 sed -f conftest.frag conftest.in > conftest.out
3792 mv conftest.out conftest.in
3794 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3796 mv conftest.tail conftest.vals
3800 cat >> $CONFIG_STATUS <<\EOF
3801 rm -f conftest.frag conftest.h
3802 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3803 cat conftest.in >> conftest.h
3805 if cmp -s $ac_file conftest.h 2>/dev/null; then
3806 echo "$ac_file is unchanged"
3809 # Remove last slash and all that follows it. Not all systems have dirname.
3810 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3811 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3812 # The file is in a subdirectory.
3813 test ! -d "$ac_dir" && mkdir "$ac_dir"
3816 mv conftest.h $ac_file
3821 cat >> $CONFIG_STATUS <<EOF
3824 cat >> $CONFIG_STATUS <<\EOF
3828 chmod +x $CONFIG_STATUS
3829 rm -fr confdefs* $ac_clean_files
3830 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3832 if test "$no_recursion" != yes; then
3834 # Remove --cache-file and --srcdir arguments so they do not pile up.
3835 ac_sub_configure_args=
3837 for ac_arg in $ac_configure_args; do
3838 if test -n "$ac_prev"; then
3843 -cache-file | --cache-file | --cache-fil | --cache-fi \
3844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3845 ac_prev=cache_file ;;
3846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3849 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3851 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3853 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3857 for ac_config_dir in stepmake; do
3859 # Do not complain, so a configure script can configure whichever
3860 # parts of a large source tree are present.
3861 if test ! -d $srcdir/$ac_config_dir; then
3865 echo configuring in $ac_config_dir
3870 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3872 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3880 # A "../" for each directory in /$ac_config_dir.
3881 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3884 .) # No --srcdir option. We are building in place.
3885 ac_sub_srcdir=$srcdir ;;
3886 /*) # Absolute path.
3887 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3889 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3892 # Check for guested configure; otherwise get Cygnus style configure.
3893 if test -f $ac_sub_srcdir/configure; then
3894 ac_sub_configure=$ac_sub_srcdir/configure
3895 elif test -f $ac_sub_srcdir/configure.in; then
3896 ac_sub_configure=$ac_configure
3898 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3902 # The recursion is here.
3903 if test -n "$ac_sub_configure"; then
3905 # Make the cache file name correct relative to the subdirectory.
3906 case "$cache_file" in
3907 /*) ac_sub_cache_file=$cache_file ;;
3909 ac_sub_cache_file="$ac_dots$cache_file" ;;
3912 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3913 # The eval makes quoting arguments work.
3914 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3917 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3926 rm -f $srcdir/GNUmakefile
3927 cp $srcdir/make/toplevel.make.in $srcdir/GNUmakefile
3928 chmod 444 $srcdir/GNUmakefile
3929 if test "$builddir" != "."; then
3931 cp $srcdir/make/srcdir.make.in GNUmakefile
3932 chmod 444 GNUmakefile