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
1893 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1894 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1895 echo "configure:1896: checking for FlexLexer.h" >&5
1896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1899 cat > conftest.$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1902 #include <FlexLexer.h>
1904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1905 { (eval echo configure:1906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1907 if test -z "$ac_err"; then
1909 eval "ac_cv_header_$ac_safe=yes"
1912 echo "configure: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1915 eval "ac_cv_header_$ac_safe=no"
1919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1920 echo "$ac_t""yes" 1>&6
1923 echo "$ac_t""no" 1>&6
1925 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1931 CPPFLAGS="$CPPFLAGS $DEFINES"
1932 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1933 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
1941 echo $ac_n "checking "g++ version"""... $ac_c" 1>&6
1942 echo "configure:1943: checking "g++ version"" >&5
1943 cxx_version=`$CXX --version`
1944 echo "$ac_t"""$cxx_version"" 1>&6
1945 # urg, egcs: how to check for egcs >= 1.1?
1946 if expr "$cxx_version" : '.*2\.[89]' > /dev/null ||
1947 expr "$cxx_version" : '.*egcs' > /dev/null ||
1948 expr "$cxx_version" : '3\.0' > /dev/null
1953 echo "configure: warning: can\'t find g++ 2.8" 1>&2
1959 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1960 echo "configure:1961: checking whether explicit instantiation is needed" >&5
1961 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1964 cat > conftest.$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1968 template <class T> struct foo { static int baz; };
1969 template <class T> int foo<T>::baz = 1;
1972 return foo<int>::baz;
1975 if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1977 lily_cv_need_explicit_instantiation=no
1979 echo "configure: failed program was:" >&5
1980 cat conftest.$ac_ext >&5
1982 lily_cv_need_explicit_instantiation=yes
1987 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1988 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1989 cat >> confdefs.h <<\EOF
1990 #define NEED_EXPLICIT_INSTANTIATION 1
1996 # ugh, automake: we want (and check for) bison
1997 for ac_prog in 'bison -y' byacc
1999 # Extract the first word of "$ac_prog", so it can be a program name with args.
2000 set dummy $ac_prog; ac_word=$2
2001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2002 echo "configure:2003: checking for $ac_word" >&5
2003 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2006 if test -n "$YACC"; then
2007 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2011 for ac_dir in $ac_dummy; do
2012 test -z "$ac_dir" && ac_dir=.
2013 if test -f $ac_dir/$ac_word; then
2014 ac_cv_prog_YACC="$ac_prog"
2021 YACC="$ac_cv_prog_YACC"
2022 if test -n "$YACC"; then
2023 echo "$ac_t""$YACC" 1>&6
2025 echo "$ac_t""no" 1>&6
2028 test -n "$YACC" && break
2030 test -n "$YACC" || YACC="yacc"
2032 # ugh, automake: we want (and check for) flex
2034 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
2038 ac_cv_prog_lex_root=lex.yy
2040 for ac_prog in bison
2042 # Extract the first word of "$ac_prog", so it can be a program name with args.
2043 set dummy $ac_prog; ac_word=$2
2044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2045 echo "configure:2046: checking for $ac_word" >&5
2046 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 if test -n "$BISON"; then
2050 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2054 for ac_dir in $ac_dummy; do
2055 test -z "$ac_dir" && ac_dir=.
2056 if test -f $ac_dir/$ac_word; then
2057 ac_cv_prog_BISON="$ac_prog"
2064 BISON="$ac_cv_prog_BISON"
2065 if test -n "$BISON"; then
2066 echo "$ac_t""$BISON" 1>&6
2068 echo "$ac_t""no" 1>&6
2071 test -n "$BISON" && break
2073 test -n "$BISON" || BISON="error"
2077 # Extract the first word of "$ac_prog", so it can be a program name with args.
2078 set dummy $ac_prog; ac_word=$2
2079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2080 echo "configure:2081: checking for $ac_word" >&5
2081 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2084 if test -n "$FLEX"; then
2085 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2089 for ac_dir in $ac_dummy; do
2090 test -z "$ac_dir" && ac_dir=.
2091 if test -f $ac_dir/$ac_word; then
2092 ac_cv_prog_FLEX="$ac_prog"
2099 FLEX="$ac_cv_prog_FLEX"
2100 if test -n "$FLEX"; then
2101 echo "$ac_t""$FLEX" 1>&6
2103 echo "$ac_t""no" 1>&6
2106 test -n "$FLEX" && break
2108 test -n "$FLEX" || FLEX="error"
2111 result="`echo \"$BISON\" | grep echo`"
2112 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
2114 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
2120 result="`echo \"$FLEX\" | grep echo`"
2121 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
2123 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
2129 if test $BISON != "error"; then
2130 bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
2131 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
2133 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
2145 # Extract the first word of "$ac_prog", so it can be a program name with args.
2146 set dummy $ac_prog; ac_word=$2
2147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2148 echo "configure:2149: checking for $ac_word" >&5
2149 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2152 if test -n "$AR"; then
2153 ac_cv_prog_AR="$AR" # Let the user override the test.
2155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2157 for ac_dir in $ac_dummy; do
2158 test -z "$ac_dir" && ac_dir=.
2159 if test -f $ac_dir/$ac_word; then
2160 ac_cv_prog_AR="$ac_prog"
2168 if test -n "$AR"; then
2169 echo "$ac_t""$AR" 1>&6
2171 echo "$ac_t""no" 1>&6
2174 test -n "$AR" && break
2176 test -n "$AR" || AR="error"
2178 # Extract the first word of "ranlib", so it can be a program name with args.
2179 set dummy ranlib; ac_word=$2
2180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2181 echo "configure:2182: checking for $ac_word" >&5
2182 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 if test -n "$RANLIB"; then
2186 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2190 for ac_dir in $ac_dummy; do
2191 test -z "$ac_dir" && ac_dir=.
2192 if test -f $ac_dir/$ac_word; then
2193 ac_cv_prog_RANLIB="ranlib"
2198 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2201 RANLIB="$ac_cv_prog_RANLIB"
2202 if test -n "$RANLIB"; then
2203 echo "$ac_t""$RANLIB" 1>&6
2205 echo "$ac_t""no" 1>&6
2217 # Check whether --with-localedir or --without-localedir was given.
2218 if test "${with_localedir+set}" = set; then
2219 withval="$with_localedir"
2220 localedir=$with_localedir
2222 localedir='${prefix}/share/locale'
2226 # Check whether --with-lang or --without-lang was given.
2227 if test "${with_lang+set}" = set; then
2228 withval="$with_lang"
2235 echo $ac_n "checking language""... $ac_c" 1>&6
2236 echo "configure:2237: checking language" >&5
2238 En* | en* | Am* | am* | US* | us*)
2240 NL | nl | Du* | du* | Ned* | ned*)
2247 echo "$ac_t""$lang" 1>&6
2249 if test "$lang" = "unknown" ; then
2251 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2258 DIR_LOCALEDIR=${localedir}
2260 if test "$prefix" = "NONE"; then
2261 presome=${ac_default_prefix}
2263 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2266 cat >> confdefs.h <<EOF
2267 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2271 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2272 echo "configure:2273: checking for gettext in -lintl" >&5
2273 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 ac_save_LIBS="$LIBS"
2279 cat > conftest.$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2282 /* Override any gcc2 internal prototype to avoid an error. */
2286 /* We use char because int might match the return type of a gcc2
2287 builtin and then its argument prototype would still apply. */
2294 if { (eval echo configure:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2296 eval "ac_cv_lib_$ac_lib_var=yes"
2298 echo "configure: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2301 eval "ac_cv_lib_$ac_lib_var=no"
2304 LIBS="$ac_save_LIBS"
2307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2308 echo "$ac_t""yes" 1>&6
2309 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2310 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2311 cat >> confdefs.h <<EOF
2312 #define $ac_tr_lib 1
2318 echo "$ac_t""no" 1>&6
2321 for ac_func in gettext
2323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2324 echo "configure:2325: checking for $ac_func" >&5
2325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 cat > conftest.$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 /* System header to define __stub macros and hopefully few prototypes,
2332 which can conflict with char $ac_func(); below. */
2334 /* Override any gcc2 internal prototype to avoid an error. */
2338 /* We use char because int might match the return type of a gcc2
2339 builtin and then its argument prototype would still apply. */
2344 /* The GNU C library defines this for functions which it implements
2345 to always fail with ENOSYS. Some functions are actually named
2346 something starting with __ and the normal name is an alias. */
2347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2355 if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2357 eval "ac_cv_func_$ac_func=yes"
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2362 eval "ac_cv_func_$ac_func=no"
2367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2368 echo "$ac_t""yes" 1>&6
2369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2370 cat >> confdefs.h <<EOF
2371 #define $ac_tr_func 1
2375 echo "$ac_t""no" 1>&6
2381 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2382 for ac_prog in msgfmt
2384 # Extract the first word of "$ac_prog", so it can be a program name with args.
2385 set dummy $ac_prog; ac_word=$2
2386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2387 echo "configure:2388: checking for $ac_word" >&5
2388 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2391 if test -n "$MSGFMT"; then
2392 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2396 for ac_dir in $ac_dummy; do
2397 test -z "$ac_dir" && ac_dir=.
2398 if test -f $ac_dir/$ac_word; then
2399 ac_cv_prog_MSGFMT="$ac_prog"
2406 MSGFMT="$ac_cv_prog_MSGFMT"
2407 if test -n "$MSGFMT"; then
2408 echo "$ac_t""$MSGFMT" 1>&6
2410 echo "$ac_t""no" 1>&6
2413 test -n "$MSGFMT" && break
2415 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2417 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2418 echo "configure:2419: checking whether msgfmt accepts -o" >&5
2419 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2420 if test "$msgfmt_output" = ""; then
2421 echo "$ac_t""yes" 1>&6
2424 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2425 echo "$ac_t""no" 1>&6
2427 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2431 if test ! -n "$MSGFMT"; then
2433 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2439 # urg, never know what names these teTeX guys will think up
2443 # Extract the first word of "$ac_prog", so it can be a program name with args.
2444 set dummy $ac_prog; ac_word=$2
2445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2446 echo "configure:2447: checking for $ac_word" >&5
2447 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 if test -n "$METAFONT"; then
2451 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2455 for ac_dir in $ac_dummy; do
2456 test -z "$ac_dir" && ac_dir=.
2457 if test -f $ac_dir/$ac_word; then
2458 ac_cv_prog_METAFONT="$ac_prog"
2465 METAFONT="$ac_cv_prog_METAFONT"
2466 if test -n "$METAFONT"; then
2467 echo "$ac_t""$METAFONT" 1>&6
2469 echo "$ac_t""no" 1>&6
2472 test -n "$METAFONT" && break
2474 test -n "$METAFONT" || METAFONT="no"
2476 if test "x$METAFONT" = "xno"; then
2477 for ac_prog in mfont
2479 # Extract the first word of "$ac_prog", so it can be a program name with args.
2480 set dummy $ac_prog; ac_word=$2
2481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2482 echo "configure:2483: checking for $ac_word" >&5
2483 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 if test -n "$MFONT"; then
2487 ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2491 for ac_dir in $ac_dummy; do
2492 test -z "$ac_dir" && ac_dir=.
2493 if test -f $ac_dir/$ac_word; then
2494 ac_cv_prog_MFONT="$ac_prog"
2501 MFONT="$ac_cv_prog_MFONT"
2502 if test -n "$MFONT"; then
2503 echo "$ac_t""$MFONT" 1>&6
2505 echo "$ac_t""no" 1>&6
2508 test -n "$MFONT" && break
2510 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2517 # Extract the first word of "$ac_prog", so it can be a program name with args.
2518 set dummy $ac_prog; ac_word=$2
2519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2520 echo "configure:2521: checking for $ac_word" >&5
2521 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2524 if test -n "$METAPOST"; then
2525 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2529 for ac_dir in $ac_dummy; do
2530 test -z "$ac_dir" && ac_dir=.
2531 if test -f $ac_dir/$ac_word; then
2532 ac_cv_prog_METAPOST="$ac_prog"
2539 METAPOST="$ac_cv_prog_METAPOST"
2540 if test -n "$METAPOST"; then
2541 echo "$ac_t""$METAPOST" 1>&6
2543 echo "$ac_t""no" 1>&6
2546 test -n "$METAPOST" && break
2548 test -n "$METAPOST" || METAPOST="no"
2550 if test "x$METAPOST" = "xno"; then
2551 for ac_prog in mpost
2553 # Extract the first word of "$ac_prog", so it can be a program name with args.
2554 set dummy $ac_prog; ac_word=$2
2555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2556 echo "configure:2557: checking for $ac_word" >&5
2557 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 if test -n "$MPOST"; then
2561 ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2565 for ac_dir in $ac_dummy; do
2566 test -z "$ac_dir" && ac_dir=.
2567 if test -f $ac_dir/$ac_word; then
2568 ac_cv_prog_MPOST="$ac_prog"
2575 MPOST="$ac_cv_prog_MPOST"
2576 if test -n "$MPOST"; then
2577 echo "$ac_t""$MPOST" 1>&6
2579 echo "$ac_t""no" 1>&6
2582 test -n "$MPOST" && break
2584 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2590 for ac_prog in inimf
2592 # Extract the first word of "$ac_prog", so it can be a program name with args.
2593 set dummy $ac_prog; ac_word=$2
2594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2595 echo "configure:2596: checking for $ac_word" >&5
2596 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2597 echo $ac_n "(cached) $ac_c" 1>&6
2599 if test -n "$INIMETAFONT"; then
2600 ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2604 for ac_dir in $ac_dummy; do
2605 test -z "$ac_dir" && ac_dir=.
2606 if test -f $ac_dir/$ac_word; then
2607 ac_cv_prog_INIMETAFONT="$ac_prog"
2614 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2615 if test -n "$INIMETAFONT"; then
2616 echo "$ac_t""$INIMETAFONT" 1>&6
2618 echo "$ac_t""no" 1>&6
2621 test -n "$INIMETAFONT" && break
2623 test -n "$INIMETAFONT" || INIMETAFONT="no"
2625 if test "x$INIMETAFONT" = "xno"; then
2626 for ac_prog in inimfont
2628 # Extract the first word of "$ac_prog", so it can be a program name with args.
2629 set dummy $ac_prog; ac_word=$2
2630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2631 echo "configure:2632: checking for $ac_word" >&5
2632 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 if test -n "$INIMFONT"; then
2636 ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2640 for ac_dir in $ac_dummy; do
2641 test -z "$ac_dir" && ac_dir=.
2642 if test -f $ac_dir/$ac_word; then
2643 ac_cv_prog_INIMFONT="$ac_prog"
2650 INIMFONT="$ac_cv_prog_INIMFONT"
2651 if test -n "$INIMFONT"; then
2652 echo "$ac_t""$INIMFONT" 1>&6
2654 echo "$ac_t""no" 1>&6
2657 test -n "$INIMFONT" && break
2659 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2661 INIMETAFONT=$INIMFONT
2664 for ac_prog in inimp
2666 # Extract the first word of "$ac_prog", so it can be a program name with args.
2667 set dummy $ac_prog; ac_word=$2
2668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_word" >&5
2670 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 if test -n "$INIMETAPOST"; then
2674 ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test.
2676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2678 for ac_dir in $ac_dummy; do
2679 test -z "$ac_dir" && ac_dir=.
2680 if test -f $ac_dir/$ac_word; then
2681 ac_cv_prog_INIMETAPOST="$ac_prog"
2688 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2689 if test -n "$INIMETAPOST"; then
2690 echo "$ac_t""$INIMETAPOST" 1>&6
2692 echo "$ac_t""no" 1>&6
2695 test -n "$INIMETAPOST" && break
2697 test -n "$INIMETAPOST" || INIMETAPOST="no"
2699 if test "x$INIMETAPOST" = "xno"; then
2700 for ac_prog in inimpost
2702 # Extract the first word of "$ac_prog", so it can be a program name with args.
2703 set dummy $ac_prog; ac_word=$2
2704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2705 echo "configure:2706: checking for $ac_word" >&5
2706 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 if test -n "$INIMPOST"; then
2710 ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2714 for ac_dir in $ac_dummy; do
2715 test -z "$ac_dir" && ac_dir=.
2716 if test -f $ac_dir/$ac_word; then
2717 ac_cv_prog_INIMPOST="$ac_prog"
2724 INIMPOST="$ac_cv_prog_INIMPOST"
2725 if test -n "$INIMPOST"; then
2726 echo "$ac_t""$INIMPOST" 1>&6
2728 echo "$ac_t""no" 1>&6
2731 test -n "$INIMPOST" && break
2733 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2735 INIMETAPOST=$INIMPOST
2738 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2739 echo "configure:2740: checking for working metafont mode" >&5
2740 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2741 for MFMODE in $modelist; do
2742 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2743 if test -f mfput.tfm; then
2747 echo "$ac_t""$MFMODE" 1>&6
2749 echo $ac_n "checking for mfplain.mp""... $ac_c" 1>&6
2750 echo "configure:2751: checking for mfplain.mp" >&5
2752 # For now let people define these in their environments
2754 : ${MFPLAIN_MP=`kpsewhich --format mp mfplain.mp`}
2755 echo "$ac_t""$MFPLAIN_MP" 1>&6
2757 echo $ac_n "checking for inimetapost flags""... $ac_c" 1>&6
2758 echo "configure:2759: checking for inimetapost flags" >&5
2759 if test ${INIMETAPOST} = "inimp" ; then
2760 : ${INIMETAPOST_FLAGS=''}
2762 : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2764 echo "$ac_t""$INIMETAPOST_FLAGS" 1>&6
2777 # Check whether --enable-tfm-path or --disable-tfm-path was given.
2778 if test "${enable_tfm_path+set}" = set; then
2779 enableval="$enable_tfm_path"
2786 for ac_prog in kpsewhich
2788 # Extract the first word of "$ac_prog", so it can be a program name with args.
2789 set dummy $ac_prog; ac_word=$2
2790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_word" >&5
2792 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 if test -n "$KPSEWHICH"; then
2796 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2800 for ac_dir in $ac_dummy; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if test -f $ac_dir/$ac_word; then
2803 ac_cv_prog_KPSEWHICH="$ac_prog"
2810 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2811 if test -n "$KPSEWHICH"; then
2812 echo "$ac_t""$KPSEWHICH" 1>&6
2814 echo "$ac_t""no" 1>&6
2817 test -n "$KPSEWHICH" && break
2819 test -n "$KPSEWHICH" || KPSEWHICH="no"
2821 echo $ac_n "checking for tfm path""... $ac_c" 1>&6
2822 echo "configure:2823: checking for tfm path" >&5
2824 TFM_FONTS="cmr msam"
2826 if test "x$tfm_path" = xauto ; then
2827 if test "x$KPSEWHICH" != "xno" ; then
2828 for i in $TFM_FONTS; do
2829 dir=`$KPSEWHICH tfm ${i}10.tfm`
2830 TFM_PATH="$TFM_PATH `dirname $dir`"
2834 echo "configure: warning: Please specify where cmr10.tfm lives:
2835 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
2843 TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
2844 echo "$ac_t""$TFM_PATH" 1>&6
2848 ## First, let's just see if we can find Guile at all.
2849 echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6
2850 echo "configure:2851: checking "for guile-config"" >&5
2851 for guile_config in guile-config $target-guile-config $build-guile-config; do
2852 echo "$ac_t"""$guile_config"" 1>&6
2853 if ! $guile_config --version > /dev/null 2>&1 ; then
2854 echo "configure: warning: "cannot execute $guile_config"" 1>&2
2855 echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6
2856 echo "configure:2857: checking "if we are cross compiling"" >&5
2862 if test "$guile_config" = "error"; then
2863 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2866 echo $ac_n "checking "Guile version"""... $ac_c" 1>&6
2867 echo "configure:2868: checking "Guile version"" >&5
2868 need_guile_version="1.3.4"
2869 need_guile_version_numeric=100304
2870 guile_version=`$guile_config --version 2>&1 | awk '{print $NF}'`
2871 guile_version_numeric=`echo $guile_version | awk -F. '
2872 {if ($3) {last = $3}
2874 {printf "%s%s%s\n",$1*100, $2*10,last}'`
2875 echo "$ac_t"""$guile_version"" 1>&6
2876 if test $guile_version_numeric -lt $need_guile_version_numeric
2879 echo "configure: warning: "Guile version "$need_guile_version" or newer is needed"" 1>&2
2883 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
2884 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
2886 ## The GUILE_FLAGS macro.
2887 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2888 echo "configure:2889: checking for Guile" >&5
2889 if ! $guile_config link > /dev/null ; then
2890 echo "$ac_t"""cannot execute $guile_config"" 1>&6
2891 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2894 GUILE_CFLAGS="`$guile_config compile`"
2895 GUILE_LDFLAGS="`$guile_config link`"
2898 echo "$ac_t""yes" 1>&6
2900 # Extract the first word of "guile", so it can be a program name with args.
2901 set dummy guile; ac_word=$2
2902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2903 echo "configure:2904: checking for $ac_word" >&5
2904 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2909 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
2912 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
2915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2917 for ac_dir in $ac_dummy; do
2918 test -z "$ac_dir" && ac_dir=.
2919 if test -f $ac_dir/$ac_word; then
2920 ac_cv_path_GUILE="$ac_dir/$ac_word"
2925 test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error"
2929 GUILE="$ac_cv_path_GUILE"
2930 if test -n "$GUILE"; then
2931 echo "$ac_t""$GUILE" 1>&6
2933 echo "$ac_t""no" 1>&6
2937 cat >> confdefs.h <<EOF
2938 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
2941 cat >> confdefs.h <<EOF
2942 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
2949 #FIXME --with-xxx is meant for specifying a PATH too,
2950 # so this should read: --enable-kpathsea,
2951 # or --with-kpathsea-include=PATH --with-kpathsea-lib=PATH
2952 # Check whether --with-kpathsea or --without-kpathsea was given.
2953 if test "${with_kpathsea+set}" = set; then
2954 withval="$with_kpathsea"
2955 kpathsea_b=$with_kpathsea
2959 if test "$kpathsea_b" != "no"; then
2960 for ac_hdr in kpathsea/kpathsea.h
2962 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2964 echo "configure:2965: checking for $ac_hdr" >&5
2965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2966 echo $ac_n "(cached) $ac_c" 1>&6
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2974 { (eval echo configure:2975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2976 if test -z "$ac_err"; then
2978 eval "ac_cv_header_$ac_safe=yes"
2981 echo "configure: failed program was:" >&5
2982 cat conftest.$ac_ext >&5
2984 eval "ac_cv_header_$ac_safe=no"
2988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2989 echo "$ac_t""yes" 1>&6
2990 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2991 cat >> confdefs.h <<EOF
2992 #define $ac_tr_hdr 1
2996 echo "$ac_t""no" 1>&6
3000 echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
3001 echo "configure:3002: checking for kpse_find_file in -lkpathsea" >&5
3002 ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
3003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3006 ac_save_LIBS="$LIBS"
3007 LIBS="-lkpathsea $LIBS"
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3011 /* Override any gcc2 internal prototype to avoid an error. */
3015 /* We use char because int might match the return type of a gcc2
3016 builtin and then its argument prototype would still apply. */
3017 char kpse_find_file();
3023 if { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3025 eval "ac_cv_lib_$ac_lib_var=yes"
3027 echo "configure: failed program was:" >&5
3028 cat conftest.$ac_ext >&5
3030 eval "ac_cv_lib_$ac_lib_var=no"
3033 LIBS="$ac_save_LIBS"
3036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3037 echo "$ac_t""yes" 1>&6
3038 ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3039 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3040 cat >> confdefs.h <<EOF
3041 #define $ac_tr_lib 1
3044 LIBS="-lkpathsea $LIBS"
3047 echo "$ac_t""no" 1>&6
3050 for ac_func in kpse_find_file
3052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3053 echo "configure:3054: checking for $ac_func" >&5
3054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 /* System header to define __stub macros and hopefully few prototypes,
3061 which can conflict with char $ac_func(); below. */
3063 /* Override any gcc2 internal prototype to avoid an error. */
3067 /* We use char because int might match the return type of a gcc2
3068 builtin and then its argument prototype would still apply. */
3073 /* The GNU C library defines this for functions which it implements
3074 to always fail with ENOSYS. Some functions are actually named
3075 something starting with __ and the normal name is an alias. */
3076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3084 if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3086 eval "ac_cv_func_$ac_func=yes"
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3091 eval "ac_cv_func_$ac_func=no"
3096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3097 echo "$ac_t""yes" 1>&6
3098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3099 cat >> confdefs.h <<EOF
3100 #define $ac_tr_func 1
3104 echo "$ac_t""no" 1>&6
3105 { 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; }
3110 echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
3111 echo "configure:3112: checking whether to use kpathsea" >&5
3112 if test "$kpathsea_b" != no; then
3113 echo "$ac_t""yes" 1>&6
3116 echo "$ac_t""no" 1>&6
3121 cat >> confdefs.h <<EOF
3122 #define KPATHSEA $KPATHSEA
3127 for ac_prog in bibtex2html bib2html
3129 # Extract the first word of "$ac_prog", so it can be a program name with args.
3130 set dummy $ac_prog; ac_word=$2
3131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3132 echo "configure:3133: checking for $ac_word" >&5
3133 if eval "test \"`echo '$''{'ac_cv_prog_BIBTEX2HTML'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 if test -n "$BIBTEX2HTML"; then
3137 ac_cv_prog_BIBTEX2HTML="$BIBTEX2HTML" # Let the user override the test.
3139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3141 for ac_dir in $ac_dummy; do
3142 test -z "$ac_dir" && ac_dir=.
3143 if test -f $ac_dir/$ac_word; then
3144 ac_cv_prog_BIBTEX2HTML="$ac_prog"
3151 BIBTEX2HTML="$ac_cv_prog_BIBTEX2HTML"
3152 if test -n "$BIBTEX2HTML"; then
3153 echo "$ac_t""$BIBTEX2HTML" 1>&6
3155 echo "$ac_t""no" 1>&6
3158 test -n "$BIBTEX2HTML" && break
3160 test -n "$BIBTEX2HTML" || BIBTEX2HTML="error"
3162 if test "$BIBTEX2HTML" = "bib2html"; then
3163 BIBTEX2HTML_FLAGS='$< $(@)'
3165 BIBTEX2HTML_FLAGS='-o $(@D)/$(*F) $<'
3172 if test "$optimise_b" = yes; then
3173 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
3174 cat >> confdefs.h <<\EOF
3175 #define STRINGS_UTILS_INLINED 1
3182 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3183 echo "configure:3184: checking for 8-bit clean memcmp" >&5
3184 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 if test "$cross_compiling" = yes; then
3188 ac_cv_func_memcmp_clean=no
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3194 extern "C" void exit(int) throw();
3199 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3200 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3204 if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3206 ac_cv_func_memcmp_clean=yes
3208 echo "configure: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3211 ac_cv_func_memcmp_clean=no
3218 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3219 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3221 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3222 echo "configure:3223: checking for vprintf" >&5
3223 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3229 /* System header to define __stub macros and hopefully few prototypes,
3230 which can conflict with char vprintf(); below. */
3232 /* Override any gcc2 internal prototype to avoid an error. */
3236 /* We use char because int might match the return type of a gcc2
3237 builtin and then its argument prototype would still apply. */
3242 /* The GNU C library defines this for functions which it implements
3243 to always fail with ENOSYS. Some functions are actually named
3244 something starting with __ and the normal name is an alias. */
3245 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3253 if { (eval echo configure:3254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3255 eval "ac_cv_func_vprintf=yes"
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3260 eval "ac_cv_func_vprintf=no"
3265 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3266 echo "$ac_t""yes" 1>&6
3267 cat >> confdefs.h <<\EOF
3268 #define HAVE_VPRINTF 1
3272 echo "$ac_t""no" 1>&6
3275 if test "$ac_cv_func_vprintf" != yes; then
3276 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3277 echo "configure:3278: checking for _doprnt" >&5
3278 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3281 cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3284 /* System header to define __stub macros and hopefully few prototypes,
3285 which can conflict with char _doprnt(); below. */
3287 /* Override any gcc2 internal prototype to avoid an error. */
3291 /* We use char because int might match the return type of a gcc2
3292 builtin and then its argument prototype would still apply. */
3297 /* The GNU C library defines this for functions which it implements
3298 to always fail with ENOSYS. Some functions are actually named
3299 something starting with __ and the normal name is an alias. */
3300 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3308 if { (eval echo configure:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3310 eval "ac_cv_func__doprnt=yes"
3312 echo "configure: failed program was:" >&5
3313 cat conftest.$ac_ext >&5
3315 eval "ac_cv_func__doprnt=no"
3320 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3321 echo "$ac_t""yes" 1>&6
3322 cat >> confdefs.h <<\EOF
3323 #define HAVE_DOPRNT 1
3327 echo "$ac_t""no" 1>&6
3332 for ac_func in memmem snprintf vsnprintf gettext isinf
3334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3335 echo "configure:3336: checking for $ac_func" >&5
3336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 /* System header to define __stub macros and hopefully few prototypes,
3343 which can conflict with char $ac_func(); below. */
3345 /* Override any gcc2 internal prototype to avoid an error. */
3349 /* We use char because int might match the return type of a gcc2
3350 builtin and then its argument prototype would still apply. */
3355 /* The GNU C library defines this for functions which it implements
3356 to always fail with ENOSYS. Some functions are actually named
3357 something starting with __ and the normal name is an alias. */
3358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3366 if { (eval echo configure:3367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3368 eval "ac_cv_func_$ac_func=yes"
3370 echo "configure: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3373 eval "ac_cv_func_$ac_func=no"
3378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3379 echo "$ac_t""yes" 1>&6
3380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3381 cat >> confdefs.h <<EOF
3382 #define $ac_tr_func 1
3386 echo "$ac_t""no" 1>&6
3391 cat >> confdefs.h <<EOF
3392 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3395 cat >> confdefs.h <<EOF
3396 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3401 for ac_prog in makeinfo
3403 # Extract the first word of "$ac_prog", so it can be a program name with args.
3404 set dummy $ac_prog; ac_word=$2
3405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_word" >&5
3407 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 if test -n "$MAKEINFO"; then
3411 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3415 for ac_dir in $ac_dummy; do
3416 test -z "$ac_dir" && ac_dir=.
3417 if test -f $ac_dir/$ac_word; then
3418 ac_cv_prog_MAKEINFO="$ac_prog"
3425 MAKEINFO="$ac_cv_prog_MAKEINFO"
3426 if test -n "$MAKEINFO"; then
3427 echo "$ac_t""$MAKEINFO" 1>&6
3429 echo "$ac_t""no" 1>&6
3432 test -n "$MAKEINFO" && break
3434 test -n "$MAKEINFO" || MAKEINFO="error"
3436 if test "$MAKEINFO" != "error"; then
3437 echo $ac_n "checking whether makeinfo can split html by @node""... $ac_c" 1>&6
3438 echo "configure:3439: checking whether makeinfo can split html by @node" >&5
3440 makeinfo --html --output=out/split <<EOF
3442 \input texinfo @c -*-texinfo-*-
3443 @setfilename split.info
3444 @settitle split.info
3447 if test -d out/split; then
3448 SPLITTING_MAKEINFO=yes
3449 echo "$ac_t""yes" 1>&6
3452 echo "$ac_t""no" 1>&6
3454 echo "configure: warning: your html documentation will be one large file" 1>&2
3463 # Extract the first word of "perl", so it can be a program name with args.
3464 set dummy perl; ac_word=$2
3465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3466 echo "configure:3467: checking for $ac_word" >&5
3467 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3472 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3475 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3480 for ac_dir in $ac_dummy; do
3481 test -z "$ac_dir" && ac_dir=.
3482 if test -f $ac_dir/$ac_word; then
3483 ac_cv_path_PERL="$ac_dir/$ac_word"
3488 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
3492 PERL="$ac_cv_path_PERL"
3493 if test -n "$PERL"; then
3494 echo "$ac_t""$PERL" 1>&6
3496 echo "$ac_t""no" 1>&6
3500 for ac_hdr in python2.1/Python.h python2.0/Python.h python2/Python.h python/Python.h python1.5/Python.h Python.h
3502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3504 echo "configure:3505: checking for $ac_hdr" >&5
3505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3508 cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3514 { (eval echo configure:3515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3516 if test -z "$ac_err"; then
3518 eval "ac_cv_header_$ac_safe=yes"
3521 echo "configure: failed program was:" >&5
3522 cat conftest.$ac_ext >&5
3524 eval "ac_cv_header_$ac_safe=no"
3528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3529 echo "$ac_t""yes" 1>&6
3530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3531 cat >> confdefs.h <<EOF
3532 #define $ac_tr_hdr 1
3536 echo "$ac_t""no" 1>&6
3544 cat > confcache <<\EOF
3545 # This file is a shell script that caches the results of configure
3546 # tests run on this system so they can be shared between configure
3547 # scripts and configure runs. It is not useful on other systems.
3548 # If it contains results you don't want to keep, you may remove or edit it.
3550 # By default, configure uses ./config.cache as the cache file,
3551 # creating it if it does not exist already. You can give configure
3552 # the --cache-file=FILE option to use a different cache file; that is
3553 # what configure does when it calls configure scripts in
3554 # subdirectories, so they share the cache.
3555 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3556 # config.status only pays attention to the cache file if you give it the
3557 # --recheck option to rerun configure.
3560 # The following way of writing the cache mishandles newlines in values,
3561 # but we know of no workaround that is simple, portable, and efficient.
3562 # So, don't put newlines in cache variables' values.
3563 # Ultrix sh set writes to stderr and can't be redirected directly,
3564 # and sets the high bit in the cache file unless we assign to the vars.
3566 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3568 # `set' does not quote correctly, so add quotes (double-quote substitution
3569 # turns \\\\ into \\, and sed turns \\ into \).
3571 -e "s/'/'\\\\''/g" \
3572 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3575 # `set' quotes correctly as required by POSIX, so do not add quotes.
3576 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3579 if cmp -s $cache_file confcache; then
3582 if test -w $cache_file; then
3583 echo "updating cache $cache_file"
3584 cat confcache > $cache_file
3586 echo "not updating unwritable cache $cache_file"
3591 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3593 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3594 # Let make expand exec_prefix.
3595 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3597 # Any assignment to VPATH causes Sun make to only execute
3598 # the first set of double-colon rules, so remove it if not needed.
3599 # If there is a colon in the path, we need to keep it.
3600 if test "x$srcdir" = x.; then
3601 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3604 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3606 DEFS=-DHAVE_CONFIG_H
3608 # Without the "./", some shells look in PATH for config.status.
3609 : ${CONFIG_STATUS=./config.status}
3611 echo creating $CONFIG_STATUS
3612 rm -f $CONFIG_STATUS
3613 cat > $CONFIG_STATUS <<EOF
3615 # Generated automatically by configure.
3616 # Run this file to recreate the current configuration.
3617 # This directory was configured as follows,
3618 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3620 # $0 $ac_configure_args
3622 # Compiler output produced by configure, useful for debugging
3623 # configure, is in ./config.log if it exists.
3625 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3628 case "\$ac_option" in
3629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3630 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3631 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3632 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3633 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3635 -help | --help | --hel | --he | --h)
3636 echo "\$ac_cs_usage"; exit 0 ;;
3637 *) echo "\$ac_cs_usage"; exit 1 ;;
3641 ac_given_srcdir=$srcdir
3643 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3645 cat >> $CONFIG_STATUS <<EOF
3647 # Protect against being on the right side of a sed subst in config.status.
3648 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3649 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3653 s%@CFLAGS@%$CFLAGS%g
3654 s%@CPPFLAGS@%$CPPFLAGS%g
3655 s%@CXXFLAGS@%$CXXFLAGS%g
3656 s%@FFLAGS@%$FFLAGS%g
3658 s%@LDFLAGS@%$LDFLAGS%g
3660 s%@exec_prefix@%$exec_prefix%g
3661 s%@prefix@%$prefix%g
3662 s%@program_transform_name@%$program_transform_name%g
3663 s%@bindir@%$bindir%g
3664 s%@sbindir@%$sbindir%g
3665 s%@libexecdir@%$libexecdir%g
3666 s%@datadir@%$datadir%g
3667 s%@sysconfdir@%$sysconfdir%g
3668 s%@sharedstatedir@%$sharedstatedir%g
3669 s%@localstatedir@%$localstatedir%g
3670 s%@libdir@%$libdir%g
3671 s%@includedir@%$includedir%g
3672 s%@oldincludedir@%$oldincludedir%g
3673 s%@infodir@%$infodir%g
3674 s%@mandir@%$mandir%g
3675 s%@builddir@%$builddir%g
3676 s%@stepmake@%$stepmake%g
3677 s%@package@%$package%g
3678 s%@PACKAGE@%$PACKAGE%g
3679 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3680 s%@package_depth@%$package_depth%g
3681 s%@AUTOGENERATE@%$AUTOGENERATE%g
3682 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3684 s%@host_alias@%$host_alias%g
3685 s%@host_cpu@%$host_cpu%g
3686 s%@host_vendor@%$host_vendor%g
3687 s%@host_os@%$host_os%g
3692 s%@PYTHON@%$PYTHON%g
3693 s%@program_prefix@%$program_prefix%g
3694 s%@program_suffix@%$program_suffix%g
3698 s%@INSTALL@%$INSTALL%g
3699 s%@PATHSEP@%$PATHSEP%g
3700 s%@DIRSEP@%$DIRSEP%g
3701 s%@DIR_DATADIR@%$DIR_DATADIR%g
3702 s%@subdirs@%$subdirs%g
3705 s%@cross_compiling@%$cross_compiling%g
3706 s%@ICFLAGS@%$ICFLAGS%g
3707 s%@ILDFLAGS@%$ILDFLAGS%g
3708 s%@DEFINES@%$DEFINES%g
3709 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3712 s%@CXXCPP@%$CXXCPP%g
3717 s%@RANLIB@%$RANLIB%g
3718 s%@localedir@%$localedir%g
3719 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3720 s%@MSGFMT@%$MSGFMT%g
3721 s%@METAFONT@%$METAFONT%g
3723 s%@METAPOST@%$METAPOST%g
3725 s%@INIMETAFONT@%$INIMETAFONT%g
3726 s%@INIMFONT@%$INIMFONT%g
3727 s%@INIMETAPOST@%$INIMETAPOST%g
3728 s%@INIMPOST@%$INIMPOST%g
3729 s%@MFMODE@%$MFMODE%g
3730 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3731 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3732 s%@KPSEWHICH@%$KPSEWHICH%g
3733 s%@TFM_PATH@%$TFM_PATH%g
3734 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3735 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3737 s%@KPATHSEA@%$KPATHSEA%g
3738 s%@BIBTEX2HTML@%$BIBTEX2HTML%g
3739 s%@BIBTEX2HTML_FLAGS@%$BIBTEX2HTML_FLAGS%g
3740 s%@LIBOBJS@%$LIBOBJS%g
3741 s%@MAKEINFO@%$MAKEINFO%g
3742 s%@SPLITTING_MAKEINFO@%$SPLITTING_MAKEINFO%g
3748 cat >> $CONFIG_STATUS <<\EOF
3750 # Split the substitutions into bite-sized pieces for seds with
3751 # small command number limits, like on Digital OSF/1 and HP-UX.
3752 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3753 ac_file=1 # Number of current file.
3754 ac_beg=1 # First line for current file.
3755 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3758 while $ac_more_lines; do
3759 if test $ac_beg -gt 1; then
3760 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3762 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3764 if test ! -s conftest.s$ac_file; then
3766 rm -f conftest.s$ac_file
3768 if test -z "$ac_sed_cmds"; then
3769 ac_sed_cmds="sed -f conftest.s$ac_file"
3771 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3773 ac_file=`expr $ac_file + 1`
3775 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3778 if test -z "$ac_sed_cmds"; then
3783 cat >> $CONFIG_STATUS <<EOF
3785 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3787 cat >> $CONFIG_STATUS <<\EOF
3788 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3791 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3792 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3793 *) ac_file_in="${ac_file}.in" ;;
3796 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3798 # Remove last slash and all that follows it. Not all systems have dirname.
3799 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3800 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3801 # The file is in a subdirectory.
3802 test ! -d "$ac_dir" && mkdir "$ac_dir"
3803 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3804 # A "../" for each directory in $ac_dir_suffix.
3805 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3807 ac_dir_suffix= ac_dots=
3810 case "$ac_given_srcdir" in
3812 if test -z "$ac_dots"; then top_srcdir=.
3813 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3814 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3816 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3817 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3821 echo creating "$ac_file"
3823 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3825 *Makefile*) ac_comsub="1i\\
3826 # $configure_input" ;;
3830 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3832 s%@configure_input@%$configure_input%g
3833 s%@srcdir@%$srcdir%g
3834 s%@top_srcdir@%$top_srcdir%g
3835 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3839 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3840 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3842 # ac_d sets the value in "#define NAME VALUE" lines.
3843 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3844 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3847 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3848 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3849 ac_uB='\([ ]\)%\1#\2define\3'
3852 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3853 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3854 ac_eB='$%\1#\2define\3'
3858 if test "${CONFIG_HEADERS+set}" != set; then
3860 cat >> $CONFIG_STATUS <<EOF
3861 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3863 cat >> $CONFIG_STATUS <<\EOF
3865 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3866 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3868 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3869 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3870 *) ac_file_in="${ac_file}.in" ;;
3873 echo creating $ac_file
3875 rm -f conftest.frag conftest.in conftest.out
3876 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3877 cat $ac_file_inputs > conftest.in
3881 # Transform confdefs.h into a sed script conftest.vals that substitutes
3882 # the proper values into config.h.in to produce config.h. And first:
3883 # Protect against being on the right side of a sed subst in config.status.
3884 # Protect against being in an unquoted here document in config.status.
3886 cat > conftest.hdr <<\EOF
3889 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3893 sed -n -f conftest.hdr confdefs.h > conftest.vals
3896 # This sed command replaces #undef with comments. This is necessary, for
3897 # example, in the case of _POSIX_SOURCE, which is predefined and required
3898 # on some systems where configure will not decide to define it.
3899 cat >> conftest.vals <<\EOF
3900 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3903 # Break up conftest.vals because some shells have a limit on
3904 # the size of here documents, and old seds have small limits too.
3909 ac_lines=`grep -c . conftest.vals`
3910 # grep -c gives empty output for an empty file on some AIX systems.
3911 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3912 # Write a limited-size here document to conftest.frag.
3913 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3914 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3916 sed -f conftest.frag conftest.in > conftest.out
3918 mv conftest.out conftest.in
3920 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3922 mv conftest.tail conftest.vals
3926 cat >> $CONFIG_STATUS <<\EOF
3927 rm -f conftest.frag conftest.h
3928 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3929 cat conftest.in >> conftest.h
3931 if cmp -s $ac_file conftest.h 2>/dev/null; then
3932 echo "$ac_file is unchanged"
3935 # Remove last slash and all that follows it. Not all systems have dirname.
3936 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3937 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3938 # The file is in a subdirectory.
3939 test ! -d "$ac_dir" && mkdir "$ac_dir"
3942 mv conftest.h $ac_file
3947 cat >> $CONFIG_STATUS <<EOF
3950 cat >> $CONFIG_STATUS <<\EOF
3954 chmod +x $CONFIG_STATUS
3955 rm -fr confdefs* $ac_clean_files
3956 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3958 if test "$no_recursion" != yes; then
3960 # Remove --cache-file and --srcdir arguments so they do not pile up.
3961 ac_sub_configure_args=
3963 for ac_arg in $ac_configure_args; do
3964 if test -n "$ac_prev"; then
3969 -cache-file | --cache-file | --cache-fil | --cache-fi \
3970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3971 ac_prev=cache_file ;;
3972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3975 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3977 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3979 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3983 for ac_config_dir in stepmake; do
3985 # Do not complain, so a configure script can configure whichever
3986 # parts of a large source tree are present.
3987 if test ! -d $srcdir/$ac_config_dir; then
3991 echo configuring in $ac_config_dir
3996 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3998 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4006 # A "../" for each directory in /$ac_config_dir.
4007 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4010 .) # No --srcdir option. We are building in place.
4011 ac_sub_srcdir=$srcdir ;;
4012 /*) # Absolute path.
4013 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4015 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4018 # Check for guested configure; otherwise get Cygnus style configure.
4019 if test -f $ac_sub_srcdir/configure; then
4020 ac_sub_configure=$ac_sub_srcdir/configure
4021 elif test -f $ac_sub_srcdir/configure.in; then
4022 ac_sub_configure=$ac_configure
4024 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4028 # The recursion is here.
4029 if test -n "$ac_sub_configure"; then
4031 # Make the cache file name correct relative to the subdirectory.
4032 case "$cache_file" in
4033 /*) ac_sub_cache_file=$cache_file ;;
4035 ac_sub_cache_file="$ac_dots$cache_file" ;;
4038 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4039 # The eval makes quoting arguments work.
4040 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4043 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4052 # regular in-place build
4053 # test for srcdir_build = yes ?
4054 if test "$builddir" = "."; then
4055 rm -f $srcdir/GNUmakefile
4056 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
4057 chmod 444 $srcdir/GNUmakefile
4058 else # --srcdir build
4060 cp $srcdir/make/srcdir.make.in GNUmakefile
4061 chmod 444 GNUmakefile
4065 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
4070 make$mc all to build LilyPond
4071 make$mc install to install LilyPond
4072 make$mc help to see all possible targets
4074 Do not worry if ./Documentation or ./mutopia should not build.