3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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-config=CONF put settings in config-CONF.make and config-CONF.h;
16 do \`make conf=CONF' to get output in ./out-CONF"
18 --enable-checking set runtime checks (assert calls). Default: on"
20 --enable-debugging compile with debugging info. Default: on"
22 --enable-optimising compile with optimising. Default: on"
24 --enable-profiling compile with gprof support. Default: off"
26 --with-localedir=LOCALE use LOCALE as locale dir. Default:
29 --with-lang=LANG use LANG as language to emit messages"
31 --enable-tfm-path=PATH set path of tex directories where tfm files live,
32 esp.: cmr10.tfm. Default: use kpsewhich"
34 --with-kpathsea use kpathsea lib. Default: on"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file=./config.cache
49 program_transform_name=s,x,x,
57 bindir='${exec_prefix}/bin'
58 sbindir='${exec_prefix}/sbin'
59 libexecdir='${exec_prefix}/libexec'
60 datadir='${prefix}/share'
61 sysconfdir='${prefix}/etc'
62 sharedstatedir='${prefix}/com'
63 localstatedir='${prefix}/var'
64 libdir='${exec_prefix}/lib'
65 includedir='${prefix}/include'
66 oldincludedir='/usr/include'
67 infodir='${prefix}/info'
68 mandir='${prefix}/man'
70 # Initialize some other variables.
73 SHELL=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
102 -build | --build | --buil | --bui | --bu)
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118 datadir="$ac_optarg" ;;
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host | --host | --hos | --ho)
212 -host=* | --host=* | --hos=* | --ho=*)
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev=includedir ;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir="$ac_optarg" ;;
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
227 -libdir | --libdir | --libdi | --libd)
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev=libexecdir ;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir="$ac_optarg" ;;
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev=localstatedir ;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir="$ac_optarg" ;;
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev=oldincludedir ;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir="$ac_optarg" ;;
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev=program_prefix ;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix="$ac_optarg" ;;
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev=program_suffix ;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix="$ac_optarg" ;;
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev=program_transform_name ;;
301 -program-transform-name=* | --program-transform-name=* \
302 | --program-transform-nam=* | --program-transform-na=* \
303 | --program-transform-n=* | --program-transform-=* \
304 | --program-transform=* | --program-transfor=* \
305 | --program-transfo=* | --program-transf=* \
306 | --program-trans=* | --program-tran=* \
307 | --progr-tra=* | --program-tr=* | --program-t=*)
308 program_transform_name="$ac_optarg" ;;
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318 sbindir="$ac_optarg" ;;
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329 sharedstatedir="$ac_optarg" ;;
331 -site | --site | --sit)
333 -site=* | --site=* | --sit=*)
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev=sysconfdir ;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir="$ac_optarg" ;;
348 -target | --target | --targe | --targ | --tar | --ta | --t)
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.13"
361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* | --without-*)
374 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev=x_includes ;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes="$ac_optarg" ;;
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev=x_libraries ;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file=make/lilypond.lsm.in
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp='$CPP $CPPFLAGS'
526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
541 ac_n= ac_c='\c' ac_t=
547 # Bootstrap StepMake configure
551 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
552 if test x$MY_PATCH_LEVEL != x; then
553 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
556 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
557 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
558 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
560 # No versioning on directory names of sub-packages
562 stepmake=${datadir}/stepmake
564 if test "$prefix" = "NONE"; then
565 presome=${ac_default_prefix}
567 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
569 # urg, how is this supposed to work?
570 if test "$program_prefix" = "NONE"; then
573 if test "$program_suffix" = "NONE"; then
577 echo $ac_n "checking Package""... $ac_c" 1>&6
578 echo "configure:579: checking Package" >&5
579 if test "x$PACKAGE" = "xSTEPMAKE"; then
580 echo "$ac_t""Stepmake package!" 1>&6
582 echo $ac_n "checking builddir""... $ac_c" 1>&6
583 echo "configure:584: checking builddir" >&5
584 if test "$srcdir" = "."; then
587 absolute_builddir="`pwd`"
588 package_absolute_builddir="`dirname $absolute_builddir`"
589 package_srcdir="`dirname $srcdir`"
590 builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
592 echo "$ac_t""$builddir" 1>&6
594 (cd stepmake 2>/dev/null || mkdir stepmake)
595 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
597 for ac_dir in bin $srcdir/bin; do
598 if test -f $ac_dir/install-sh; then
600 ac_install_sh="$ac_aux_dir/install-sh -c"
602 elif test -f $ac_dir/install.sh; then
604 ac_install_sh="$ac_aux_dir/install.sh -c"
608 if test -z "$ac_aux_dir"; then
609 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
611 ac_config_guess=$ac_aux_dir/config.guess
612 ac_config_sub=$ac_aux_dir/config.sub
613 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
617 echo "$ac_t""$PACKAGE" 1>&6
619 echo $ac_n "checking builddir""... $ac_c" 1>&6
620 echo "configure:621: checking builddir" >&5
621 if test "$srcdir" = "."; then
625 absolute_builddir="`pwd`"
626 # builddir="`dirname $srcdir`/`basename $absolute_builddir`"
627 builddir="`bash $srcdir/buildscripts/walk.sh \"$srcdir\"`"
630 echo "$ac_t""$builddir" 1>&6
631 if expr "$srcdir" : '/' > /dev/null 2>&1; then
634 echo "configure: warning: Absolute --srcdir specified: $srcdir" 1>&2
639 echo $ac_n "checking for stepmake""... $ac_c" 1>&6
640 echo "configure:641: checking for stepmake" >&5
641 # Check for installed stepmake
642 if test -d $stepmake; then
643 echo "$ac_t""$stepmake" 1>&6
645 if test "$absolute_srcdir" != "yes"; then
646 stepmake='$(depth)'/$srcdir/stepmake
648 stepmake=$srcdir/stepmake
650 echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6
655 $HOME/usr/local/share/stepmake/bin\
656 $HOME/usr/local/lib/stepmake/bin\
657 $HOME/usr/share/stepmake/bin\
658 $HOME/usr/lib/stepmake/bin\
659 /usr/local/share/stepmake/bin\
660 /usr/local/lib/stepmake/bin\
661 /usr/share/stepmake/bin\
662 /usr/lib/stepmake/bin\
664 $srcdir/stepmake/bin\
666 $HOME/usr/local/share/stepmake/bin\
667 $HOME/usr/local/lib/stepmake/bin\
668 $HOME/usr/share/stepmake/bin\
669 $HOME/usr/lib/stepmake/bin\
670 /usr/local/share/stepmake/bin\
671 /usr/local/lib/stepmake/bin\
672 /usr/share/stepmake/bin\
673 /usr/lib/stepmake/bin\
675 $srcdir/stepmake/bin\
677 if test -f $ac_dir/install-sh; then
679 ac_install_sh="$ac_aux_dir/install-sh -c"
681 elif test -f $ac_dir/install.sh; then
683 ac_install_sh="$ac_aux_dir/install.sh -c"
687 if test -z "$ac_aux_dir"; then
688 { echo "configure: error: can not find install-sh or install.sh in \
689 $HOME/usr/local/share/stepmake/bin\
690 $HOME/usr/local/lib/stepmake/bin\
691 $HOME/usr/share/stepmake/bin\
692 $HOME/usr/lib/stepmake/bin\
693 /usr/local/share/stepmake/bin\
694 /usr/local/lib/stepmake/bin\
695 /usr/share/stepmake/bin\
696 /usr/lib/stepmake/bin\
698 $srcdir/stepmake/bin\
700 $HOME/usr/local/share/stepmake/bin\
701 $HOME/usr/local/lib/stepmake/bin\
702 $HOME/usr/share/stepmake/bin\
703 $HOME/usr/lib/stepmake/bin\
704 /usr/local/share/stepmake/bin\
705 /usr/local/lib/stepmake/bin\
706 /usr/share/stepmake/bin\
707 /usr/lib/stepmake/bin\
709 $srcdir/stepmake/bin\
712 ac_config_guess=$ac_aux_dir/config.guess
713 ac_config_sub=$ac_aux_dir/config.sub
714 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
723 cat >> confdefs.h <<EOF
724 #define PACKAGE "${PACKAGE_NAME}"
727 cat >> confdefs.h <<EOF
728 #define TOPLEVEL_VERSION "${FULL_VERSION}"
732 if test "$package_depth" = "" ; then
735 package_depth="../$package_depth"
740 AUTOGENERATE="This file was automatically generated by configure"
744 # Check whether --enable-config or --disable-config was given.
745 if test "${enable_config+set}" = set; then
746 enableval="$enable_config"
747 CONFIGURATION=$enableval
753 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
754 CONFIGFILE=config$CONFIGSUFFIX
758 # Make sure we can run config.sub.
759 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
760 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
763 echo $ac_n "checking host system type""... $ac_c" 1>&6
764 echo "configure:765: checking host system type" >&5
767 case "$host_alias" in
771 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
772 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
774 *) host_alias=$nonopt ;;
778 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
779 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
780 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
781 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
782 echo "$ac_t""$host" 1>&6
785 for ac_prog in gmake make
787 # Extract the first word of "$ac_prog", so it can be a program name with args.
788 set dummy $ac_prog; ac_word=$2
789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
790 echo "configure:791: checking for $ac_word" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
794 if test -n "$MAKE"; then
795 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
799 for ac_dir in $ac_dummy; do
800 test -z "$ac_dir" && ac_dir=.
801 if test -f $ac_dir/$ac_word; then
802 ac_cv_prog_MAKE="$ac_prog"
809 MAKE="$ac_cv_prog_MAKE"
810 if test -n "$MAKE"; then
811 echo "$ac_t""$MAKE" 1>&6
813 echo "$ac_t""no" 1>&6
816 test -n "$MAKE" && break
818 test -n "$MAKE" || MAKE="no"
822 r="`eval echo '$'"MAKE"`"
823 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
824 ##STEPMAKE_WARN(cannot find . )
830 if test $? -ne 0; then
832 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
834 if test "REQUIRED" = "REQUIRED"; then
835 command="echo ERROR: gmake make not found"
836 # abort configure process here?
838 command="- echo gmake make not found"
840 eval "MAKE"='$command'
846 if test $? -eq 0 -a -n ""; then
848 r="`eval echo '$'"MAKE"`"
849 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
850 echo "configure:851: checking "$r version"" >&5
852 type -p "$r" 2>&1 | awk '{print $NF}'
855 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
858 echo "$ver" | awk -F. '
863 {printf "%s%s%s\n",$1*100, $2*10,last}'
871 {printf "%s%s%s\n",$1*100, $2*10,last}'
873 echo "$ac_t"""$ver"" 1>&6
874 if test "$num" -lt "$req"; then
876 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\"
885 # Extract the first word of "$ac_prog", so it can be a program name with args.
886 set dummy $ac_prog; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 if test -n "$FIND"; then
893 ac_cv_prog_FIND="$FIND" # Let the user override the test.
895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
897 for ac_dir in $ac_dummy; do
898 test -z "$ac_dir" && ac_dir=.
899 if test -f $ac_dir/$ac_word; then
900 ac_cv_prog_FIND="$ac_prog"
907 FIND="$ac_cv_prog_FIND"
908 if test -n "$FIND"; then
909 echo "$ac_t""$FIND" 1>&6
911 echo "$ac_t""no" 1>&6
914 test -n "$FIND" && break
916 test -n "$FIND" || FIND="no"
920 r="`eval echo '$'"FIND"`"
921 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
922 ##STEPMAKE_WARN(cannot find . )
928 if test $? -ne 0; then
930 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
932 if test "REQUIRED" = "REQUIRED"; then
933 command="echo ERROR: find not found"
934 # abort configure process here?
936 command="- echo find not found"
938 eval "FIND"='$command'
944 if test $? -eq 0 -a -n ""; then
946 r="`eval echo '$'"FIND"`"
947 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
948 echo "configure:949: checking "$r version"" >&5
950 type -p "$r" 2>&1 | awk '{print $NF}'
953 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
956 echo "$ver" | awk -F. '
961 {printf "%s%s%s\n",$1*100, $2*10,last}'
969 {printf "%s%s%s\n",$1*100, $2*10,last}'
971 echo "$ac_t"""$ver"" 1>&6
972 if test "$num" -lt "$req"; then
974 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\"
984 # Extract the first word of "$ac_prog", so it can be a program name with args.
985 set dummy $ac_prog; ac_word=$2
986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987 echo "configure:988: checking for $ac_word" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
991 if test -n "$TAR"; then
992 ac_cv_prog_TAR="$TAR" # Let the user override the test.
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
996 for ac_dir in $ac_dummy; do
997 test -z "$ac_dir" && ac_dir=.
998 if test -f $ac_dir/$ac_word; then
999 ac_cv_prog_TAR="$ac_prog"
1006 TAR="$ac_cv_prog_TAR"
1007 if test -n "$TAR"; then
1008 echo "$ac_t""$TAR" 1>&6
1010 echo "$ac_t""no" 1>&6
1013 test -n "$TAR" && break
1015 test -n "$TAR" || TAR="no"
1019 r="`eval echo '$'"TAR"`"
1020 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
1021 ##STEPMAKE_WARN(cannot find . )
1027 if test $? -ne 0; then
1029 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
1031 if test "REQUIRED" = "REQUIRED"; then
1032 command="echo ERROR: tar not found"
1033 # abort configure process here?
1035 command="- echo tar not found"
1037 eval "TAR"='$command'
1043 if test $? -eq 0 -a -n ""; then
1045 r="`eval echo '$'"TAR"`"
1046 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
1047 echo "configure:1048: checking "$r version"" >&5
1049 type -p "$r" 2>&1 | awk '{print $NF}'
1052 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
1055 echo "$ver" | awk -F. '
1060 {printf "%s%s%s\n",$1*100, $2*10,last}'
1068 {printf "%s%s%s\n",$1*100, $2*10,last}'
1070 echo "$ac_t"""$ver"" 1>&6
1071 if test "$num" -lt "$req"; then
1073 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\"
1080 if test "x`uname`" = "xHP-UX"; then
1081 # Extract the first word of "bash", so it can be a program name with args.
1082 set dummy bash; ac_word=$2
1083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1084 echo "configure:1085: checking for $ac_word" >&5
1085 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1090 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1093 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1098 for ac_dir in $ac_dummy; do
1099 test -z "$ac_dir" && ac_dir=.
1100 if test -f $ac_dir/$ac_word; then
1101 ac_cv_path_BASH="$ac_dir/$ac_word"
1106 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1110 BASH="$ac_cv_path_BASH"
1111 if test -n "$BASH"; then
1112 echo "$ac_t""$BASH" 1>&6
1114 echo "$ac_t""no" 1>&6
1118 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
1121 # Extract the first word of "bash", so it can be a program name with args.
1122 set dummy bash; ac_word=$2
1123 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1124 echo "configure:1125: checking for $ac_word" >&5
1125 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1130 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
1133 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
1136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1138 for ac_dir in $ac_dummy; do
1139 test -z "$ac_dir" && ac_dir=.
1140 if test -f $ac_dir/$ac_word; then
1141 ac_cv_path_SHELL="$ac_dir/$ac_word"
1146 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
1150 SHELL="$ac_cv_path_SHELL"
1151 if test -n "$SHELL"; then
1152 echo "$ac_t""$SHELL" 1>&6
1154 echo "$ac_t""no" 1>&6
1158 # Extract the first word of "bash", so it can be a program name with args.
1159 set dummy bash; ac_word=$2
1160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161 echo "configure:1162: checking for $ac_word" >&5
1162 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1167 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1170 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1175 for ac_dir in $ac_dummy; do
1176 test -z "$ac_dir" && ac_dir=.
1177 if test -f $ac_dir/$ac_word; then
1178 ac_cv_path_BASH="$ac_dir/$ac_word"
1183 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1187 BASH="$ac_cv_path_BASH"
1188 if test -n "$BASH"; then
1189 echo "$ac_t""$BASH" 1>&6
1191 echo "$ac_t""no" 1>&6
1199 for ac_prog in python
1201 # Extract the first word of "$ac_prog", so it can be a program name with args.
1202 set dummy $ac_prog; ac_word=$2
1203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1204 echo "configure:1205: checking for $ac_word" >&5
1205 if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1208 if test -n "$PYTHON"; then
1209 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1213 for ac_dir in $ac_dummy; do
1214 test -z "$ac_dir" && ac_dir=.
1215 if test -f $ac_dir/$ac_word; then
1216 ac_cv_prog_PYTHON="$ac_prog"
1223 PYTHON="$ac_cv_prog_PYTHON"
1224 if test -n "$PYTHON"; then
1225 echo "$ac_t""$PYTHON" 1>&6
1227 echo "$ac_t""no" 1>&6
1230 test -n "$PYTHON" && break
1232 test -n "$PYTHON" || PYTHON="no"
1236 r="`eval echo '$'"PYTHON"`"
1237 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"PYTHON"`' : '.*\(echo\)' > /dev/null; then
1238 ##STEPMAKE_WARN(cannot find . )
1244 if test $? -ne 0; then
1246 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"python\"`\"
1248 if test "REQUIRED" = "REQUIRED"; then
1249 command="echo ERROR: python not found"
1250 # abort configure process here?
1252 command="- echo python not found"
1254 eval "PYTHON"='$command'
1260 if test $? -eq 0; then
1261 # Extract the first word of "python", so it can be a program name with args.
1262 set dummy python; ac_word=$2
1263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1264 echo "configure:1265: checking for $ac_word" >&5
1265 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1270 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1273 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1278 for ac_dir in $ac_dummy; do
1279 test -z "$ac_dir" && ac_dir=.
1280 if test -f $ac_dir/$ac_word; then
1281 ac_cv_path_PYTHON="$ac_dir/$ac_word"
1289 PYTHON="$ac_cv_path_PYTHON"
1290 if test -n "$PYTHON"; then
1291 echo "$ac_t""$PYTHON" 1>&6
1293 echo "$ac_t""no" 1>&6
1298 r="`eval echo '$'"PYTHON"`"
1299 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
1300 echo "configure:1301: checking "$r version"" >&5
1302 type -p "$r" 2>&1 | awk '{print $NF}'
1305 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
1308 echo "$ver" | awk -F. '
1313 {printf "%s%s%s\n",$1*100, $2*10,last}'
1321 {printf "%s%s%s\n",$1*100, $2*10,last}'
1323 echo "$ac_t"""$ver"" 1>&6
1324 if test "$num" -lt "$req"; then
1326 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\"
1334 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
1335 $MAKE -v 2> /dev/null | grep GNU > /dev/null
1336 if test "$?" = 1; then
1337 warn='make (Please install *GNU* make)'
1339 echo "configure: warning: $warn" 1>&2
1343 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
1348 if test "$OSTYPE" = "cygwin" -o "$OSTYPE" = "cygwin32" -o "$OSTYPE" = "Windows_NT"; then
1349 LN=cp # hard link does not work under cygnus-nt
1350 LN_S='cp -r' # symbolic link does not work for native nt
1356 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1364 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1372 cat >> confdefs.h <<EOF
1373 #define DIRSEP '${DIRSEP}'
1376 cat >> confdefs.h <<EOF
1377 #define PATHSEP '${PATHSEP}'
1384 if test "$datadir" = "\${prefix}/share"; then
1385 datadir='${prefix}/share/'$package
1387 DIR_DATADIR=${datadir}
1389 if test "$prefix" = "NONE"; then
1390 presome=${ac_default_prefix}
1392 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1398 cat >> confdefs.h <<EOF
1399 #define DIR_DATADIR "${DIR_DATADIR}"
1405 # For all packages except the StepMake package itself
1409 # Uncomment the configuration options your package needs.
1411 # -O is necessary to get inlining
1413 CXXFLAGS=${CXXFLAGS-$CFLAGS}
1414 LDFLAGS=${LDFLAGS-""}
1420 # Check whether --enable-checking or --disable-checking was given.
1421 if test "${enable_checking+set}" = set; then
1422 enableval="$enable_checking"
1423 checking_b=$enableval
1427 # Check whether --enable-debugging or --disable-debugging was given.
1428 if test "${enable_debugging+set}" = set; then
1429 enableval="$enable_debugging"
1434 # Check whether --enable-optimising or --disable-optimising was given.
1435 if test "${enable_optimising+set}" = set; then
1436 enableval="$enable_optimising"
1437 optimise_b=$enableval
1441 # Check whether --enable-profiling or --disable-profiling was given.
1442 if test "${enable_profiling+set}" = set; then
1443 enableval="$enable_profiling"
1444 profile_b=$enableval
1449 if test "$checking_b" = no; then
1451 cat >> confdefs.h <<\EOF
1455 DEFINES="$DEFINES -DNDEBUG"
1458 if test "$optimise_b" = yes; then
1459 OPTIMIZE="-O2 -finline-functions"
1463 if test $profile_b = yes; then
1465 OPTIMIZE="$OPTIMIZE -pg"
1468 if test $debug_b = yes; then
1469 OPTIMIZE="$OPTIMIZE -g"
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2
1475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1476 echo "configure:1477: checking for $ac_word" >&5
1477 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test.
1483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1485 for ac_dir in $ac_dummy; do
1486 test -z "$ac_dir" && ac_dir=.
1487 if test -f $ac_dir/$ac_word; then
1496 if test -n "$CC"; then
1497 echo "$ac_t""$CC" 1>&6
1499 echo "$ac_t""no" 1>&6
1502 if test -z "$CC"; then
1503 # Extract the first word of "cc", so it can be a program name with args.
1504 set dummy cc; ac_word=$2
1505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1506 echo "configure:1507: checking for $ac_word" >&5
1507 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1510 if test -n "$CC"; then
1511 ac_cv_prog_CC="$CC" # Let the user override the test.
1513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1516 for ac_dir in $ac_dummy; do
1517 test -z "$ac_dir" && ac_dir=.
1518 if test -f $ac_dir/$ac_word; then
1519 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1520 ac_prog_rejected=yes
1528 if test $ac_prog_rejected = yes; then
1529 # We found a bogon in the path, so make sure we never use it.
1530 set dummy $ac_cv_prog_CC
1532 if test $# -gt 0; then
1533 # We chose a different compiler from the bogus one.
1534 # However, it has the same basename, so the bogon will be chosen
1535 # first if we set CC to just the basename; use the full file name.
1537 set dummy "$ac_dir/$ac_word" "$@"
1545 if test -n "$CC"; then
1546 echo "$ac_t""$CC" 1>&6
1548 echo "$ac_t""no" 1>&6
1551 if test -z "$CC"; then
1552 case "`uname -s`" in
1554 # Extract the first word of "cl", so it can be a program name with args.
1555 set dummy cl; ac_word=$2
1556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1557 echo "configure:1558: checking for $ac_word" >&5
1558 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1561 if test -n "$CC"; then
1562 ac_cv_prog_CC="$CC" # Let the user override the test.
1564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1566 for ac_dir in $ac_dummy; do
1567 test -z "$ac_dir" && ac_dir=.
1568 if test -f $ac_dir/$ac_word; then
1577 if test -n "$CC"; then
1578 echo "$ac_t""$CC" 1>&6
1580 echo "$ac_t""no" 1>&6
1585 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1588 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1589 echo "configure:1590: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1593 ac_cpp='$CPP $CPPFLAGS'
1594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1596 cross_compiling=$ac_cv_prog_cc_cross
1598 cat > conftest.$ac_ext << EOF
1600 #line 1601 "configure"
1601 #include "confdefs.h"
1605 if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1606 ac_cv_prog_cc_works=yes
1607 # If we can't run a trivial program, we are probably using a cross compiler.
1608 if (./conftest; exit) 2>/dev/null; then
1609 ac_cv_prog_cc_cross=no
1611 ac_cv_prog_cc_cross=yes
1614 echo "configure: failed program was:" >&5
1615 cat conftest.$ac_ext >&5
1616 ac_cv_prog_cc_works=no
1620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1621 ac_cpp='$CPP $CPPFLAGS'
1622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1624 cross_compiling=$ac_cv_prog_cc_cross
1626 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1627 if test $ac_cv_prog_cc_works = no; then
1628 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1630 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1631 echo "configure:1632: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1632 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1633 cross_compiling=$ac_cv_prog_cc_cross
1635 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1636 echo "configure:1637: checking whether we are using GNU C" >&5
1637 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1640 cat > conftest.c <<EOF
1645 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1652 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1654 if test $ac_cv_prog_gcc = yes; then
1660 ac_test_CFLAGS="${CFLAGS+set}"
1661 ac_save_CFLAGS="$CFLAGS"
1663 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1664 echo "configure:1665: checking whether ${CC-cc} accepts -g" >&5
1665 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 echo 'void f(){}' > conftest.c
1669 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1678 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1679 if test "$ac_test_CFLAGS" = set; then
1680 CFLAGS="$ac_save_CFLAGS"
1681 elif test $ac_cv_prog_cc_g = yes; then
1682 if test "$GCC" = yes; then
1688 if test "$GCC" = yes; then
1697 r="`eval echo '$'"CC"`"
1698 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
1699 ##STEPMAKE_WARN(cannot find . )
1705 if test $? -ne 0; then
1707 eval ""=\"`eval echo \"'$'\" \"cc\"`\"
1709 if test "" = "REQUIRED"; then
1710 command="echo ERROR: cc not found"
1711 # abort configure process here?
1713 command="- echo cc not found"
1715 eval "CC"='$command'
1724 CFLAGS="$CFLAGS $OPTIMIZE"
1725 CPPFLAGS=${CPPFLAGS-""}
1727 echo $ac_n "checking for IEEE-conformance compiler flags""... $ac_c" 1>&6
1728 echo "configure:1729: checking for IEEE-conformance compiler flags" >&5
1729 save_cflags="$CFLAGS"
1732 echo "$ac_t""-mieee" 1>&6
1733 CFLAGS="-mieee $CFLAGS"
1736 echo "$ac_t""none" 1>&6
1748 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1749 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1750 echo "configure:1751: checking how to run the C preprocessor" >&5
1751 # On Suns, sometimes $CPP names a directory.
1752 if test -n "$CPP" && test -d "$CPP"; then
1755 if test -z "$CPP"; then
1756 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1757 echo $ac_n "(cached) $ac_c" 1>&6
1759 # This must be in double quotes, not single quotes, because CPP may get
1760 # substituted into the Makefile and "${CC-cc}" will confuse make.
1762 # On the NeXT, cc -E runs the code through the compiler's parser,
1763 # not just through cpp.
1764 cat > conftest.$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1771 { (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1773 if test -z "$ac_err"; then
1777 echo "configure: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1780 CPP="${CC-cc} -E -traditional-cpp"
1781 cat > conftest.$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1788 { (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1790 if test -z "$ac_err"; then
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1797 CPP="${CC-cc} -nologo -E"
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1805 { (eval echo configure:1806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1807 if test -z "$ac_err"; then
1811 echo "configure: failed program was:" >&5
1812 cat conftest.$ac_ext >&5
1821 ac_cv_prog_CPP="$CPP"
1823 CPP="$ac_cv_prog_CPP"
1825 ac_cv_prog_CPP="$CPP"
1827 echo "$ac_t""$CPP" 1>&6
1829 for ac_hdr in assert.h sys/stat.h
1831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $ac_hdr" >&5
1834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1837 cat > conftest.$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1843 { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1845 if test -z "$ac_err"; then
1847 eval "ac_cv_header_$ac_safe=yes"
1850 echo "configure: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1853 eval "ac_cv_header_$ac_safe=no"
1857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1858 echo "$ac_t""yes" 1>&6
1859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1860 cat >> confdefs.h <<EOF
1861 #define $ac_tr_hdr 1
1865 echo "$ac_t""no" 1>&6
1869 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1870 echo "configure:1871: checking whether stat file-mode macros are broken" >&5
1871 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1874 cat > conftest.$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 #include <sys/types.h>
1878 #include <sys/stat.h>
1880 #if defined(S_ISBLK) && defined(S_IFDIR)
1881 # if S_ISBLK (S_IFDIR)
1886 #if defined(S_ISBLK) && defined(S_IFCHR)
1887 # if S_ISBLK (S_IFCHR)
1892 #if defined(S_ISLNK) && defined(S_IFREG)
1893 # if S_ISLNK (S_IFREG)
1898 #if defined(S_ISSOCK) && defined(S_IFREG)
1899 # if S_ISSOCK (S_IFREG)
1905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1906 egrep "You lose" >/dev/null 2>&1; then
1908 ac_cv_header_stat_broken=yes
1911 ac_cv_header_stat_broken=no
1917 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1918 if test $ac_cv_header_stat_broken = yes; then
1919 cat >> confdefs.h <<\EOF
1920 #define STAT_MACROS_BROKEN 1
1926 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1927 echo "configure:1928: checking how to run the C++ preprocessor" >&5
1928 if test -z "$CXXCPP"; then
1929 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1933 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1934 ac_cpp='$CXXCPP $CPPFLAGS'
1935 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1936 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1937 cross_compiling=$ac_cv_prog_cxx_cross
1938 CXXCPP="${CXX-g++} -E"
1939 cat > conftest.$ac_ext <<EOF
1940 #line 1941 "configure"
1941 #include "confdefs.h"
1944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1945 { (eval echo configure:1946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1947 if test -z "$ac_err"; then
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1957 ac_cv_prog_CXXCPP="$CXXCPP"
1959 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1960 ac_cpp='$CXXCPP $CPPFLAGS'
1961 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1962 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1963 cross_compiling=$ac_cv_prog_cxx_cross
1966 CXXCPP="$ac_cv_prog_CXXCPP"
1967 echo "$ac_t""$CXXCPP" 1>&6
1971 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1972 ac_cpp='$CXXCPP $CPPFLAGS'
1973 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1974 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1975 cross_compiling=$ac_cv_prog_cxx_cross
1977 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1979 # Extract the first word of "$ac_prog", so it can be a program name with args.
1980 set dummy $ac_prog; ac_word=$2
1981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1982 echo "configure:1983: checking for $ac_word" >&5
1983 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 if test -n "$CXX"; then
1987 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1991 for ac_dir in $ac_dummy; do
1992 test -z "$ac_dir" && ac_dir=.
1993 if test -f $ac_dir/$ac_word; then
1994 ac_cv_prog_CXX="$ac_prog"
2001 CXX="$ac_cv_prog_CXX"
2002 if test -n "$CXX"; then
2003 echo "$ac_t""$CXX" 1>&6
2005 echo "$ac_t""no" 1>&6
2008 test -n "$CXX" && break
2010 test -n "$CXX" || CXX="gcc"
2013 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2014 echo "configure:2015: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2017 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2018 ac_cpp='$CXXCPP $CPPFLAGS'
2019 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2020 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2021 cross_compiling=$ac_cv_prog_cxx_cross
2023 cat > conftest.$ac_ext << EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2028 int main(){return(0);}
2030 if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2031 ac_cv_prog_cxx_works=yes
2032 # If we can't run a trivial program, we are probably using a cross compiler.
2033 if (./conftest; exit) 2>/dev/null; then
2034 ac_cv_prog_cxx_cross=no
2036 ac_cv_prog_cxx_cross=yes
2039 echo "configure: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2041 ac_cv_prog_cxx_works=no
2045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2046 ac_cpp='$CXXCPP $CPPFLAGS'
2047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2049 cross_compiling=$ac_cv_prog_cxx_cross
2051 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2052 if test $ac_cv_prog_cxx_works = no; then
2053 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2055 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2056 echo "configure:2057: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2057 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2058 cross_compiling=$ac_cv_prog_cxx_cross
2060 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2061 echo "configure:2062: checking whether we are using GNU C++" >&5
2062 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 cat > conftest.C <<EOF
2070 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2077 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2079 if test $ac_cv_prog_gxx = yes; then
2085 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2086 ac_save_CXXFLAGS="$CXXFLAGS"
2088 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2089 echo "configure:2090: checking whether ${CXX-g++} accepts -g" >&5
2090 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2093 echo 'void f(){}' > conftest.cc
2094 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2095 ac_cv_prog_cxx_g=yes
2103 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2104 if test "$ac_test_CXXFLAGS" = set; then
2105 CXXFLAGS="$ac_save_CXXFLAGS"
2106 elif test $ac_cv_prog_cxx_g = yes; then
2107 if test "$GXX" = yes; then
2113 if test "$GXX" = yes; then
2122 r="`eval echo '$'"CXX"`"
2123 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
2124 ##STEPMAKE_WARN(cannot find . )
2130 if test $? -ne 0; then
2132 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
2134 if test "REQUIRED" = "REQUIRED"; then
2135 command="echo ERROR: c++ not found"
2136 # abort configure process here?
2138 command="- echo c++ not found"
2140 eval "CXX"='$command'
2147 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
2148 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
2149 echo "configure:2150: checking for FlexLexer.h" >&5
2150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 cat > conftest.$ac_ext <<EOF
2154 #line 2155 "configure"
2155 #include "confdefs.h"
2156 #include <FlexLexer.h>
2158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2159 { (eval echo configure:2160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2161 if test -z "$ac_err"; then
2163 eval "ac_cv_header_$ac_safe=yes"
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 eval "ac_cv_header_$ac_safe=no"
2173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2174 echo "$ac_t""yes" 1>&6
2177 echo "$ac_t""no" 1>&6
2179 echo "configure: warning: cannot find flex header. Please install Flex headers correctly" 1>&2
2185 CPPFLAGS="$CPPFLAGS $DEFINES"
2186 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
2187 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
2195 echo $ac_n "checking "g++ version"""... $ac_c" 1>&6
2196 echo "configure:2197: checking "g++ version"" >&5
2197 cxx_version=`$CXX --version`
2198 echo "$ac_t"""$cxx_version"" 1>&6
2199 # urg, egcs: how to check for egcs >= 1.1?
2200 if expr "$cxx_version" : '.*2\.[89]' > /dev/null ||
2201 expr "$cxx_version" : '.*egcs' > /dev/null ||
2202 expr "$cxx_version" : '3\.[0-9]' > /dev/null
2207 echo "configure: warning: cannot find g++ 2.8" 1>&2
2211 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'g++ >= 2.95 (gcc package)'\"`\"
2216 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
2217 echo "configure:2218: checking whether explicit instantiation is needed" >&5
2218 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 cat > conftest.$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2225 template <class T> struct foo { static int baz; };
2226 template <class T> int foo<T>::baz = 1;
2229 return foo<int>::baz;
2232 if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2234 lily_cv_need_explicit_instantiation=no
2236 echo "configure: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2239 lily_cv_need_explicit_instantiation=yes
2244 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
2245 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
2246 cat >> confdefs.h <<\EOF
2247 #define NEED_EXPLICIT_INSTANTIATION 1
2253 # ugh, automake: we want (and check for) bison
2254 for ac_prog in 'bison -y' byacc
2256 # Extract the first word of "$ac_prog", so it can be a program name with args.
2257 set dummy $ac_prog; ac_word=$2
2258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2259 echo "configure:2260: checking for $ac_word" >&5
2260 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 if test -n "$YACC"; then
2264 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2268 for ac_dir in $ac_dummy; do
2269 test -z "$ac_dir" && ac_dir=.
2270 if test -f $ac_dir/$ac_word; then
2271 ac_cv_prog_YACC="$ac_prog"
2278 YACC="$ac_cv_prog_YACC"
2279 if test -n "$YACC"; then
2280 echo "$ac_t""$YACC" 1>&6
2282 echo "$ac_t""no" 1>&6
2285 test -n "$YACC" && break
2287 test -n "$YACC" || YACC="yacc"
2291 for ac_prog in bison
2293 # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2296 echo "configure:2297: checking for $ac_word" >&5
2297 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 if test -n "$BISON"; then
2301 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2305 for ac_dir in $ac_dummy; do
2306 test -z "$ac_dir" && ac_dir=.
2307 if test -f $ac_dir/$ac_word; then
2308 ac_cv_prog_BISON="$ac_prog"
2315 BISON="$ac_cv_prog_BISON"
2316 if test -n "$BISON"; then
2317 echo "$ac_t""$BISON" 1>&6
2319 echo "$ac_t""no" 1>&6
2322 test -n "$BISON" && break
2324 test -n "$BISON" || BISON="no"
2328 r="`eval echo '$'"BISON"`"
2329 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
2330 ##STEPMAKE_WARN(cannot find . )
2336 if test $? -ne 0; then
2338 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"bison\"`\"
2340 if test "REQUIRED" = "REQUIRED"; then
2341 command="echo ERROR: bison not found"
2342 # abort configure process here?
2344 command="- echo bison not found"
2346 eval "BISON"='$command'
2352 if test $? -eq 0 -a -n ""; then
2354 r="`eval echo '$'"BISON"`"
2355 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
2356 echo "configure:2357: checking "$r version"" >&5
2358 type -p "$r" 2>&1 | awk '{print $NF}'
2361 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
2364 echo "$ver" | awk -F. '
2369 {printf "%s%s%s\n",$1*100, $2*10,last}'
2377 {printf "%s%s%s\n",$1*100, $2*10,last}'
2379 echo "$ac_t"""$ver"" 1>&6
2380 if test "$num" -lt "$req"; then
2382 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\"
2389 # urg. should test functionality rather than version.
2390 if test "$BISON" = "bison" -a -n "1.25"; then
2392 r="`eval echo '$'"BISON"`"
2393 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
2394 echo "configure:2395: checking "$r version"" >&5
2396 type -p "$r" 2>&1 | awk '{print $NF}'
2399 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
2402 echo "$ver" | awk -F. '
2407 {printf "%s%s%s\n",$1*100, $2*10,last}'
2410 echo "1.25" | awk -F. '
2415 {printf "%s%s%s\n",$1*100, $2*10,last}'
2417 echo "$ac_t"""$ver"" 1>&6
2418 if test "$num" -lt "$req"; then
2420 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r 1.25 (installed: $ver)"\"`\"
2427 # ugh, automake: we want (and check for) flex
2429 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
2433 ac_cv_prog_lex_root=lex.yy
2437 # Extract the first word of "$ac_prog", so it can be a program name with args.
2438 set dummy $ac_prog; ac_word=$2
2439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2440 echo "configure:2441: checking for $ac_word" >&5
2441 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 if test -n "$FLEX"; then
2445 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2449 for ac_dir in $ac_dummy; do
2450 test -z "$ac_dir" && ac_dir=.
2451 if test -f $ac_dir/$ac_word; then
2452 ac_cv_prog_FLEX="$ac_prog"
2459 FLEX="$ac_cv_prog_FLEX"
2460 if test -n "$FLEX"; then
2461 echo "$ac_t""$FLEX" 1>&6
2463 echo "$ac_t""no" 1>&6
2466 test -n "$FLEX" && break
2468 test -n "$FLEX" || FLEX="no"
2472 r="`eval echo '$'"FLEX"`"
2473 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
2474 ##STEPMAKE_WARN(cannot find . )
2480 if test $? -ne 0; then
2482 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
2484 if test "REQUIRED" = "REQUIRED"; then
2485 command="echo ERROR: flex not found"
2486 # abort configure process here?
2488 command="- echo flex not found"
2490 eval "FLEX"='$command'
2496 if test $? -eq 0 -a -n ""; then
2498 r="`eval echo '$'"FLEX"`"
2499 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
2500 echo "configure:2501: checking "$r version"" >&5
2502 type -p "$r" 2>&1 | awk '{print $NF}'
2505 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
2508 echo "$ver" | awk -F. '
2513 {printf "%s%s%s\n",$1*100, $2*10,last}'
2521 {printf "%s%s%s\n",$1*100, $2*10,last}'
2523 echo "$ac_t"""$ver"" 1>&6
2524 if test "$num" -lt "$req"; then
2526 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\"
2537 # Extract the first word of "$ac_prog", so it can be a program name with args.
2538 set dummy $ac_prog; ac_word=$2
2539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_word" >&5
2541 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 if test -n "$AR"; then
2545 ac_cv_prog_AR="$AR" # Let the user override the test.
2547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2549 for ac_dir in $ac_dummy; do
2550 test -z "$ac_dir" && ac_dir=.
2551 if test -f $ac_dir/$ac_word; then
2552 ac_cv_prog_AR="$ac_prog"
2560 if test -n "$AR"; then
2561 echo "$ac_t""$AR" 1>&6
2563 echo "$ac_t""no" 1>&6
2566 test -n "$AR" && break
2568 test -n "$AR" || AR="no"
2572 r="`eval echo '$'"AR"`"
2573 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
2574 ##STEPMAKE_WARN(cannot find . )
2580 if test $? -ne 0; then
2582 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
2584 if test "REQUIRED" = "REQUIRED"; then
2585 command="echo ERROR: ar not found"
2586 # abort configure process here?
2588 command="- echo ar not found"
2590 eval "AR"='$command'
2596 if test $? -eq 0 -a -n ""; then
2598 r="`eval echo '$'"AR"`"
2599 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
2600 echo "configure:2601: checking "$r version"" >&5
2602 type -p "$r" 2>&1 | awk '{print $NF}'
2605 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
2608 echo "$ver" | awk -F. '
2613 {printf "%s%s%s\n",$1*100, $2*10,last}'
2621 {printf "%s%s%s\n",$1*100, $2*10,last}'
2623 echo "$ac_t"""$ver"" 1>&6
2624 if test "$num" -lt "$req"; then
2626 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\"
2632 # Extract the first word of "ranlib", so it can be a program name with args.
2633 set dummy ranlib; ac_word=$2
2634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2635 echo "configure:2636: checking for $ac_word" >&5
2636 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2639 if test -n "$RANLIB"; then
2640 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2644 for ac_dir in $ac_dummy; do
2645 test -z "$ac_dir" && ac_dir=.
2646 if test -f $ac_dir/$ac_word; then
2647 ac_cv_prog_RANLIB="ranlib"
2652 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2655 RANLIB="$ac_cv_prog_RANLIB"
2656 if test -n "$RANLIB"; then
2657 echo "$ac_t""$RANLIB" 1>&6
2659 echo "$ac_t""no" 1>&6
2664 r="`eval echo '$'"RANLIB"`"
2665 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
2666 ##STEPMAKE_WARN(cannot find . )
2672 if test $? -ne 0; then
2674 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
2676 if test "REQUIRED" = "REQUIRED"; then
2677 command="echo ERROR: ranlib not found"
2678 # abort configure process here?
2680 command="- echo ranlib not found"
2682 eval "RANLIB"='$command'
2694 # Check whether --with-localedir or --without-localedir was given.
2695 if test "${with_localedir+set}" = set; then
2696 withval="$with_localedir"
2697 localedir=$with_localedir
2699 localedir='${prefix}/share/locale'
2703 # Check whether --with-lang or --without-lang was given.
2704 if test "${with_lang+set}" = set; then
2705 withval="$with_lang"
2712 echo $ac_n "checking language""... $ac_c" 1>&6
2713 echo "configure:2714: checking language" >&5
2715 En* | en* | Am* | am* | US* | us*)
2717 NL | nl | Du* | du* | Ned* | ned*)
2724 echo "$ac_t""$lang" 1>&6
2726 if test "$lang" = "unknown" ; then
2728 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2735 DIR_LOCALEDIR=${localedir}
2737 if test "$prefix" = "NONE"; then
2738 presome=${ac_default_prefix}
2740 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2743 cat >> confdefs.h <<EOF
2744 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2748 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2749 echo "configure:2750: checking for gettext in -lintl" >&5
2750 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 ac_save_LIBS="$LIBS"
2756 cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 /* Override any gcc2 internal prototype to avoid an error. */
2763 /* We use char because int might match the return type of a gcc2
2764 builtin and then its argument prototype would still apply. */
2771 if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2773 eval "ac_cv_lib_$ac_lib_var=yes"
2775 echo "configure: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2778 eval "ac_cv_lib_$ac_lib_var=no"
2781 LIBS="$ac_save_LIBS"
2784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2785 echo "$ac_t""yes" 1>&6
2786 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2787 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2788 cat >> confdefs.h <<EOF
2789 #define $ac_tr_lib 1
2795 echo "$ac_t""no" 1>&6
2798 for ac_func in gettext
2800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2801 echo "configure:2802: checking for $ac_func" >&5
2802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2805 cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 /* System header to define __stub macros and hopefully few prototypes,
2809 which can conflict with char $ac_func(); below. */
2811 /* Override any gcc2 internal prototype to avoid an error. */
2815 /* We use char because int might match the return type of a gcc2
2816 builtin and then its argument prototype would still apply. */
2821 /* The GNU C library defines this for functions which it implements
2822 to always fail with ENOSYS. Some functions are actually named
2823 something starting with __ and the normal name is an alias. */
2824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2832 if { (eval echo configure:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2834 eval "ac_cv_func_$ac_func=yes"
2836 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2839 eval "ac_cv_func_$ac_func=no"
2844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2845 echo "$ac_t""yes" 1>&6
2846 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2847 cat >> confdefs.h <<EOF
2848 #define $ac_tr_func 1
2852 echo "$ac_t""no" 1>&6
2859 for ac_prog in msgfmt
2861 # Extract the first word of "$ac_prog", so it can be a program name with args.
2862 set dummy $ac_prog; ac_word=$2
2863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2864 echo "configure:2865: checking for $ac_word" >&5
2865 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2868 if test -n "$MSGFMT"; then
2869 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2873 for ac_dir in $ac_dummy; do
2874 test -z "$ac_dir" && ac_dir=.
2875 if test -f $ac_dir/$ac_word; then
2876 ac_cv_prog_MSGFMT="$ac_prog"
2883 MSGFMT="$ac_cv_prog_MSGFMT"
2884 if test -n "$MSGFMT"; then
2885 echo "$ac_t""$MSGFMT" 1>&6
2887 echo "$ac_t""no" 1>&6
2890 test -n "$MSGFMT" && break
2892 test -n "$MSGFMT" || MSGFMT="no"
2896 r="`eval echo '$'"MSGFMT"`"
2897 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
2898 ##STEPMAKE_WARN(cannot find . )
2904 if test $? -ne 0; then
2906 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
2908 if test "REQUIRED" = "REQUIRED"; then
2909 command="echo ERROR: msgfmt not found"
2910 # abort configure process here?
2912 command="- echo msgfmt not found"
2914 eval "MSGFMT"='$command'
2920 if test $? -eq 0 -a -n ""; then
2922 r="`eval echo '$'"MSGFMT"`"
2923 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
2924 echo "configure:2925: checking "$r version"" >&5
2926 type -p "$r" 2>&1 | awk '{print $NF}'
2929 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
2932 echo "$ver" | awk -F. '
2937 {printf "%s%s%s\n",$1*100, $2*10,last}'
2945 {printf "%s%s%s\n",$1*100, $2*10,last}'
2947 echo "$ac_t"""$ver"" 1>&6
2948 if test "$num" -lt "$req"; then
2950 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\"
2958 # urg, never know what names these teTeX guys will think up
2961 for ac_prog in mf mfont
2963 # Extract the first word of "$ac_prog", so it can be a program name with args.
2964 set dummy $ac_prog; ac_word=$2
2965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2966 echo "configure:2967: checking for $ac_word" >&5
2967 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2970 if test -n "$METAFONT"; then
2971 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2975 for ac_dir in $ac_dummy; do
2976 test -z "$ac_dir" && ac_dir=.
2977 if test -f $ac_dir/$ac_word; then
2978 ac_cv_prog_METAFONT="$ac_prog"
2985 METAFONT="$ac_cv_prog_METAFONT"
2986 if test -n "$METAFONT"; then
2987 echo "$ac_t""$METAFONT" 1>&6
2989 echo "$ac_t""no" 1>&6
2992 test -n "$METAFONT" && break
2994 test -n "$METAFONT" || METAFONT="no"
2998 r="`eval echo '$'"METAFONT"`"
2999 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
3000 ##STEPMAKE_WARN(cannot find . )
3006 if test $? -ne 0; then
3008 eval ""=\"`eval echo \"'$'\" \"mf mfont\"`\"
3010 if test "" = "REQUIRED"; then
3011 command="echo ERROR: mf mfont not found"
3012 # abort configure process here?
3014 command="- echo mf mfont not found"
3016 eval "METAFONT"='$command'
3022 if test $? -eq 0 -a -n ""; then
3024 r="`eval echo '$'"METAFONT"`"
3025 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
3026 echo "configure:3027: checking "$r version"" >&5
3028 type -p "$r" 2>&1 | awk '{print $NF}'
3031 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
3034 echo "$ver" | awk -F. '
3039 {printf "%s%s%s\n",$1*100, $2*10,last}'
3047 {printf "%s%s%s\n",$1*100, $2*10,last}'
3049 echo "$ac_t"""$ver"" 1>&6
3050 if test "$num" -lt "$req"; then
3052 eval ""=\"`eval echo \"'$'\" \""$r (installed: $ver)"\"`\"
3059 for ac_prog in inimf inimfont
3061 # Extract the first word of "$ac_prog", so it can be a program name with args.
3062 set dummy $ac_prog; ac_word=$2
3063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3064 echo "configure:3065: checking for $ac_word" >&5
3065 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 if test -n "$INIMETAFONT"; then
3069 ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
3071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3073 for ac_dir in $ac_dummy; do
3074 test -z "$ac_dir" && ac_dir=.
3075 if test -f $ac_dir/$ac_word; then
3076 ac_cv_prog_INIMETAFONT="$ac_prog"
3083 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
3084 if test -n "$INIMETAFONT"; then
3085 echo "$ac_t""$INIMETAFONT" 1>&6
3087 echo "$ac_t""no" 1>&6
3090 test -n "$INIMETAFONT" && break
3092 test -n "$INIMETAFONT" || INIMETAFONT="no"
3096 r="`eval echo '$'"INIMETAFONT"`"
3097 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"INIMETAFONT"`' : '.*\(echo\)' > /dev/null; then
3098 ##STEPMAKE_WARN(cannot find . )
3104 if test $? -ne 0; then
3106 eval ""=\"`eval echo \"'$'\" \"inimf inimfont\"`\"
3108 if test "" = "REQUIRED"; then
3109 command="echo ERROR: inimf inimfont not found"
3110 # abort configure process here?
3112 command="- echo inimf inimfont not found"
3114 eval "INIMETAFONT"='$command'
3120 if test $? -eq 0 -a -n ""; then
3122 r="`eval echo '$'"INIMETAFONT"`"
3123 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
3124 echo "configure:3125: checking "$r version"" >&5
3126 type -p "$r" 2>&1 | awk '{print $NF}'
3129 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
3132 echo "$ver" | awk -F. '
3137 {printf "%s%s%s\n",$1*100, $2*10,last}'
3145 {printf "%s%s%s\n",$1*100, $2*10,last}'
3147 echo "$ac_t"""$ver"" 1>&6
3148 if test "$num" -lt "$req"; then
3150 eval ""=\"`eval echo \"'$'\" \""$r (installed: $ver)"\"`\"
3157 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
3158 echo "configure:3159: checking for working metafont mode" >&5
3159 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
3160 for MFMODE in $modelist; do
3161 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
3162 if test -f mfput.tfm; then
3166 echo "$ac_t""$MFMODE" 1>&6
3173 # Check whether --enable-tfm-path or --disable-tfm-path was given.
3174 if test "${enable_tfm_path+set}" = set; then
3175 enableval="$enable_tfm_path"
3184 for ac_prog in kpsewhich
3186 # Extract the first word of "$ac_prog", so it can be a program name with args.
3187 set dummy $ac_prog; ac_word=$2
3188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3189 echo "configure:3190: checking for $ac_word" >&5
3190 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 if test -n "$KPSEWHICH"; then
3194 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
3196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3198 for ac_dir in $ac_dummy; do
3199 test -z "$ac_dir" && ac_dir=.
3200 if test -f $ac_dir/$ac_word; then
3201 ac_cv_prog_KPSEWHICH="$ac_prog"
3208 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
3209 if test -n "$KPSEWHICH"; then
3210 echo "$ac_t""$KPSEWHICH" 1>&6
3212 echo "$ac_t""no" 1>&6
3215 test -n "$KPSEWHICH" && break
3217 test -n "$KPSEWHICH" || KPSEWHICH="no"
3221 r="`eval echo '$'"KPSEWHICH"`"
3222 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
3223 ##STEPMAKE_WARN(cannot find . )
3229 if test $? -ne 0; then
3231 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"kpsewhich\"`\"
3233 if test "OPTIONAL" = "REQUIRED"; then
3234 command="echo ERROR: kpsewhich not found"
3235 # abort configure process here?
3237 command="- echo kpsewhich not found"
3239 eval "KPSEWHICH"='$command'
3245 if test $? -eq 0 -a -n ""; then
3247 r="`eval echo '$'"KPSEWHICH"`"
3248 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
3249 echo "configure:3250: checking "$r version"" >&5
3251 type -p "$r" 2>&1 | awk '{print $NF}'
3254 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
3257 echo "$ver" | awk -F. '
3262 {printf "%s%s%s\n",$1*100, $2*10,last}'
3270 {printf "%s%s%s\n",$1*100, $2*10,last}'
3272 echo "$ac_t"""$ver"" 1>&6
3273 if test "$num" -lt "$req"; then
3275 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r (installed: $ver)"\"`\"
3281 echo $ac_n "checking for tfm path""... $ac_c" 1>&6
3282 echo "configure:3283: checking for tfm path" >&5
3284 TFM_FONTS="cmr msam"
3286 if test "x$tfm_path" = xauto ; then
3287 if test "x$KPSEWHICH" != "xno" ; then
3288 for i in $TFM_FONTS; do
3289 dir=`$KPSEWHICH tfm ${i}10.tfm`
3290 TFM_PATH="$TFM_PATH `dirname $dir`"
3294 echo "configure: warning: Please specify where cmr10.tfm lives:
3295 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
3303 TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
3304 echo "$ac_t""$TFM_PATH" 1>&6
3308 ## First, let's just see if we can find Guile at all.
3309 echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6
3310 echo "configure:3311: checking "for guile-config"" >&5
3311 for guile_config in guile-config $target-guile-config $build-guile-config; do
3312 echo "$ac_t"""$guile_config"" 1>&6
3313 if ! $guile_config --version > /dev/null 2>&1 ; then
3314 echo "configure: warning: "cannot execute $guile_config"" 1>&2
3315 echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6
3316 echo "configure:3317: checking "if we are cross compiling"" >&5
3317 GUILE_CONFIG='echo no guile-config'
3319 GUILE_CONFIG=$guile_config
3325 r="`eval echo '$'"GUILE_CONFIG"`"
3326 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
3327 ##STEPMAKE_WARN(cannot find . )
3333 if test $? -ne 0; then
3335 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$guile_config\"`\"
3337 if test "REQUIRED" = "REQUIRED"; then
3338 command="echo ERROR: $guile_config not found"
3339 # abort configure process here?
3341 command="- echo $guile_config not found"
3343 eval "GUILE_CONFIG"='$command'
3349 #if expr "$GUILE_CONFIG" : '.*\(echo\)' >/dev/null; then
3350 if test $? -ne 0; then
3352 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'guile-config (guile-devel, guile-dev or libguile-dev package)'\"`\"
3357 r="`eval echo '$'"GUILE_CONFIG"`"
3358 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
3359 ##STEPMAKE_WARN(cannot find . )
3365 # urg. should test functionality rather than version.
3366 if test $? -eq 0 -a -n "1.3.4"; then
3368 r="`eval echo '$'"GUILE_CONFIG"`"
3369 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
3370 echo "configure:3371: checking "$r version"" >&5
3372 type -p "$r" 2>&1 | awk '{print $NF}'
3375 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
3378 echo "$ver" | awk -F. '
3383 {printf "%s%s%s\n",$1*100, $2*10,last}'
3386 echo "1.3.4" | awk -F. '
3391 {printf "%s%s%s\n",$1*100, $2*10,last}'
3393 echo "$ac_t"""$ver"" 1>&6
3394 if test "$num" -lt "$req"; then
3396 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r 1.3.4 (installed: $ver)"\"`\"
3404 guile_version="$ver"
3405 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
3406 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
3409 type -p "$guile_config" 2>&1 | awk '{print $NF}'
3411 if test -x $exe; then
3412 echo $ac_n "checking "guile compile flags"""... $ac_c" 1>&6
3413 echo "configure:3414: checking "guile compile flags"" >&5
3414 GUILE_CFLAGS="`$guile_config compile`"
3415 echo "$ac_t""$GUILE_CFLAGS" 1>&6
3416 echo $ac_n "checking "guile link flags"""... $ac_c" 1>&6
3417 echo "configure:3418: checking "guile link flags"" >&5
3418 GUILE_LDFLAGS="`$guile_config link`"
3419 echo "$ac_t""$GUILE_LDFLAGS" 1>&6
3424 cat >> confdefs.h <<EOF
3425 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
3428 cat >> confdefs.h <<EOF
3429 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
3436 #FIXME --with-xxx is meant for specifying a PATH too,
3437 # so this should read: --enable-kpathsea,
3438 # or --with-kpathsea-include=PATH --with-kpathsea-lib=PATH
3439 # Check whether --with-kpathsea or --without-kpathsea was given.
3440 if test "${with_kpathsea+set}" = set; then
3441 withval="$with_kpathsea"
3442 kpathsea_b=$with_kpathsea
3446 if test "$kpathsea_b" != "no"; then
3447 for ac_hdr in kpathsea/kpathsea.h
3449 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3450 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3451 echo "configure:3452: checking for $ac_hdr" >&5
3452 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3461 { (eval echo configure:3462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3463 if test -z "$ac_err"; then
3465 eval "ac_cv_header_$ac_safe=yes"
3468 echo "configure: failed program was:" >&5
3469 cat conftest.$ac_ext >&5
3471 eval "ac_cv_header_$ac_safe=no"
3475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3476 echo "$ac_t""yes" 1>&6
3477 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3478 cat >> confdefs.h <<EOF
3479 #define $ac_tr_hdr 1
3483 echo "$ac_t""no" 1>&6
3487 echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
3488 echo "configure:3489: checking for kpse_find_file in -lkpathsea" >&5
3489 ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
3490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3493 ac_save_LIBS="$LIBS"
3494 LIBS="-lkpathsea $LIBS"
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 /* Override any gcc2 internal prototype to avoid an error. */
3502 /* We use char because int might match the return type of a gcc2
3503 builtin and then its argument prototype would still apply. */
3504 char kpse_find_file();
3510 if { (eval echo configure:3511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3512 eval "ac_cv_lib_$ac_lib_var=yes"
3514 echo "configure: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3517 eval "ac_cv_lib_$ac_lib_var=no"
3520 LIBS="$ac_save_LIBS"
3523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3524 echo "$ac_t""yes" 1>&6
3525 ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3526 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3527 cat >> confdefs.h <<EOF
3528 #define $ac_tr_lib 1
3531 LIBS="-lkpathsea $LIBS"
3534 echo "$ac_t""no" 1>&6
3537 for ac_func in kpse_find_file
3539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3540 echo "configure:3541: checking for $ac_func" >&5
3541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3542 echo $ac_n "(cached) $ac_c" 1>&6
3544 cat > conftest.$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 /* System header to define __stub macros and hopefully few prototypes,
3548 which can conflict with char $ac_func(); below. */
3550 /* Override any gcc2 internal prototype to avoid an error. */
3554 /* We use char because int might match the return type of a gcc2
3555 builtin and then its argument prototype would still apply. */
3560 /* The GNU C library defines this for functions which it implements
3561 to always fail with ENOSYS. Some functions are actually named
3562 something starting with __ and the normal name is an alias. */
3563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3573 eval "ac_cv_func_$ac_func=yes"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 eval "ac_cv_func_$ac_func=no"
3583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3584 echo "$ac_t""yes" 1>&6
3585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3586 cat >> confdefs.h <<EOF
3587 #define $ac_tr_func 1
3591 echo "$ac_t""no" 1>&6
3592 { 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; }
3597 echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
3598 echo "configure:3599: checking whether to use kpathsea" >&5
3599 if test "$kpathsea_b" != no; then
3600 echo "$ac_t""yes" 1>&6
3603 echo "$ac_t""no" 1>&6
3608 cat >> confdefs.h <<EOF
3609 #define KPATHSEA $KPATHSEA
3615 for ac_prog in makeinfo
3617 # Extract the first word of "$ac_prog", so it can be a program name with args.
3618 set dummy $ac_prog; ac_word=$2
3619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3620 echo "configure:3621: checking for $ac_word" >&5
3621 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3624 if test -n "$MAKEINFO"; then
3625 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3629 for ac_dir in $ac_dummy; do
3630 test -z "$ac_dir" && ac_dir=.
3631 if test -f $ac_dir/$ac_word; then
3632 ac_cv_prog_MAKEINFO="$ac_prog"
3639 MAKEINFO="$ac_cv_prog_MAKEINFO"
3640 if test -n "$MAKEINFO"; then
3641 echo "$ac_t""$MAKEINFO" 1>&6
3643 echo "$ac_t""no" 1>&6
3646 test -n "$MAKEINFO" && break
3648 test -n "$MAKEINFO" || MAKEINFO="no"
3652 r="`eval echo '$'"MAKEINFO"`"
3653 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
3654 ##STEPMAKE_WARN(cannot find . )
3660 if test $? -ne 0; then
3662 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
3664 if test "REQUIRED" = "REQUIRED"; then
3665 command="echo ERROR: makeinfo not found"
3666 # abort configure process here?
3668 command="- echo makeinfo not found"
3670 eval "MAKEINFO"='$command'
3676 if test $? -eq 0 -a -n ""; then
3678 r="`eval echo '$'"MAKEINFO"`"
3679 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
3680 echo "configure:3681: checking "$r version"" >&5
3682 type -p "$r" 2>&1 | awk '{print $NF}'
3685 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
3688 echo "$ver" | awk -F. '
3693 {printf "%s%s%s\n",$1*100, $2*10,last}'
3701 {printf "%s%s%s\n",$1*100, $2*10,last}'
3703 echo "$ac_t"""$ver"" 1>&6
3704 if test "$num" -lt "$req"; then
3706 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\"
3712 if test "$MAKEINFO" = "makeinfo"; then
3713 echo $ac_n "checking whether makeinfo can split html by @node""... $ac_c" 1>&6
3714 echo "configure:3715: checking whether makeinfo can split html by @node" >&5
3716 makeinfo --html --output=out/split <<EOF
3718 \input texinfo @c -*-texinfo-*-
3719 @setfilename split.info
3720 @settitle split.info
3723 if test -d out/split; then
3724 SPLITTING_MAKEINFO=yes
3725 echo "$ac_t""yes" 1>&6
3728 echo "$ac_t""no" 1>&6
3730 echo "configure: warning: your html documentation will be one large file" 1>&2
3739 for ac_hdr in python2.2/Python.h python2.1/Python.h python2.0/Python.h python2/Python.h python/Python.h python1.5/Python.h Python.h
3741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3743 echo "configure:3744: checking for $ac_hdr" >&5
3744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3753 { (eval echo configure:3754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3755 if test -z "$ac_err"; then
3757 eval "ac_cv_header_$ac_safe=yes"
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3763 eval "ac_cv_header_$ac_safe=no"
3767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3768 echo "$ac_t""yes" 1>&6
3769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3770 cat >> confdefs.h <<EOF
3771 #define $ac_tr_hdr 1
3775 echo "$ac_t""no" 1>&6
3779 if test $? -ne 0; then
3781 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'python.h (python-devel, python-dev or libpython-dev package)'\"`\"
3787 ## Optional tools for building documentation, website, extra fonts.
3789 # guile executable for some scripts
3792 for ac_prog in guile
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795 set dummy $ac_prog; ac_word=$2
3796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3797 echo "configure:3798: checking for $ac_word" >&5
3798 if eval "test \"`echo '$''{'ac_cv_prog_GUILE'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3801 if test -n "$GUILE"; then
3802 ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
3804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3806 for ac_dir in $ac_dummy; do
3807 test -z "$ac_dir" && ac_dir=.
3808 if test -f $ac_dir/$ac_word; then
3809 ac_cv_prog_GUILE="$ac_prog"
3816 GUILE="$ac_cv_prog_GUILE"
3817 if test -n "$GUILE"; then
3818 echo "$ac_t""$GUILE" 1>&6
3820 echo "$ac_t""no" 1>&6
3823 test -n "$GUILE" && break
3825 test -n "$GUILE" || GUILE="no"
3829 r="`eval echo '$'"GUILE"`"
3830 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
3831 ##STEPMAKE_WARN(cannot find . )
3837 if test $? -ne 0; then
3839 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"guile\"`\"
3841 if test "OPTIONAL" = "REQUIRED"; then
3842 command="echo ERROR: guile not found"
3843 # abort configure process here?
3845 command="- echo guile not found"
3847 eval "GUILE"='$command'
3853 if test $? -eq 0; then
3854 # Extract the first word of "guile", so it can be a program name with args.
3855 set dummy guile; ac_word=$2
3856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3857 echo "configure:3858: checking for $ac_word" >&5
3858 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3863 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
3866 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
3869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3871 for ac_dir in $ac_dummy; do
3872 test -z "$ac_dir" && ac_dir=.
3873 if test -f $ac_dir/$ac_word; then
3874 ac_cv_path_GUILE="$ac_dir/$ac_word"
3882 GUILE="$ac_cv_path_GUILE"
3883 if test -n "$GUILE"; then
3884 echo "$ac_t""$GUILE" 1>&6
3886 echo "$ac_t""no" 1>&6
3891 r="`eval echo '$'"GUILE"`"
3892 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
3893 echo "configure:3894: checking "$r version"" >&5
3895 type -p "$r" 2>&1 | awk '{print $NF}'
3898 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
3901 echo "$ver" | awk -F. '
3906 {printf "%s%s%s\n",$1*100, $2*10,last}'
3914 {printf "%s%s%s\n",$1*100, $2*10,last}'
3916 echo "$ac_t"""$ver"" 1>&6
3917 if test "$num" -lt "$req"; then
3919 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r (installed: $ver)"\"`\"
3927 # perl for help2man.
3932 # Extract the first word of "$ac_prog", so it can be a program name with args.
3933 set dummy $ac_prog; ac_word=$2
3934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3935 echo "configure:3936: checking for $ac_word" >&5
3936 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3939 if test -n "$PERL"; then
3940 ac_cv_prog_PERL="$PERL" # Let the user override the test.
3942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3944 for ac_dir in $ac_dummy; do
3945 test -z "$ac_dir" && ac_dir=.
3946 if test -f $ac_dir/$ac_word; then
3947 ac_cv_prog_PERL="$ac_prog"
3954 PERL="$ac_cv_prog_PERL"
3955 if test -n "$PERL"; then
3956 echo "$ac_t""$PERL" 1>&6
3958 echo "$ac_t""no" 1>&6
3961 test -n "$PERL" && break
3963 test -n "$PERL" || PERL="no"
3967 r="`eval echo '$'"PERL"`"
3968 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
3969 ##STEPMAKE_WARN(cannot find . )
3975 if test $? -ne 0; then
3977 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"perl\"`\"
3979 if test "OPTIONAL" = "REQUIRED"; then
3980 command="echo ERROR: perl not found"
3981 # abort configure process here?
3983 command="- echo perl not found"
3985 eval "PERL"='$command'
3991 if test $? -eq 0; then
3992 # Extract the first word of "perl", so it can be a program name with args.
3993 set dummy perl; ac_word=$2
3994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3995 echo "configure:3996: checking for $ac_word" >&5
3996 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
4001 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4004 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
4007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4009 for ac_dir in $ac_dummy; do
4010 test -z "$ac_dir" && ac_dir=.
4011 if test -f $ac_dir/$ac_word; then
4012 ac_cv_path_PERL="$ac_dir/$ac_word"
4020 PERL="$ac_cv_path_PERL"
4021 if test -n "$PERL"; then
4022 echo "$ac_t""$PERL" 1>&6
4024 echo "$ac_t""no" 1>&6
4029 r="`eval echo '$'"PERL"`"
4030 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
4031 echo "configure:4032: checking "$r version"" >&5
4033 type -p "$r" 2>&1 | awk '{print $NF}'
4036 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
4039 echo "$ver" | awk -F. '
4044 {printf "%s%s%s\n",$1*100, $2*10,last}'
4052 {printf "%s%s%s\n",$1*100, $2*10,last}'
4054 echo "$ac_t"""$ver"" 1>&6
4055 if test "$num" -lt "$req"; then
4057 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r (installed: $ver)"\"`\"
4065 # pktrace for generating pfa's, pfb's
4067 for ac_prog in pktrace
4069 # Extract the first word of "$ac_prog", so it can be a program name with args.
4070 set dummy $ac_prog; ac_word=$2
4071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4072 echo "configure:4073: checking for $ac_word" >&5
4073 if eval "test \"`echo '$''{'ac_cv_prog_PKTRACE'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 if test -n "$PKTRACE"; then
4077 ac_cv_prog_PKTRACE="$PKTRACE" # Let the user override the test.
4079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4081 for ac_dir in $ac_dummy; do
4082 test -z "$ac_dir" && ac_dir=.
4083 if test -f $ac_dir/$ac_word; then
4084 ac_cv_prog_PKTRACE="$ac_prog"
4091 PKTRACE="$ac_cv_prog_PKTRACE"
4092 if test -n "$PKTRACE"; then
4093 echo "$ac_t""$PKTRACE" 1>&6
4095 echo "$ac_t""no" 1>&6
4098 test -n "$PKTRACE" && break
4100 test -n "$PKTRACE" || PKTRACE="no"
4104 r="`eval echo '$'"PKTRACE"`"
4105 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"PKTRACE"`' : '.*\(echo\)' > /dev/null; then
4106 ##STEPMAKE_WARN(cannot find . )
4112 if test $? -ne 0; then
4114 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pktrace\"`\"
4116 if test "OPTIONAL" = "REQUIRED"; then
4117 command="echo ERROR: pktrace not found"
4118 # abort configure process here?
4120 command="- echo pktrace not found"
4122 eval "PKTRACE"='$command'
4128 if test $? -eq 0 -a -n "1.0.3"; then
4130 r="`eval echo '$'"PKTRACE"`"
4131 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
4132 echo "configure:4133: checking "$r version"" >&5
4134 type -p "$r" 2>&1 | awk '{print $NF}'
4137 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
4140 echo "$ver" | awk -F. '
4145 {printf "%s%s%s\n",$1*100, $2*10,last}'
4148 echo "1.0.3" | awk -F. '
4153 {printf "%s%s%s\n",$1*100, $2*10,last}'
4155 echo "$ac_t"""$ver"" 1>&6
4156 if test "$num" -lt "$req"; then
4158 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r 1.0.3 (installed: $ver)"\"`\"
4164 # new makeinfo for multi-page website docs
4166 for ac_prog in makeinfo
4168 # Extract the first word of "$ac_prog", so it can be a program name with args.
4169 set dummy $ac_prog; ac_word=$2
4170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4171 echo "configure:4172: checking for $ac_word" >&5
4172 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4175 if test -n "$MAKEINFO"; then
4176 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4180 for ac_dir in $ac_dummy; do
4181 test -z "$ac_dir" && ac_dir=.
4182 if test -f $ac_dir/$ac_word; then
4183 ac_cv_prog_MAKEINFO="$ac_prog"
4190 MAKEINFO="$ac_cv_prog_MAKEINFO"
4191 if test -n "$MAKEINFO"; then
4192 echo "$ac_t""$MAKEINFO" 1>&6
4194 echo "$ac_t""no" 1>&6
4197 test -n "$MAKEINFO" && break
4199 test -n "$MAKEINFO" || MAKEINFO="no"
4203 r="`eval echo '$'"MAKEINFO"`"
4204 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
4205 ##STEPMAKE_WARN(cannot find . )
4211 if test $? -ne 0; then
4213 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"makeinfo\"`\"
4215 if test "OPTIONAL" = "REQUIRED"; then
4216 command="echo ERROR: makeinfo not found"
4217 # abort configure process here?
4219 command="- echo makeinfo not found"
4221 eval "MAKEINFO"='$command'
4227 if test $? -eq 0 -a -n "4.1"; then
4229 r="`eval echo '$'"MAKEINFO"`"
4230 echo $ac_n "checking "$r version"""... $ac_c" 1>&6
4231 echo "configure:4232: checking "$r version"" >&5
4233 type -p "$r" 2>&1 | awk '{print $NF}'
4236 "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
4239 echo "$ver" | awk -F. '
4244 {printf "%s%s%s\n",$1*100, $2*10,last}'
4247 echo "4.1" | awk -F. '
4252 {printf "%s%s%s\n",$1*100, $2*10,last}'
4254 echo "$ac_t"""$ver"" 1>&6
4255 if test "$num" -lt "$req"; then
4257 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r 4.1 (installed: $ver)"\"`\"
4265 if test "$optimise_b" = yes; then
4266 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
4267 cat >> confdefs.h <<\EOF
4268 #define STRINGS_UTILS_INLINED 1
4274 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4275 echo "configure:4276: checking for 8-bit clean memcmp" >&5
4276 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4279 if test "$cross_compiling" = yes; then
4280 ac_cv_func_memcmp_clean=no
4282 cat > conftest.$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4286 extern "C" void exit(int);
4291 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4292 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4296 if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4298 ac_cv_func_memcmp_clean=yes
4300 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4303 ac_cv_func_memcmp_clean=no
4310 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4311 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4313 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4314 echo "configure:4315: checking for vprintf" >&5
4315 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4318 cat > conftest.$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 /* System header to define __stub macros and hopefully few prototypes,
4322 which can conflict with char vprintf(); below. */
4324 /* Override any gcc2 internal prototype to avoid an error. */
4328 /* We use char because int might match the return type of a gcc2
4329 builtin and then its argument prototype would still apply. */
4334 /* The GNU C library defines this for functions which it implements
4335 to always fail with ENOSYS. Some functions are actually named
4336 something starting with __ and the normal name is an alias. */
4337 #if defined (__stub_vprintf) || defined (__stub___vprintf)
4345 if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4347 eval "ac_cv_func_vprintf=yes"
4349 echo "configure: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4352 eval "ac_cv_func_vprintf=no"
4357 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4358 echo "$ac_t""yes" 1>&6
4359 cat >> confdefs.h <<\EOF
4360 #define HAVE_VPRINTF 1
4364 echo "$ac_t""no" 1>&6
4367 if test "$ac_cv_func_vprintf" != yes; then
4368 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4369 echo "configure:4370: checking for _doprnt" >&5
4370 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 /* System header to define __stub macros and hopefully few prototypes,
4377 which can conflict with char _doprnt(); below. */
4379 /* Override any gcc2 internal prototype to avoid an error. */
4383 /* We use char because int might match the return type of a gcc2
4384 builtin and then its argument prototype would still apply. */
4389 /* The GNU C library defines this for functions which it implements
4390 to always fail with ENOSYS. Some functions are actually named
4391 something starting with __ and the normal name is an alias. */
4392 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4400 if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4402 eval "ac_cv_func__doprnt=yes"
4404 echo "configure: failed program was:" >&5
4405 cat conftest.$ac_ext >&5
4407 eval "ac_cv_func__doprnt=no"
4412 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4413 echo "$ac_t""yes" 1>&6
4414 cat >> confdefs.h <<\EOF
4415 #define HAVE_DOPRNT 1
4419 echo "$ac_t""no" 1>&6
4424 for ac_func in memmem snprintf vsnprintf gettext isinf
4426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4427 echo "configure:4428: checking for $ac_func" >&5
4428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4431 cat > conftest.$ac_ext <<EOF
4432 #line 4433 "configure"
4433 #include "confdefs.h"
4434 /* System header to define __stub macros and hopefully few prototypes,
4435 which can conflict with char $ac_func(); below. */
4437 /* Override any gcc2 internal prototype to avoid an error. */
4441 /* We use char because int might match the return type of a gcc2
4442 builtin and then its argument prototype would still apply. */
4447 /* The GNU C library defines this for functions which it implements
4448 to always fail with ENOSYS. Some functions are actually named
4449 something starting with __ and the normal name is an alias. */
4450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4458 if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4460 eval "ac_cv_func_$ac_func=yes"
4462 echo "configure: failed program was:" >&5
4463 cat conftest.$ac_ext >&5
4465 eval "ac_cv_func_$ac_func=no"
4470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4471 echo "$ac_t""yes" 1>&6
4472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4473 cat >> confdefs.h <<EOF
4474 #define $ac_tr_func 1
4478 echo "$ac_t""no" 1>&6
4483 cat >> confdefs.h <<EOF
4484 #define TOPLEVEL_VERSION "${FULL_VERSION}"
4487 cat >> confdefs.h <<EOF
4488 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
4492 # Gather requirements and generate output.
4498 cat > confcache <<\EOF
4499 # This file is a shell script that caches the results of configure
4500 # tests run on this system so they can be shared between configure
4501 # scripts and configure runs. It is not useful on other systems.
4502 # If it contains results you don't want to keep, you may remove or edit it.
4504 # By default, configure uses ./config.cache as the cache file,
4505 # creating it if it does not exist already. You can give configure
4506 # the --cache-file=FILE option to use a different cache file; that is
4507 # what configure does when it calls configure scripts in
4508 # subdirectories, so they share the cache.
4509 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4510 # config.status only pays attention to the cache file if you give it the
4511 # --recheck option to rerun configure.
4514 # The following way of writing the cache mishandles newlines in values,
4515 # but we know of no workaround that is simple, portable, and efficient.
4516 # So, don't put newlines in cache variables' values.
4517 # Ultrix sh set writes to stderr and can't be redirected directly,
4518 # and sets the high bit in the cache file unless we assign to the vars.
4520 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4522 # `set' does not quote correctly, so add quotes (double-quote substitution
4523 # turns \\\\ into \\, and sed turns \\ into \).
4525 -e "s/'/'\\\\''/g" \
4526 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4529 # `set' quotes correctly as required by POSIX, so do not add quotes.
4530 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4533 if cmp -s $cache_file confcache; then
4536 if test -w $cache_file; then
4537 echo "updating cache $cache_file"
4538 cat confcache > $cache_file
4540 echo "not updating unwritable cache $cache_file"
4545 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4547 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4548 # Let make expand exec_prefix.
4549 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4551 # Any assignment to VPATH causes Sun make to only execute
4552 # the first set of double-colon rules, so remove it if not needed.
4553 # If there is a colon in the path, we need to keep it.
4554 if test "x$srcdir" = x.; then
4555 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4558 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4560 DEFS=-DHAVE_CONFIG_H
4562 # Without the "./", some shells look in PATH for config.status.
4563 : ${CONFIG_STATUS=./config.status}
4565 echo creating $CONFIG_STATUS
4566 rm -f $CONFIG_STATUS
4567 cat > $CONFIG_STATUS <<EOF
4569 # Generated automatically by configure.
4570 # Run this file to recreate the current configuration.
4571 # This directory was configured as follows,
4572 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4574 # $0 $ac_configure_args
4576 # Compiler output produced by configure, useful for debugging
4577 # configure, is in ./config.log if it exists.
4579 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4582 case "\$ac_option" in
4583 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4584 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4585 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4586 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4587 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4589 -help | --help | --hel | --he | --h)
4590 echo "\$ac_cs_usage"; exit 0 ;;
4591 *) echo "\$ac_cs_usage"; exit 1 ;;
4595 ac_given_srcdir=$srcdir
4597 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4599 cat >> $CONFIG_STATUS <<EOF
4601 # Protect against being on the right side of a sed subst in config.status.
4602 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4603 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4607 s%@CFLAGS@%$CFLAGS%g
4608 s%@CPPFLAGS@%$CPPFLAGS%g
4609 s%@CXXFLAGS@%$CXXFLAGS%g
4610 s%@FFLAGS@%$FFLAGS%g
4612 s%@LDFLAGS@%$LDFLAGS%g
4614 s%@exec_prefix@%$exec_prefix%g
4615 s%@prefix@%$prefix%g
4616 s%@program_transform_name@%$program_transform_name%g
4617 s%@bindir@%$bindir%g
4618 s%@sbindir@%$sbindir%g
4619 s%@libexecdir@%$libexecdir%g
4620 s%@datadir@%$datadir%g
4621 s%@sysconfdir@%$sysconfdir%g
4622 s%@sharedstatedir@%$sharedstatedir%g
4623 s%@localstatedir@%$localstatedir%g
4624 s%@libdir@%$libdir%g
4625 s%@includedir@%$includedir%g
4626 s%@oldincludedir@%$oldincludedir%g
4627 s%@infodir@%$infodir%g
4628 s%@mandir@%$mandir%g
4629 s%@builddir@%$builddir%g
4630 s%@stepmake@%$stepmake%g
4631 s%@package@%$package%g
4632 s%@PACKAGE@%$PACKAGE%g
4633 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
4634 s%@package_depth@%$package_depth%g
4635 s%@AUTOGENERATE@%$AUTOGENERATE%g
4636 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
4638 s%@host_alias@%$host_alias%g
4639 s%@host_cpu@%$host_cpu%g
4640 s%@host_vendor@%$host_vendor%g
4641 s%@host_os@%$host_os%g
4646 s%@PYTHON@%$PYTHON%g
4647 s%@program_prefix@%$program_prefix%g
4648 s%@program_suffix@%$program_suffix%g
4652 s%@INSTALL@%$INSTALL%g
4653 s%@PATHSEP@%$PATHSEP%g
4654 s%@DIRSEP@%$DIRSEP%g
4655 s%@DIR_DATADIR@%$DIR_DATADIR%g
4656 s%@subdirs@%$subdirs%g
4659 s%@cross_compiling@%$cross_compiling%g
4660 s%@ICFLAGS@%$ICFLAGS%g
4661 s%@ILDFLAGS@%$ILDFLAGS%g
4662 s%@DEFINES@%$DEFINES%g
4663 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
4666 s%@CXXCPP@%$CXXCPP%g
4671 s%@RANLIB@%$RANLIB%g
4672 s%@localedir@%$localedir%g
4673 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
4674 s%@MSGFMT@%$MSGFMT%g
4675 s%@METAFONT@%$METAFONT%g
4676 s%@INIMETAFONT@%$INIMETAFONT%g
4677 s%@MFMODE@%$MFMODE%g
4678 s%@KPSEWHICH@%$KPSEWHICH%g
4679 s%@TFM_PATH@%$TFM_PATH%g
4680 s%@GUILE_CONFIG@%$GUILE_CONFIG%g
4681 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
4682 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
4683 s%@KPATHSEA@%$KPATHSEA%g
4684 s%@MAKEINFO@%$MAKEINFO%g
4685 s%@SPLITTING_MAKEINFO@%$SPLITTING_MAKEINFO%g
4688 s%@PKTRACE@%$PKTRACE%g
4689 s%@LIBOBJS@%$LIBOBJS%g
4690 s%@OPTIONAL@%$OPTIONAL%g
4691 s%@REQUIRED@%$REQUIRED%g
4696 cat >> $CONFIG_STATUS <<\EOF
4698 # Split the substitutions into bite-sized pieces for seds with
4699 # small command number limits, like on Digital OSF/1 and HP-UX.
4700 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4701 ac_file=1 # Number of current file.
4702 ac_beg=1 # First line for current file.
4703 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4706 while $ac_more_lines; do
4707 if test $ac_beg -gt 1; then
4708 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4710 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4712 if test ! -s conftest.s$ac_file; then
4714 rm -f conftest.s$ac_file
4716 if test -z "$ac_sed_cmds"; then
4717 ac_sed_cmds="sed -f conftest.s$ac_file"
4719 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4721 ac_file=`expr $ac_file + 1`
4723 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4726 if test -z "$ac_sed_cmds"; then
4731 cat >> $CONFIG_STATUS <<EOF
4733 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
4735 cat >> $CONFIG_STATUS <<\EOF
4736 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4737 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4739 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4740 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4741 *) ac_file_in="${ac_file}.in" ;;
4744 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4746 # Remove last slash and all that follows it. Not all systems have dirname.
4747 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4748 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4749 # The file is in a subdirectory.
4750 test ! -d "$ac_dir" && mkdir "$ac_dir"
4751 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4752 # A "../" for each directory in $ac_dir_suffix.
4753 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4755 ac_dir_suffix= ac_dots=
4758 case "$ac_given_srcdir" in
4760 if test -z "$ac_dots"; then top_srcdir=.
4761 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4762 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4764 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4765 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4769 echo creating "$ac_file"
4771 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4773 *Makefile*) ac_comsub="1i\\
4774 # $configure_input" ;;
4778 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4780 s%@configure_input@%$configure_input%g
4781 s%@srcdir@%$srcdir%g
4782 s%@top_srcdir@%$top_srcdir%g
4783 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4787 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4788 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4790 # ac_d sets the value in "#define NAME VALUE" lines.
4791 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4792 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4795 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4796 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4797 ac_uB='\([ ]\)%\1#\2define\3'
4800 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4801 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4802 ac_eB='$%\1#\2define\3'
4806 if test "${CONFIG_HEADERS+set}" != set; then
4808 cat >> $CONFIG_STATUS <<EOF
4809 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
4811 cat >> $CONFIG_STATUS <<\EOF
4813 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4814 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4816 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4817 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4818 *) ac_file_in="${ac_file}.in" ;;
4821 echo creating $ac_file
4823 rm -f conftest.frag conftest.in conftest.out
4824 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4825 cat $ac_file_inputs > conftest.in
4829 # Transform confdefs.h into a sed script conftest.vals that substitutes
4830 # the proper values into config.h.in to produce config.h. And first:
4831 # Protect against being on the right side of a sed subst in config.status.
4832 # Protect against being in an unquoted here document in config.status.
4834 cat > conftest.hdr <<\EOF
4837 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4841 sed -n -f conftest.hdr confdefs.h > conftest.vals
4844 # This sed command replaces #undef with comments. This is necessary, for
4845 # example, in the case of _POSIX_SOURCE, which is predefined and required
4846 # on some systems where configure will not decide to define it.
4847 cat >> conftest.vals <<\EOF
4848 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4851 # Break up conftest.vals because some shells have a limit on
4852 # the size of here documents, and old seds have small limits too.
4857 ac_lines=`grep -c . conftest.vals`
4858 # grep -c gives empty output for an empty file on some AIX systems.
4859 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4860 # Write a limited-size here document to conftest.frag.
4861 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4862 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4864 sed -f conftest.frag conftest.in > conftest.out
4866 mv conftest.out conftest.in
4868 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4870 mv conftest.tail conftest.vals
4874 cat >> $CONFIG_STATUS <<\EOF
4875 rm -f conftest.frag conftest.h
4876 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4877 cat conftest.in >> conftest.h
4879 if cmp -s $ac_file conftest.h 2>/dev/null; then
4880 echo "$ac_file is unchanged"
4883 # Remove last slash and all that follows it. Not all systems have dirname.
4884 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4885 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4886 # The file is in a subdirectory.
4887 test ! -d "$ac_dir" && mkdir "$ac_dir"
4890 mv conftest.h $ac_file
4895 cat >> $CONFIG_STATUS <<EOF
4898 cat >> $CONFIG_STATUS <<\EOF
4902 chmod +x $CONFIG_STATUS
4903 rm -fr confdefs* $ac_clean_files
4904 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4906 if test "$no_recursion" != yes; then
4908 # Remove --cache-file and --srcdir arguments so they do not pile up.
4909 ac_sub_configure_args=
4911 for ac_arg in $ac_configure_args; do
4912 if test -n "$ac_prev"; then
4917 -cache-file | --cache-file | --cache-fil | --cache-fi \
4918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4919 ac_prev=cache_file ;;
4920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4923 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4925 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4927 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4931 for ac_config_dir in stepmake; do
4933 # Do not complain, so a configure script can configure whichever
4934 # parts of a large source tree are present.
4935 if test ! -d $srcdir/$ac_config_dir; then
4939 echo configuring in $ac_config_dir
4944 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4946 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4954 # A "../" for each directory in /$ac_config_dir.
4955 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4958 .) # No --srcdir option. We are building in place.
4959 ac_sub_srcdir=$srcdir ;;
4960 /*) # Absolute path.
4961 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4963 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4966 # Check for guested configure; otherwise get Cygnus style configure.
4967 if test -f $ac_sub_srcdir/configure; then
4968 ac_sub_configure=$ac_sub_srcdir/configure
4969 elif test -f $ac_sub_srcdir/configure.in; then
4970 ac_sub_configure=$ac_configure
4972 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4976 # The recursion is here.
4977 if test -n "$ac_sub_configure"; then
4979 # Make the cache file name correct relative to the subdirectory.
4980 case "$cache_file" in
4981 /*) ac_sub_cache_file=$cache_file ;;
4983 ac_sub_cache_file="$ac_dots$cache_file" ;;
4986 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4987 # The eval makes quoting arguments work.
4988 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4991 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
5001 if test -n "$OPTIONAL"; then
5003 echo "WARNING: Please consider installing optional programs: $OPTIONAL"
5006 if test -n "$REQUIRED"; then
5008 echo "ERROR: Please install required programs: $REQUIRED"
5011 if test -n "$OPTIONAL$REQUIRED"; then
5013 echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
5014 echo "Remove config.cache before rerunning ./configure"
5017 if test -n "$REQUIRED"; then
5018 rm -f $srcdir/GNUmakefile
5022 # regular in-place build
5023 # test for srcdir_build = yes ?
5024 if test "$builddir" = "."; then
5025 rm -f $srcdir/GNUmakefile
5026 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
5027 chmod 444 $srcdir/GNUmakefile
5028 else # --srcdir build
5030 cp $srcdir/make/srcdir.make.in GNUmakefile
5031 chmod 444 GNUmakefile
5036 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
5041 make$mc all to build LilyPond
5042 make$mc install to install LilyPond
5043 make$mc help to see all possible targets
5045 Do not worry if ./Documentation or ./mutopia should not build.