3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 enable-printing turn on debug printing. Default: off"
17 enable-checking set runtime checks (assert calls). Default: on"
19 enable-debugging set debug info. Default: on"
21 enable-optimise use maximal speed optimisations. Default: off"
23 enable-profiling compile with gprof support. Default: off"
25 enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
27 enable-tex-prefix=DIR set the tex-directory to find TeX subdirectories. (default: PREFIX)"
29 enable-tex-dir=DIR set the directory to put LilyPond TeX files in. "
31 enable-mf-dir=DIR set the directory to put LilyPond MetaFont files in. "
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file=./config.cache
46 program_transform_name=s,x,x,
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
67 # Initialize some other variables.
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.12"
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=flower/choleski.cc
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='\c' ac_t=
541 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
542 if test x$MY_PATCH_LEVEL != x; then
543 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
546 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
547 if test -f $ac_dir/install-sh; then
549 ac_install_sh="$ac_aux_dir/install-sh -c"
551 elif test -f $ac_dir/install.sh; then
553 ac_install_sh="$ac_aux_dir/install.sh -c"
557 if test -z "$ac_aux_dir"; then
558 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
560 ac_config_guess=$ac_aux_dir/config.guess
561 ac_config_sub=$ac_aux_dir/config.sub
562 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
564 # Find a good install program. We prefer a C program (faster),
565 # so one script is as good as another. But avoid the broken or
566 # incompatible versions:
567 # SysV /etc/install, /usr/sbin/install
568 # SunOS /usr/etc/install
571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
573 # ./install, which can be erroneously created by make from ./install.sh.
574 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
575 echo "configure:576: checking for a BSD compatible install" >&5
576 if test -z "$INSTALL"; then
577 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
578 echo $ac_n "(cached) $ac_c" 1>&6
580 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
581 for ac_dir in $PATH; do
582 # Account for people who put trailing slashes in PATH elements.
584 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
586 # OSF1 and SCO ODT 3.0 have their own names for install.
587 for ac_prog in ginstall installbsd scoinst install; do
588 if test -f $ac_dir/$ac_prog; then
589 if test $ac_prog = install &&
590 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
591 # AIX install. It has an incompatible calling convention.
592 # OSF/1 installbsd also uses dspmsg, but is usable.
595 ac_cv_path_install="$ac_dir/$ac_prog -c"
606 if test "${ac_cv_path_install+set}" = set; then
607 INSTALL="$ac_cv_path_install"
609 # As a last resort, use the slow shell script. We don't cache a
610 # path for INSTALL within a source directory, because that will
611 # break other packages using the cache if that directory is
612 # removed, or if the path is relative.
613 INSTALL="$ac_install_sh"
616 echo "$ac_t""$INSTALL" 1>&6
618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
619 # It thinks the first close brace ends the variable substitution.
620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
622 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
625 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
630 VERSION=$FULL_VERSION
632 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
633 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
635 cat >> confdefs.h <<EOF
636 #define PACKAGE "$PACKAGE"
639 cat >> confdefs.h <<EOF
640 #define VERSION "$VERSION"
643 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
644 echo "configure:645: checking whether build environment is sane" >&5
647 echo timestamp > conftestfile
648 # Do `set' in a subshell so we don't clobber the current shell's
649 # arguments. Must try -L first in case configure is actually a
650 # symlink; some systems play weird games with the mod time of symlinks
651 # (eg FreeBSD returns the mod time of the symlink's containing
654 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
655 if test "" = "X"; then
657 set X `ls -t $srcdir/configure conftestfile`
659 test "$2" = conftestfile
665 { echo "configure: error: newly created file is older than distributed files!
666 Check your system clock" 1>&2; exit 1; }
669 echo "$ac_t""yes" 1>&6
670 if test "$program_transform_name" = s,x,x,; then
671 program_transform_name=
673 # Double any \ or $. echo might interpret backslashes.
674 cat <<\EOF_SED > conftestsed
675 s,\\,\\\\,g; s,\$,$$,g
677 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
680 test "$program_prefix" != NONE &&
681 program_transform_name="s,^,${program_prefix},; $program_transform_name"
682 # Use a double $ so make ignores it.
683 test "$program_suffix" != NONE &&
684 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
686 # sed with no file args requires a program.
687 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
689 missing_dir=`cd $ac_aux_dir && pwd`
690 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
691 echo "configure:692: checking for working aclocal" >&5
692 # Run test in a subshell; some versions of sh will print an error if
693 # an executable is not found, even if stderr is redirected.
694 # Redirect stdin to placate older versions of autoconf. Sigh.
695 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
697 echo "$ac_t""found" 1>&6
699 ACLOCAL="$missing_dir/missing aclocal"
700 echo "$ac_t""missing" 1>&6
703 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
704 echo "configure:705: checking for working autoconf" >&5
705 # Run test in a subshell; some versions of sh will print an error if
706 # an executable is not found, even if stderr is redirected.
707 # Redirect stdin to placate older versions of autoconf. Sigh.
708 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
710 echo "$ac_t""found" 1>&6
712 AUTOCONF="$missing_dir/missing autoconf"
713 echo "$ac_t""missing" 1>&6
716 echo $ac_n "checking for working automake""... $ac_c" 1>&6
717 echo "configure:718: checking for working automake" >&5
718 # Run test in a subshell; some versions of sh will print an error if
719 # an executable is not found, even if stderr is redirected.
720 # Redirect stdin to placate older versions of autoconf. Sigh.
721 if (automake --version) < /dev/null > /dev/null 2>&1; then
723 echo "$ac_t""found" 1>&6
725 AUTOMAKE="$missing_dir/missing automake"
726 echo "$ac_t""missing" 1>&6
729 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
730 echo "configure:731: checking for working autoheader" >&5
731 # Run test in a subshell; some versions of sh will print an error if
732 # an executable is not found, even if stderr is redirected.
733 # Redirect stdin to placate older versions of autoconf. Sigh.
734 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
735 AUTOHEADER=autoheader
736 echo "$ac_t""found" 1>&6
738 AUTOHEADER="$missing_dir/missing autoheader"
739 echo "$ac_t""missing" 1>&6
742 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
743 echo "configure:744: checking for working makeinfo" >&5
744 # Run test in a subshell; some versions of sh will print an error if
745 # an executable is not found, even if stderr is redirected.
746 # Redirect stdin to placate older versions of autoconf. Sigh.
747 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
749 echo "$ac_t""found" 1>&6
751 MAKEINFO="$missing_dir/missing makeinfo"
752 echo "$ac_t""missing" 1>&6
755 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
756 echo "configure:757: checking whether ${MAKE-make} sets \${MAKE}" >&5
757 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
758 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 cat > conftestmake <<\EOF
763 @echo 'ac_maketemp="${MAKE}"'
765 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
766 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
767 if test -n "$ac_maketemp"; then
768 eval ac_cv_prog_make_${ac_make}_set=yes
770 eval ac_cv_prog_make_${ac_make}_set=no
774 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
775 echo "$ac_t""yes" 1>&6
778 echo "$ac_t""no" 1>&6
779 SET_MAKE="MAKE=${MAKE-make}"
783 # Extract the first word of "gcc", so it can be a program name with args.
784 set dummy gcc; ac_word=$2
785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786 echo "configure:787: checking for $ac_word" >&5
787 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
788 echo $ac_n "(cached) $ac_c" 1>&6
790 if test -n "$CC"; then
791 ac_cv_prog_CC="$CC" # Let the user override the test.
793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
794 for ac_dir in $PATH; do
795 test -z "$ac_dir" && ac_dir=.
796 if test -f $ac_dir/$ac_word; then
805 if test -n "$CC"; then
806 echo "$ac_t""$CC" 1>&6
808 echo "$ac_t""no" 1>&6
811 if test -z "$CC"; then
812 # Extract the first word of "cc", so it can be a program name with args.
813 set dummy cc; ac_word=$2
814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
815 echo "configure:816: checking for $ac_word" >&5
816 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
819 if test -n "$CC"; then
820 ac_cv_prog_CC="$CC" # Let the user override the test.
822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
824 for ac_dir in $PATH; do
825 test -z "$ac_dir" && ac_dir=.
826 if test -f $ac_dir/$ac_word; then
827 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
836 if test $ac_prog_rejected = yes; then
837 # We found a bogon in the path, so make sure we never use it.
838 set dummy $ac_cv_prog_CC
840 if test $# -gt 0; then
841 # We chose a different compiler from the bogus one.
842 # However, it has the same basename, so the bogon will be chosen
843 # first if we set CC to just the basename; use the full file name.
845 set dummy "$ac_dir/$ac_word" "$@"
853 if test -n "$CC"; then
854 echo "$ac_t""$CC" 1>&6
856 echo "$ac_t""no" 1>&6
859 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
862 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
863 echo "configure:864: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
867 ac_cpp='$CPP $CPPFLAGS'
868 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
869 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
870 cross_compiling=$ac_cv_prog_cc_cross
872 cat > conftest.$ac_ext <<EOF
873 #line 874 "configure"
874 #include "confdefs.h"
877 if { (eval echo configure:878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
878 ac_cv_prog_cc_works=yes
879 # If we can't run a trivial program, we are probably using a cross compiler.
880 if (./conftest; exit) 2>/dev/null; then
881 ac_cv_prog_cc_cross=no
883 ac_cv_prog_cc_cross=yes
886 echo "configure: failed program was:" >&5
887 cat conftest.$ac_ext >&5
888 ac_cv_prog_cc_works=no
892 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
893 if test $ac_cv_prog_cc_works = no; then
894 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
897 echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
898 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
899 cross_compiling=$ac_cv_prog_cc_cross
901 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
902 echo "configure:903: checking whether we are using GNU C" >&5
903 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 cat > conftest.c <<EOF
911 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
918 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
920 if test $ac_cv_prog_gcc = yes; then
922 ac_test_CFLAGS="${CFLAGS+set}"
923 ac_save_CFLAGS="$CFLAGS"
925 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
926 echo "configure:927: checking whether ${CC-cc} accepts -g" >&5
927 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 echo 'void f(){}' > conftest.c
931 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
940 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
941 if test "$ac_test_CFLAGS" = set; then
942 CFLAGS="$ac_save_CFLAGS"
943 elif test $ac_cv_prog_cc_g = yes; then
950 test "${CFLAGS+set}" = set || CFLAGS="-g"
953 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
955 # Extract the first word of "$ac_prog", so it can be a program name with args.
956 set dummy $ac_prog; ac_word=$2
957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
958 echo "configure:959: checking for $ac_word" >&5
959 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 if test -n "$CXX"; then
963 ac_cv_prog_CXX="$CXX" # Let the user override the test.
965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
966 for ac_dir in $PATH; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_CXX="$ac_prog"
976 CXX="$ac_cv_prog_CXX"
977 if test -n "$CXX"; then
978 echo "$ac_t""$CXX" 1>&6
980 echo "$ac_t""no" 1>&6
983 test -n "$CXX" && break
985 test -n "$CXX" || CXX="gcc"
988 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
989 echo "configure:990: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
992 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
993 ac_cpp='$CXXCPP $CPPFLAGS'
994 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
995 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
996 cross_compiling=$ac_cv_prog_cxx_cross
998 cat > conftest.$ac_ext <<EOF
999 #line 1000 "configure"
1000 #include "confdefs.h"
1003 if { (eval echo configure:1004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1004 ac_cv_prog_cxx_works=yes
1005 # If we can't run a trivial program, we are probably using a cross compiler.
1006 if (./conftest; exit) 2>/dev/null; then
1007 ac_cv_prog_cxx_cross=no
1009 ac_cv_prog_cxx_cross=yes
1012 echo "configure: failed program was:" >&5
1013 cat conftest.$ac_ext >&5
1014 ac_cv_prog_cxx_works=no
1018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1019 ac_cpp='$CPP $CPPFLAGS'
1020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1021 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1022 cross_compiling=$ac_cv_prog_cc_cross
1024 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1025 if test $ac_cv_prog_cxx_works = no; then
1026 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1028 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1029 echo "configure:1030: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1030 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1031 cross_compiling=$ac_cv_prog_cxx_cross
1033 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1034 echo "configure:1035: checking whether we are using GNU C++" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 cat > conftest.C <<EOF
1043 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1050 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1052 if test $ac_cv_prog_gxx = yes; then
1054 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1055 ac_save_CXXFLAGS="$CXXFLAGS"
1057 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1058 echo "configure:1059: checking whether ${CXX-g++} accepts -g" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 echo 'void f(){}' > conftest.cc
1063 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1064 ac_cv_prog_cxx_g=yes
1072 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1073 if test "$ac_test_CXXFLAGS" = set; then
1074 CXXFLAGS="$ac_save_CXXFLAGS"
1075 elif test $ac_cv_prog_cxx_g = yes; then
1082 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1085 # Extract the first word of "ranlib", so it can be a program name with args.
1086 set dummy ranlib; ac_word=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 if test -n "$RANLIB"; then
1093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1096 for ac_dir in $PATH; do
1097 test -z "$ac_dir" && ac_dir=.
1098 if test -f $ac_dir/$ac_word; then
1099 ac_cv_prog_RANLIB="ranlib"
1104 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1107 RANLIB="$ac_cv_prog_RANLIB"
1108 if test -n "$RANLIB"; then
1109 echo "$ac_t""$RANLIB" 1>&6
1111 echo "$ac_t""no" 1>&6
1115 # ugh, automake: we want (and check for) bison
1116 for ac_prog in 'bison -y' byacc
1118 # Extract the first word of "$ac_prog", so it can be a program name with args.
1119 set dummy $ac_prog; ac_word=$2
1120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1121 echo "configure:1122: checking for $ac_word" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1125 if test -n "$YACC"; then
1126 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1129 for ac_dir in $PATH; do
1130 test -z "$ac_dir" && ac_dir=.
1131 if test -f $ac_dir/$ac_word; then
1132 ac_cv_prog_YACC="$ac_prog"
1139 YACC="$ac_cv_prog_YACC"
1140 if test -n "$YACC"; then
1141 echo "$ac_t""$YACC" 1>&6
1143 echo "$ac_t""no" 1>&6
1146 test -n "$YACC" && break
1148 test -n "$YACC" || YACC="yacc"
1151 # ugh, automake: we want (and check for) flex
1152 # Extract the first word of "flex", so it can be a program name with args.
1153 set dummy flex; ac_word=$2
1154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1155 echo "configure:1156: checking for $ac_word" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 if test -n "$LEX"; then
1160 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1163 for ac_dir in $PATH; do
1164 test -z "$ac_dir" && ac_dir=.
1165 if test -f $ac_dir/$ac_word; then
1166 ac_cv_prog_LEX="flex"
1171 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1174 LEX="$ac_cv_prog_LEX"
1175 if test -n "$LEX"; then
1176 echo "$ac_t""$LEX" 1>&6
1178 echo "$ac_t""no" 1>&6
1181 if test -z "$LEXLIB"
1187 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1188 echo "configure:1189: checking for yywrap in -l$ac_lib" >&5
1189 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 ac_save_LIBS="$LIBS"
1194 LIBS="-l$ac_lib $LIBS"
1195 cat > conftest.$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1198 /* Override any gcc2 internal prototype to avoid an error. */
1199 /* We use char because int might match the return type of a gcc2
1200 builtin and then its argument prototype would still apply. */
1207 if { (eval echo configure:1208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1209 eval "ac_cv_lib_$ac_lib_var=yes"
1211 echo "configure: failed program was:" >&5
1212 cat conftest.$ac_ext >&5
1214 eval "ac_cv_lib_$ac_lib_var=no"
1217 LIBS="$ac_save_LIBS"
1220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1221 echo "$ac_t""yes" 1>&6
1224 echo "$ac_t""no" 1>&6
1230 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1231 echo "configure:1232: checking how to run the C preprocessor" >&5
1232 # On Suns, sometimes $CPP names a directory.
1233 if test -n "$CPP" && test -d "$CPP"; then
1236 if test -z "$CPP"; then
1237 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 # This must be in double quotes, not single quotes, because CPP may get
1241 # substituted into the Makefile and "${CC-cc}" will confuse make.
1243 # On the NeXT, cc -E runs the code through the compiler's parser,
1244 # not just through cpp.
1245 cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1252 { (eval echo configure:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1253 ac_err=`grep -v '^ *+' conftest.out`
1254 if test -z "$ac_err"; then
1258 echo "configure: failed program was:" >&5
1259 cat conftest.$ac_ext >&5
1261 CPP="${CC-cc} -E -traditional-cpp"
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1269 { (eval echo configure:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1270 ac_err=`grep -v '^ *+' conftest.out`
1271 if test -z "$ac_err"; then
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1283 ac_cv_prog_CPP="$CPP"
1285 CPP="$ac_cv_prog_CPP"
1287 ac_cv_prog_CPP="$CPP"
1289 echo "$ac_t""$CPP" 1>&6
1291 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1292 echo "configure:1293: checking lex output file root" >&5
1293 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 # The minimal lex program is just a single line: %%. But some broken lexes
1297 # (Solaris, I think it was) want two %% lines, so accommodate them.
1300 if test -f lex.yy.c; then
1301 ac_cv_prog_lex_root=lex.yy
1302 elif test -f lexyy.c; then
1303 ac_cv_prog_lex_root=lexyy
1305 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1309 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1310 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1312 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1313 echo "configure:1314: checking whether yytext is a pointer" >&5
1314 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 # POSIX says lex can declare yytext either as a pointer or an array; the
1318 # default is implementation-dependent. Figure out which it is, since
1319 # not all implementations provide the %pointer and %array declarations.
1320 ac_cv_prog_lex_yytext_pointer=no
1321 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1322 ac_save_LIBS="$LIBS"
1323 LIBS="$LIBS $LEXLIB"
1324 cat > conftest.$ac_ext <<EOF
1325 #line 1326 "configure"
1326 #include "confdefs.h"
1327 `cat $LEX_OUTPUT_ROOT.c`
1332 if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1334 ac_cv_prog_lex_yytext_pointer=yes
1336 echo "configure: failed program was:" >&5
1337 cat conftest.$ac_ext >&5
1340 LIBS="$ac_save_LIBS"
1341 rm -f "${LEX_OUTPUT_ROOT}.c"
1345 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1346 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1347 cat >> confdefs.h <<\EOF
1348 #define YYTEXT_POINTER 1
1354 ac_cv_prog_lex_root=lex.yy
1356 missing_dir=`cd $ac_aux_dir && pwd`
1358 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1359 echo "configure:1360: checking for working aclocal" >&5
1360 # Run test in a subshell; some versions of sh will print an error if
1361 # an executable is not found, even if stderr is redirected.
1362 # Redirect stdin to placate older versions of autoconf. Sigh.
1363 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1365 echo "$ac_t""found" 1>&6
1367 ACLOCAL="$missing_dir/missing aclocal"
1368 echo "$ac_t""missing" 1>&6
1371 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1372 echo "configure:1373: checking for working autoconf" >&5
1373 # Run test in a subshell; some versions of sh will print an error if
1374 # an executable is not found, even if stderr is redirected.
1375 # Redirect stdin to placate older versions of autoconf. Sigh.
1376 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1378 echo "$ac_t""found" 1>&6
1380 AUTOCONF="$missing_dir/missing autoconf"
1381 echo "$ac_t""missing" 1>&6
1384 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1385 echo "configure:1386: checking for working automake" >&5
1386 # Run test in a subshell; some versions of sh will print an error if
1387 # an executable is not found, even if stderr is redirected.
1388 # Redirect stdin to placate older versions of autoconf. Sigh.
1389 if (automake --version) < /dev/null > /dev/null 2>&1; then
1391 echo "$ac_t""found" 1>&6
1393 AUTOMAKE="$missing_dir/missing automake"
1394 echo "$ac_t""missing" 1>&6
1397 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1398 echo "configure:1399: checking for working autoheader" >&5
1399 # Run test in a subshell; some versions of sh will print an error if
1400 # an executable is not found, even if stderr is redirected.
1401 # Redirect stdin to placate older versions of autoconf. Sigh.
1402 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1403 AUTOHEADER=autoheader
1404 echo "$ac_t""found" 1>&6
1406 AUTOHEADER="$missing_dir/missing autoheader"
1407 echo "$ac_t""missing" 1>&6
1410 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1411 echo "configure:1412: checking for working makeinfo" >&5
1412 # Run test in a subshell; some versions of sh will print an error if
1413 # an executable is not found, even if stderr is redirected.
1414 # Redirect stdin to placate older versions of autoconf. Sigh.
1415 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1417 echo "$ac_t""found" 1>&6
1419 MAKEINFO="$missing_dir/missing makeinfo"
1420 echo "$ac_t""missing" 1>&6
1424 if test x$srcdir != x.; then
1425 echo Please look in the INSTALL instructions for
1426 echo directions for multi-architecture building
1429 echo "configure: warning: This package does not support --srcdir!" 1>&2
1441 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1442 ac_cpp='$CXXCPP $CPPFLAGS'
1443 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1444 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1445 cross_compiling=$ac_cv_prog_cxx_cross
1448 # Check whether --enable-printing or --disable-printing was given.
1449 if test "${enable_printing+set}" = set; then
1450 enableval="$enable_printing"
1451 printing_b=$enableval
1456 # Check whether --enable-checking or --disable-checking was given.
1457 if test "${enable_checking+set}" = set; then
1458 enableval="$enable_checking"
1459 checking_b=$enableval
1463 # Check whether --enable-debugging or --disable-debugging was given.
1464 if test "${enable_debugging+set}" = set; then
1465 enableval="$enable_debugging"
1470 # Check whether --enable-optimise or --disable-optimise was given.
1471 if test "${enable_optimise+set}" = set; then
1472 enableval="$enable_optimise"
1473 optimise_b=$enableval
1477 # Check whether --enable-profiling or --disable-profiling was given.
1478 if test "${enable_profiling+set}" = set; then
1479 enableval="$enable_profiling"
1480 profile_b=$enableval
1484 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1485 if test "${enable_mingw_prefix+set}" = set; then
1486 enableval="$enable_mingw_prefix"
1487 MINGWPREFIX=$enableval
1493 # Check whether --enable-tex-prefix or --disable-tex-prefix was given.
1494 if test "${enable_tex_prefix+set}" = set; then
1495 enableval="$enable_tex_prefix"
1496 TEXPREFIX=$enableval
1502 # Check whether --enable-tex-dir or --disable-tex-dir was given.
1503 if test "${enable_tex_dir+set}" = set; then
1504 enableval="$enable_tex_dir"
1511 # Check whether --enable-mf-dir or --disable-mf-dir was given.
1512 if test "${enable_mf_dir+set}" = set; then
1513 enableval="$enable_mf_dir"
1520 if test $profile_b = yes; then
1522 DEFINES="$DEFINES -pg"
1525 if test $printing_b = no; then
1526 DEFINES="$DEFINES -DNPRINT=1"
1529 if test $debug_b = yes; then
1530 DEFINES="$DEFINES -g"
1532 if test $checking_b = no; then
1533 DEFINES="$DEFINES -DNDEBUG=1"
1536 # however, C++ support in mingw32 v 0.1.4 is still flaky
1537 if test x$MINGWPREFIX != xno; then
1538 ICFLAGS="-I$MINGWPREFIX/include"
1539 ILDFLAGS="-$MINGWPREFIX/lib"
1542 if test $optimise_b = yes; then
1543 DEFINES="$DEFINES -finline-functions -O2 -DSTRING_UTILS_INLINED"
1546 if test "x$OSTYPE" = "xWindows_NT"; then
1547 LN=cp # hard link does not work under cygnus-nt (yet?)
1554 AUTOHEADER="This file was automatically generated by configure"
1555 CPPFLAGS=${CPPFLAGS:-""} # we don't want -g -O junk
1556 CXXFLAGS=${CXXFLAGS:-""} # we don't want -g -O junk
1558 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1560 # Extract the first word of "$ac_prog", so it can be a program name with args.
1561 set dummy $ac_prog; ac_word=$2
1562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1563 echo "configure:1564: checking for $ac_word" >&5
1564 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 if test -n "$CXX"; then
1568 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1571 for ac_dir in $PATH; do
1572 test -z "$ac_dir" && ac_dir=.
1573 if test -f $ac_dir/$ac_word; then
1574 ac_cv_prog_CXX="$ac_prog"
1581 CXX="$ac_cv_prog_CXX"
1582 if test -n "$CXX"; then
1583 echo "$ac_t""$CXX" 1>&6
1585 echo "$ac_t""no" 1>&6
1588 test -n "$CXX" && break
1590 test -n "$CXX" || CXX="gcc"
1593 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1594 echo "configure:1595: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1597 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1598 ac_cpp='$CXXCPP $CPPFLAGS'
1599 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1600 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1601 cross_compiling=$ac_cv_prog_cxx_cross
1603 cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1608 if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1609 ac_cv_prog_cxx_works=yes
1610 # If we can't run a trivial program, we are probably using a cross compiler.
1611 if (./conftest; exit) 2>/dev/null; then
1612 ac_cv_prog_cxx_cross=no
1614 ac_cv_prog_cxx_cross=yes
1617 echo "configure: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1619 ac_cv_prog_cxx_works=no
1623 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1624 if test $ac_cv_prog_cxx_works = no; then
1625 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1627 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1628 echo "configure:1629: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1629 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1630 cross_compiling=$ac_cv_prog_cxx_cross
1632 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1633 echo "configure:1634: checking whether we are using GNU C++" >&5
1634 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 cat > conftest.C <<EOF
1642 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1649 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1651 if test $ac_cv_prog_gxx = yes; then
1653 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1654 ac_save_CXXFLAGS="$CXXFLAGS"
1656 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1657 echo "configure:1658: checking whether ${CXX-g++} accepts -g" >&5
1658 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1661 echo 'void f(){}' > conftest.cc
1662 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1663 ac_cv_prog_cxx_g=yes
1671 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1672 if test "$ac_test_CXXFLAGS" = set; then
1673 CXXFLAGS="$ac_save_CXXFLAGS"
1674 elif test $ac_cv_prog_cxx_g = yes; then
1681 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1684 # Extract the first word of "ranlib", so it can be a program name with args.
1685 set dummy ranlib; ac_word=$2
1686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1687 echo "configure:1688: checking for $ac_word" >&5
1688 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 if test -n "$RANLIB"; then
1692 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1695 for ac_dir in $PATH; do
1696 test -z "$ac_dir" && ac_dir=.
1697 if test -f $ac_dir/$ac_word; then
1698 ac_cv_prog_RANLIB="ranlib"
1703 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1706 RANLIB="$ac_cv_prog_RANLIB"
1707 if test -n "$RANLIB"; then
1708 echo "$ac_t""$RANLIB" 1>&6
1710 echo "$ac_t""no" 1>&6
1713 # Find a good install program. We prefer a C program (faster),
1714 # so one script is as good as another. But avoid the broken or
1715 # incompatible versions:
1716 # SysV /etc/install, /usr/sbin/install
1717 # SunOS /usr/etc/install
1718 # IRIX /sbin/install
1720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1722 # ./install, which can be erroneously created by make from ./install.sh.
1723 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1724 echo "configure:1725: checking for a BSD compatible install" >&5
1725 if test -z "$INSTALL"; then
1726 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1729 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1730 for ac_dir in $PATH; do
1731 # Account for people who put trailing slashes in PATH elements.
1733 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1735 # OSF1 and SCO ODT 3.0 have their own names for install.
1736 for ac_prog in ginstall installbsd scoinst install; do
1737 if test -f $ac_dir/$ac_prog; then
1738 if test $ac_prog = install &&
1739 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1740 # AIX install. It has an incompatible calling convention.
1741 # OSF/1 installbsd also uses dspmsg, but is usable.
1744 ac_cv_path_install="$ac_dir/$ac_prog -c"
1755 if test "${ac_cv_path_install+set}" = set; then
1756 INSTALL="$ac_cv_path_install"
1758 # As a last resort, use the slow shell script. We don't cache a
1759 # path for INSTALL within a source directory, because that will
1760 # break other packages using the cache if that directory is
1761 # removed, or if the path is relative.
1762 INSTALL="$ac_install_sh"
1765 echo "$ac_t""$INSTALL" 1>&6
1767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1768 # It thinks the first close brace ends the variable substitution.
1769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1775 # Extract the first word of "$ac_prog", so it can be a program name with args.
1776 set dummy $ac_prog; ac_word=$2
1777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1778 echo "configure:1779: checking for $ac_word" >&5
1779 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 if test -n "$TAR"; then
1783 ac_cv_prog_TAR="$TAR" # Let the user override the test.
1785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1786 for ac_dir in $PATH; do
1787 test -z "$ac_dir" && ac_dir=.
1788 if test -f $ac_dir/$ac_word; then
1789 ac_cv_prog_TAR="$ac_prog"
1796 TAR="$ac_cv_prog_TAR"
1797 if test -n "$TAR"; then
1798 echo "$ac_t""$TAR" 1>&6
1800 echo "$ac_t""no" 1>&6
1803 test -n "$TAR" && break
1805 test -n "$TAR" || TAR="error"
1809 # Extract the first word of "$ac_prog", so it can be a program name with args.
1810 set dummy $ac_prog; ac_word=$2
1811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1812 echo "configure:1813: checking for $ac_word" >&5
1813 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 if test -n "$FIND"; then
1817 ac_cv_prog_FIND="$FIND" # Let the user override the test.
1819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1820 for ac_dir in $PATH; do
1821 test -z "$ac_dir" && ac_dir=.
1822 if test -f $ac_dir/$ac_word; then
1823 ac_cv_prog_FIND="$ac_prog"
1830 FIND="$ac_cv_prog_FIND"
1831 if test -n "$FIND"; then
1832 echo "$ac_t""$FIND" 1>&6
1834 echo "$ac_t""no" 1>&6
1837 test -n "$FIND" && break
1839 test -n "$FIND" || FIND="error"
1843 if test $FIND = "error"
1846 echo "configure: warning: can't find \`find\'. Please use --enable-tex-dir. " 1>&2
1873 for ac_prog in bison
1875 # Extract the first word of "$ac_prog", so it can be a program name with args.
1876 set dummy $ac_prog; ac_word=$2
1877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1878 echo "configure:1879: checking for $ac_word" >&5
1879 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1882 if test -n "$BISON"; then
1883 ac_cv_prog_BISON="$BISON" # Let the user override the test.
1885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1886 for ac_dir in $PATH; do
1887 test -z "$ac_dir" && ac_dir=.
1888 if test -f $ac_dir/$ac_word; then
1889 ac_cv_prog_BISON="$ac_prog"
1896 BISON="$ac_cv_prog_BISON"
1897 if test -n "$BISON"; then
1898 echo "$ac_t""$BISON" 1>&6
1900 echo "$ac_t""no" 1>&6
1903 test -n "$BISON" && break
1905 test -n "$BISON" || BISON="error"
1909 # Extract the first word of "$ac_prog", so it can be a program name with args.
1910 set dummy $ac_prog; ac_word=$2
1911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1912 echo "configure:1913: checking for $ac_word" >&5
1913 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 if test -n "$FLEX"; then
1917 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1920 for ac_dir in $PATH; do
1921 test -z "$ac_dir" && ac_dir=.
1922 if test -f $ac_dir/$ac_word; then
1923 ac_cv_prog_FLEX="$ac_prog"
1930 FLEX="$ac_cv_prog_FLEX"
1931 if test -n "$FLEX"; then
1932 echo "$ac_t""$FLEX" 1>&6
1934 echo "$ac_t""no" 1>&6
1937 test -n "$FLEX" && break
1939 test -n "$FLEX" || FLEX="error"
1943 # Extract the first word of "$ac_prog", so it can be a program name with args.
1944 set dummy $ac_prog; ac_word=$2
1945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1946 echo "configure:1947: checking for $ac_word" >&5
1947 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 if test -n "$MAKE"; then
1951 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1954 for ac_dir in $PATH; do
1955 test -z "$ac_dir" && ac_dir=.
1956 if test -f $ac_dir/$ac_word; then
1957 ac_cv_prog_MAKE="$ac_prog"
1964 MAKE="$ac_cv_prog_MAKE"
1965 if test -n "$MAKE"; then
1966 echo "$ac_t""$MAKE" 1>&6
1968 echo "$ac_t""no" 1>&6
1971 test -n "$MAKE" && break
1973 test -n "$MAKE" || MAKE="error"
1975 # Extract the first word of "perl", so it can be a program name with args.
1976 set dummy perl; ac_word=$2
1977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1978 echo "configure:1979: checking for $ac_word" >&5
1979 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1984 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1988 for ac_dir in $PATH; do
1989 test -z "$ac_dir" && ac_dir=.
1990 if test -f $ac_dir/$ac_word; then
1991 ac_cv_path_PERL="$ac_dir/$ac_word"
1996 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
2000 PERL="$ac_cv_path_PERL"
2001 if test -n "$PERL"; then
2002 echo "$ac_t""$PERL" 1>&6
2004 echo "$ac_t""no" 1>&6
2007 # Extract the first word of "python", so it can be a program name with args.
2008 set dummy python; ac_word=$2
2009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2010 echo "configure:2011: checking for $ac_word" >&5
2011 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2016 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2020 for ac_dir in $PATH; do
2021 test -z "$ac_dir" && ac_dir=.
2022 if test -f $ac_dir/$ac_word; then
2023 ac_cv_path_PYTHON="$ac_dir/$ac_word"
2028 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="error"
2032 PYTHON="$ac_cv_path_PYTHON"
2033 if test -n "$PYTHON"; then
2034 echo "$ac_t""$PYTHON" 1>&6
2036 echo "$ac_t""no" 1>&6
2039 for ac_prog in pod2html
2041 # Extract the first word of "$ac_prog", so it can be a program name with args.
2042 set dummy $ac_prog; ac_word=$2
2043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2044 echo "configure:2045: checking for $ac_word" >&5
2045 if eval "test \"`echo '$''{'ac_cv_prog_POD2HTML'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2048 if test -n "$POD2HTML"; then
2049 ac_cv_prog_POD2HTML="$POD2HTML" # Let the user override the test.
2051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2052 for ac_dir in $PATH; do
2053 test -z "$ac_dir" && ac_dir=.
2054 if test -f $ac_dir/$ac_word; then
2055 ac_cv_prog_POD2HTML="$ac_prog"
2062 POD2HTML="$ac_cv_prog_POD2HTML"
2063 if test -n "$POD2HTML"; then
2064 echo "$ac_t""$POD2HTML" 1>&6
2066 echo "$ac_t""no" 1>&6
2069 test -n "$POD2HTML" && break
2071 test -n "$POD2HTML" || POD2HTML="error"
2073 for ac_prog in pod2man
2075 # Extract the first word of "$ac_prog", so it can be a program name with args.
2076 set dummy $ac_prog; ac_word=$2
2077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2078 echo "configure:2079: checking for $ac_word" >&5
2079 if eval "test \"`echo '$''{'ac_cv_prog_POD2MAN'+set}'`\" = set"; then
2080 echo $ac_n "(cached) $ac_c" 1>&6
2082 if test -n "$POD2MAN"; then
2083 ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test.
2085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2086 for ac_dir in $PATH; do
2087 test -z "$ac_dir" && ac_dir=.
2088 if test -f $ac_dir/$ac_word; then
2089 ac_cv_prog_POD2MAN="$ac_prog"
2096 POD2MAN="$ac_cv_prog_POD2MAN"
2097 if test -n "$POD2MAN"; then
2098 echo "$ac_t""$POD2MAN" 1>&6
2100 echo "$ac_t""no" 1>&6
2103 test -n "$POD2MAN" && break
2105 test -n "$POD2MAN" || POD2MAN="error"
2109 if test "x$TEXPREFIX" = xauto ; then
2113 echo $ac_n "checking TeX/MF root dir directory""... $ac_c" 1>&6
2114 echo "configure:2115: checking TeX/MF root dir directory" >&5
2116 find_root_prefix="$prefix"
2119 test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
2121 for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
2122 find_texprefix="$find_root_prefix$postfix"
2123 if test -d $find_texprefix; then
2124 find_texpostfix=$postfix
2129 if test "x$find_texpostfix" = x; then
2130 find_texpostfix='/lib/texmf/tex'
2132 echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
2137 find_texprefix="$find_root_prefix/$find_texpostfix"
2139 # only assign if variablename not empty
2140 if test x != "xTEXPREFIX"; then
2141 TEXPREFIX='${prefix}'/"$find_texpostfix"
2143 echo "$ac_t""$find_texprefix" 1>&6
2147 find_texprefix=$TEXPREFIX
2150 # if test "x$MFDIR" = xauto; then
2151 # AC_MF_SUBDIR(MFDIR)
2154 if test "x$TEXDIR" = xauto ; then
2158 echo $ac_n "checking TeX input directory""... $ac_c" 1>&6
2159 echo "configure:2160: checking TeX input directory" >&5
2160 find_dirdir=`(cd $find_texprefix;
2161 $FIND ./ -type d -a -name tex -print |sort|head -1|sed 's#^\./##')`
2164 if test "x$find_dirdir" = x; then
2167 echo "configure: warning: Cannot determine TeX input subdirectory. Please set from command-line" 1>&2
2173 echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
2175 TEXDIR="$TEXPREFIX/$TEXDIR"
2180 # AC_JUNK_ARGS( [if test "x$MFDIR" = xauto; then
2181 # AC_MF_SUBDIR(MFDIR)
2186 if test $MAKE = "error"
2189 echo "configure: warning: can't find GNU make. You should install GNU make" 1>&2
2195 if test $BISON = "error"
2198 echo "configure: warning: can't find bison. Please install Bison" 1>&2
2204 if test $PERL = "error"
2207 echo "configure: warning: can't find perl. You should install Perl" 1>&2
2213 if test $PYTHON = "error"
2216 echo "configure: warning: can't find python. You should install Python" 1>&2
2222 if test $PODMAN = "error"
2225 echo "configure: warning: can't find pod. You should install Perl" 1>&2
2231 if test $FLEX = "error"
2234 echo "configure: warning: can't find flex. Please install Flex" 1>&2
2241 if test $MAKE != "error" ; then
2242 $MAKE -v| grep GNU > /dev/null
2246 echo "configure: warning: Please install *GNU* make" 1>&2
2252 if test $BISON != "error"; then
2253 bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
2254 if test $bison_version -lt 25; then
2256 echo "configure: warning: Your bison is too old (1.$bison_version). Please install 1.25" 1>&2
2264 if $CXX --version | grep '2\.[78]' > /dev/null
2269 echo "configure: warning: can't find g++ 2.7 or 2.8" 1>&2
2274 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2275 echo "configure:2276: checking how to run the C++ preprocessor" >&5
2276 if test -z "$CXXCPP"; then
2277 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2282 ac_cpp='$CXXCPP $CPPFLAGS'
2283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2284 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2285 cross_compiling=$ac_cv_prog_cxx_cross
2286 CXXCPP="${CXX-g++} -E"
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2293 { (eval echo configure:2294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2294 ac_err=`grep -v '^ *+' conftest.out`
2295 if test -z "$ac_err"; then
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2305 ac_cv_prog_CXXCPP="$CXXCPP"
2308 CXXCPP="$ac_cv_prog_CXXCPP"
2309 echo "$ac_t""$CXXCPP" 1>&6
2311 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
2312 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
2313 echo "configure:2314: checking for FlexLexer.h" >&5
2314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2317 cat > conftest.$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2320 #include <FlexLexer.h>
2322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2323 { (eval echo configure:2324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2324 ac_err=`grep -v '^ *+' conftest.out`
2325 if test -z "$ac_err"; then
2327 eval "ac_cv_header_$ac_safe=yes"
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2333 eval "ac_cv_header_$ac_safe=no"
2337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2338 echo "$ac_t""yes" 1>&6
2341 echo "$ac_t""no" 1>&6
2343 echo "configure: warning: can't find flex header. Please install Flex headers correctly" 1>&2
2352 cat >> confdefs.h <<EOF
2353 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2357 touch lib/stamp-h.in
2361 echo \#define TOPLEVEL_VERSION \"$FULL_VERSION\" >> lib/config.hh
2364 cat > confcache <<\EOF
2365 # This file is a shell script that caches the results of configure
2366 # tests run on this system so they can be shared between configure
2367 # scripts and configure runs. It is not useful on other systems.
2368 # If it contains results you don't want to keep, you may remove or edit it.
2370 # By default, configure uses ./config.cache as the cache file,
2371 # creating it if it does not exist already. You can give configure
2372 # the --cache-file=FILE option to use a different cache file; that is
2373 # what configure does when it calls configure scripts in
2374 # subdirectories, so they share the cache.
2375 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2376 # config.status only pays attention to the cache file if you give it the
2377 # --recheck option to rerun configure.
2380 # The following way of writing the cache mishandles newlines in values,
2381 # but we know of no workaround that is simple, portable, and efficient.
2382 # So, don't put newlines in cache variables' values.
2383 # Ultrix sh set writes to stderr and can't be redirected directly,
2384 # and sets the high bit in the cache file unless we assign to the vars.
2386 case `(ac_space=' '; set) 2>&1` in
2388 # `set' does not quote correctly, so add quotes (double-quote substitution
2389 # turns \\\\ into \\, and sed turns \\ into \).
2391 -e "s/'/'\\\\''/g" \
2392 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2395 # `set' quotes correctly as required by POSIX, so do not add quotes.
2396 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2399 if cmp -s $cache_file confcache; then
2402 if test -w $cache_file; then
2403 echo "updating cache $cache_file"
2404 cat confcache > $cache_file
2406 echo "not updating unwritable cache $cache_file"
2411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2413 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2414 # Let make expand exec_prefix.
2415 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2417 # Any assignment to VPATH causes Sun make to only execute
2418 # the first set of double-colon rules, so remove it if not needed.
2419 # If there is a colon in the path, we need to keep it.
2420 if test "x$srcdir" = x.; then
2421 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2424 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2426 DEFS=-DHAVE_CONFIG_H
2428 # Without the "./", some shells look in PATH for config.status.
2429 : ${CONFIG_STATUS=./config.status}
2431 echo creating $CONFIG_STATUS
2432 rm -f $CONFIG_STATUS
2433 cat > $CONFIG_STATUS <<EOF
2435 # Generated automatically by configure.
2436 # Run this file to recreate the current configuration.
2437 # This directory was configured as follows,
2438 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2440 # $0 $ac_configure_args
2442 # Compiler output produced by configure, useful for debugging
2443 # configure, is in ./config.log if it exists.
2445 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2448 case "\$ac_option" in
2449 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2450 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2451 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2452 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2453 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2455 -help | --help | --hel | --he | --h)
2456 echo "\$ac_cs_usage"; exit 0 ;;
2457 *) echo "\$ac_cs_usage"; exit 1 ;;
2461 ac_given_srcdir=$srcdir
2462 ac_given_INSTALL="$INSTALL"
2464 trap 'rm -fr `echo "bin/Makefile lib/include/Makefile lib/Makefile lily/include/Makefile lily/Makefile mf/Makefile mi2mu/include/Makefile mi2mu/Makefile debian/Makefile Documentation/Makefile init/Makefile input/Makefile tex/Makefile make/Makefile mutopia/J.S.Bach/Makefile mutopia/Makefile Makefile bin/add-URLs bin/clean-diaper bin/clean-embeds bin/clean-fonts bin/conflily bin/convert-mudela bin/cvm bin/find-typenames bin/foo bin/genheader bin/ly2dvi bin/make-docxx bin/make-examples bin/make-patch bin/make-version bin/make-website bin/mf-deps bin/mf-to-table bin/mudela-book bin/ps-to-gifs bin/release bin/show-latest lib/config.hh:lib/config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2466 cat >> $CONFIG_STATUS <<EOF
2468 # Protect against being on the right side of a sed subst in config.status.
2469 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2470 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2473 s%@CFLAGS@%$CFLAGS%g
2474 s%@CPPFLAGS@%$CPPFLAGS%g
2475 s%@CXXFLAGS@%$CXXFLAGS%g
2477 s%@LDFLAGS@%$LDFLAGS%g
2479 s%@exec_prefix@%$exec_prefix%g
2480 s%@prefix@%$prefix%g
2481 s%@program_transform_name@%$program_transform_name%g
2482 s%@bindir@%$bindir%g
2483 s%@sbindir@%$sbindir%g
2484 s%@libexecdir@%$libexecdir%g
2485 s%@datadir@%$datadir%g
2486 s%@sysconfdir@%$sysconfdir%g
2487 s%@sharedstatedir@%$sharedstatedir%g
2488 s%@localstatedir@%$localstatedir%g
2489 s%@libdir@%$libdir%g
2490 s%@includedir@%$includedir%g
2491 s%@oldincludedir@%$oldincludedir%g
2492 s%@infodir@%$infodir%g
2493 s%@mandir@%$mandir%g
2494 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2495 s%@INSTALL_DATA@%$INSTALL_DATA%g
2496 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2497 s%@PACKAGE@%$PACKAGE%g
2498 s%@VERSION@%$VERSION%g
2499 s%@ACLOCAL@%$ACLOCAL%g
2500 s%@AUTOCONF@%$AUTOCONF%g
2501 s%@AUTOMAKE@%$AUTOMAKE%g
2502 s%@AUTOHEADER@%$AUTOHEADER%g
2503 s%@MAKEINFO@%$MAKEINFO%g
2504 s%@SET_MAKE@%$SET_MAKE%g
2507 s%@RANLIB@%$RANLIB%g
2510 s%@LEXLIB@%$LEXLIB%g
2512 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
2515 s%@ICFLAGS@%$ICFLAGS%g
2516 s%@ILDFLAGS@%$ILDFLAGS%g
2517 s%@DEFINES@%$DEFINES%g
2518 s%@COMPILEINFO@%$COMPILEINFO%g
2523 s%@PYTHON@%$PYTHON%g
2525 s%@TEXPREFIX@%$TEXPREFIX%g
2526 s%@TEXDIR@%$TEXDIR%g
2528 s%@DIR_DATADIR@%$DIR_DATADIR%g
2529 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
2531 s%@POD2HTML@%$POD2HTML%g
2532 s%@POD2MAN@%$POD2MAN%g
2533 s%@CXXCPP@%$CXXCPP%g
2534 s%@subdirs@%$subdirs%g
2539 cat >> $CONFIG_STATUS <<\EOF
2541 # Split the substitutions into bite-sized pieces for seds with
2542 # small command number limits, like on Digital OSF/1 and HP-UX.
2543 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2544 ac_file=1 # Number of current file.
2545 ac_beg=1 # First line for current file.
2546 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2549 while $ac_more_lines; do
2550 if test $ac_beg -gt 1; then
2551 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2553 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2555 if test ! -s conftest.s$ac_file; then
2557 rm -f conftest.s$ac_file
2559 if test -z "$ac_sed_cmds"; then
2560 ac_sed_cmds="sed -f conftest.s$ac_file"
2562 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2564 ac_file=`expr $ac_file + 1`
2566 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2569 if test -z "$ac_sed_cmds"; then
2574 cat >> $CONFIG_STATUS <<EOF
2576 CONFIG_FILES=\${CONFIG_FILES-"bin/Makefile lib/include/Makefile lib/Makefile lily/include/Makefile lily/Makefile mf/Makefile mi2mu/include/Makefile mi2mu/Makefile debian/Makefile Documentation/Makefile init/Makefile input/Makefile tex/Makefile make/Makefile mutopia/J.S.Bach/Makefile mutopia/Makefile Makefile bin/add-URLs bin/clean-diaper bin/clean-embeds bin/clean-fonts bin/conflily bin/convert-mudela bin/cvm bin/find-typenames bin/foo bin/genheader bin/ly2dvi bin/make-docxx bin/make-examples bin/make-patch bin/make-version bin/make-website bin/mf-deps bin/mf-to-table bin/mudela-book bin/ps-to-gifs bin/release bin/show-latest"}
2578 cat >> $CONFIG_STATUS <<\EOF
2579 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2580 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2582 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2583 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2584 *) ac_file_in="${ac_file}.in" ;;
2587 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2589 # Remove last slash and all that follows it. Not all systems have dirname.
2590 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2591 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2592 # The file is in a subdirectory.
2593 test ! -d "$ac_dir" && mkdir "$ac_dir"
2594 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2595 # A "../" for each directory in $ac_dir_suffix.
2596 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2598 ac_dir_suffix= ac_dots=
2601 case "$ac_given_srcdir" in
2603 if test -z "$ac_dots"; then top_srcdir=.
2604 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2605 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2607 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2608 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2611 case "$ac_given_INSTALL" in
2612 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2613 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2616 echo creating "$ac_file"
2618 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2620 *Makefile*) ac_comsub="1i\\
2621 # $configure_input" ;;
2625 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2627 s%@configure_input@%$configure_input%g
2628 s%@srcdir@%$srcdir%g
2629 s%@top_srcdir@%$top_srcdir%g
2630 s%@INSTALL@%$INSTALL%g
2631 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2635 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2636 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2638 # ac_d sets the value in "#define NAME VALUE" lines.
2639 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2640 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2643 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2644 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2645 ac_uB='\([ ]\)%\1#\2define\3'
2648 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2649 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2650 ac_eB='$%\1#\2define\3'
2654 if test "${CONFIG_HEADERS+set}" != set; then
2656 cat >> $CONFIG_STATUS <<EOF
2657 CONFIG_HEADERS="lib/config.hh:lib/config.hh.in"
2659 cat >> $CONFIG_STATUS <<\EOF
2661 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2664 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2665 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2666 *) ac_file_in="${ac_file}.in" ;;
2669 echo creating $ac_file
2671 rm -f conftest.frag conftest.in conftest.out
2672 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2673 cat $ac_file_inputs > conftest.in
2677 # Transform confdefs.h into a sed script conftest.vals that substitutes
2678 # the proper values into config.h.in to produce config.h. And first:
2679 # Protect against being on the right side of a sed subst in config.status.
2680 # Protect against being in an unquoted here document in config.status.
2682 cat > conftest.hdr <<\EOF
2685 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2689 sed -n -f conftest.hdr confdefs.h > conftest.vals
2692 # This sed command replaces #undef with comments. This is necessary, for
2693 # example, in the case of _POSIX_SOURCE, which is predefined and required
2694 # on some systems where configure will not decide to define it.
2695 cat >> conftest.vals <<\EOF
2696 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2699 # Break up conftest.vals because some shells have a limit on
2700 # the size of here documents, and old seds have small limits too.
2705 ac_lines=`grep -c . conftest.vals`
2706 # grep -c gives empty output for an empty file on some AIX systems.
2707 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2708 # Write a limited-size here document to conftest.frag.
2709 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2710 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2712 sed -f conftest.frag conftest.in > conftest.out
2714 mv conftest.out conftest.in
2716 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2718 mv conftest.tail conftest.vals
2722 cat >> $CONFIG_STATUS <<\EOF
2723 rm -f conftest.frag conftest.h
2724 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2725 cat conftest.in >> conftest.h
2727 if cmp -s $ac_file conftest.h 2>/dev/null; then
2728 echo "$ac_file is unchanged"
2731 # Remove last slash and all that follows it. Not all systems have dirname.
2732 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2733 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2734 # The file is in a subdirectory.
2735 test ! -d "$ac_dir" && mkdir "$ac_dir"
2738 mv conftest.h $ac_file
2743 cat >> $CONFIG_STATUS <<EOF
2747 cat >> $CONFIG_STATUS <<\EOF
2748 test -z "$CONFIG_HEADERS" || echo timestamp > lib/stamp-h
2752 chmod +x $CONFIG_STATUS
2753 rm -fr confdefs* $ac_clean_files
2754 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2756 if test "$no_recursion" != yes; then
2758 # Remove --cache-file and --srcdir arguments so they do not pile up.
2759 ac_sub_configure_args=
2761 for ac_arg in $ac_configure_args; do
2762 if test -n "$ac_prev"; then
2767 -cache-file | --cache-file | --cache-fil | --cache-fi \
2768 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2769 ac_prev=cache_file ;;
2770 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2771 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2773 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2775 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2777 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2781 for ac_config_dir in flower; do
2783 # Do not complain, so a configure script can configure whichever
2784 # parts of a large source tree are present.
2785 if test ! -d $srcdir/$ac_config_dir; then
2789 echo configuring in $ac_config_dir
2794 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2796 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2804 # A "../" for each directory in /$ac_config_dir.
2805 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2808 .) # No --srcdir option. We are building in place.
2809 ac_sub_srcdir=$srcdir ;;
2810 /*) # Absolute path.
2811 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2813 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2816 # Check for guested configure; otherwise get Cygnus style configure.
2817 if test -f $ac_sub_srcdir/configure; then
2818 ac_sub_configure=$ac_sub_srcdir/configure
2819 elif test -f $ac_sub_srcdir/configure.in; then
2820 ac_sub_configure=$ac_configure
2822 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2826 # The recursion is here.
2827 if test -n "$ac_sub_configure"; then
2829 # Make the cache file name correct relative to the subdirectory.
2830 case "$cache_file" in
2831 /*) ac_sub_cache_file=$cache_file ;;
2833 ac_sub_cache_file="$ac_dots$cache_file" ;;
2835 case "$ac_given_INSTALL" in
2836 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2837 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2840 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2841 # The eval makes quoting arguments work.
2842 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2845 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2855 chmod 755 bin/add-URLs bin/clean-diaper bin/clean-embeds bin/clean-fonts bin/conflily bin/convert-mudela bin/cvm bin/find-typenames bin/foo bin/genheader bin/ly2dvi bin/make-docxx bin/make-examples bin/make-patch bin/make-version bin/make-website bin/mf-deps bin/mf-to-table bin/mudela-book bin/ps-to-gifs bin/release bin/show-latest