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=CONF put settings in config-CONF.make and config-CONF.h;
69 do \`make conf=CONF' to get output in ./out-CONF"
71 --enable-checking set runtime checks (assert calls). Default: on"
73 --enable-debugging compile with debugging info. Default: on"
75 --enable-optimising compile with optimising. Default: on"
77 --enable-profiling compile with gprof support. Default: off"
79 --with-localedir=LOCALE use LOCALE as locale dir. Default:
82 --with-lang=LANG use LANG as language to emit messages"
84 --enable-tfm-path=PATH set path of tex directories where tfm files live,
85 esp.: cmr10.tfm. Default: use kpsewhich"
87 --with-kpathsea use kpathsea lib. Default: on"
89 # Initialize some variables set by options.
90 # The variables have the same names as the options, with
91 # dashes changed to underlines.
93 cache_file=./config.cache
102 program_transform_name=s,x,x,
110 bindir='${exec_prefix}/bin'
111 sbindir='${exec_prefix}/sbin'
112 libexecdir='${exec_prefix}/libexec'
113 datadir='${prefix}/share'
114 sysconfdir='${prefix}/etc'
115 sharedstatedir='${prefix}/com'
116 localstatedir='${prefix}/var'
117 libdir='${exec_prefix}/lib'
118 includedir='${prefix}/include'
119 oldincludedir='/usr/include'
120 infodir='${prefix}/info'
121 mandir='${prefix}/man'
123 # Initialize some other variables.
126 SHELL=${CONFIG_SHELL-/bin/sh}
127 # Maximum number of lines to put in a shell here document.
134 # If the previous option needs an argument, assign it.
135 if test -n "$ac_prev"; then
136 eval "$ac_prev=\$ac_option"
142 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
146 # Accept the important Cygnus configure options, so we can diagnose typos.
150 -bindir | --bindir | --bindi | --bind | --bin | --bi)
152 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
153 bindir="$ac_optarg" ;;
155 -build | --build | --buil | --bui | --bu)
157 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
158 build="$ac_optarg" ;;
160 -cache-file | --cache-file | --cache-fil | --cache-fi \
161 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
162 ac_prev=cache_file ;;
163 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
164 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
165 cache_file="$ac_optarg" ;;
167 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
169 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
171 datadir="$ac_optarg" ;;
173 -disable-* | --disable-*)
174 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}=no" ;;
182 -enable-* | --enable-*)
183 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
184 # Reject names that are not valid shell variable names.
185 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}='$ac_optarg'" ;;
195 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
196 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
197 | --exec | --exe | --ex)
198 ac_prev=exec_prefix ;;
199 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
200 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
201 | --exec=* | --exe=* | --ex=*)
202 exec_prefix="$ac_optarg" ;;
204 -gas | --gas | --ga | --g)
205 # Obsolete; use --with-gas.
208 -help | --help | --hel | --he)
209 # Omit some internal or obsolete options to make the list less imposing.
210 # This message is too long to be a string in the A/UX 3.1 sh.
212 Usage: configure [options] [host]
213 Options: [defaults in brackets after descriptions]
215 --cache-file=FILE cache test results in FILE
216 --help print this message
217 --no-create do not create output files
218 --quiet, --silent do not print \`checking...' messages
219 --version print the version of autoconf that created configure
220 Directory and file names:
221 --prefix=PREFIX install architecture-independent files in PREFIX
223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
225 --bindir=DIR user executables in DIR [EPREFIX/bin]
226 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
227 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
228 --datadir=DIR read-only architecture-independent data in DIR
230 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
231 --sharedstatedir=DIR modifiable architecture-independent data in DIR
233 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
234 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
235 --includedir=DIR C header files in DIR [PREFIX/include]
236 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
237 --infodir=DIR info documentation in DIR [PREFIX/info]
238 --mandir=DIR man documentation in DIR [PREFIX/man]
239 --srcdir=DIR find the sources in DIR [configure dir or ..]
240 --program-prefix=PREFIX prepend PREFIX to installed program names
241 --program-suffix=SUFFIX append SUFFIX to installed program names
242 --program-transform-name=PROGRAM
243 run sed PROGRAM on installed program names
247 --build=BUILD configure for building on BUILD [BUILD=HOST]
248 --host=HOST configure for HOST [guessed]
249 --target=TARGET configure for TARGET [TARGET=HOST]
250 Features and packages:
251 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
252 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
253 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
254 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
255 --x-includes=DIR X include files are in DIR
256 --x-libraries=DIR X library files are in DIR
258 if test -n "$ac_help"; then
259 echo "--enable and --with options recognized:$ac_help"
263 -host | --host | --hos | --ho)
265 -host=* | --host=* | --hos=* | --ho=*)
268 -includedir | --includedir | --includedi | --included | --include \
269 | --includ | --inclu | --incl | --inc)
270 ac_prev=includedir ;;
271 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
272 | --includ=* | --inclu=* | --incl=* | --inc=*)
273 includedir="$ac_optarg" ;;
275 -infodir | --infodir | --infodi | --infod | --info | --inf)
277 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
278 infodir="$ac_optarg" ;;
280 -libdir | --libdir | --libdi | --libd)
282 -libdir=* | --libdir=* | --libdi=* | --libd=*)
283 libdir="$ac_optarg" ;;
285 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
286 | --libexe | --libex | --libe)
287 ac_prev=libexecdir ;;
288 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
289 | --libexe=* | --libex=* | --libe=*)
290 libexecdir="$ac_optarg" ;;
292 -localstatedir | --localstatedir | --localstatedi | --localstated \
293 | --localstate | --localstat | --localsta | --localst \
294 | --locals | --local | --loca | --loc | --lo)
295 ac_prev=localstatedir ;;
296 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
297 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
298 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
299 localstatedir="$ac_optarg" ;;
301 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
303 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
304 mandir="$ac_optarg" ;;
307 # Obsolete; use --without-fp.
310 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
314 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
315 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
318 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
319 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
320 | --oldin | --oldi | --old | --ol | --o)
321 ac_prev=oldincludedir ;;
322 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
323 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
324 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
325 oldincludedir="$ac_optarg" ;;
327 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
329 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
330 prefix="$ac_optarg" ;;
332 -program-prefix | --program-prefix | --program-prefi | --program-pref \
333 | --program-pre | --program-pr | --program-p)
334 ac_prev=program_prefix ;;
335 -program-prefix=* | --program-prefix=* | --program-prefi=* \
336 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
337 program_prefix="$ac_optarg" ;;
339 -program-suffix | --program-suffix | --program-suffi | --program-suff \
340 | --program-suf | --program-su | --program-s)
341 ac_prev=program_suffix ;;
342 -program-suffix=* | --program-suffix=* | --program-suffi=* \
343 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
344 program_suffix="$ac_optarg" ;;
346 -program-transform-name | --program-transform-name \
347 | --program-transform-nam | --program-transform-na \
348 | --program-transform-n | --program-transform- \
349 | --program-transform | --program-transfor \
350 | --program-transfo | --program-transf \
351 | --program-trans | --program-tran \
352 | --progr-tra | --program-tr | --program-t)
353 ac_prev=program_transform_name ;;
354 -program-transform-name=* | --program-transform-name=* \
355 | --program-transform-nam=* | --program-transform-na=* \
356 | --program-transform-n=* | --program-transform-=* \
357 | --program-transform=* | --program-transfor=* \
358 | --program-transfo=* | --program-transf=* \
359 | --program-trans=* | --program-tran=* \
360 | --progr-tra=* | --program-tr=* | --program-t=*)
361 program_transform_name="$ac_optarg" ;;
363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
364 | -silent | --silent | --silen | --sile | --sil)
367 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
369 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
371 sbindir="$ac_optarg" ;;
373 -sharedstatedir | --sharedstatedir | --sharedstatedi \
374 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
375 | --sharedst | --shareds | --shared | --share | --shar \
377 ac_prev=sharedstatedir ;;
378 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
379 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
380 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
382 sharedstatedir="$ac_optarg" ;;
384 -site | --site | --sit)
386 -site=* | --site=* | --sit=*)
389 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
391 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
392 srcdir="$ac_optarg" ;;
394 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
395 | --syscon | --sysco | --sysc | --sys | --sy)
396 ac_prev=sysconfdir ;;
397 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
398 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
399 sysconfdir="$ac_optarg" ;;
401 -target | --target | --targe | --targ | --tar | --ta | --t)
403 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
404 target="$ac_optarg" ;;
406 -v | -verbose | --verbose | --verbos | --verbo | --verb)
409 -version | --version | --versio | --versi | --vers)
410 echo "configure generated by autoconf version 2.13"
414 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}='$ac_optarg'" ;;
426 -without-* | --without-*)
427 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package=`echo $ac_package| sed 's/-/_/g'`
433 eval "with_${ac_package}=no" ;;
436 # Obsolete; use --with-x.
439 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
440 | --x-incl | --x-inc | --x-in | --x-i)
441 ac_prev=x_includes ;;
442 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
443 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
444 x_includes="$ac_optarg" ;;
446 -x-libraries | --x-libraries | --x-librarie | --x-librari \
447 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
448 ac_prev=x_libraries ;;
449 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
450 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
451 x_libraries="$ac_optarg" ;;
453 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
457 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
458 echo "configure: warning: $ac_option: invalid host type" 1>&2
460 if test "x$nonopt" != xNONE; then
461 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
469 if test -n "$ac_prev"; then
470 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
473 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
475 # File descriptor usage:
478 # 2 errors and warnings
479 # 3 some systems may open it to /dev/tty
480 # 4 used on the Kubota Titan
481 # 6 checking for... messages and results
482 # 5 compiler messages saved in config.log
483 if test "$silent" = yes; then
491 This file contains any messages produced by compilers while
492 running configure, to aid debugging if configure makes a mistake.
495 # Strip out --no-create and --no-recursion so they do not pile up.
496 # Also quote any args containing shell metacharacters.
501 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
502 | --no-cr | --no-c) ;;
503 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
504 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
505 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
506 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
507 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
512 # Only set these to C if already set. These must not be set unconditionally
513 # because not all systems understand e.g. LANG=C (notably SCO).
514 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
515 # Non-C LC_CTYPE values break the ctype check.
516 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
517 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
518 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
519 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
521 # confdefs.h avoids OS command line length limits that DEFS can exceed.
522 rm -rf conftest* confdefs.h
523 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
526 # A filename unique to this package, relative to the directory that
527 # configure is in, which we can look for to find out if srcdir is correct.
528 ac_unique_file=make/lilypond.lsm.in
530 # Find the source files, if location was not specified.
531 if test -z "$srcdir"; then
532 ac_srcdir_defaulted=yes
533 # Try the directory containing this script, then its parent.
535 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
536 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
538 if test ! -r $srcdir/$ac_unique_file; then
542 ac_srcdir_defaulted=no
544 if test ! -r $srcdir/$ac_unique_file; then
545 if test "$ac_srcdir_defaulted" = yes; then
546 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
548 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
551 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
553 # Prefer explicitly selected file to automatically selected ones.
554 if test -z "$CONFIG_SITE"; then
555 if test "x$prefix" != xNONE; then
556 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
558 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
561 for ac_site_file in $CONFIG_SITE; do
562 if test -r "$ac_site_file"; then
563 echo "loading site script $ac_site_file"
568 if test -r "$cache_file"; then
569 echo "loading cache $cache_file"
572 echo "creating cache $cache_file"
577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
578 ac_cpp='$CPP $CPPFLAGS'
579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
581 cross_compiling=$ac_cv_prog_cc_cross
585 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
586 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
587 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
594 ac_n= ac_c='\c' ac_t=
600 # Bootstrap StepMake configure
604 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
605 if test x$MY_PATCH_LEVEL != x; then
606 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
609 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
610 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
611 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
613 # No versioning on directory names of sub-packages
615 stepmake=${datadir}/stepmake
617 if test "$prefix" = "NONE"; then
618 presome=${ac_default_prefix}
620 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
622 # urg, how is this supposed to work?
623 if test "$program_prefix" = "NONE"; then
626 if test "$program_suffix" = "NONE"; then
630 echo $ac_n "checking Package""... $ac_c" 1>&6
631 echo "configure:632: checking Package" >&5
632 if test "x$PACKAGE" = "xSTEPMAKE"; then
633 echo "$ac_t""Stepmake package!" 1>&6
635 echo $ac_n "checking builddir""... $ac_c" 1>&6
636 echo "configure:637: checking builddir" >&5
637 if test "$srcdir" = "."; then
640 absolute_builddir="`pwd`"
641 package_absolute_builddir="`dirname $absolute_builddir`"
642 package_srcdir="`dirname $srcdir`"
643 builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
645 echo "$ac_t""$builddir" 1>&6
647 (cd stepmake 2>/dev/null || mkdir stepmake)
648 (cd stepmake; rm -f stepmake; ln -s ../$srcdir/stepmake .)
649 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
651 for ac_dir in bin $srcdir/bin; do
652 if test -f $ac_dir/install-sh; then
654 ac_install_sh="$ac_aux_dir/install-sh -c"
656 elif test -f $ac_dir/install.sh; then
658 ac_install_sh="$ac_aux_dir/install.sh -c"
662 if test -z "$ac_aux_dir"; then
663 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
665 ac_config_guess=$ac_aux_dir/config.guess
666 ac_config_sub=$ac_aux_dir/config.sub
667 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
671 echo "$ac_t""$PACKAGE" 1>&6
673 echo $ac_n "checking builddir""... $ac_c" 1>&6
674 echo "configure:675: checking builddir" >&5
675 if test "$srcdir" = "."; then
679 absolute_builddir="`pwd`"
680 # builddir="`dirname $srcdir`/`basename $absolute_builddir`"
681 builddir="`bash $srcdir/buildscripts/walk.sh \"$srcdir\"`"
684 echo "$ac_t""$builddir" 1>&6
685 if expr "$srcdir" : '/' > /dev/null 2>&1; then
688 echo "configure: warning: Absolute --srcdir specified: $srcdir" 1>&2
693 echo $ac_n "checking for stepmake""... $ac_c" 1>&6
694 echo "configure:695: checking for stepmake" >&5
695 # Check for installed stepmake
696 if test -d $stepmake; then
697 echo "$ac_t""$stepmake" 1>&6
699 if test "$absolute_srcdir" != "yes"; then
700 stepmake='$(depth)'/$srcdir/stepmake
702 stepmake=$srcdir/stepmake
704 echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6
709 $HOME/usr/local/share/stepmake/bin\
710 $HOME/usr/local/lib/stepmake/bin\
711 $HOME/usr/share/stepmake/bin\
712 $HOME/usr/lib/stepmake/bin\
713 /usr/local/share/stepmake/bin\
714 /usr/local/lib/stepmake/bin\
715 /usr/share/stepmake/bin\
716 /usr/lib/stepmake/bin\
718 $srcdir/stepmake/bin\
720 $HOME/usr/local/share/stepmake/bin\
721 $HOME/usr/local/lib/stepmake/bin\
722 $HOME/usr/share/stepmake/bin\
723 $HOME/usr/lib/stepmake/bin\
724 /usr/local/share/stepmake/bin\
725 /usr/local/lib/stepmake/bin\
726 /usr/share/stepmake/bin\
727 /usr/lib/stepmake/bin\
729 $srcdir/stepmake/bin\
731 if test -f $ac_dir/install-sh; then
733 ac_install_sh="$ac_aux_dir/install-sh -c"
735 elif test -f $ac_dir/install.sh; then
737 ac_install_sh="$ac_aux_dir/install.sh -c"
741 if test -z "$ac_aux_dir"; then
742 { echo "configure: error: can not find install-sh or install.sh in \
743 $HOME/usr/local/share/stepmake/bin\
744 $HOME/usr/local/lib/stepmake/bin\
745 $HOME/usr/share/stepmake/bin\
746 $HOME/usr/lib/stepmake/bin\
747 /usr/local/share/stepmake/bin\
748 /usr/local/lib/stepmake/bin\
749 /usr/share/stepmake/bin\
750 /usr/lib/stepmake/bin\
752 $srcdir/stepmake/bin\
754 $HOME/usr/local/share/stepmake/bin\
755 $HOME/usr/local/lib/stepmake/bin\
756 $HOME/usr/share/stepmake/bin\
757 $HOME/usr/lib/stepmake/bin\
758 /usr/local/share/stepmake/bin\
759 /usr/local/lib/stepmake/bin\
760 /usr/share/stepmake/bin\
761 /usr/lib/stepmake/bin\
763 $srcdir/stepmake/bin\
766 ac_config_guess=$ac_aux_dir/config.guess
767 ac_config_sub=$ac_aux_dir/config.sub
768 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
777 cat >> confdefs.h <<EOF
778 #define PACKAGE "${PACKAGE_NAME}"
781 cat >> confdefs.h <<EOF
782 #define TOPLEVEL_VERSION "${FULL_VERSION}"
786 if test "$package_depth" = "" ; then
789 package_depth="../$package_depth"
794 AUTOGENERATE="This file was automatically generated by configure"
798 # Check whether --enable-config or --disable-config was given.
799 if test "${enable_config+set}" = set; then
800 enableval="$enable_config"
801 CONFIGURATION=$enableval
805 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
806 CONFIGFILE=config$CONFIGSUFFIX
810 # Make sure we can run config.sub.
811 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
812 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
815 echo $ac_n "checking host system type""... $ac_c" 1>&6
816 echo "configure:817: checking host system type" >&5
819 case "$host_alias" in
823 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
824 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
826 *) host_alias=$nonopt ;;
830 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
831 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
832 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
833 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
834 echo "$ac_t""$host" 1>&6
836 for ac_prog in gmake make
838 # Extract the first word of "$ac_prog", so it can be a program name with args.
839 set dummy $ac_prog; ac_word=$2
840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
841 echo "configure:842: checking for $ac_word" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 if test -n "$MAKE"; then
846 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
850 for ac_dir in $ac_dummy; do
851 test -z "$ac_dir" && ac_dir=.
852 if test -f $ac_dir/$ac_word; then
853 ac_cv_prog_MAKE="$ac_prog"
860 MAKE="$ac_cv_prog_MAKE"
861 if test -n "$MAKE"; then
862 echo "$ac_t""$MAKE" 1>&6
864 echo "$ac_t""no" 1>&6
867 test -n "$MAKE" && break
869 test -n "$MAKE" || MAKE="error"
873 # Extract the first word of "$ac_prog", so it can be a program name with args.
874 set dummy $ac_prog; ac_word=$2
875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
876 echo "configure:877: checking for $ac_word" >&5
877 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
878 echo $ac_n "(cached) $ac_c" 1>&6
880 if test -n "$FIND"; then
881 ac_cv_prog_FIND="$FIND" # Let the user override the test.
883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
885 for ac_dir in $ac_dummy; do
886 test -z "$ac_dir" && ac_dir=.
887 if test -f $ac_dir/$ac_word; then
888 ac_cv_prog_FIND="$ac_prog"
895 FIND="$ac_cv_prog_FIND"
896 if test -n "$FIND"; then
897 echo "$ac_t""$FIND" 1>&6
899 echo "$ac_t""no" 1>&6
902 test -n "$FIND" && break
904 test -n "$FIND" || FIND="error"
910 # Extract the first word of "$ac_prog", so it can be a program name with args.
911 set dummy $ac_prog; ac_word=$2
912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
913 echo "configure:914: checking for $ac_word" >&5
914 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
915 echo $ac_n "(cached) $ac_c" 1>&6
917 if test -n "$TAR"; then
918 ac_cv_prog_TAR="$TAR" # Let the user override the test.
920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
922 for ac_dir in $ac_dummy; do
923 test -z "$ac_dir" && ac_dir=.
924 if test -f $ac_dir/$ac_word; then
925 ac_cv_prog_TAR="$ac_prog"
932 TAR="$ac_cv_prog_TAR"
933 if test -n "$TAR"; then
934 echo "$ac_t""$TAR" 1>&6
936 echo "$ac_t""no" 1>&6
939 test -n "$TAR" && break
941 test -n "$TAR" || TAR="error"
944 if test "x`uname`" = "xHP-UX"; then
945 # Extract the first word of "bash", so it can be a program name with args.
946 set dummy bash; ac_word=$2
947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
948 echo "configure:949: checking for $ac_word" >&5
949 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
954 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
957 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
962 for ac_dir in $ac_dummy; do
963 test -z "$ac_dir" && ac_dir=.
964 if test -f $ac_dir/$ac_word; then
965 ac_cv_path_BASH="$ac_dir/$ac_word"
970 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
974 BASH="$ac_cv_path_BASH"
975 if test -n "$BASH"; then
976 echo "$ac_t""$BASH" 1>&6
978 echo "$ac_t""no" 1>&6
982 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
985 # Extract the first word of "bash", so it can be a program name with args.
986 set dummy bash; ac_word=$2
987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
988 echo "configure:989: checking for $ac_word" >&5
989 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
994 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
997 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
1000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1002 for ac_dir in $ac_dummy; do
1003 test -z "$ac_dir" && ac_dir=.
1004 if test -f $ac_dir/$ac_word; then
1005 ac_cv_path_SHELL="$ac_dir/$ac_word"
1010 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
1014 SHELL="$ac_cv_path_SHELL"
1015 if test -n "$SHELL"; then
1016 echo "$ac_t""$SHELL" 1>&6
1018 echo "$ac_t""no" 1>&6
1022 # Extract the first word of "bash", so it can be a program name with args.
1023 set dummy bash; ac_word=$2
1024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025 echo "configure:1026: checking for $ac_word" >&5
1026 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1031 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1034 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1039 for ac_dir in $ac_dummy; do
1040 test -z "$ac_dir" && ac_dir=.
1041 if test -f $ac_dir/$ac_word; then
1042 ac_cv_path_BASH="$ac_dir/$ac_word"
1047 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1051 BASH="$ac_cv_path_BASH"
1052 if test -n "$BASH"; then
1053 echo "$ac_t""$BASH" 1>&6
1055 echo "$ac_t""no" 1>&6
1063 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1064 set dummy ${PYTHON:-python}; ac_word=$2
1065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1066 echo "configure:1067: checking for $ac_word" >&5
1067 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1072 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1075 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1080 for ac_dir in $ac_dummy; do
1081 test -z "$ac_dir" && ac_dir=.
1082 if test -f $ac_dir/$ac_word; then
1083 ac_cv_path_PYTHON="$ac_dir/$ac_word"
1088 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1092 PYTHON="$ac_cv_path_PYTHON"
1093 if test -n "$PYTHON"; then
1094 echo "$ac_t""$PYTHON" 1>&6
1096 echo "$ac_t""no" 1>&6
1101 if test $MAKE != "error" ; then
1102 $MAKE -v 2> /dev/null | grep GNU > /dev/null
1106 echo "configure: warning: Please install *GNU* make" 1>&2
1113 result="`echo \"$PYTHON\" | grep echo`"
1114 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1116 echo "configure: warning: can\'t find python. You should install Python" 1>&2
1122 if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
1123 LN=cp # hard link does not work under cygnus-nt
1124 LN_S='cp -r' # symbolic link does not work for native nt
1132 # cygwin fixes all these things.
1133 # it seems these were used because of dos-style TEXINPUTS and
1134 # MFINPUTS needed for miktex.
1135 # but this breaks parsing of all other cygwin/unix style paths.
1137 # if your (mik)tex breaks, make a:
1138 # /usr/local/bin/tex:
1140 # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex
1144 # /usr/local/bin/mf:
1146 # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf
1148 # this way, you may have buildscripts/out/lilypond-profile
1149 # 'automatically' sourced from /usr/etc/profile.d/ too.
1154 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1162 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1170 cat >> confdefs.h <<EOF
1171 #define DIRSEP '${DIRSEP}'
1174 cat >> confdefs.h <<EOF
1175 #define PATHSEP '${PATHSEP}'
1182 if test "$datadir" = "\${prefix}/share"; then
1183 datadir='${prefix}/share/'$package
1185 DIR_DATADIR=${datadir}
1187 if test "$prefix" = "NONE"; then
1188 presome=${ac_default_prefix}
1190 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1196 cat >> confdefs.h <<EOF
1197 #define DIR_DATADIR "${DIR_DATADIR}"
1203 # For all packages except the StepMake package itself
1207 # Uncomment the configuration options your package needs.
1209 # -O is necessary to get inlining
1210 CFLAGS=${CFLAGS:-""}
1211 CXXFLAGS=${CXXFLAGS:-$CFLAGS}
1212 LDFLAGS=${LDFLAGS:-""}
1218 # Check whether --enable-checking or --disable-checking was given.
1219 if test "${enable_checking+set}" = set; then
1220 enableval="$enable_checking"
1221 checking_b=$enableval
1225 # Check whether --enable-debugging or --disable-debugging was given.
1226 if test "${enable_debugging+set}" = set; then
1227 enableval="$enable_debugging"
1232 # Check whether --enable-optimising or --disable-optimising was given.
1233 if test "${enable_optimising+set}" = set; then
1234 enableval="$enable_optimising"
1235 optimise_b=$enableval
1239 # Check whether --enable-profiling or --disable-profiling was given.
1240 if test "${enable_profiling+set}" = set; then
1241 enableval="$enable_profiling"
1242 profile_b=$enableval
1247 if test "$checking_b" = no; then
1249 cat >> confdefs.h <<\EOF
1253 DEFINES="$DEFINES -DNDEBUG"
1256 if test "$optimise_b" = yes; then
1257 OPTIMIZE="-O2 -finline-functions"
1261 if test $profile_b = yes; then
1263 OPTIMIZE="$OPTIMIZE -pg"
1266 if test $debug_b = yes; then
1267 OPTIMIZE="$OPTIMIZE -g"
1271 # Extract the first word of "gcc", so it can be a program name with args.
1272 set dummy gcc; ac_word=$2
1273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1274 echo "configure:1275: checking for $ac_word" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 if test -n "$CC"; then
1279 ac_cv_prog_CC="$CC" # Let the user override the test.
1281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1283 for ac_dir in $ac_dummy; do
1284 test -z "$ac_dir" && ac_dir=.
1285 if test -f $ac_dir/$ac_word; then
1294 if test -n "$CC"; then
1295 echo "$ac_t""$CC" 1>&6
1297 echo "$ac_t""no" 1>&6
1300 if test -z "$CC"; then
1301 # Extract the first word of "cc", so it can be a program name with args.
1302 set dummy cc; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 if test -n "$CC"; then
1309 ac_cv_prog_CC="$CC" # Let the user override the test.
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1314 for ac_dir in $ac_dummy; do
1315 test -z "$ac_dir" && ac_dir=.
1316 if test -f $ac_dir/$ac_word; then
1317 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1318 ac_prog_rejected=yes
1326 if test $ac_prog_rejected = yes; then
1327 # We found a bogon in the path, so make sure we never use it.
1328 set dummy $ac_cv_prog_CC
1330 if test $# -gt 0; then
1331 # We chose a different compiler from the bogus one.
1332 # However, it has the same basename, so the bogon will be chosen
1333 # first if we set CC to just the basename; use the full file name.
1335 set dummy "$ac_dir/$ac_word" "$@"
1343 if test -n "$CC"; then
1344 echo "$ac_t""$CC" 1>&6
1346 echo "$ac_t""no" 1>&6
1349 if test -z "$CC"; then
1350 case "`uname -s`" in
1352 # Extract the first word of "cl", so it can be a program name with args.
1353 set dummy cl; ac_word=$2
1354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1355 echo "configure:1356: checking for $ac_word" >&5
1356 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 if test -n "$CC"; then
1360 ac_cv_prog_CC="$CC" # Let the user override the test.
1362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1364 for ac_dir in $ac_dummy; do
1365 test -z "$ac_dir" && ac_dir=.
1366 if test -f $ac_dir/$ac_word; then
1375 if test -n "$CC"; then
1376 echo "$ac_t""$CC" 1>&6
1378 echo "$ac_t""no" 1>&6
1383 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1386 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1387 echo "configure:1388: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1390 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1391 ac_cpp='$CPP $CPPFLAGS'
1392 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1393 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1394 cross_compiling=$ac_cv_prog_cc_cross
1396 cat > conftest.$ac_ext << EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1403 if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1404 ac_cv_prog_cc_works=yes
1405 # If we can't run a trivial program, we are probably using a cross compiler.
1406 if (./conftest; exit) 2>/dev/null; then
1407 ac_cv_prog_cc_cross=no
1409 ac_cv_prog_cc_cross=yes
1412 echo "configure: failed program was:" >&5
1413 cat conftest.$ac_ext >&5
1414 ac_cv_prog_cc_works=no
1418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1419 ac_cpp='$CPP $CPPFLAGS'
1420 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1421 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1422 cross_compiling=$ac_cv_prog_cc_cross
1424 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1425 if test $ac_cv_prog_cc_works = no; then
1426 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1428 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1429 echo "configure:1430: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1430 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1431 cross_compiling=$ac_cv_prog_cc_cross
1433 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1434 echo "configure:1435: checking whether we are using GNU C" >&5
1435 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 cat > conftest.c <<EOF
1443 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1450 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1452 if test $ac_cv_prog_gcc = yes; then
1458 ac_test_CFLAGS="${CFLAGS+set}"
1459 ac_save_CFLAGS="$CFLAGS"
1461 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1462 echo "configure:1463: checking whether ${CC-cc} accepts -g" >&5
1463 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1466 echo 'void f(){}' > conftest.c
1467 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1476 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1477 if test "$ac_test_CFLAGS" = set; then
1478 CFLAGS="$ac_save_CFLAGS"
1479 elif test $ac_cv_prog_cc_g = yes; then
1480 if test "$GCC" = yes; then
1486 if test "$GCC" = yes; then
1496 CFLAGS="$CFLAGS $OPTIMIZE"
1497 CPPFLAGS=${CPPFLAGS:-""}
1499 echo $ac_n "checking for IEEE-conformance compiler flags""... $ac_c" 1>&6
1500 echo "configure:1501: checking for IEEE-conformance compiler flags" >&5
1501 save_cflags="$CFLAGS"
1504 echo "$ac_t""-mieee" 1>&6
1505 CFLAGS="-mieee $CFLAGS"
1508 echo "$ac_t""none" 1>&6
1520 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1521 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1522 echo "configure:1523: checking how to run the C preprocessor" >&5
1523 # On Suns, sometimes $CPP names a directory.
1524 if test -n "$CPP" && test -d "$CPP"; then
1527 if test -z "$CPP"; then
1528 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 # This must be in double quotes, not single quotes, because CPP may get
1532 # substituted into the Makefile and "${CC-cc}" will confuse make.
1534 # On the NeXT, cc -E runs the code through the compiler's parser,
1535 # not just through cpp.
1536 cat > conftest.$ac_ext <<EOF
1537 #line 1538 "configure"
1538 #include "confdefs.h"
1542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1543 { (eval echo configure:1544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1545 if test -z "$ac_err"; then
1549 echo "configure: failed program was:" >&5
1550 cat conftest.$ac_ext >&5
1552 CPP="${CC-cc} -E -traditional-cpp"
1553 cat > conftest.$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1560 { (eval echo configure:1561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1562 if test -z "$ac_err"; then
1566 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1569 CPP="${CC-cc} -nologo -E"
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1577 { (eval echo configure:1578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1579 if test -z "$ac_err"; then
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1593 ac_cv_prog_CPP="$CPP"
1595 CPP="$ac_cv_prog_CPP"
1597 ac_cv_prog_CPP="$CPP"
1599 echo "$ac_t""$CPP" 1>&6
1601 for ac_hdr in assert.h sys/stat.h
1603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1605 echo "configure:1606: checking for $ac_hdr" >&5
1606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1609 cat > conftest.$ac_ext <<EOF
1610 #line 1611 "configure"
1611 #include "confdefs.h"
1614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1615 { (eval echo configure:1616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1617 if test -z "$ac_err"; then
1619 eval "ac_cv_header_$ac_safe=yes"
1622 echo "configure: failed program was:" >&5
1623 cat conftest.$ac_ext >&5
1625 eval "ac_cv_header_$ac_safe=no"
1629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1630 echo "$ac_t""yes" 1>&6
1631 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1632 cat >> confdefs.h <<EOF
1633 #define $ac_tr_hdr 1
1637 echo "$ac_t""no" 1>&6
1641 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1642 echo "configure:1643: checking whether stat file-mode macros are broken" >&5
1643 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 cat > conftest.$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1649 #include <sys/types.h>
1650 #include <sys/stat.h>
1652 #if defined(S_ISBLK) && defined(S_IFDIR)
1653 # if S_ISBLK (S_IFDIR)
1658 #if defined(S_ISBLK) && defined(S_IFCHR)
1659 # if S_ISBLK (S_IFCHR)
1664 #if defined(S_ISLNK) && defined(S_IFREG)
1665 # if S_ISLNK (S_IFREG)
1670 #if defined(S_ISSOCK) && defined(S_IFREG)
1671 # if S_ISSOCK (S_IFREG)
1677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1678 egrep "You lose" >/dev/null 2>&1; then
1680 ac_cv_header_stat_broken=yes
1683 ac_cv_header_stat_broken=no
1689 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1690 if test $ac_cv_header_stat_broken = yes; then
1691 cat >> confdefs.h <<\EOF
1692 #define STAT_MACROS_BROKEN 1
1698 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1699 echo "configure:1700: checking how to run the C++ preprocessor" >&5
1700 if test -z "$CXXCPP"; then
1701 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1706 ac_cpp='$CXXCPP $CPPFLAGS'
1707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1709 cross_compiling=$ac_cv_prog_cxx_cross
1710 CXXCPP="${CXX-g++} -E"
1711 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1717 { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1719 if test -z "$ac_err"; then
1723 echo "configure: failed program was:" >&5
1724 cat conftest.$ac_ext >&5
1729 ac_cv_prog_CXXCPP="$CXXCPP"
1731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1732 ac_cpp='$CXXCPP $CPPFLAGS'
1733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1735 cross_compiling=$ac_cv_prog_cxx_cross
1738 CXXCPP="$ac_cv_prog_CXXCPP"
1739 echo "$ac_t""$CXXCPP" 1>&6
1743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1744 ac_cpp='$CXXCPP $CPPFLAGS'
1745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1747 cross_compiling=$ac_cv_prog_cxx_cross
1749 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1751 # Extract the first word of "$ac_prog", so it can be a program name with args.
1752 set dummy $ac_prog; ac_word=$2
1753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1754 echo "configure:1755: checking for $ac_word" >&5
1755 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1756 echo $ac_n "(cached) $ac_c" 1>&6
1758 if test -n "$CXX"; then
1759 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1763 for ac_dir in $ac_dummy; do
1764 test -z "$ac_dir" && ac_dir=.
1765 if test -f $ac_dir/$ac_word; then
1766 ac_cv_prog_CXX="$ac_prog"
1773 CXX="$ac_cv_prog_CXX"
1774 if test -n "$CXX"; then
1775 echo "$ac_t""$CXX" 1>&6
1777 echo "$ac_t""no" 1>&6
1780 test -n "$CXX" && break
1782 test -n "$CXX" || CXX="gcc"
1785 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1786 echo "configure:1787: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1789 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1790 ac_cpp='$CXXCPP $CPPFLAGS'
1791 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1792 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1793 cross_compiling=$ac_cv_prog_cxx_cross
1795 cat > conftest.$ac_ext << EOF
1797 #line 1798 "configure"
1798 #include "confdefs.h"
1800 int main(){return(0);}
1802 if { (eval echo configure:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1803 ac_cv_prog_cxx_works=yes
1804 # If we can't run a trivial program, we are probably using a cross compiler.
1805 if (./conftest; exit) 2>/dev/null; then
1806 ac_cv_prog_cxx_cross=no
1808 ac_cv_prog_cxx_cross=yes
1811 echo "configure: failed program was:" >&5
1812 cat conftest.$ac_ext >&5
1813 ac_cv_prog_cxx_works=no
1817 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1818 ac_cpp='$CXXCPP $CPPFLAGS'
1819 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1820 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1821 cross_compiling=$ac_cv_prog_cxx_cross
1823 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1824 if test $ac_cv_prog_cxx_works = no; then
1825 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1827 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1828 echo "configure:1829: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1829 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1830 cross_compiling=$ac_cv_prog_cxx_cross
1832 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1833 echo "configure:1834: checking whether we are using GNU C++" >&5
1834 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1837 cat > conftest.C <<EOF
1842 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1849 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1851 if test $ac_cv_prog_gxx = yes; then
1857 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1858 ac_save_CXXFLAGS="$CXXFLAGS"
1860 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1861 echo "configure:1862: checking whether ${CXX-g++} accepts -g" >&5
1862 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 echo 'void f(){}' > conftest.cc
1866 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1867 ac_cv_prog_cxx_g=yes
1875 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1876 if test "$ac_test_CXXFLAGS" = set; then
1877 CXXFLAGS="$ac_save_CXXFLAGS"
1878 elif test $ac_cv_prog_cxx_g = yes; then
1879 if test "$GXX" = yes; then
1885 if test "$GXX" = yes; then
1892 for ac_declaration in \
1894 '#include <stdlib.h>' \
1895 'extern "C" void std::exit (int) throw (); using std::exit;' \
1896 'extern "C" void std::exit (int); using std::exit;' \
1897 'extern "C" void exit (int) throw ();' \
1898 'extern "C" void exit (int);' \
1901 cat > conftest.$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1910 if { (eval echo configure:1911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1913 echo "configure: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1919 cat > conftest.$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1927 if { (eval echo configure:1928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1931 echo "configure: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1936 if test -n "$ac_declaration"; then
1937 echo '#ifdef __cplusplus' >>confdefs.h
1938 echo $ac_declaration >>confdefs.h
1939 echo '#endif' >>confdefs.h
1944 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1945 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1946 echo "configure:1947: checking for FlexLexer.h" >&5
1947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 cat > conftest.$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1953 #include <FlexLexer.h>
1955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1956 { (eval echo configure:1957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1958 if test -z "$ac_err"; then
1960 eval "ac_cv_header_$ac_safe=yes"
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1966 eval "ac_cv_header_$ac_safe=no"
1970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1971 echo "$ac_t""yes" 1>&6
1974 echo "$ac_t""no" 1>&6
1976 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1982 CPPFLAGS="$CPPFLAGS $DEFINES"
1983 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1984 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
1992 echo $ac_n "checking "g++ version"""... $ac_c" 1>&6
1993 echo "configure:1994: checking "g++ version"" >&5
1994 cxx_version=`$CXX --version`
1995 echo "$ac_t"""$cxx_version"" 1>&6
1996 # urg, egcs: how to check for egcs >= 1.1?
1997 if expr "$cxx_version" : '.*2\.[89]' > /dev/null ||
1998 expr "$cxx_version" : '.*egcs' > /dev/null ||
1999 expr "$cxx_version" : '3\.0' > /dev/null
2004 echo "configure: warning: can\'t find g++ 2.8" 1>&2
2010 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
2011 echo "configure:2012: checking whether explicit instantiation is needed" >&5
2012 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
2013 echo $ac_n "(cached) $ac_c" 1>&6
2015 cat > conftest.$ac_ext <<EOF
2016 #line 2017 "configure"
2017 #include "confdefs.h"
2019 template <class T> struct foo { static int baz; };
2020 template <class T> int foo<T>::baz = 1;
2023 return foo<int>::baz;
2026 if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2028 lily_cv_need_explicit_instantiation=no
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2033 lily_cv_need_explicit_instantiation=yes
2038 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
2039 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
2040 cat >> confdefs.h <<\EOF
2041 #define NEED_EXPLICIT_INSTANTIATION 1
2047 # ugh, automake: we want (and check for) bison
2048 for ac_prog in 'bison -y' byacc
2050 # Extract the first word of "$ac_prog", so it can be a program name with args.
2051 set dummy $ac_prog; ac_word=$2
2052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2053 echo "configure:2054: checking for $ac_word" >&5
2054 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2055 echo $ac_n "(cached) $ac_c" 1>&6
2057 if test -n "$YACC"; then
2058 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2062 for ac_dir in $ac_dummy; do
2063 test -z "$ac_dir" && ac_dir=.
2064 if test -f $ac_dir/$ac_word; then
2065 ac_cv_prog_YACC="$ac_prog"
2072 YACC="$ac_cv_prog_YACC"
2073 if test -n "$YACC"; then
2074 echo "$ac_t""$YACC" 1>&6
2076 echo "$ac_t""no" 1>&6
2079 test -n "$YACC" && break
2081 test -n "$YACC" || YACC="yacc"
2083 # ugh, automake: we want (and check for) flex
2085 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
2089 ac_cv_prog_lex_root=lex.yy
2091 for ac_prog in bison
2093 # Extract the first word of "$ac_prog", so it can be a program name with args.
2094 set dummy $ac_prog; ac_word=$2
2095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2096 echo "configure:2097: checking for $ac_word" >&5
2097 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2098 echo $ac_n "(cached) $ac_c" 1>&6
2100 if test -n "$BISON"; then
2101 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2105 for ac_dir in $ac_dummy; do
2106 test -z "$ac_dir" && ac_dir=.
2107 if test -f $ac_dir/$ac_word; then
2108 ac_cv_prog_BISON="$ac_prog"
2115 BISON="$ac_cv_prog_BISON"
2116 if test -n "$BISON"; then
2117 echo "$ac_t""$BISON" 1>&6
2119 echo "$ac_t""no" 1>&6
2122 test -n "$BISON" && break
2124 test -n "$BISON" || BISON="error"
2128 # Extract the first word of "$ac_prog", so it can be a program name with args.
2129 set dummy $ac_prog; ac_word=$2
2130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2131 echo "configure:2132: checking for $ac_word" >&5
2132 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2135 if test -n "$FLEX"; then
2136 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2140 for ac_dir in $ac_dummy; do
2141 test -z "$ac_dir" && ac_dir=.
2142 if test -f $ac_dir/$ac_word; then
2143 ac_cv_prog_FLEX="$ac_prog"
2150 FLEX="$ac_cv_prog_FLEX"
2151 if test -n "$FLEX"; then
2152 echo "$ac_t""$FLEX" 1>&6
2154 echo "$ac_t""no" 1>&6
2157 test -n "$FLEX" && break
2159 test -n "$FLEX" || FLEX="error"
2162 result="`echo \"$BISON\" | grep echo`"
2163 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
2165 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
2171 result="`echo \"$FLEX\" | grep echo`"
2172 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
2174 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
2180 if test $BISON != "error"; then
2181 bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
2182 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
2184 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
2196 # Extract the first word of "$ac_prog", so it can be a program name with args.
2197 set dummy $ac_prog; ac_word=$2
2198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2199 echo "configure:2200: checking for $ac_word" >&5
2200 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 if test -n "$AR"; then
2204 ac_cv_prog_AR="$AR" # Let the user override the test.
2206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2208 for ac_dir in $ac_dummy; do
2209 test -z "$ac_dir" && ac_dir=.
2210 if test -f $ac_dir/$ac_word; then
2211 ac_cv_prog_AR="$ac_prog"
2219 if test -n "$AR"; then
2220 echo "$ac_t""$AR" 1>&6
2222 echo "$ac_t""no" 1>&6
2225 test -n "$AR" && break
2227 test -n "$AR" || AR="error"
2229 # Extract the first word of "ranlib", so it can be a program name with args.
2230 set dummy ranlib; ac_word=$2
2231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2232 echo "configure:2233: checking for $ac_word" >&5
2233 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 if test -n "$RANLIB"; then
2237 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2241 for ac_dir in $ac_dummy; do
2242 test -z "$ac_dir" && ac_dir=.
2243 if test -f $ac_dir/$ac_word; then
2244 ac_cv_prog_RANLIB="ranlib"
2249 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2252 RANLIB="$ac_cv_prog_RANLIB"
2253 if test -n "$RANLIB"; then
2254 echo "$ac_t""$RANLIB" 1>&6
2256 echo "$ac_t""no" 1>&6
2268 # Check whether --with-localedir or --without-localedir was given.
2269 if test "${with_localedir+set}" = set; then
2270 withval="$with_localedir"
2271 localedir=$with_localedir
2273 localedir='${prefix}/share/locale'
2277 # Check whether --with-lang or --without-lang was given.
2278 if test "${with_lang+set}" = set; then
2279 withval="$with_lang"
2286 echo $ac_n "checking language""... $ac_c" 1>&6
2287 echo "configure:2288: checking language" >&5
2289 En* | en* | Am* | am* | US* | us*)
2291 NL | nl | Du* | du* | Ned* | ned*)
2298 echo "$ac_t""$lang" 1>&6
2300 if test "$lang" = "unknown" ; then
2302 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2309 DIR_LOCALEDIR=${localedir}
2311 if test "$prefix" = "NONE"; then
2312 presome=${ac_default_prefix}
2314 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2317 cat >> confdefs.h <<EOF
2318 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2322 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2323 echo "configure:2324: checking for gettext in -lintl" >&5
2324 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2325 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 ac_save_LIBS="$LIBS"
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 /* Override any gcc2 internal prototype to avoid an error. */
2337 /* We use char because int might match the return type of a gcc2
2338 builtin and then its argument prototype would still apply. */
2345 if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2347 eval "ac_cv_lib_$ac_lib_var=yes"
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2352 eval "ac_cv_lib_$ac_lib_var=no"
2355 LIBS="$ac_save_LIBS"
2358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2361 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2362 cat >> confdefs.h <<EOF
2363 #define $ac_tr_lib 1
2369 echo "$ac_t""no" 1>&6
2372 for ac_func in gettext
2374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2375 echo "configure:2376: checking for $ac_func" >&5
2376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2379 cat > conftest.$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 /* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $ac_func(); below. */
2385 /* Override any gcc2 internal prototype to avoid an error. */
2389 /* We use char because int might match the return type of a gcc2
2390 builtin and then its argument prototype would still apply. */
2395 /* The GNU C library defines this for functions which it implements
2396 to always fail with ENOSYS. Some functions are actually named
2397 something starting with __ and the normal name is an alias. */
2398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2406 if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2408 eval "ac_cv_func_$ac_func=yes"
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2413 eval "ac_cv_func_$ac_func=no"
2418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2421 cat >> confdefs.h <<EOF
2422 #define $ac_tr_func 1
2426 echo "$ac_t""no" 1>&6
2432 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2433 for ac_prog in msgfmt
2435 # Extract the first word of "$ac_prog", so it can be a program name with args.
2436 set dummy $ac_prog; ac_word=$2
2437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2438 echo "configure:2439: checking for $ac_word" >&5
2439 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 if test -n "$MSGFMT"; then
2443 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2447 for ac_dir in $ac_dummy; do
2448 test -z "$ac_dir" && ac_dir=.
2449 if test -f $ac_dir/$ac_word; then
2450 ac_cv_prog_MSGFMT="$ac_prog"
2457 MSGFMT="$ac_cv_prog_MSGFMT"
2458 if test -n "$MSGFMT"; then
2459 echo "$ac_t""$MSGFMT" 1>&6
2461 echo "$ac_t""no" 1>&6
2464 test -n "$MSGFMT" && break
2466 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2468 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2469 echo "configure:2470: checking whether msgfmt accepts -o" >&5
2470 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2471 if test "$msgfmt_output" = ""; then
2472 echo "$ac_t""yes" 1>&6
2475 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2476 echo "$ac_t""no" 1>&6
2478 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2482 if test ! -n "$MSGFMT"; then
2484 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2490 # urg, never know what names these teTeX guys will think up
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_METAFONT'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 if test -n "$METAFONT"; then
2502 ac_cv_prog_METAFONT="$METAFONT" # 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_METAFONT="$ac_prog"
2516 METAFONT="$ac_cv_prog_METAFONT"
2517 if test -n "$METAFONT"; then
2518 echo "$ac_t""$METAFONT" 1>&6
2520 echo "$ac_t""no" 1>&6
2523 test -n "$METAFONT" && break
2525 test -n "$METAFONT" || METAFONT="no"
2527 if test "x$METAFONT" = "xno"; then
2528 for ac_prog in mfont
2530 # Extract the first word of "$ac_prog", so it can be a program name with args.
2531 set dummy $ac_prog; ac_word=$2
2532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2533 echo "configure:2534: checking for $ac_word" >&5
2534 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2537 if test -n "$MFONT"; then
2538 ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2542 for ac_dir in $ac_dummy; do
2543 test -z "$ac_dir" && ac_dir=.
2544 if test -f $ac_dir/$ac_word; then
2545 ac_cv_prog_MFONT="$ac_prog"
2552 MFONT="$ac_cv_prog_MFONT"
2553 if test -n "$MFONT"; then
2554 echo "$ac_t""$MFONT" 1>&6
2556 echo "$ac_t""no" 1>&6
2559 test -n "$MFONT" && break
2561 test -n "$MFONT" || MFONT="-echo no mf or mfont"
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_METAPOST'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2575 if test -n "$METAPOST"; then
2576 ac_cv_prog_METAPOST="$METAPOST" # 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_METAPOST="$ac_prog"
2590 METAPOST="$ac_cv_prog_METAPOST"
2591 if test -n "$METAPOST"; then
2592 echo "$ac_t""$METAPOST" 1>&6
2594 echo "$ac_t""no" 1>&6
2597 test -n "$METAPOST" && break
2599 test -n "$METAPOST" || METAPOST="no"
2601 if test "x$METAPOST" = "xno"; then
2602 for ac_prog in mpost
2604 # Extract the first word of "$ac_prog", so it can be a program name with args.
2605 set dummy $ac_prog; ac_word=$2
2606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2607 echo "configure:2608: checking for $ac_word" >&5
2608 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 if test -n "$MPOST"; then
2612 ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2616 for ac_dir in $ac_dummy; do
2617 test -z "$ac_dir" && ac_dir=.
2618 if test -f $ac_dir/$ac_word; then
2619 ac_cv_prog_MPOST="$ac_prog"
2626 MPOST="$ac_cv_prog_MPOST"
2627 if test -n "$MPOST"; then
2628 echo "$ac_t""$MPOST" 1>&6
2630 echo "$ac_t""no" 1>&6
2633 test -n "$MPOST" && break
2635 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2641 for ac_prog in inimf
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_INIMETAFONT'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2650 if test -n "$INIMETAFONT"; then
2651 ac_cv_prog_INIMETAFONT="$INIMETAFONT" # 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_INIMETAFONT="$ac_prog"
2665 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2666 if test -n "$INIMETAFONT"; then
2667 echo "$ac_t""$INIMETAFONT" 1>&6
2669 echo "$ac_t""no" 1>&6
2672 test -n "$INIMETAFONT" && break
2674 test -n "$INIMETAFONT" || INIMETAFONT="no"
2676 if test "x$INIMETAFONT" = "xno"; then
2677 for ac_prog in inimfont
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2682 echo "configure:2683: checking for $ac_word" >&5
2683 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 if test -n "$INIMFONT"; then
2687 ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2691 for ac_dir in $ac_dummy; do
2692 test -z "$ac_dir" && ac_dir=.
2693 if test -f $ac_dir/$ac_word; then
2694 ac_cv_prog_INIMFONT="$ac_prog"
2701 INIMFONT="$ac_cv_prog_INIMFONT"
2702 if test -n "$INIMFONT"; then
2703 echo "$ac_t""$INIMFONT" 1>&6
2705 echo "$ac_t""no" 1>&6
2708 test -n "$INIMFONT" && break
2710 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2712 INIMETAFONT=$INIMFONT
2715 for ac_prog in inimp
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_INIMETAPOST'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2724 if test -n "$INIMETAPOST"; then
2725 ac_cv_prog_INIMETAPOST="$INIMETAPOST" # 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_INIMETAPOST="$ac_prog"
2739 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2740 if test -n "$INIMETAPOST"; then
2741 echo "$ac_t""$INIMETAPOST" 1>&6
2743 echo "$ac_t""no" 1>&6
2746 test -n "$INIMETAPOST" && break
2748 test -n "$INIMETAPOST" || INIMETAPOST="no"
2750 if test "x$INIMETAPOST" = "xno"; then
2751 for ac_prog in inimpost
2753 # Extract the first word of "$ac_prog", so it can be a program name with args.
2754 set dummy $ac_prog; ac_word=$2
2755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2756 echo "configure:2757: checking for $ac_word" >&5
2757 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 if test -n "$INIMPOST"; then
2761 ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2765 for ac_dir in $ac_dummy; do
2766 test -z "$ac_dir" && ac_dir=.
2767 if test -f $ac_dir/$ac_word; then
2768 ac_cv_prog_INIMPOST="$ac_prog"
2775 INIMPOST="$ac_cv_prog_INIMPOST"
2776 if test -n "$INIMPOST"; then
2777 echo "$ac_t""$INIMPOST" 1>&6
2779 echo "$ac_t""no" 1>&6
2782 test -n "$INIMPOST" && break
2784 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2786 INIMETAPOST=$INIMPOST
2789 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2790 echo "configure:2791: checking for working metafont mode" >&5
2791 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2792 for MFMODE in $modelist; do
2793 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2794 if test -f mfput.tfm; then
2798 echo "$ac_t""$MFMODE" 1>&6
2800 echo $ac_n "checking for mfplain.mp""... $ac_c" 1>&6
2801 echo "configure:2802: checking for mfplain.mp" >&5
2803 # For now let people define these in their environments
2805 : ${MFPLAIN_MP=`kpsewhich --format mp mfplain.mp`}
2806 echo "$ac_t""$MFPLAIN_MP" 1>&6
2808 echo $ac_n "checking for inimetapost flags""... $ac_c" 1>&6
2809 echo "configure:2810: checking for inimetapost flags" >&5
2810 if test ${INIMETAPOST} = "inimp" ; then
2811 : ${INIMETAPOST_FLAGS=''}
2813 : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2815 echo "$ac_t""$INIMETAPOST_FLAGS" 1>&6
2828 # Check whether --enable-tfm-path or --disable-tfm-path was given.
2829 if test "${enable_tfm_path+set}" = set; then
2830 enableval="$enable_tfm_path"
2837 for ac_prog in kpsewhich
2839 # Extract the first word of "$ac_prog", so it can be a program name with args.
2840 set dummy $ac_prog; ac_word=$2
2841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2842 echo "configure:2843: checking for $ac_word" >&5
2843 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2846 if test -n "$KPSEWHICH"; then
2847 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2851 for ac_dir in $ac_dummy; do
2852 test -z "$ac_dir" && ac_dir=.
2853 if test -f $ac_dir/$ac_word; then
2854 ac_cv_prog_KPSEWHICH="$ac_prog"
2861 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2862 if test -n "$KPSEWHICH"; then
2863 echo "$ac_t""$KPSEWHICH" 1>&6
2865 echo "$ac_t""no" 1>&6
2868 test -n "$KPSEWHICH" && break
2870 test -n "$KPSEWHICH" || KPSEWHICH="no"
2872 echo $ac_n "checking for tfm path""... $ac_c" 1>&6
2873 echo "configure:2874: checking for tfm path" >&5
2875 TFM_FONTS="cmr msam"
2877 if test "x$tfm_path" = xauto ; then
2878 if test "x$KPSEWHICH" != "xno" ; then
2879 for i in $TFM_FONTS; do
2880 dir=`$KPSEWHICH tfm ${i}10.tfm`
2881 TFM_PATH="$TFM_PATH `dirname $dir`"
2885 echo "configure: warning: Please specify where cmr10.tfm lives:
2886 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
2894 TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
2895 echo "$ac_t""$TFM_PATH" 1>&6
2899 ## First, let's just see if we can find Guile at all.
2900 echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6
2901 echo "configure:2902: checking "for guile-config"" >&5
2902 for guile_config in guile-config $target-guile-config $build-guile-config; do
2903 echo "$ac_t"""$guile_config"" 1>&6
2904 if ! $guile_config --version > /dev/null 2>&1 ; then
2905 echo "configure: warning: "cannot execute $guile_config"" 1>&2
2906 echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6
2907 echo "configure:2908: checking "if we are cross compiling"" >&5
2913 if test "$guile_config" = "error"; then
2914 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2917 echo $ac_n "checking "Guile version"""... $ac_c" 1>&6
2918 echo "configure:2919: checking "Guile version"" >&5
2919 need_guile_version="1.3.4"
2920 need_guile_version_numeric=100304
2921 guile_version=`$guile_config --version 2>&1 | awk '{print $NF}'`
2922 guile_version_numeric=`echo $guile_version | awk -F. '
2923 {if ($3) {last = $3}
2925 {printf "%s%s%s\n",$1*100, $2*10,last}'`
2926 echo "$ac_t"""$guile_version"" 1>&6
2927 if test $guile_version_numeric -lt $need_guile_version_numeric
2930 echo "configure: warning: "Guile version "$need_guile_version" or newer is needed"" 1>&2
2934 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
2935 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
2937 ## The GUILE_FLAGS macro.
2938 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2939 echo "configure:2940: checking for Guile" >&5
2940 if ! $guile_config link > /dev/null ; then
2941 echo "$ac_t"""cannot execute $guile_config"" 1>&6
2942 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2945 GUILE_CFLAGS="`$guile_config compile`"
2946 GUILE_LDFLAGS="`$guile_config link`"
2949 echo "$ac_t""yes" 1>&6
2951 # Extract the first word of "guile", so it can be a program name with args.
2952 set dummy guile; ac_word=$2
2953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2954 echo "configure:2955: checking for $ac_word" >&5
2955 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2960 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
2963 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
2966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2968 for ac_dir in $ac_dummy; do
2969 test -z "$ac_dir" && ac_dir=.
2970 if test -f $ac_dir/$ac_word; then
2971 ac_cv_path_GUILE="$ac_dir/$ac_word"
2976 test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error"
2980 GUILE="$ac_cv_path_GUILE"
2981 if test -n "$GUILE"; then
2982 echo "$ac_t""$GUILE" 1>&6
2984 echo "$ac_t""no" 1>&6
2988 cat >> confdefs.h <<EOF
2989 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
2992 cat >> confdefs.h <<EOF
2993 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
3000 #FIXME --with-xxx is meant for specifying a PATH too,
3001 # so this should read: --enable-kpathsea,
3002 # or --with-kpathsea-include=PATH --with-kpathsea-lib=PATH
3003 # Check whether --with-kpathsea or --without-kpathsea was given.
3004 if test "${with_kpathsea+set}" = set; then
3005 withval="$with_kpathsea"
3006 kpathsea_b=$with_kpathsea
3010 if test "$kpathsea_b" != "no"; then
3011 for ac_hdr in kpathsea/kpathsea.h
3013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3015 echo "configure:3016: checking for $ac_hdr" >&5
3016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 cat > conftest.$ac_ext <<EOF
3020 #line 3021 "configure"
3021 #include "confdefs.h"
3024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3025 { (eval echo configure:3026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3027 if test -z "$ac_err"; then
3029 eval "ac_cv_header_$ac_safe=yes"
3032 echo "configure: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3035 eval "ac_cv_header_$ac_safe=no"
3039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3040 echo "$ac_t""yes" 1>&6
3041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3042 cat >> confdefs.h <<EOF
3043 #define $ac_tr_hdr 1
3047 echo "$ac_t""no" 1>&6
3051 echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
3052 echo "configure:3053: checking for kpse_find_file in -lkpathsea" >&5
3053 ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
3054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 ac_save_LIBS="$LIBS"
3058 LIBS="-lkpathsea $LIBS"
3059 cat > conftest.$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
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. */
3068 char kpse_find_file();
3074 if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3076 eval "ac_cv_lib_$ac_lib_var=yes"
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3081 eval "ac_cv_lib_$ac_lib_var=no"
3084 LIBS="$ac_save_LIBS"
3087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3088 echo "$ac_t""yes" 1>&6
3089 ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3090 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3091 cat >> confdefs.h <<EOF
3092 #define $ac_tr_lib 1
3095 LIBS="-lkpathsea $LIBS"
3098 echo "$ac_t""no" 1>&6
3101 for ac_func in kpse_find_file
3103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3104 echo "configure:3105: checking for $ac_func" >&5
3105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 /* System header to define __stub macros and hopefully few prototypes,
3112 which can conflict with char $ac_func(); below. */
3114 /* Override any gcc2 internal prototype to avoid an error. */
3118 /* We use char because int might match the return type of a gcc2
3119 builtin and then its argument prototype would still apply. */
3124 /* The GNU C library defines this for functions which it implements
3125 to always fail with ENOSYS. Some functions are actually named
3126 something starting with __ and the normal name is an alias. */
3127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3135 if { (eval echo configure:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3137 eval "ac_cv_func_$ac_func=yes"
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3142 eval "ac_cv_func_$ac_func=no"
3147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3148 echo "$ac_t""yes" 1>&6
3149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3150 cat >> confdefs.h <<EOF
3151 #define $ac_tr_func 1
3155 echo "$ac_t""no" 1>&6
3156 { echo "configure: error: Cannot find kpathsea functions. You should install kpathsea; see INSTALL.txt. Rerun ./configure --without-kpathsea only if kpathsea is not available for your platform." 1>&2; exit 1; }
3161 echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
3162 echo "configure:3163: checking whether to use kpathsea" >&5
3163 if test "$kpathsea_b" != no; then
3164 echo "$ac_t""yes" 1>&6
3167 echo "$ac_t""no" 1>&6
3172 cat >> confdefs.h <<EOF
3173 #define KPATHSEA $KPATHSEA
3179 if test "$optimise_b" = yes; then
3180 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
3181 cat >> confdefs.h <<\EOF
3182 #define STRINGS_UTILS_INLINED 1
3189 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3190 echo "configure:3191: checking for 8-bit clean memcmp" >&5
3191 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 if test "$cross_compiling" = yes; then
3195 ac_cv_func_memcmp_clean=no
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3203 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3204 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3208 if { (eval echo configure:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3210 ac_cv_func_memcmp_clean=yes
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3215 ac_cv_func_memcmp_clean=no
3222 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3223 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3225 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3226 echo "configure:3227: checking for vprintf" >&5
3227 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3230 cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3233 /* System header to define __stub macros and hopefully few prototypes,
3234 which can conflict with char vprintf(); below. */
3236 /* Override any gcc2 internal prototype to avoid an error. */
3240 /* We use char because int might match the return type of a gcc2
3241 builtin and then its argument prototype would still apply. */
3246 /* The GNU C library defines this for functions which it implements
3247 to always fail with ENOSYS. Some functions are actually named
3248 something starting with __ and the normal name is an alias. */
3249 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3259 eval "ac_cv_func_vprintf=yes"
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3264 eval "ac_cv_func_vprintf=no"
3269 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3270 echo "$ac_t""yes" 1>&6
3271 cat >> confdefs.h <<\EOF
3272 #define HAVE_VPRINTF 1
3276 echo "$ac_t""no" 1>&6
3279 if test "$ac_cv_func_vprintf" != yes; then
3280 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3281 echo "configure:3282: checking for _doprnt" >&5
3282 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3288 /* System header to define __stub macros and hopefully few prototypes,
3289 which can conflict with char _doprnt(); below. */
3291 /* Override any gcc2 internal prototype to avoid an error. */
3295 /* We use char because int might match the return type of a gcc2
3296 builtin and then its argument prototype would still apply. */
3301 /* The GNU C library defines this for functions which it implements
3302 to always fail with ENOSYS. Some functions are actually named
3303 something starting with __ and the normal name is an alias. */
3304 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3312 if { (eval echo configure:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3314 eval "ac_cv_func__doprnt=yes"
3316 echo "configure: failed program was:" >&5
3317 cat conftest.$ac_ext >&5
3319 eval "ac_cv_func__doprnt=no"
3324 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3325 echo "$ac_t""yes" 1>&6
3326 cat >> confdefs.h <<\EOF
3327 #define HAVE_DOPRNT 1
3331 echo "$ac_t""no" 1>&6
3336 for ac_func in memmem snprintf vsnprintf gettext isinf
3338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3339 echo "configure:3340: checking for $ac_func" >&5
3340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3343 cat > conftest.$ac_ext <<EOF
3344 #line 3345 "configure"
3345 #include "confdefs.h"
3346 /* System header to define __stub macros and hopefully few prototypes,
3347 which can conflict with char $ac_func(); below. */
3349 /* Override any gcc2 internal prototype to avoid an error. */
3353 /* We use char because int might match the return type of a gcc2
3354 builtin and then its argument prototype would still apply. */
3359 /* The GNU C library defines this for functions which it implements
3360 to always fail with ENOSYS. Some functions are actually named
3361 something starting with __ and the normal name is an alias. */
3362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3370 if { (eval echo configure:3371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3372 eval "ac_cv_func_$ac_func=yes"
3374 echo "configure: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3377 eval "ac_cv_func_$ac_func=no"
3382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3383 echo "$ac_t""yes" 1>&6
3384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3385 cat >> confdefs.h <<EOF
3386 #define $ac_tr_func 1
3390 echo "$ac_t""no" 1>&6
3395 cat >> confdefs.h <<EOF
3396 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3399 cat >> confdefs.h <<EOF
3400 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3405 for ac_prog in makeinfo
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408 set dummy $ac_prog; ac_word=$2
3409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3410 echo "configure:3411: checking for $ac_word" >&5
3411 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 if test -n "$MAKEINFO"; then
3415 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3419 for ac_dir in $ac_dummy; do
3420 test -z "$ac_dir" && ac_dir=.
3421 if test -f $ac_dir/$ac_word; then
3422 ac_cv_prog_MAKEINFO="$ac_prog"
3429 MAKEINFO="$ac_cv_prog_MAKEINFO"
3430 if test -n "$MAKEINFO"; then
3431 echo "$ac_t""$MAKEINFO" 1>&6
3433 echo "$ac_t""no" 1>&6
3436 test -n "$MAKEINFO" && break
3438 test -n "$MAKEINFO" || MAKEINFO="error"
3440 if test "$MAKEINFO" != "error"; then
3441 echo $ac_n "checking whether makeinfo can split html by @node""... $ac_c" 1>&6
3442 echo "configure:3443: checking whether makeinfo can split html by @node" >&5
3444 makeinfo --html --output=out/split <<EOF
3446 \input texinfo @c -*-texinfo-*-
3447 @setfilename split.info
3448 @settitle split.info
3451 if test -d out/split; then
3452 SPLITTING_MAKEINFO=yes
3453 echo "$ac_t""yes" 1>&6
3456 echo "$ac_t""no" 1>&6
3458 echo "configure: warning: your html documentation will be one large file" 1>&2
3467 # Extract the first word of "perl", so it can be a program name with args.
3468 set dummy perl; ac_word=$2
3469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3470 echo "configure:3471: checking for $ac_word" >&5
3471 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3476 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3479 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3484 for ac_dir in $ac_dummy; do
3485 test -z "$ac_dir" && ac_dir=.
3486 if test -f $ac_dir/$ac_word; then
3487 ac_cv_path_PERL="$ac_dir/$ac_word"
3492 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
3496 PERL="$ac_cv_path_PERL"
3497 if test -n "$PERL"; then
3498 echo "$ac_t""$PERL" 1>&6
3500 echo "$ac_t""no" 1>&6
3504 for ac_hdr in python2.1/Python.h python2.0/Python.h python2/Python.h python/Python.h python1.5/Python.h Python.h
3506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3508 echo "configure:3509: checking for $ac_hdr" >&5
3509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3512 cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3518 { (eval echo configure:3519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3520 if test -z "$ac_err"; then
3522 eval "ac_cv_header_$ac_safe=yes"
3525 echo "configure: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3528 eval "ac_cv_header_$ac_safe=no"
3532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3533 echo "$ac_t""yes" 1>&6
3534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3535 cat >> confdefs.h <<EOF
3536 #define $ac_tr_hdr 1
3540 echo "$ac_t""no" 1>&6
3548 cat > confcache <<\EOF
3549 # This file is a shell script that caches the results of configure
3550 # tests run on this system so they can be shared between configure
3551 # scripts and configure runs. It is not useful on other systems.
3552 # If it contains results you don't want to keep, you may remove or edit it.
3554 # By default, configure uses ./config.cache as the cache file,
3555 # creating it if it does not exist already. You can give configure
3556 # the --cache-file=FILE option to use a different cache file; that is
3557 # what configure does when it calls configure scripts in
3558 # subdirectories, so they share the cache.
3559 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3560 # config.status only pays attention to the cache file if you give it the
3561 # --recheck option to rerun configure.
3564 # The following way of writing the cache mishandles newlines in values,
3565 # but we know of no workaround that is simple, portable, and efficient.
3566 # So, don't put newlines in cache variables' values.
3567 # Ultrix sh set writes to stderr and can't be redirected directly,
3568 # and sets the high bit in the cache file unless we assign to the vars.
3570 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3572 # `set' does not quote correctly, so add quotes (double-quote substitution
3573 # turns \\\\ into \\, and sed turns \\ into \).
3575 -e "s/'/'\\\\''/g" \
3576 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3579 # `set' quotes correctly as required by POSIX, so do not add quotes.
3580 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3583 if cmp -s $cache_file confcache; then
3586 if test -w $cache_file; then
3587 echo "updating cache $cache_file"
3588 cat confcache > $cache_file
3590 echo "not updating unwritable cache $cache_file"
3595 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3597 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3598 # Let make expand exec_prefix.
3599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3601 # Any assignment to VPATH causes Sun make to only execute
3602 # the first set of double-colon rules, so remove it if not needed.
3603 # If there is a colon in the path, we need to keep it.
3604 if test "x$srcdir" = x.; then
3605 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3608 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3610 DEFS=-DHAVE_CONFIG_H
3612 # Without the "./", some shells look in PATH for config.status.
3613 : ${CONFIG_STATUS=./config.status}
3615 echo creating $CONFIG_STATUS
3616 rm -f $CONFIG_STATUS
3617 cat > $CONFIG_STATUS <<EOF
3619 # Generated automatically by configure.
3620 # Run this file to recreate the current configuration.
3621 # This directory was configured as follows,
3622 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3624 # $0 $ac_configure_args
3626 # Compiler output produced by configure, useful for debugging
3627 # configure, is in ./config.log if it exists.
3629 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3632 case "\$ac_option" in
3633 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3634 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3635 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3636 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3637 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3639 -help | --help | --hel | --he | --h)
3640 echo "\$ac_cs_usage"; exit 0 ;;
3641 *) echo "\$ac_cs_usage"; exit 1 ;;
3645 ac_given_srcdir=$srcdir
3647 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3649 cat >> $CONFIG_STATUS <<EOF
3651 # Protect against being on the right side of a sed subst in config.status.
3652 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3653 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3657 s%@CFLAGS@%$CFLAGS%g
3658 s%@CPPFLAGS@%$CPPFLAGS%g
3659 s%@CXXFLAGS@%$CXXFLAGS%g
3660 s%@FFLAGS@%$FFLAGS%g
3662 s%@LDFLAGS@%$LDFLAGS%g
3664 s%@exec_prefix@%$exec_prefix%g
3665 s%@prefix@%$prefix%g
3666 s%@program_transform_name@%$program_transform_name%g
3667 s%@bindir@%$bindir%g
3668 s%@sbindir@%$sbindir%g
3669 s%@libexecdir@%$libexecdir%g
3670 s%@datadir@%$datadir%g
3671 s%@sysconfdir@%$sysconfdir%g
3672 s%@sharedstatedir@%$sharedstatedir%g
3673 s%@localstatedir@%$localstatedir%g
3674 s%@libdir@%$libdir%g
3675 s%@includedir@%$includedir%g
3676 s%@oldincludedir@%$oldincludedir%g
3677 s%@infodir@%$infodir%g
3678 s%@mandir@%$mandir%g
3679 s%@builddir@%$builddir%g
3680 s%@stepmake@%$stepmake%g
3681 s%@package@%$package%g
3682 s%@PACKAGE@%$PACKAGE%g
3683 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3684 s%@package_depth@%$package_depth%g
3685 s%@AUTOGENERATE@%$AUTOGENERATE%g
3686 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3688 s%@host_alias@%$host_alias%g
3689 s%@host_cpu@%$host_cpu%g
3690 s%@host_vendor@%$host_vendor%g
3691 s%@host_os@%$host_os%g
3696 s%@PYTHON@%$PYTHON%g
3697 s%@program_prefix@%$program_prefix%g
3698 s%@program_suffix@%$program_suffix%g
3702 s%@INSTALL@%$INSTALL%g
3703 s%@PATHSEP@%$PATHSEP%g
3704 s%@DIRSEP@%$DIRSEP%g
3705 s%@DIR_DATADIR@%$DIR_DATADIR%g
3706 s%@subdirs@%$subdirs%g
3709 s%@cross_compiling@%$cross_compiling%g
3710 s%@ICFLAGS@%$ICFLAGS%g
3711 s%@ILDFLAGS@%$ILDFLAGS%g
3712 s%@DEFINES@%$DEFINES%g
3713 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3716 s%@CXXCPP@%$CXXCPP%g
3721 s%@RANLIB@%$RANLIB%g
3722 s%@localedir@%$localedir%g
3723 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3724 s%@MSGFMT@%$MSGFMT%g
3725 s%@METAFONT@%$METAFONT%g
3727 s%@METAPOST@%$METAPOST%g
3729 s%@INIMETAFONT@%$INIMETAFONT%g
3730 s%@INIMFONT@%$INIMFONT%g
3731 s%@INIMETAPOST@%$INIMETAPOST%g
3732 s%@INIMPOST@%$INIMPOST%g
3733 s%@MFMODE@%$MFMODE%g
3734 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3735 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3736 s%@KPSEWHICH@%$KPSEWHICH%g
3737 s%@TFM_PATH@%$TFM_PATH%g
3738 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3739 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3741 s%@KPATHSEA@%$KPATHSEA%g
3742 s%@LIBOBJS@%$LIBOBJS%g
3743 s%@MAKEINFO@%$MAKEINFO%g
3744 s%@SPLITTING_MAKEINFO@%$SPLITTING_MAKEINFO%g
3750 cat >> $CONFIG_STATUS <<\EOF
3752 # Split the substitutions into bite-sized pieces for seds with
3753 # small command number limits, like on Digital OSF/1 and HP-UX.
3754 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3755 ac_file=1 # Number of current file.
3756 ac_beg=1 # First line for current file.
3757 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3760 while $ac_more_lines; do
3761 if test $ac_beg -gt 1; then
3762 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3764 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3766 if test ! -s conftest.s$ac_file; then
3768 rm -f conftest.s$ac_file
3770 if test -z "$ac_sed_cmds"; then
3771 ac_sed_cmds="sed -f conftest.s$ac_file"
3773 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3775 ac_file=`expr $ac_file + 1`
3777 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3780 if test -z "$ac_sed_cmds"; then
3785 cat >> $CONFIG_STATUS <<EOF
3787 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3789 cat >> $CONFIG_STATUS <<\EOF
3790 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3791 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3793 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3794 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3795 *) ac_file_in="${ac_file}.in" ;;
3798 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3800 # Remove last slash and all that follows it. Not all systems have dirname.
3801 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3802 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3803 # The file is in a subdirectory.
3804 test ! -d "$ac_dir" && mkdir "$ac_dir"
3805 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3806 # A "../" for each directory in $ac_dir_suffix.
3807 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3809 ac_dir_suffix= ac_dots=
3812 case "$ac_given_srcdir" in
3814 if test -z "$ac_dots"; then top_srcdir=.
3815 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3816 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3818 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3819 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3823 echo creating "$ac_file"
3825 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3827 *Makefile*) ac_comsub="1i\\
3828 # $configure_input" ;;
3832 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3834 s%@configure_input@%$configure_input%g
3835 s%@srcdir@%$srcdir%g
3836 s%@top_srcdir@%$top_srcdir%g
3837 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3841 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3842 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3844 # ac_d sets the value in "#define NAME VALUE" lines.
3845 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3846 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3849 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3850 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3851 ac_uB='\([ ]\)%\1#\2define\3'
3854 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3855 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3856 ac_eB='$%\1#\2define\3'
3860 if test "${CONFIG_HEADERS+set}" != set; then
3862 cat >> $CONFIG_STATUS <<EOF
3863 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3865 cat >> $CONFIG_STATUS <<\EOF
3867 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3868 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3870 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3871 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3872 *) ac_file_in="${ac_file}.in" ;;
3875 echo creating $ac_file
3877 rm -f conftest.frag conftest.in conftest.out
3878 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3879 cat $ac_file_inputs > conftest.in
3883 # Transform confdefs.h into a sed script conftest.vals that substitutes
3884 # the proper values into config.h.in to produce config.h. And first:
3885 # Protect against being on the right side of a sed subst in config.status.
3886 # Protect against being in an unquoted here document in config.status.
3888 cat > conftest.hdr <<\EOF
3891 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3895 sed -n -f conftest.hdr confdefs.h > conftest.vals
3898 # This sed command replaces #undef with comments. This is necessary, for
3899 # example, in the case of _POSIX_SOURCE, which is predefined and required
3900 # on some systems where configure will not decide to define it.
3901 cat >> conftest.vals <<\EOF
3902 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3905 # Break up conftest.vals because some shells have a limit on
3906 # the size of here documents, and old seds have small limits too.
3911 ac_lines=`grep -c . conftest.vals`
3912 # grep -c gives empty output for an empty file on some AIX systems.
3913 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3914 # Write a limited-size here document to conftest.frag.
3915 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3916 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3918 sed -f conftest.frag conftest.in > conftest.out
3920 mv conftest.out conftest.in
3922 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3924 mv conftest.tail conftest.vals
3928 cat >> $CONFIG_STATUS <<\EOF
3929 rm -f conftest.frag conftest.h
3930 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3931 cat conftest.in >> conftest.h
3933 if cmp -s $ac_file conftest.h 2>/dev/null; then
3934 echo "$ac_file is unchanged"
3937 # Remove last slash and all that follows it. Not all systems have dirname.
3938 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3939 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3940 # The file is in a subdirectory.
3941 test ! -d "$ac_dir" && mkdir "$ac_dir"
3944 mv conftest.h $ac_file
3949 cat >> $CONFIG_STATUS <<EOF
3952 cat >> $CONFIG_STATUS <<\EOF
3956 chmod +x $CONFIG_STATUS
3957 rm -fr confdefs* $ac_clean_files
3958 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3960 if test "$no_recursion" != yes; then
3962 # Remove --cache-file and --srcdir arguments so they do not pile up.
3963 ac_sub_configure_args=
3965 for ac_arg in $ac_configure_args; do
3966 if test -n "$ac_prev"; then
3971 -cache-file | --cache-file | --cache-fil | --cache-fi \
3972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3973 ac_prev=cache_file ;;
3974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3977 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3979 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3981 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3985 for ac_config_dir in stepmake; do
3987 # Do not complain, so a configure script can configure whichever
3988 # parts of a large source tree are present.
3989 if test ! -d $srcdir/$ac_config_dir; then
3993 echo configuring in $ac_config_dir
3998 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4000 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4008 # A "../" for each directory in /$ac_config_dir.
4009 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4012 .) # No --srcdir option. We are building in place.
4013 ac_sub_srcdir=$srcdir ;;
4014 /*) # Absolute path.
4015 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4017 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4020 # Check for guested configure; otherwise get Cygnus style configure.
4021 if test -f $ac_sub_srcdir/configure; then
4022 ac_sub_configure=$ac_sub_srcdir/configure
4023 elif test -f $ac_sub_srcdir/configure.in; then
4024 ac_sub_configure=$ac_configure
4026 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4030 # The recursion is here.
4031 if test -n "$ac_sub_configure"; then
4033 # Make the cache file name correct relative to the subdirectory.
4034 case "$cache_file" in
4035 /*) ac_sub_cache_file=$cache_file ;;
4037 ac_sub_cache_file="$ac_dots$cache_file" ;;
4040 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4041 # The eval makes quoting arguments work.
4042 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4045 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4054 # regular in-place build
4055 # test for srcdir_build = yes ?
4056 if test "$builddir" = "."; then
4057 rm -f $srcdir/GNUmakefile
4058 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
4059 chmod 444 $srcdir/GNUmakefile
4060 else # --srcdir build
4062 cp $srcdir/make/srcdir.make.in GNUmakefile
4063 chmod 444 GNUmakefile
4067 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
4072 make$mc all to build LilyPond
4073 make$mc install to install LilyPond
4074 make$mc help to see all possible targets
4076 Do not worry if ./Documentation or ./mutopia should not build.