4 --with-gtkmm-prefix=PREFIX
5 Prefix where GTK-- is installed (optional)"
6 # Check whether --with-gtkmm-prefix or --without-gtkmm-prefix was given.
7 if test "${with_gtkmm_prefix+set}" = set; then
8 withval="$with_gtkmm_prefix"
9 gtkmm_config_prefix="$withval"
11 gtkmm_config_prefix=""
15 --with-gtkmm-exec-prefix=PREFIX
16 Exec prefix where GTK-- is installed (optional)"
17 # Check whether --with-gtkmm-exec-prefix or --without-gtkmm-exec-prefix was given.
18 if test "${with_gtkmm_exec_prefix+set}" = set; then
19 withval="$with_gtkmm_exec_prefix"
20 gtkmm_config_exec_prefix="$withval"
22 gtkmm_config_exec_prefix=""
26 --disable-gtkmmtest Do not try to compile and run a test GTK-- program"
27 # Check whether --enable-gtkmmtest or --disable-gtkmmtest was given.
28 if test "${enable_gtkmmtest+set}" = set; then
29 enableval="$enable_gtkmmtest"
36 if test x$gtkmm_config_exec_prefix != x ; then
37 gtkmm_config_args="$gtkmm_config_args --exec-prefix=$gtkmm_config_exec_prefix"
38 if test x${GTKMM_CONFIG+set} != xset ; then
39 GTKMM_CONFIG=$gtkmm_config_exec_prefix/bin/gtkmm-config
42 if test x$gtkmm_config_prefix != x ; then
43 gtkmm_config_args="$gtkmm_config_args --prefix=$gtkmm_config_prefix"
44 if test x${GTKMM_CONFIG+set} != xset ; then
45 GTKMM_CONFIG=$gtkmm_config_prefix/bin/gtkmm-config
52 # Configure paths for GTK--DRAW
53 # Derek Quinn Wyatt 98-08-21 (adapted from Jan Nieuwenhuizen's code)
57 # Guess values for system-dependent variables and create Makefiles.
58 # Generated automatically using autoconf version 2.12
59 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
61 # This configure script is free software; the Free Software Foundation
62 # gives unlimited permission to copy, distribute and modify it.
66 ac_default_prefix=/usr/local
67 # Any additions from configure.in:
69 enable-config=FILE put configure settings in config-FILE.make"
71 enable-checking set runtime checks (assert calls). Default: on"
73 enable-optimise use maximal speed optimisations. Default: off"
75 enable-profiling compile with gprof support. Default: off"
77 enable-debugging set debug info. Default: on"
79 enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
81 enable-printing turn on debug printing. Default: off"
83 with-localedir=LOCALE use LOCALE as locale dir. Default: PREFIX/share/locale "
85 with-lang=LANG use LANG as language to emit messages"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
91 cache_file=./config.cache
100 program_transform_name=s,x,x,
108 bindir='${exec_prefix}/bin'
109 sbindir='${exec_prefix}/sbin'
110 libexecdir='${exec_prefix}/libexec'
111 datadir='${prefix}/share'
112 sysconfdir='${prefix}/etc'
113 sharedstatedir='${prefix}/com'
114 localstatedir='${prefix}/var'
115 libdir='${exec_prefix}/lib'
116 includedir='${prefix}/include'
117 oldincludedir='/usr/include'
118 infodir='${prefix}/info'
119 mandir='${prefix}/man'
121 # Initialize some other variables.
124 # Maximum number of lines to put in a shell here document.
131 # If the previous option needs an argument, assign it.
132 if test -n "$ac_prev"; then
133 eval "$ac_prev=\$ac_option"
139 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
143 # Accept the important Cygnus configure options, so we can diagnose typos.
147 -bindir | --bindir | --bindi | --bind | --bin | --bi)
149 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
150 bindir="$ac_optarg" ;;
152 -build | --build | --buil | --bui | --bu)
154 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
155 build="$ac_optarg" ;;
157 -cache-file | --cache-file | --cache-fil | --cache-fi \
158 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
159 ac_prev=cache_file ;;
160 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
161 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
162 cache_file="$ac_optarg" ;;
164 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
166 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
168 datadir="$ac_optarg" ;;
170 -disable-* | --disable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177 eval "enable_${ac_feature}=no" ;;
179 -enable-* | --enable-*)
180 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
181 # Reject names that are not valid shell variable names.
182 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
183 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
185 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
190 eval "enable_${ac_feature}='$ac_optarg'" ;;
192 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
193 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
194 | --exec | --exe | --ex)
195 ac_prev=exec_prefix ;;
196 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
197 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
198 | --exec=* | --exe=* | --ex=*)
199 exec_prefix="$ac_optarg" ;;
201 -gas | --gas | --ga | --g)
202 # Obsolete; use --with-gas.
205 -help | --help | --hel | --he)
206 # Omit some internal or obsolete options to make the list less imposing.
207 # This message is too long to be a string in the A/UX 3.1 sh.
209 Usage: configure [options] [host]
210 Options: [defaults in brackets after descriptions]
212 --cache-file=FILE cache test results in FILE
213 --help print this message
214 --no-create do not create output files
215 --quiet, --silent do not print \`checking...' messages
216 --version print the version of autoconf that created configure
217 Directory and file names:
218 --prefix=PREFIX install architecture-independent files in PREFIX
220 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
222 --bindir=DIR user executables in DIR [EPREFIX/bin]
223 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
224 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
225 --datadir=DIR read-only architecture-independent data in DIR
227 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
228 --sharedstatedir=DIR modifiable architecture-independent data in DIR
230 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
231 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
232 --includedir=DIR C header files in DIR [PREFIX/include]
233 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
234 --infodir=DIR info documentation in DIR [PREFIX/info]
235 --mandir=DIR man documentation in DIR [PREFIX/man]
236 --srcdir=DIR find the sources in DIR [configure dir or ..]
237 --program-prefix=PREFIX prepend PREFIX to installed program names
238 --program-suffix=SUFFIX append SUFFIX to installed program names
239 --program-transform-name=PROGRAM
240 run sed PROGRAM on installed program names
244 --build=BUILD configure for building on BUILD [BUILD=HOST]
245 --host=HOST configure for HOST [guessed]
246 --target=TARGET configure for TARGET [TARGET=HOST]
247 Features and packages:
248 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
249 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
250 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
251 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
252 --x-includes=DIR X include files are in DIR
253 --x-libraries=DIR X library files are in DIR
255 if test -n "$ac_help"; then
256 echo "--enable and --with options recognized:$ac_help"
260 -host | --host | --hos | --ho)
262 -host=* | --host=* | --hos=* | --ho=*)
265 -includedir | --includedir | --includedi | --included | --include \
266 | --includ | --inclu | --incl | --inc)
267 ac_prev=includedir ;;
268 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
269 | --includ=* | --inclu=* | --incl=* | --inc=*)
270 includedir="$ac_optarg" ;;
272 -infodir | --infodir | --infodi | --infod | --info | --inf)
274 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
275 infodir="$ac_optarg" ;;
277 -libdir | --libdir | --libdi | --libd)
279 -libdir=* | --libdir=* | --libdi=* | --libd=*)
280 libdir="$ac_optarg" ;;
282 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
283 | --libexe | --libex | --libe)
284 ac_prev=libexecdir ;;
285 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
286 | --libexe=* | --libex=* | --libe=*)
287 libexecdir="$ac_optarg" ;;
289 -localstatedir | --localstatedir | --localstatedi | --localstated \
290 | --localstate | --localstat | --localsta | --localst \
291 | --locals | --local | --loca | --loc | --lo)
292 ac_prev=localstatedir ;;
293 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
294 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
295 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
296 localstatedir="$ac_optarg" ;;
298 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
300 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
301 mandir="$ac_optarg" ;;
304 # Obsolete; use --without-fp.
307 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
311 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
312 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
315 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
316 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
317 | --oldin | --oldi | --old | --ol | --o)
318 ac_prev=oldincludedir ;;
319 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
320 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
321 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
322 oldincludedir="$ac_optarg" ;;
324 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
326 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
327 prefix="$ac_optarg" ;;
329 -program-prefix | --program-prefix | --program-prefi | --program-pref \
330 | --program-pre | --program-pr | --program-p)
331 ac_prev=program_prefix ;;
332 -program-prefix=* | --program-prefix=* | --program-prefi=* \
333 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
334 program_prefix="$ac_optarg" ;;
336 -program-suffix | --program-suffix | --program-suffi | --program-suff \
337 | --program-suf | --program-su | --program-s)
338 ac_prev=program_suffix ;;
339 -program-suffix=* | --program-suffix=* | --program-suffi=* \
340 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
341 program_suffix="$ac_optarg" ;;
343 -program-transform-name | --program-transform-name \
344 | --program-transform-nam | --program-transform-na \
345 | --program-transform-n | --program-transform- \
346 | --program-transform | --program-transfor \
347 | --program-transfo | --program-transf \
348 | --program-trans | --program-tran \
349 | --progr-tra | --program-tr | --program-t)
350 ac_prev=program_transform_name ;;
351 -program-transform-name=* | --program-transform-name=* \
352 | --program-transform-nam=* | --program-transform-na=* \
353 | --program-transform-n=* | --program-transform-=* \
354 | --program-transform=* | --program-transfor=* \
355 | --program-transfo=* | --program-transf=* \
356 | --program-trans=* | --program-tran=* \
357 | --progr-tra=* | --program-tr=* | --program-t=*)
358 program_transform_name="$ac_optarg" ;;
360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
361 | -silent | --silent | --silen | --sile | --sil)
364 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
366 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
368 sbindir="$ac_optarg" ;;
370 -sharedstatedir | --sharedstatedir | --sharedstatedi \
371 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
372 | --sharedst | --shareds | --shared | --share | --shar \
374 ac_prev=sharedstatedir ;;
375 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
376 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
377 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
379 sharedstatedir="$ac_optarg" ;;
381 -site | --site | --sit)
383 -site=* | --site=* | --sit=*)
386 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
388 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
389 srcdir="$ac_optarg" ;;
391 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
392 | --syscon | --sysco | --sysc | --sys | --sy)
393 ac_prev=sysconfdir ;;
394 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
395 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
396 sysconfdir="$ac_optarg" ;;
398 -target | --target | --targe | --targ | --tar | --ta | --t)
400 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
401 target="$ac_optarg" ;;
403 -v | -verbose | --verbose | --verbos | --verbo | --verb)
406 -version | --version | --versio | --versi | --vers)
407 echo "configure generated by autoconf version 2.12"
411 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}='$ac_optarg'" ;;
423 -without-* | --without-*)
424 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
425 # Reject names that are not valid shell variable names.
426 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
427 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 eval "with_${ac_package}=no" ;;
433 # Obsolete; use --with-x.
436 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
437 | --x-incl | --x-inc | --x-in | --x-i)
438 ac_prev=x_includes ;;
439 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
440 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
441 x_includes="$ac_optarg" ;;
443 -x-libraries | --x-libraries | --x-librarie | --x-librari \
444 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
445 ac_prev=x_libraries ;;
446 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
447 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
448 x_libraries="$ac_optarg" ;;
450 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
454 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
455 echo "configure: warning: $ac_option: invalid host type" 1>&2
457 if test "x$nonopt" != xNONE; then
458 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
466 if test -n "$ac_prev"; then
467 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
470 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
472 # File descriptor usage:
475 # 2 errors and warnings
476 # 3 some systems may open it to /dev/tty
477 # 4 used on the Kubota Titan
478 # 6 checking for... messages and results
479 # 5 compiler messages saved in config.log
480 if test "$silent" = yes; then
488 This file contains any messages produced by compilers while
489 running configure, to aid debugging if configure makes a mistake.
492 # Strip out --no-create and --no-recursion so they do not pile up.
493 # Also quote any args containing shell metacharacters.
498 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
499 | --no-cr | --no-c) ;;
500 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
501 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
502 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
503 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
504 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
509 # Only set these to C if already set. These must not be set unconditionally
510 # because not all systems understand e.g. LANG=C (notably SCO).
511 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
512 # Non-C LC_CTYPE values break the ctype check.
513 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
514 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
515 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
516 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
518 # confdefs.h avoids OS command line length limits that DEFS can exceed.
519 rm -rf conftest* confdefs.h
520 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
523 # A filename unique to this package, relative to the directory that
524 # configure is in, which we can look for to find out if srcdir is correct.
525 ac_unique_file=make/lilypond.lsm.in
527 # Find the source files, if location was not specified.
528 if test -z "$srcdir"; then
529 ac_srcdir_defaulted=yes
530 # Try the directory containing this script, then its parent.
532 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
533 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
535 if test ! -r $srcdir/$ac_unique_file; then
539 ac_srcdir_defaulted=no
541 if test ! -r $srcdir/$ac_unique_file; then
542 if test "$ac_srcdir_defaulted" = yes; then
543 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
545 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
548 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
550 # Prefer explicitly selected file to automatically selected ones.
551 if test -z "$CONFIG_SITE"; then
552 if test "x$prefix" != xNONE; then
553 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
555 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
558 for ac_site_file in $CONFIG_SITE; do
559 if test -r "$ac_site_file"; then
560 echo "loading site script $ac_site_file"
565 if test -r "$cache_file"; then
566 echo "loading cache $cache_file"
569 echo "creating cache $cache_file"
574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
575 ac_cpp='$CPP $CPPFLAGS'
576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
577 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
578 cross_compiling=$ac_cv_prog_cc_cross
580 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
581 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
582 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
589 ac_n= ac_c='\c' ac_t=
595 # Bootstrap StepMake configure
599 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
600 if test x$MY_PATCH_LEVEL != x; then
601 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
604 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
605 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
606 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
608 if test "x$PACKAGE" = "xSTEPMAKE"; then
609 echo Stepmake package!
610 (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
611 (cd stepmake; rm -f bin; ln -s ../bin .)
613 for ac_dir in bin $srcdir/bin; do
614 if test -f $ac_dir/install-sh; then
616 ac_install_sh="$ac_aux_dir/install-sh -c"
618 elif test -f $ac_dir/install.sh; then
620 ac_install_sh="$ac_aux_dir/install.sh -c"
624 if test -z "$ac_aux_dir"; then
625 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
627 ac_config_guess=$ac_aux_dir/config.guess
628 ac_config_sub=$ac_aux_dir/config.sub
629 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
632 echo Package: $PACKAGE
634 for ac_dir in stepmake/bin $srcdir/stepmake/bin; do
635 if test -f $ac_dir/install-sh; then
637 ac_install_sh="$ac_aux_dir/install-sh -c"
639 elif test -f $ac_dir/install.sh; then
641 ac_install_sh="$ac_aux_dir/install.sh -c"
645 if test -z "$ac_aux_dir"; then
646 { echo "configure: error: can not find install-sh or install.sh in stepmake/bin $srcdir/stepmake/bin" 1>&2; exit 1; }
648 ac_config_guess=$ac_aux_dir/config.guess
649 ac_config_sub=$ac_aux_dir/config.sub
650 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
657 cat >> confdefs.h <<EOF
658 #define PACKAGE "${PACKAGE_NAME}"
661 cat >> confdefs.h <<EOF
662 #define TOPLEVEL_VERSION "${FULL_VERSION}"
666 package_depth=`dirname $cache_file`
669 AUTOGENERATE="This file was automatically generated by configure"
671 absolute_builddir="`pwd`"
674 # No versioning on directory names of sub-packages
678 STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
679 if test "x$STATE_VECTOR" != "x"; then
680 STATE_VECTOR="\$(depth)/$STATE_VECTOR"
685 # Check whether --enable-config or --disable-config was given.
686 if test "${enable_config+set}" = set; then
687 enableval="$enable_config"
688 CONFIGSUFFIX=$enableval
692 if test "$CONFIGSUFFIX" != "" ; then
693 CONFIGFILE=config-$CONFIGSUFFIX
700 # Make sure we can run config.sub.
701 if $ac_config_sub sun4 >/dev/null 2>&1; then :
702 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
705 echo $ac_n "checking host system type""... $ac_c" 1>&6
706 echo "configure:707: checking host system type" >&5
709 case "$host_alias" in
713 if host_alias=`$ac_config_guess`; then :
714 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
716 *) host_alias=$nonopt ;;
720 host=`$ac_config_sub $host_alias`
721 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
724 echo "$ac_t""$host" 1>&6
728 # Extract the first word of "$ac_prog", so it can be a program name with args.
729 set dummy $ac_prog; ac_word=$2
730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
731 echo "configure:732: checking for $ac_word" >&5
732 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
733 echo $ac_n "(cached) $ac_c" 1>&6
735 if test -n "$MAKE"; then
736 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
739 for ac_dir in $PATH; do
740 test -z "$ac_dir" && ac_dir=.
741 if test -f $ac_dir/$ac_word; then
742 ac_cv_prog_MAKE="$ac_prog"
749 MAKE="$ac_cv_prog_MAKE"
750 if test -n "$MAKE"; then
751 echo "$ac_t""$MAKE" 1>&6
753 echo "$ac_t""no" 1>&6
756 test -n "$MAKE" && break
758 test -n "$MAKE" || MAKE="error"
762 # Extract the first word of "$ac_prog", so it can be a program name with args.
763 set dummy $ac_prog; ac_word=$2
764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
765 echo "configure:766: checking for $ac_word" >&5
766 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
769 if test -n "$FIND"; then
770 ac_cv_prog_FIND="$FIND" # Let the user override the test.
772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
773 for ac_dir in $PATH; do
774 test -z "$ac_dir" && ac_dir=.
775 if test -f $ac_dir/$ac_word; then
776 ac_cv_prog_FIND="$ac_prog"
783 FIND="$ac_cv_prog_FIND"
784 if test -n "$FIND"; then
785 echo "$ac_t""$FIND" 1>&6
787 echo "$ac_t""no" 1>&6
790 test -n "$FIND" && break
792 test -n "$FIND" || FIND="error"
799 # Extract the first word of "$ac_prog", so it can be a program name with args.
800 set dummy $ac_prog; ac_word=$2
801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
802 echo "configure:803: checking for $ac_word" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 if test -n "$TAR"; then
807 ac_cv_prog_TAR="$TAR" # Let the user override the test.
809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
810 for ac_dir in $PATH; do
811 test -z "$ac_dir" && ac_dir=.
812 if test -f $ac_dir/$ac_word; then
813 ac_cv_prog_TAR="$ac_prog"
820 TAR="$ac_cv_prog_TAR"
821 if test -n "$TAR"; then
822 echo "$ac_t""$TAR" 1>&6
824 echo "$ac_t""no" 1>&6
827 test -n "$TAR" && break
829 test -n "$TAR" || TAR="error"
833 # Extract the first word of "$ac_prog", so it can be a program name with args.
834 set dummy $ac_prog; ac_word=$2
835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
836 echo "configure:837: checking for $ac_word" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_BASH'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 if test -n "$BASH"; then
841 ac_cv_prog_BASH="$BASH" # Let the user override the test.
843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
844 for ac_dir in $PATH; do
845 test -z "$ac_dir" && ac_dir=.
846 if test -f $ac_dir/$ac_word; then
847 ac_cv_prog_BASH="$ac_prog"
854 BASH="$ac_cv_prog_BASH"
855 if test -n "$BASH"; then
856 echo "$ac_t""$BASH" 1>&6
858 echo "$ac_t""no" 1>&6
861 test -n "$BASH" && break
863 test -n "$BASH" || BASH="/bin/sh"
866 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
867 set dummy ${PYTHON:-python}; ac_word=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
875 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
879 for ac_dir in $PATH; do
880 test -z "$ac_dir" && ac_dir=.
881 if test -f $ac_dir/$ac_word; then
882 ac_cv_path_PYTHON="$ac_dir/$ac_word"
887 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
891 PYTHON="$ac_cv_path_PYTHON"
892 if test -n "$PYTHON"; then
893 echo "$ac_t""$PYTHON" 1>&6
895 echo "$ac_t""no" 1>&6
902 result="`echo \"$MAKE\" | grep echo`"
903 if test "x$MAKE" = "xerror" -o "x$result" != "x"; then
905 echo "configure: warning: can\'t find GNU make. You should install GNU make" 1>&2
910 if test $MAKE != "error" ; then
911 $MAKE -v| grep GNU > /dev/null
915 echo "configure: warning: Please install *GNU* make" 1>&2
922 result="`echo \"$PYTHON\" | grep echo`"
923 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
925 echo "configure: warning: can\'t find python. You should install Python" 1>&2
931 if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
932 LN=cp # hard link does not work under cygnus-nt
933 LN_S=cp # symbolic link does not work for native nt
938 INSTALL="\$(stepdir)/../bin/install-dot-exe.sh -c"
945 INSTALL="\$(stepdir)/../bin/install-sh -c"
952 cat >> confdefs.h <<EOF
953 #define DIRSEP '${DIRSEP}'
956 cat >> confdefs.h <<EOF
957 #define PATHSEP '${PATHSEP}'
965 if test "$datadir" = "\${prefix}/share"; then
966 datadir='${prefix}/share/'$package
968 DIR_DATADIR=${datadir}
970 if test "$prefix" = "NONE"; then
971 presome=${ac_default_prefix}
973 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
976 cat >> confdefs.h <<EOF
977 #define DIR_DATADIR "${DIR_DATADIR}"
983 # For all packages except the StepMake package itself
987 # Uncomment the configuration options your package needs.
989 # -O is necessary to get inlining
991 CXXFLAGS=${CXXFLAGS:-""}
998 # Check whether --enable-checking or --disable-checking was given.
999 if test "${enable_checking+set}" = set; then
1000 enableval="$enable_checking"
1001 checking_b=$enableval
1005 # actually, the default is: tja='-O' to get inlining...
1008 #actually, that sucks.
1009 # tja looks like a typo. Default is optimisation off. --hwn
1011 # Check whether --enable-optimise or --disable-optimise was given.
1012 if test "${enable_optimise+set}" = set; then
1013 enableval="$enable_optimise"
1014 optimise_b=$enableval
1018 # Check whether --enable-profiling or --disable-profiling was given.
1019 if test "${enable_profiling+set}" = set; then
1020 enableval="$enable_profiling"
1021 profile_b=$enableval
1025 # Check whether --enable-debugging or --disable-debugging was given.
1026 if test "${enable_debugging+set}" = set; then
1027 enableval="$enable_debugging"
1032 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1033 if test "${enable_mingw_prefix+set}" = set; then
1034 enableval="$enable_mingw_prefix"
1035 MINGWPREFIX=$enableval
1041 if test "$printing_b" = no; then
1043 cat >> confdefs.h <<\EOF
1047 DEFINES="$DEFINES -DNPRINT"
1050 if test "$checking_b" = no; then
1052 cat >> confdefs.h <<\EOF
1056 DEFINES="$DEFINES -DNDEBUG"
1059 if test "$optimise_b" = yes; then
1060 OPTIMIZE="-O2 -finline-functions"
1063 if test "$optimise_b" = no; then
1067 if test $profile_b = yes; then
1069 OPTIMIZE="$OPTIMIZE -pg"
1072 if test $debug_b = yes; then
1073 OPTIMIZE="$OPTIMIZE -g"
1076 # however, C++ support in mingw32 v 0.1.4 is still flaky
1077 if test x$MINGWPREFIX != xno; then
1078 ICFLAGS="-I$MINGWPREFIX/include"
1079 ILDFLAGS="-$MINGWPREFIX/lib"
1082 # Extract the first word of "gcc", so it can be a program name with args.
1083 set dummy gcc; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 if test -n "$CC"; then
1090 ac_cv_prog_CC="$CC" # Let the user override the test.
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1093 for ac_dir in $PATH; do
1094 test -z "$ac_dir" && ac_dir=.
1095 if test -f $ac_dir/$ac_word; then
1104 if test -n "$CC"; then
1105 echo "$ac_t""$CC" 1>&6
1107 echo "$ac_t""no" 1>&6
1110 if test -z "$CC"; then
1111 # Extract the first word of "cc", so it can be a program name with args.
1112 set dummy cc; ac_word=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1118 if test -n "$CC"; then
1119 ac_cv_prog_CC="$CC" # Let the user override the test.
1121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1123 for ac_dir in $PATH; do
1124 test -z "$ac_dir" && ac_dir=.
1125 if test -f $ac_dir/$ac_word; then
1126 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1127 ac_prog_rejected=yes
1135 if test $ac_prog_rejected = yes; then
1136 # We found a bogon in the path, so make sure we never use it.
1137 set dummy $ac_cv_prog_CC
1139 if test $# -gt 0; then
1140 # We chose a different compiler from the bogus one.
1141 # However, it has the same basename, so the bogon will be chosen
1142 # first if we set CC to just the basename; use the full file name.
1144 set dummy "$ac_dir/$ac_word" "$@"
1152 if test -n "$CC"; then
1153 echo "$ac_t""$CC" 1>&6
1155 echo "$ac_t""no" 1>&6
1158 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1161 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1165 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1166 ac_cpp='$CPP $CPPFLAGS'
1167 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1168 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1169 cross_compiling=$ac_cv_prog_cc_cross
1171 cat > conftest.$ac_ext <<EOF
1172 #line 1173 "configure"
1173 #include "confdefs.h"
1176 if { (eval echo configure:1177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1177 ac_cv_prog_cc_works=yes
1178 # If we can't run a trivial program, we are probably using a cross compiler.
1179 if (./conftest; exit) 2>/dev/null; then
1180 ac_cv_prog_cc_cross=no
1182 ac_cv_prog_cc_cross=yes
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1187 ac_cv_prog_cc_works=no
1191 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1192 if test $ac_cv_prog_cc_works = no; then
1193 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1195 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1197 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1198 cross_compiling=$ac_cv_prog_cc_cross
1200 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1201 echo "configure:1202: checking whether we are using GNU C" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 cat > conftest.c <<EOF
1210 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1217 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1219 if test $ac_cv_prog_gcc = yes; then
1221 ac_test_CFLAGS="${CFLAGS+set}"
1222 ac_save_CFLAGS="$CFLAGS"
1224 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether ${CC-cc} accepts -g" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 echo 'void f(){}' > conftest.c
1230 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1239 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1240 if test "$ac_test_CFLAGS" = set; then
1241 CFLAGS="$ac_save_CFLAGS"
1242 elif test $ac_cv_prog_cc_g = yes; then
1249 test "${CFLAGS+set}" = set || CFLAGS="-g"
1255 CPPFLAGS=${CPPFLAGS:-""}
1263 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1266 # Check whether --enable-printing or --disable-printing was given.
1267 if test "${enable_printing+set}" = set; then
1268 enableval="$enable_printing"
1269 printing_b=$enableval
1273 if test "$optimise_b" = yes; then
1274 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1275 cat >> confdefs.h <<\EOF
1276 #define STRINGS_UTILS_INLINED 1
1281 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1282 echo "configure:1283: checking how to run the C++ preprocessor" >&5
1283 if test -z "$CXXCPP"; then
1284 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1289 ac_cpp='$CXXCPP $CPPFLAGS'
1290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1291 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1292 cross_compiling=$ac_cv_prog_cxx_cross
1293 CXXCPP="${CXX-g++} -E"
1294 cat > conftest.$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1300 { (eval echo configure:1301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1301 ac_err=`grep -v '^ *+' conftest.out`
1302 if test -z "$ac_err"; then
1306 echo "configure: failed program was:" >&5
1307 cat conftest.$ac_ext >&5
1312 ac_cv_prog_CXXCPP="$CXXCPP"
1315 CXXCPP="$ac_cv_prog_CXXCPP"
1316 echo "$ac_t""$CXXCPP" 1>&6
1320 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1321 ac_cpp='$CXXCPP $CPPFLAGS'
1322 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1323 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1324 cross_compiling=$ac_cv_prog_cxx_cross
1326 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1328 # Extract the first word of "$ac_prog", so it can be a program name with args.
1329 set dummy $ac_prog; ac_word=$2
1330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1331 echo "configure:1332: checking for $ac_word" >&5
1332 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1335 if test -n "$CXX"; then
1336 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1339 for ac_dir in $PATH; do
1340 test -z "$ac_dir" && ac_dir=.
1341 if test -f $ac_dir/$ac_word; then
1342 ac_cv_prog_CXX="$ac_prog"
1349 CXX="$ac_cv_prog_CXX"
1350 if test -n "$CXX"; then
1351 echo "$ac_t""$CXX" 1>&6
1353 echo "$ac_t""no" 1>&6
1356 test -n "$CXX" && break
1358 test -n "$CXX" || CXX="gcc"
1361 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1362 echo "configure:1363: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1366 ac_cpp='$CXXCPP $CPPFLAGS'
1367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1368 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1369 cross_compiling=$ac_cv_prog_cxx_cross
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1376 if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1377 ac_cv_prog_cxx_works=yes
1378 # If we can't run a trivial program, we are probably using a cross compiler.
1379 if (./conftest; exit) 2>/dev/null; then
1380 ac_cv_prog_cxx_cross=no
1382 ac_cv_prog_cxx_cross=yes
1385 echo "configure: failed program was:" >&5
1386 cat conftest.$ac_ext >&5
1387 ac_cv_prog_cxx_works=no
1391 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1392 if test $ac_cv_prog_cxx_works = no; then
1393 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1395 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1396 echo "configure:1397: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1397 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1398 cross_compiling=$ac_cv_prog_cxx_cross
1400 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1401 echo "configure:1402: checking whether we are using GNU C++" >&5
1402 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 cat > conftest.C <<EOF
1410 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1417 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1419 if test $ac_cv_prog_gxx = yes; then
1421 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1422 ac_save_CXXFLAGS="$CXXFLAGS"
1424 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1425 echo "configure:1426: checking whether ${CXX-g++} accepts -g" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 echo 'void f(){}' > conftest.cc
1430 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1431 ac_cv_prog_cxx_g=yes
1439 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1440 if test "$ac_test_CXXFLAGS" = set; then
1441 CXXFLAGS="$ac_save_CXXFLAGS"
1442 elif test $ac_cv_prog_cxx_g = yes; then
1449 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1453 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1454 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1455 echo "configure:1456: checking for FlexLexer.h" >&5
1456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1462 #include <FlexLexer.h>
1464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1465 { (eval echo configure:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1466 ac_err=`grep -v '^ *+' conftest.out`
1467 if test -z "$ac_err"; then
1469 eval "ac_cv_header_$ac_safe=yes"
1472 echo "configure: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1475 eval "ac_cv_header_$ac_safe=no"
1479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1480 echo "$ac_t""yes" 1>&6
1483 echo "$ac_t""no" 1>&6
1485 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1491 CPPFLAGS="$CPPFLAGS $DEFINES"
1492 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1493 LDFLAGS=$EXTRA_LIBES
1502 if $CXX --version | grep '2\.[78]' > /dev/null ||
1503 $CXX --version | grep 'egcs' > /dev/null
1508 echo "configure: warning: can\'t find g++ 2.7" 1>&2
1514 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1515 echo "configure:1516: checking whether explicit instantiation is needed" >&5
1516 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1523 template <class T> struct foo { static int baz; };
1524 template <class T> int foo<T>::baz = 1;
1527 return foo<int>::baz;
1530 if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1532 lily_cv_need_explicit_instantiation=no
1534 echo "configure: failed program was:" >&5
1535 cat conftest.$ac_ext >&5
1537 lily_cv_need_explicit_instantiation=yes
1542 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1543 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1544 cat >> confdefs.h <<\EOF
1545 #define NEED_EXPLICIT_INSTANTIATION 1
1551 # ugh, automake: we want (and check for) bison
1552 for ac_prog in 'bison -y' byacc
1554 # Extract the first word of "$ac_prog", so it can be a program name with args.
1555 set dummy $ac_prog; 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_YACC'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1561 if test -n "$YACC"; then
1562 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1565 for ac_dir in $PATH; do
1566 test -z "$ac_dir" && ac_dir=.
1567 if test -f $ac_dir/$ac_word; then
1568 ac_cv_prog_YACC="$ac_prog"
1575 YACC="$ac_cv_prog_YACC"
1576 if test -n "$YACC"; then
1577 echo "$ac_t""$YACC" 1>&6
1579 echo "$ac_t""no" 1>&6
1582 test -n "$YACC" && break
1584 test -n "$YACC" || YACC="yacc"
1586 # ugh, automake: we want (and check for) flex
1588 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
1592 ac_cv_prog_lex_root=lex.yy
1594 for ac_prog in bison
1596 # Extract the first word of "$ac_prog", so it can be a program name with args.
1597 set dummy $ac_prog; ac_word=$2
1598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1599 echo "configure:1600: checking for $ac_word" >&5
1600 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1603 if test -n "$BISON"; then
1604 ac_cv_prog_BISON="$BISON" # Let the user override the test.
1606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1607 for ac_dir in $PATH; do
1608 test -z "$ac_dir" && ac_dir=.
1609 if test -f $ac_dir/$ac_word; then
1610 ac_cv_prog_BISON="$ac_prog"
1617 BISON="$ac_cv_prog_BISON"
1618 if test -n "$BISON"; then
1619 echo "$ac_t""$BISON" 1>&6
1621 echo "$ac_t""no" 1>&6
1624 test -n "$BISON" && break
1626 test -n "$BISON" || BISON="error"
1630 # Extract the first word of "$ac_prog", so it can be a program name with args.
1631 set dummy $ac_prog; ac_word=$2
1632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1633 echo "configure:1634: checking for $ac_word" >&5
1634 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 if test -n "$FLEX"; then
1638 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1641 for ac_dir in $PATH; do
1642 test -z "$ac_dir" && ac_dir=.
1643 if test -f $ac_dir/$ac_word; then
1644 ac_cv_prog_FLEX="$ac_prog"
1651 FLEX="$ac_cv_prog_FLEX"
1652 if test -n "$FLEX"; then
1653 echo "$ac_t""$FLEX" 1>&6
1655 echo "$ac_t""no" 1>&6
1658 test -n "$FLEX" && break
1660 test -n "$FLEX" || FLEX="error"
1663 result="`echo \"$BISON\" | grep echo`"
1664 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
1666 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
1672 result="`echo \"$FLEX\" | grep echo`"
1673 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
1675 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
1681 if test $BISON != "error"; then
1682 bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
1683 if test $bison_version -lt 25; then
1685 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
1697 # Extract the first word of "$ac_prog", so it can be a program name with args.
1698 set dummy $ac_prog; ac_word=$2
1699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1700 echo "configure:1701: checking for $ac_word" >&5
1701 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 if test -n "$AR"; then
1705 ac_cv_prog_AR="$AR" # Let the user override the test.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1708 for ac_dir in $PATH; do
1709 test -z "$ac_dir" && ac_dir=.
1710 if test -f $ac_dir/$ac_word; then
1711 ac_cv_prog_AR="$ac_prog"
1719 if test -n "$AR"; then
1720 echo "$ac_t""$AR" 1>&6
1722 echo "$ac_t""no" 1>&6
1725 test -n "$AR" && break
1727 test -n "$AR" || AR="error"
1729 # Extract the first word of "ranlib", so it can be a program name with args.
1730 set dummy ranlib; ac_word=$2
1731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1732 echo "configure:1733: checking for $ac_word" >&5
1733 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1736 if test -n "$RANLIB"; then
1737 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1740 for ac_dir in $PATH; do
1741 test -z "$ac_dir" && ac_dir=.
1742 if test -f $ac_dir/$ac_word; then
1743 ac_cv_prog_RANLIB="ranlib"
1748 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1751 RANLIB="$ac_cv_prog_RANLIB"
1752 if test -n "$RANLIB"; then
1753 echo "$ac_t""$RANLIB" 1>&6
1755 echo "$ac_t""no" 1>&6
1762 # AC_STEPMAKE_LIBTOOL
1768 # Check whether --with-localedir or --without-localedir was given.
1769 if test "${with_localedir+set}" = set; then
1770 withval="$with_localedir"
1771 localedir=$with_localedir
1773 localedir='${prefix}/share/locale'
1777 # Check whether --with-lang or --without-lang was given.
1778 if test "${with_lang+set}" = set; then
1779 withval="$with_lang"
1786 echo $ac_n "checking language""... $ac_c" 1>&6
1787 echo "configure:1788: checking language" >&5
1789 En* | en* | Am* | am* | US* | us*)
1791 NL | nl | Du* | du* | Ned* | ned*)
1798 echo "$ac_t""$lang" 1>&6
1800 if test "$lang" = "unknown" ; then
1802 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
1809 DIR_LOCALEDIR=${localedir}
1811 if test "$prefix" = "NONE"; then
1812 presome=${ac_default_prefix}
1814 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
1817 cat >> confdefs.h <<EOF
1818 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
1822 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
1823 echo "configure:1824: checking for gettext in -lintl" >&5
1824 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
1825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 ac_save_LIBS="$LIBS"
1830 cat > conftest.$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1833 /* Override any gcc2 internal prototype to avoid an error. */
1837 /* We use char because int might match the return type of a gcc2
1838 builtin and then its argument prototype would still apply. */
1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1847 eval "ac_cv_lib_$ac_lib_var=yes"
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1852 eval "ac_cv_lib_$ac_lib_var=no"
1855 LIBS="$ac_save_LIBS"
1858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1860 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1861 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1862 cat >> confdefs.h <<EOF
1863 #define $ac_tr_lib 1
1869 echo "$ac_t""no" 1>&6
1872 for ac_func in gettext
1874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_func" >&5
1876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1882 /* System header to define __stub macros and hopefully few prototypes,
1883 which can conflict with char $ac_func(); below. */
1885 /* Override any gcc2 internal prototype to avoid an error. */
1889 /* We use char because int might match the return type of a gcc2
1890 builtin and then its argument prototype would still apply. */
1895 /* The GNU C library defines this for functions which it implements
1896 to always fail with ENOSYS. Some functions are actually named
1897 something starting with __ and the normal name is an alias. */
1898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1906 if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1908 eval "ac_cv_func_$ac_func=yes"
1910 echo "configure: failed program was:" >&5
1911 cat conftest.$ac_ext >&5
1913 eval "ac_cv_func_$ac_func=no"
1918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1919 echo "$ac_t""yes" 1>&6
1920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1921 cat >> confdefs.h <<EOF
1922 #define $ac_tr_func 1
1926 echo "$ac_t""no" 1>&6
1932 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
1933 for ac_prog in msgfmt
1935 # Extract the first word of "$ac_prog", so it can be a program name with args.
1936 set dummy $ac_prog; ac_word=$2
1937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_word" >&5
1939 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 if test -n "$MSGFMT"; then
1943 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1946 for ac_dir in $PATH; do
1947 test -z "$ac_dir" && ac_dir=.
1948 if test -f $ac_dir/$ac_word; then
1949 ac_cv_prog_MSGFMT="$ac_prog"
1956 MSGFMT="$ac_cv_prog_MSGFMT"
1957 if test -n "$MSGFMT"; then
1958 echo "$ac_t""$MSGFMT" 1>&6
1960 echo "$ac_t""no" 1>&6
1963 test -n "$MSGFMT" && break
1965 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
1967 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
1968 echo "configure:1969: checking whether msgfmt accepts -o" >&5
1969 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
1970 if test "$msgfmt_output" = ""; then
1971 echo "$ac_t""yes" 1>&6
1974 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
1975 echo "$ac_t""no" 1>&6
1977 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
1981 if test ! -n "$MSGFMT"; then
1983 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
1990 if test "x$YODL" = "x"; then
1991 for ac_prog in striproff
1993 # Extract the first word of "$ac_prog", so it can be a program name with args.
1994 set dummy $ac_prog; ac_word=$2
1995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1996 echo "configure:1997: checking for $ac_word" >&5
1997 if eval "test \"`echo '$''{'ac_cv_prog_STRIPROFF'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
2000 if test -n "$STRIPROFF"; then
2001 ac_cv_prog_STRIPROFF="$STRIPROFF" # Let the user override the test.
2003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2004 for ac_dir in $PATH; do
2005 test -z "$ac_dir" && ac_dir=.
2006 if test -f $ac_dir/$ac_word; then
2007 ac_cv_prog_STRIPROFF="$ac_prog"
2014 STRIPROFF="$ac_cv_prog_STRIPROFF"
2015 if test -n "$STRIPROFF"; then
2016 echo "$ac_t""$STRIPROFF" 1>&6
2018 echo "$ac_t""no" 1>&6
2021 test -n "$STRIPROFF" && break
2023 test -n "$STRIPROFF" || STRIPROFF="-echo no striproff"
2027 # Extract the first word of "$ac_prog", so it can be a program name with args.
2028 set dummy $ac_prog; ac_word=$2
2029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2030 echo "configure:2031: checking for $ac_word" >&5
2031 if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2034 if test -n "$YODL"; then
2035 ac_cv_prog_YODL="$YODL" # Let the user override the test.
2037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2038 for ac_dir in $PATH; do
2039 test -z "$ac_dir" && ac_dir=.
2040 if test -f $ac_dir/$ac_word; then
2041 ac_cv_prog_YODL="$ac_prog"
2048 YODL="$ac_cv_prog_YODL"
2049 if test -n "$YODL"; then
2050 echo "$ac_t""$YODL" 1>&6
2052 echo "$ac_t""no" 1>&6
2055 test -n "$YODL" && break
2057 test -n "$YODL" || YODL="-echo no yodl"
2059 for ac_prog in yodl2html
2061 # Extract the first word of "$ac_prog", so it can be a program name with args.
2062 set dummy $ac_prog; ac_word=$2
2063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2064 echo "configure:2065: checking for $ac_word" >&5
2065 if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2068 if test -n "$YODL2HTML"; then
2069 ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
2071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2072 for ac_dir in $PATH; do
2073 test -z "$ac_dir" && ac_dir=.
2074 if test -f $ac_dir/$ac_word; then
2075 ac_cv_prog_YODL2HTML="$ac_prog"
2082 YODL2HTML="$ac_cv_prog_YODL2HTML"
2083 if test -n "$YODL2HTML"; then
2084 echo "$ac_t""$YODL2HTML" 1>&6
2086 echo "$ac_t""no" 1>&6
2089 test -n "$YODL2HTML" && break
2091 test -n "$YODL2HTML" || YODL2HTML="-echo no yodl"
2093 for ac_prog in yodl2latex
2095 # Extract the first word of "$ac_prog", so it can be a program name with args.
2096 set dummy $ac_prog; ac_word=$2
2097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2098 echo "configure:2099: checking for $ac_word" >&5
2099 if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2102 if test -n "$YODL2LATEX"; then
2103 ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test.
2105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2106 for ac_dir in $PATH; do
2107 test -z "$ac_dir" && ac_dir=.
2108 if test -f $ac_dir/$ac_word; then
2109 ac_cv_prog_YODL2LATEX="$ac_prog"
2116 YODL2LATEX="$ac_cv_prog_YODL2LATEX"
2117 if test -n "$YODL2LATEX"; then
2118 echo "$ac_t""$YODL2LATEX" 1>&6
2120 echo "$ac_t""no" 1>&6
2123 test -n "$YODL2LATEX" && break
2126 for ac_prog in yodl2man
2128 # Extract the first word of "$ac_prog", so it can be a program name with args.
2129 set dummy $ac_prog; ac_word=$2
2130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2131 echo "configure:2132: checking for $ac_word" >&5
2132 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2135 if test -n "$YODL2MAN"; then
2136 ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
2138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2139 for ac_dir in $PATH; do
2140 test -z "$ac_dir" && ac_dir=.
2141 if test -f $ac_dir/$ac_word; then
2142 ac_cv_prog_YODL2MAN="$ac_prog"
2149 YODL2MAN="$ac_cv_prog_YODL2MAN"
2150 if test -n "$YODL2MAN"; then
2151 echo "$ac_t""$YODL2MAN" 1>&6
2153 echo "$ac_t""no" 1>&6
2156 test -n "$YODL2MAN" && break
2158 test -n "$YODL2MAN" || YODL2MAN="-echo no yodl"
2160 for ac_prog in yodl2msless
2162 # Extract the first word of "$ac_prog", so it can be a program name with args.
2163 set dummy $ac_prog; ac_word=$2
2164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2165 echo "configure:2166: checking for $ac_word" >&5
2166 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MSLESS'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 if test -n "$YODL2MSLESS"; then
2170 ac_cv_prog_YODL2MSLESS="$YODL2MSLESS" # Let the user override the test.
2172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2173 for ac_dir in $PATH; do
2174 test -z "$ac_dir" && ac_dir=.
2175 if test -f $ac_dir/$ac_word; then
2176 ac_cv_prog_YODL2MSLESS="$ac_prog"
2183 YODL2MSLESS="$ac_cv_prog_YODL2MSLESS"
2184 if test -n "$YODL2MSLESS"; then
2185 echo "$ac_t""$YODL2MSLESS" 1>&6
2187 echo "$ac_t""no" 1>&6
2190 test -n "$YODL2MSLESS" && break
2192 test -n "$YODL2MSLESS" || YODL2MSLESS="-echo no yodl"
2194 for ac_prog in yodl2texinfo
2196 # Extract the first word of "$ac_prog", so it can be a program name with args.
2197 set dummy $ac_prog; ac_word=$2
2198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2199 echo "configure:2200: checking for $ac_word" >&5
2200 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 if test -n "$YODL2TEXINFO"; then
2204 ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test.
2206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2207 for ac_dir in $PATH; do
2208 test -z "$ac_dir" && ac_dir=.
2209 if test -f $ac_dir/$ac_word; then
2210 ac_cv_prog_YODL2TEXINFO="$ac_prog"
2217 YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO"
2218 if test -n "$YODL2TEXINFO"; then
2219 echo "$ac_t""$YODL2TEXINFO" 1>&6
2221 echo "$ac_t""no" 1>&6
2224 test -n "$YODL2TEXINFO" && break
2226 test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl"
2228 for ac_prog in yodl2txt
2230 # Extract the first word of "$ac_prog", so it can be a program name with args.
2231 set dummy $ac_prog; ac_word=$2
2232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_word" >&5
2234 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 if test -n "$YODL2TXT"; then
2238 ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test.
2240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2241 for ac_dir in $PATH; do
2242 test -z "$ac_dir" && ac_dir=.
2243 if test -f $ac_dir/$ac_word; then
2244 ac_cv_prog_YODL2TXT="$ac_prog"
2251 YODL2TXT="$ac_cv_prog_YODL2TXT"
2252 if test -n "$YODL2TXT"; then
2253 echo "$ac_t""$YODL2TXT" 1>&6
2255 echo "$ac_t""no" 1>&6
2258 test -n "$YODL2TXT" && break
2260 test -n "$YODL2TXT" || YODL2TXT="-echo no yodl"
2271 export STRIPROFF YODL YODL2HTML YODL2LATEX YODL2MAN YODL2MSLESS YODL2TEXINFO YODL2TXT
2273 if test "x$YODL" = "-echo no yodl"; then
2275 echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2
2283 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2284 echo "configure:2285: checking for 8-bit clean memcmp" >&5
2285 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 if test "$cross_compiling" = yes; then
2289 ac_cv_func_memcmp_clean=no
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2295 extern "C" void exit(int);
2300 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2301 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2305 if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2307 ac_cv_func_memcmp_clean=yes
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2312 ac_cv_func_memcmp_clean=no
2319 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2320 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2322 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2323 echo "configure:2324: checking for vprintf" >&5
2324 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 /* System header to define __stub macros and hopefully few prototypes,
2331 which can conflict with char vprintf(); below. */
2333 /* Override any gcc2 internal prototype to avoid an error. */
2337 /* We use char because int might match the return type of a gcc2
2338 builtin and then its argument prototype would still apply. */
2343 /* The GNU C library defines this for functions which it implements
2344 to always fail with ENOSYS. Some functions are actually named
2345 something starting with __ and the normal name is an alias. */
2346 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2354 if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2356 eval "ac_cv_func_vprintf=yes"
2358 echo "configure: failed program was:" >&5
2359 cat conftest.$ac_ext >&5
2361 eval "ac_cv_func_vprintf=no"
2366 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2367 echo "$ac_t""yes" 1>&6
2368 cat >> confdefs.h <<\EOF
2369 #define HAVE_VPRINTF 1
2373 echo "$ac_t""no" 1>&6
2376 if test "$ac_cv_func_vprintf" != yes; then
2377 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2378 echo "configure:2379: checking for _doprnt" >&5
2379 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2385 /* System header to define __stub macros and hopefully few prototypes,
2386 which can conflict with char _doprnt(); below. */
2388 /* Override any gcc2 internal prototype to avoid an error. */
2392 /* We use char because int might match the return type of a gcc2
2393 builtin and then its argument prototype would still apply. */
2398 /* The GNU C library defines this for functions which it implements
2399 to always fail with ENOSYS. Some functions are actually named
2400 something starting with __ and the normal name is an alias. */
2401 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2411 eval "ac_cv_func__doprnt=yes"
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2416 eval "ac_cv_func__doprnt=no"
2421 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2422 echo "$ac_t""yes" 1>&6
2423 cat >> confdefs.h <<\EOF
2424 #define HAVE_DOPRNT 1
2428 echo "$ac_t""no" 1>&6
2433 for ac_func in memmem snprintf vsnprintf gettext
2435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_func" >&5
2437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2443 /* System header to define __stub macros and hopefully few prototypes,
2444 which can conflict with char $ac_func(); below. */
2446 /* Override any gcc2 internal prototype to avoid an error. */
2450 /* We use char because int might match the return type of a gcc2
2451 builtin and then its argument prototype would still apply. */
2456 /* The GNU C library defines this for functions which it implements
2457 to always fail with ENOSYS. Some functions are actually named
2458 something starting with __ and the normal name is an alias. */
2459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2467 if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2469 eval "ac_cv_func_$ac_func=yes"
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2474 eval "ac_cv_func_$ac_func=no"
2479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2480 echo "$ac_t""yes" 1>&6
2481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2482 cat >> confdefs.h <<EOF
2483 #define $ac_tr_func 1
2487 echo "$ac_t""no" 1>&6
2492 cat >> confdefs.h <<EOF
2493 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2496 cat >> confdefs.h <<EOF
2497 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
2501 for ac_prog in makeinfo
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2506 echo "configure:2507: checking for $ac_word" >&5
2507 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 if test -n "$MAKEINFO"; then
2511 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2514 for ac_dir in $PATH; do
2515 test -z "$ac_dir" && ac_dir=.
2516 if test -f $ac_dir/$ac_word; then
2517 ac_cv_prog_MAKEINFO="$ac_prog"
2524 MAKEINFO="$ac_cv_prog_MAKEINFO"
2525 if test -n "$MAKEINFO"; then
2526 echo "$ac_t""$MAKEINFO" 1>&6
2528 echo "$ac_t""no" 1>&6
2531 test -n "$MAKEINFO" && break
2533 test -n "$MAKEINFO" || MAKEINFO="error"
2536 result="`echo \"$YODL2TEXINFO\" | grep echo`"
2537 if test "x$YODL2TEXINFO" = "xerror" -o "x$result" != "x"; then
2539 echo "configure: warning: can\'t find yodl. You should install Yodl 1.30.2 or better" 1>&2
2547 cat > confcache <<\EOF
2548 # This file is a shell script that caches the results of configure
2549 # tests run on this system so they can be shared between configure
2550 # scripts and configure runs. It is not useful on other systems.
2551 # If it contains results you don't want to keep, you may remove or edit it.
2553 # By default, configure uses ./config.cache as the cache file,
2554 # creating it if it does not exist already. You can give configure
2555 # the --cache-file=FILE option to use a different cache file; that is
2556 # what configure does when it calls configure scripts in
2557 # subdirectories, so they share the cache.
2558 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2559 # config.status only pays attention to the cache file if you give it the
2560 # --recheck option to rerun configure.
2563 # The following way of writing the cache mishandles newlines in values,
2564 # but we know of no workaround that is simple, portable, and efficient.
2565 # So, don't put newlines in cache variables' values.
2566 # Ultrix sh set writes to stderr and can't be redirected directly,
2567 # and sets the high bit in the cache file unless we assign to the vars.
2569 case `(ac_space=' '; set) 2>&1` in
2571 # `set' does not quote correctly, so add quotes (double-quote substitution
2572 # turns \\\\ into \\, and sed turns \\ into \).
2574 -e "s/'/'\\\\''/g" \
2575 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2578 # `set' quotes correctly as required by POSIX, so do not add quotes.
2579 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2582 if cmp -s $cache_file confcache; then
2585 if test -w $cache_file; then
2586 echo "updating cache $cache_file"
2587 cat confcache > $cache_file
2589 echo "not updating unwritable cache $cache_file"
2594 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2597 # Let make expand exec_prefix.
2598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2600 # Any assignment to VPATH causes Sun make to only execute
2601 # the first set of double-colon rules, so remove it if not needed.
2602 # If there is a colon in the path, we need to keep it.
2603 if test "x$srcdir" = x.; then
2604 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2607 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2609 DEFS=-DHAVE_CONFIG_H
2611 # Without the "./", some shells look in PATH for config.status.
2612 : ${CONFIG_STATUS=./config.status}
2614 echo creating $CONFIG_STATUS
2615 rm -f $CONFIG_STATUS
2616 cat > $CONFIG_STATUS <<EOF
2618 # Generated automatically by configure.
2619 # Run this file to recreate the current configuration.
2620 # This directory was configured as follows,
2621 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2623 # $0 $ac_configure_args
2625 # Compiler output produced by configure, useful for debugging
2626 # configure, is in ./config.log if it exists.
2628 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2631 case "\$ac_option" in
2632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2633 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2634 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2635 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2636 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2638 -help | --help | --hel | --he | --h)
2639 echo "\$ac_cs_usage"; exit 0 ;;
2640 *) echo "\$ac_cs_usage"; exit 1 ;;
2644 ac_given_srcdir=$srcdir
2646 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2648 cat >> $CONFIG_STATUS <<EOF
2650 # Protect against being on the right side of a sed subst in config.status.
2651 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2652 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2655 s%@CFLAGS@%$CFLAGS%g
2656 s%@CPPFLAGS@%$CPPFLAGS%g
2657 s%@CXXFLAGS@%$CXXFLAGS%g
2659 s%@LDFLAGS@%$LDFLAGS%g
2661 s%@exec_prefix@%$exec_prefix%g
2662 s%@prefix@%$prefix%g
2663 s%@program_transform_name@%$program_transform_name%g
2664 s%@bindir@%$bindir%g
2665 s%@sbindir@%$sbindir%g
2666 s%@libexecdir@%$libexecdir%g
2667 s%@datadir@%$datadir%g
2668 s%@sysconfdir@%$sysconfdir%g
2669 s%@sharedstatedir@%$sharedstatedir%g
2670 s%@localstatedir@%$localstatedir%g
2671 s%@libdir@%$libdir%g
2672 s%@includedir@%$includedir%g
2673 s%@oldincludedir@%$oldincludedir%g
2674 s%@infodir@%$infodir%g
2675 s%@mandir@%$mandir%g
2676 s%@package@%$package%g
2677 s%@PACKAGE@%$PACKAGE%g
2678 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
2679 s%@package_depth@%$package_depth%g
2680 s%@AUTOGENERATE@%$AUTOGENERATE%g
2681 s%@absolute_builddir@%$absolute_builddir%g
2682 s%@stepmake@%$stepmake%g
2683 s%@STATE_VECTOR@%$STATE_VECTOR%g
2684 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
2686 s%@host_alias@%$host_alias%g
2687 s%@host_cpu@%$host_cpu%g
2688 s%@host_vendor@%$host_vendor%g
2689 s%@host_os@%$host_os%g
2694 s%@PYTHON@%$PYTHON%g
2695 s%@DOTEXE@%$DOTEXE%g
2699 s%@INSTALL@%$INSTALL%g
2700 s%@PATHSEP@%$PATHSEP%g
2701 s%@DIRSEP@%$DIRSEP%g
2702 s%@DIR_DATADIR@%$DIR_DATADIR%g
2703 s%@subdirs@%$subdirs%g
2706 s%@ICFLAGS@%$ICFLAGS%g
2707 s%@ILDFLAGS@%$ILDFLAGS%g
2708 s%@DEFINES@%$DEFINES%g
2709 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
2711 s%@CXXCPP@%$CXXCPP%g
2716 s%@RANLIB@%$RANLIB%g
2717 s%@localedir@%$localedir%g
2718 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
2719 s%@MSGFMT@%$MSGFMT%g
2720 s%@STRIPROFF@%$STRIPROFF%g
2722 s%@YODL2HTML@%$YODL2HTML%g
2723 s%@YODL2LATEX@%$YODL2LATEX%g
2724 s%@YODL2MAN@%$YODL2MAN%g
2725 s%@YODL2MSLESS@%$YODL2MSLESS%g
2726 s%@YODL2TEXINFO@%$YODL2TEXINFO%g
2727 s%@YODL2TXT@%$YODL2TXT%g
2728 s%@LIBOBJS@%$LIBOBJS%g
2729 s%@MAKEINFO@%$MAKEINFO%g
2734 cat >> $CONFIG_STATUS <<\EOF
2736 # Split the substitutions into bite-sized pieces for seds with
2737 # small command number limits, like on Digital OSF/1 and HP-UX.
2738 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2739 ac_file=1 # Number of current file.
2740 ac_beg=1 # First line for current file.
2741 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2744 while $ac_more_lines; do
2745 if test $ac_beg -gt 1; then
2746 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2748 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2750 if test ! -s conftest.s$ac_file; then
2752 rm -f conftest.s$ac_file
2754 if test -z "$ac_sed_cmds"; then
2755 ac_sed_cmds="sed -f conftest.s$ac_file"
2757 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2759 ac_file=`expr $ac_file + 1`
2761 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2764 if test -z "$ac_sed_cmds"; then
2769 cat >> $CONFIG_STATUS <<EOF
2771 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
2773 cat >> $CONFIG_STATUS <<\EOF
2774 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2775 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2777 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2778 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2779 *) ac_file_in="${ac_file}.in" ;;
2782 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2784 # Remove last slash and all that follows it. Not all systems have dirname.
2785 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2786 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2787 # The file is in a subdirectory.
2788 test ! -d "$ac_dir" && mkdir "$ac_dir"
2789 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2790 # A "../" for each directory in $ac_dir_suffix.
2791 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2793 ac_dir_suffix= ac_dots=
2796 case "$ac_given_srcdir" in
2798 if test -z "$ac_dots"; then top_srcdir=.
2799 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2800 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2802 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2803 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2807 echo creating "$ac_file"
2809 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2811 *Makefile*) ac_comsub="1i\\
2812 # $configure_input" ;;
2816 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2818 s%@configure_input@%$configure_input%g
2819 s%@srcdir@%$srcdir%g
2820 s%@top_srcdir@%$top_srcdir%g
2821 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2825 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2826 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2828 # ac_d sets the value in "#define NAME VALUE" lines.
2829 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2830 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2833 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2834 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2835 ac_uB='\([ ]\)%\1#\2define\3'
2838 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2839 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2840 ac_eB='$%\1#\2define\3'
2844 if test "${CONFIG_HEADERS+set}" != set; then
2846 cat >> $CONFIG_STATUS <<EOF
2847 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
2849 cat >> $CONFIG_STATUS <<\EOF
2851 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2852 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2854 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2855 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2856 *) ac_file_in="${ac_file}.in" ;;
2859 echo creating $ac_file
2861 rm -f conftest.frag conftest.in conftest.out
2862 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2863 cat $ac_file_inputs > conftest.in
2867 # Transform confdefs.h into a sed script conftest.vals that substitutes
2868 # the proper values into config.h.in to produce config.h. And first:
2869 # Protect against being on the right side of a sed subst in config.status.
2870 # Protect against being in an unquoted here document in config.status.
2872 cat > conftest.hdr <<\EOF
2875 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2879 sed -n -f conftest.hdr confdefs.h > conftest.vals
2882 # This sed command replaces #undef with comments. This is necessary, for
2883 # example, in the case of _POSIX_SOURCE, which is predefined and required
2884 # on some systems where configure will not decide to define it.
2885 cat >> conftest.vals <<\EOF
2886 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2889 # Break up conftest.vals because some shells have a limit on
2890 # the size of here documents, and old seds have small limits too.
2895 ac_lines=`grep -c . conftest.vals`
2896 # grep -c gives empty output for an empty file on some AIX systems.
2897 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2898 # Write a limited-size here document to conftest.frag.
2899 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2900 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2902 sed -f conftest.frag conftest.in > conftest.out
2904 mv conftest.out conftest.in
2906 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2908 mv conftest.tail conftest.vals
2912 cat >> $CONFIG_STATUS <<\EOF
2913 rm -f conftest.frag conftest.h
2914 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2915 cat conftest.in >> conftest.h
2917 if cmp -s $ac_file conftest.h 2>/dev/null; then
2918 echo "$ac_file is unchanged"
2921 # Remove last slash and all that follows it. Not all systems have dirname.
2922 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2923 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2924 # The file is in a subdirectory.
2925 test ! -d "$ac_dir" && mkdir "$ac_dir"
2928 mv conftest.h $ac_file
2933 cat >> $CONFIG_STATUS <<EOF
2936 cat >> $CONFIG_STATUS <<\EOF
2940 chmod +x $CONFIG_STATUS
2941 rm -fr confdefs* $ac_clean_files
2942 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2944 if test "$no_recursion" != yes; then
2946 # Remove --cache-file and --srcdir arguments so they do not pile up.
2947 ac_sub_configure_args=
2949 for ac_arg in $ac_configure_args; do
2950 if test -n "$ac_prev"; then
2955 -cache-file | --cache-file | --cache-fil | --cache-fi \
2956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2957 ac_prev=cache_file ;;
2958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2961 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2963 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2965 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2969 for ac_config_dir in stepmake; do
2971 # Do not complain, so a configure script can configure whichever
2972 # parts of a large source tree are present.
2973 if test ! -d $srcdir/$ac_config_dir; then
2977 echo configuring in $ac_config_dir
2982 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2984 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2992 # A "../" for each directory in /$ac_config_dir.
2993 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2996 .) # No --srcdir option. We are building in place.
2997 ac_sub_srcdir=$srcdir ;;
2998 /*) # Absolute path.
2999 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3001 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3004 # Check for guested configure; otherwise get Cygnus style configure.
3005 if test -f $ac_sub_srcdir/configure; then
3006 ac_sub_configure=$ac_sub_srcdir/configure
3007 elif test -f $ac_sub_srcdir/configure.in; then
3008 ac_sub_configure=$ac_configure
3010 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3014 # The recursion is here.
3015 if test -n "$ac_sub_configure"; then
3017 # Make the cache file name correct relative to the subdirectory.
3018 case "$cache_file" in
3019 /*) ac_sub_cache_file=$cache_file ;;
3021 ac_sub_cache_file="$ac_dots$cache_file" ;;
3024 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3025 # The eval makes quoting arguments work.
3026 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3029 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3039 cp make/toplevel.make.in ./GNUmakefile
3040 chmod 444 GNUmakefile