3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 enable-config=FILE put configure settings in config-FILE.make"
17 with-localedir=LOCALE use LOCALE as locale dir. Default: PREFIX/share/locale "
19 with-lang=LANG use LANG as language to emit messages"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file=./config.cache
34 program_transform_name=s,x,x,
42 bindir='${exec_prefix}/bin'
43 sbindir='${exec_prefix}/sbin'
44 libexecdir='${exec_prefix}/libexec'
45 datadir='${prefix}/share'
46 sysconfdir='${prefix}/etc'
47 sharedstatedir='${prefix}/com'
48 localstatedir='${prefix}/var'
49 libdir='${exec_prefix}/lib'
50 includedir='${prefix}/include'
51 oldincludedir='/usr/include'
52 infodir='${prefix}/info'
53 mandir='${prefix}/man'
55 # Initialize some other variables.
58 # Maximum number of lines to put in a shell here document.
65 # If the previous option needs an argument, assign it.
66 if test -n "$ac_prev"; then
67 eval "$ac_prev=\$ac_option"
73 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77 # Accept the important Cygnus configure options, so we can diagnose typos.
81 -bindir | --bindir | --bindi | --bind | --bin | --bi)
83 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
84 bindir="$ac_optarg" ;;
86 -build | --build | --buil | --bui | --bu)
88 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91 -cache-file | --cache-file | --cache-fil | --cache-fi \
92 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
94 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
95 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
96 cache_file="$ac_optarg" ;;
98 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
100 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
102 datadir="$ac_optarg" ;;
104 -disable-* | --disable-*)
105 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
106 # Reject names that are not valid shell variable names.
107 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
108 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
110 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
111 eval "enable_${ac_feature}=no" ;;
113 -enable-* | --enable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}='$ac_optarg'" ;;
126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
128 | --exec | --exe | --ex)
129 ac_prev=exec_prefix ;;
130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
132 | --exec=* | --exe=* | --ex=*)
133 exec_prefix="$ac_optarg" ;;
135 -gas | --gas | --ga | --g)
136 # Obsolete; use --with-gas.
139 -help | --help | --hel | --he)
140 # Omit some internal or obsolete options to make the list less imposing.
141 # This message is too long to be a string in the A/UX 3.1 sh.
143 Usage: configure [options] [host]
144 Options: [defaults in brackets after descriptions]
146 --cache-file=FILE cache test results in FILE
147 --help print this message
148 --no-create do not create output files
149 --quiet, --silent do not print \`checking...' messages
150 --version print the version of autoconf that created configure
151 Directory and file names:
152 --prefix=PREFIX install architecture-independent files in PREFIX
154 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
156 --bindir=DIR user executables in DIR [EPREFIX/bin]
157 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
158 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
159 --datadir=DIR read-only architecture-independent data in DIR
161 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
162 --sharedstatedir=DIR modifiable architecture-independent data in DIR
164 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
165 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
166 --includedir=DIR C header files in DIR [PREFIX/include]
167 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
168 --infodir=DIR info documentation in DIR [PREFIX/info]
169 --mandir=DIR man documentation in DIR [PREFIX/man]
170 --srcdir=DIR find the sources in DIR [configure dir or ..]
171 --program-prefix=PREFIX prepend PREFIX to installed program names
172 --program-suffix=SUFFIX append SUFFIX to installed program names
173 --program-transform-name=PROGRAM
174 run sed PROGRAM on installed program names
178 --build=BUILD configure for building on BUILD [BUILD=HOST]
179 --host=HOST configure for HOST [guessed]
180 --target=TARGET configure for TARGET [TARGET=HOST]
181 Features and packages:
182 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
183 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
184 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
185 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
186 --x-includes=DIR X include files are in DIR
187 --x-libraries=DIR X library files are in DIR
189 if test -n "$ac_help"; then
190 echo "--enable and --with options recognized:$ac_help"
194 -host | --host | --hos | --ho)
196 -host=* | --host=* | --hos=* | --ho=*)
199 -includedir | --includedir | --includedi | --included | --include \
200 | --includ | --inclu | --incl | --inc)
201 ac_prev=includedir ;;
202 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
203 | --includ=* | --inclu=* | --incl=* | --inc=*)
204 includedir="$ac_optarg" ;;
206 -infodir | --infodir | --infodi | --infod | --info | --inf)
208 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
209 infodir="$ac_optarg" ;;
211 -libdir | --libdir | --libdi | --libd)
213 -libdir=* | --libdir=* | --libdi=* | --libd=*)
214 libdir="$ac_optarg" ;;
216 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
217 | --libexe | --libex | --libe)
218 ac_prev=libexecdir ;;
219 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
220 | --libexe=* | --libex=* | --libe=*)
221 libexecdir="$ac_optarg" ;;
223 -localstatedir | --localstatedir | --localstatedi | --localstated \
224 | --localstate | --localstat | --localsta | --localst \
225 | --locals | --local | --loca | --loc | --lo)
226 ac_prev=localstatedir ;;
227 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
228 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
229 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
230 localstatedir="$ac_optarg" ;;
232 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
234 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
235 mandir="$ac_optarg" ;;
238 # Obsolete; use --without-fp.
241 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
246 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
250 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
251 | --oldin | --oldi | --old | --ol | --o)
252 ac_prev=oldincludedir ;;
253 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
254 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
255 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
256 oldincludedir="$ac_optarg" ;;
258 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
260 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
261 prefix="$ac_optarg" ;;
263 -program-prefix | --program-prefix | --program-prefi | --program-pref \
264 | --program-pre | --program-pr | --program-p)
265 ac_prev=program_prefix ;;
266 -program-prefix=* | --program-prefix=* | --program-prefi=* \
267 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
268 program_prefix="$ac_optarg" ;;
270 -program-suffix | --program-suffix | --program-suffi | --program-suff \
271 | --program-suf | --program-su | --program-s)
272 ac_prev=program_suffix ;;
273 -program-suffix=* | --program-suffix=* | --program-suffi=* \
274 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
275 program_suffix="$ac_optarg" ;;
277 -program-transform-name | --program-transform-name \
278 | --program-transform-nam | --program-transform-na \
279 | --program-transform-n | --program-transform- \
280 | --program-transform | --program-transfor \
281 | --program-transfo | --program-transf \
282 | --program-trans | --program-tran \
283 | --progr-tra | --program-tr | --program-t)
284 ac_prev=program_transform_name ;;
285 -program-transform-name=* | --program-transform-name=* \
286 | --program-transform-nam=* | --program-transform-na=* \
287 | --program-transform-n=* | --program-transform-=* \
288 | --program-transform=* | --program-transfor=* \
289 | --program-transfo=* | --program-transf=* \
290 | --program-trans=* | --program-tran=* \
291 | --progr-tra=* | --program-tr=* | --program-t=*)
292 program_transform_name="$ac_optarg" ;;
294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
295 | -silent | --silent | --silen | --sile | --sil)
298 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
300 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302 sbindir="$ac_optarg" ;;
304 -sharedstatedir | --sharedstatedir | --sharedstatedi \
305 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
306 | --sharedst | --shareds | --shared | --share | --shar \
308 ac_prev=sharedstatedir ;;
309 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
310 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
311 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313 sharedstatedir="$ac_optarg" ;;
315 -site | --site | --sit)
317 -site=* | --site=* | --sit=*)
320 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
322 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
323 srcdir="$ac_optarg" ;;
325 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
326 | --syscon | --sysco | --sysc | --sys | --sy)
327 ac_prev=sysconfdir ;;
328 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
329 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
330 sysconfdir="$ac_optarg" ;;
332 -target | --target | --targe | --targ | --tar | --ta | --t)
334 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
335 target="$ac_optarg" ;;
337 -v | -verbose | --verbose | --verbos | --verbo | --verb)
340 -version | --version | --versio | --versi | --vers)
341 echo "configure generated by autoconf version 2.12"
345 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
346 # Reject names that are not valid shell variable names.
347 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
348 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
350 ac_package=`echo $ac_package| sed 's/-/_/g'`
355 eval "with_${ac_package}='$ac_optarg'" ;;
357 -without-* | --without-*)
358 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 ac_package=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}=no" ;;
367 # Obsolete; use --with-x.
370 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
371 | --x-incl | --x-inc | --x-in | --x-i)
372 ac_prev=x_includes ;;
373 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
374 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
375 x_includes="$ac_optarg" ;;
377 -x-libraries | --x-libraries | --x-librarie | --x-librari \
378 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
379 ac_prev=x_libraries ;;
380 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
381 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
382 x_libraries="$ac_optarg" ;;
384 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
389 echo "configure: warning: $ac_option: invalid host type" 1>&2
391 if test "x$nonopt" != xNONE; then
392 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400 if test -n "$ac_prev"; then
401 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
406 # File descriptor usage:
409 # 2 errors and warnings
410 # 3 some systems may open it to /dev/tty
411 # 4 used on the Kubota Titan
412 # 6 checking for... messages and results
413 # 5 compiler messages saved in config.log
414 if test "$silent" = yes; then
422 This file contains any messages produced by compilers while
423 running configure, to aid debugging if configure makes a mistake.
426 # Strip out --no-create and --no-recursion so they do not pile up.
427 # Also quote any args containing shell metacharacters.
432 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
433 | --no-cr | --no-c) ;;
434 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
435 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
437 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
438 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
443 # Only set these to C if already set. These must not be set unconditionally
444 # because not all systems understand e.g. LANG=C (notably SCO).
445 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
446 # Non-C LC_CTYPE values break the ctype check.
447 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
448 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
449 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
450 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
453 rm -rf conftest* confdefs.h
454 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
457 # A filename unique to this package, relative to the directory that
458 # configure is in, which we can look for to find out if srcdir is correct.
459 ac_unique_file=make/stepmake.lsm.in
461 # Find the source files, if location was not specified.
462 if test -z "$srcdir"; then
463 ac_srcdir_defaulted=yes
464 # Try the directory containing this script, then its parent.
466 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
467 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
469 if test ! -r $srcdir/$ac_unique_file; then
473 ac_srcdir_defaulted=no
475 if test ! -r $srcdir/$ac_unique_file; then
476 if test "$ac_srcdir_defaulted" = yes; then
477 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
479 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484 # Prefer explicitly selected file to automatically selected ones.
485 if test -z "$CONFIG_SITE"; then
486 if test "x$prefix" != xNONE; then
487 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
489 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492 for ac_site_file in $CONFIG_SITE; do
493 if test -r "$ac_site_file"; then
494 echo "loading site script $ac_site_file"
499 if test -r "$cache_file"; then
500 echo "loading cache $cache_file"
503 echo "creating cache $cache_file"
508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509 ac_cpp='$CPP $CPPFLAGS'
510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
511 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
512 cross_compiling=$ac_cv_prog_cc_cross
514 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
515 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
523 ac_n= ac_c='\c' ac_t=
529 # Bootstrap StepMake configure
533 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
534 if test x$MY_PATCH_LEVEL != x; then
535 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
538 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
539 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
540 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
542 if test "x$PACKAGE" = "xSTEPMAKE"; then
543 echo Stepmake package!
544 (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
545 (cd stepmake; rm -f bin; ln -s ../bin .)
547 for ac_dir in bin $srcdir/bin; do
548 if test -f $ac_dir/install-sh; then
550 ac_install_sh="$ac_aux_dir/install-sh -c"
552 elif test -f $ac_dir/install.sh; then
554 ac_install_sh="$ac_aux_dir/install.sh -c"
558 if test -z "$ac_aux_dir"; then
559 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
561 ac_config_guess=$ac_aux_dir/config.guess
562 ac_config_sub=$ac_aux_dir/config.sub
563 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
566 echo Package: $PACKAGE
568 for ac_dir in stepmake/bin $srcdir/stepmake/bin; do
569 if test -f $ac_dir/install-sh; then
571 ac_install_sh="$ac_aux_dir/install-sh -c"
573 elif test -f $ac_dir/install.sh; then
575 ac_install_sh="$ac_aux_dir/install.sh -c"
579 if test -z "$ac_aux_dir"; then
580 { echo "configure: error: can not find install-sh or install.sh in stepmake/bin $srcdir/stepmake/bin" 1>&2; exit 1; }
582 ac_config_guess=$ac_aux_dir/config.guess
583 ac_config_sub=$ac_aux_dir/config.sub
584 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
591 cat >> confdefs.h <<EOF
592 #define PACKAGE "${PACKAGE_NAME}"
595 cat >> confdefs.h <<EOF
596 #define TOPLEVEL_VERSION "${FULL_VERSION}"
600 package_depth=`dirname $cache_file`
603 AUTOGENERATE="This file was automatically generated by configure"
605 absolute_builddir="`pwd`"
608 # No versioning on directory names of sub-packages
613 # Check whether --enable-config or --disable-config was given.
614 if test "${enable_config+set}" = set; then
615 enableval="$enable_config"
616 CONFIGSUFFIX=$enableval
620 if test "$CONFIGSUFFIX" != "" ; then
621 CONFIGFILE=config-$CONFIGSUFFIX
628 # Make sure we can run config.sub.
629 if $ac_config_sub sun4 >/dev/null 2>&1; then :
630 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
633 echo $ac_n "checking host system type""... $ac_c" 1>&6
634 echo "configure:635: checking host system type" >&5
637 case "$host_alias" in
641 if host_alias=`$ac_config_guess`; then :
642 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
644 *) host_alias=$nonopt ;;
648 host=`$ac_config_sub $host_alias`
649 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
650 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
651 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
652 echo "$ac_t""$host" 1>&6
656 # Extract the first word of "$ac_prog", so it can be a program name with args.
657 set dummy $ac_prog; ac_word=$2
658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
659 echo "configure:660: checking for $ac_word" >&5
660 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
661 echo $ac_n "(cached) $ac_c" 1>&6
663 if test -n "$MAKE"; then
664 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
667 for ac_dir in $PATH; do
668 test -z "$ac_dir" && ac_dir=.
669 if test -f $ac_dir/$ac_word; then
670 ac_cv_prog_MAKE="$ac_prog"
677 MAKE="$ac_cv_prog_MAKE"
678 if test -n "$MAKE"; then
679 echo "$ac_t""$MAKE" 1>&6
681 echo "$ac_t""no" 1>&6
684 test -n "$MAKE" && break
686 test -n "$MAKE" || MAKE="error"
690 # Extract the first word of "$ac_prog", so it can be a program name with args.
691 set dummy $ac_prog; ac_word=$2
692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
693 echo "configure:694: checking for $ac_word" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
697 if test -n "$FIND"; then
698 ac_cv_prog_FIND="$FIND" # Let the user override the test.
700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
701 for ac_dir in $PATH; do
702 test -z "$ac_dir" && ac_dir=.
703 if test -f $ac_dir/$ac_word; then
704 ac_cv_prog_FIND="$ac_prog"
711 FIND="$ac_cv_prog_FIND"
712 if test -n "$FIND"; then
713 echo "$ac_t""$FIND" 1>&6
715 echo "$ac_t""no" 1>&6
718 test -n "$FIND" && break
720 test -n "$FIND" || FIND="error"
727 # Extract the first word of "$ac_prog", so it can be a program name with args.
728 set dummy $ac_prog; ac_word=$2
729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730 echo "configure:731: checking for $ac_word" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 if test -n "$TAR"; then
735 ac_cv_prog_TAR="$TAR" # Let the user override the test.
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
738 for ac_dir in $PATH; do
739 test -z "$ac_dir" && ac_dir=.
740 if test -f $ac_dir/$ac_word; then
741 ac_cv_prog_TAR="$ac_prog"
748 TAR="$ac_cv_prog_TAR"
749 if test -n "$TAR"; then
750 echo "$ac_t""$TAR" 1>&6
752 echo "$ac_t""no" 1>&6
755 test -n "$TAR" && break
757 test -n "$TAR" || TAR="error"
761 # Extract the first word of "$ac_prog", so it can be a program name with args.
762 set dummy $ac_prog; ac_word=$2
763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
764 echo "configure:765: checking for $ac_word" >&5
765 if eval "test \"`echo '$''{'ac_cv_prog_BASH'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
768 if test -n "$BASH"; then
769 ac_cv_prog_BASH="$BASH" # Let the user override the test.
771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
772 for ac_dir in $PATH; do
773 test -z "$ac_dir" && ac_dir=.
774 if test -f $ac_dir/$ac_word; then
775 ac_cv_prog_BASH="$ac_prog"
782 BASH="$ac_cv_prog_BASH"
783 if test -n "$BASH"; then
784 echo "$ac_t""$BASH" 1>&6
786 echo "$ac_t""no" 1>&6
789 test -n "$BASH" && break
791 test -n "$BASH" || BASH="/bin/sh"
794 # Extract the first word of "python", so it can be a program name with args.
795 set dummy python; ac_word=$2
796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
797 echo "configure:798: checking for $ac_word" >&5
798 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
803 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
807 for ac_dir in $PATH; do
808 test -z "$ac_dir" && ac_dir=.
809 if test -f $ac_dir/$ac_word; then
810 ac_cv_path_PYTHON="$ac_dir/$ac_word"
815 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
819 PYTHON="$ac_cv_path_PYTHON"
820 if test -n "$PYTHON"; then
821 echo "$ac_t""$PYTHON" 1>&6
823 echo "$ac_t""no" 1>&6
830 result="`echo \"$MAKE\" | grep echo`"
831 if test "x$MAKE" = "xerror" -o "x$result" != "x"; then
833 echo "configure: warning: can\'t find GNU make. You should install GNU make" 1>&2
838 if test $MAKE != "error" ; then
839 $MAKE -v| grep GNU > /dev/null
843 echo "configure: warning: Please install *GNU* make" 1>&2
850 result="`echo \"$PYTHON\" | grep echo`"
851 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
853 echo "configure: warning: can\'t find python. You should install Python" 1>&2
859 if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
860 LN=cp # hard link does not work under cygnus-nt (yet?)
863 INSTALL="\$(stepdir)/../bin/install-dot-exe.sh -c"
867 INSTALL="\$(stepdir)/../bin/install-sh -c"
875 if test "$datadir" = "\${prefix}/share"; then
876 datadir='${prefix}/share/'$package
878 DIR_DATADIR=${datadir}
880 if test "$prefix" = "NONE"; then
881 presome=${ac_default_prefix}
883 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
886 cat >> confdefs.h <<EOF
887 #define DIR_DATADIR "${DIR_DATADIR}"
893 # For all packages except the StepMake package itself
894 # AC_CONFIG_SUBDIRS(stepmake)
896 # Uncomment the configuration options your package needs.
897 # AC_STEPMAKE_COMPILE
898 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
901 # AC_STEPMAKE_CXXTEMPLATE
902 # AC_STEPMAKE_LEXYACC
904 # AC_STEPMAKE_LIBTOOL
910 # Check whether --with-localedir or --without-localedir was given.
911 if test "${with_localedir+set}" = set; then
912 withval="$with_localedir"
913 localedir=$with_localedir
915 localedir='${prefix}/share/locale'
919 # Check whether --with-lang or --without-lang was given.
920 if test "${with_lang+set}" = set; then
928 echo $ac_n "checking language""... $ac_c" 1>&6
929 echo "configure:930: checking language" >&5
931 En* | en* | Am* | am* | US* | us*)
933 NL | nl | Du* | du* | Ned* | ned*)
940 echo "$ac_t""$lang" 1>&6
942 if test "$lang" = "unknown" ; then
944 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
950 # AC_STEPMAKE_GETTEXT
955 if test "x$YODL" = "x"; then
958 # Extract the first word of "$ac_prog", so it can be a program name with args.
959 set dummy $ac_prog; ac_word=$2
960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961 echo "configure:962: checking for $ac_word" >&5
962 if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 if test -n "$YODL"; then
966 ac_cv_prog_YODL="$YODL" # Let the user override the test.
968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
969 for ac_dir in $PATH; do
970 test -z "$ac_dir" && ac_dir=.
971 if test -f $ac_dir/$ac_word; then
972 ac_cv_prog_YODL="$ac_prog"
979 YODL="$ac_cv_prog_YODL"
980 if test -n "$YODL"; then
981 echo "$ac_t""$YODL" 1>&6
983 echo "$ac_t""no" 1>&6
986 test -n "$YODL" && break
988 test -n "$YODL" || YODL="-echo no yodl"
990 for ac_prog in yodl2html
992 # Extract the first word of "$ac_prog", so it can be a program name with args.
993 set dummy $ac_prog; ac_word=$2
994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
995 echo "configure:996: checking for $ac_word" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 if test -n "$YODL2HTML"; then
1000 ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
1002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1003 for ac_dir in $PATH; do
1004 test -z "$ac_dir" && ac_dir=.
1005 if test -f $ac_dir/$ac_word; then
1006 ac_cv_prog_YODL2HTML="$ac_prog"
1013 YODL2HTML="$ac_cv_prog_YODL2HTML"
1014 if test -n "$YODL2HTML"; then
1015 echo "$ac_t""$YODL2HTML" 1>&6
1017 echo "$ac_t""no" 1>&6
1020 test -n "$YODL2HTML" && break
1022 test -n "$YODL2HTML" || YODL2HTML="-echo no yodl"
1024 for ac_prog in yodl2latex
1026 # Extract the first word of "$ac_prog", so it can be a program name with args.
1027 set dummy $ac_prog; ac_word=$2
1028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1029 echo "configure:1030: checking for $ac_word" >&5
1030 if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
1031 echo $ac_n "(cached) $ac_c" 1>&6
1033 if test -n "$YODL2LATEX"; then
1034 ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test.
1036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1037 for ac_dir in $PATH; do
1038 test -z "$ac_dir" && ac_dir=.
1039 if test -f $ac_dir/$ac_word; then
1040 ac_cv_prog_YODL2LATEX="$ac_prog"
1047 YODL2LATEX="$ac_cv_prog_YODL2LATEX"
1048 if test -n "$YODL2LATEX"; then
1049 echo "$ac_t""$YODL2LATEX" 1>&6
1051 echo "$ac_t""no" 1>&6
1054 test -n "$YODL2LATEX" && break
1057 for ac_prog in yodl2man
1059 # Extract the first word of "$ac_prog", so it can be a program name with args.
1060 set dummy $ac_prog; ac_word=$2
1061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1062 echo "configure:1063: checking for $ac_word" >&5
1063 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1066 if test -n "$YODL2MAN"; then
1067 ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
1069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1070 for ac_dir in $PATH; do
1071 test -z "$ac_dir" && ac_dir=.
1072 if test -f $ac_dir/$ac_word; then
1073 ac_cv_prog_YODL2MAN="$ac_prog"
1080 YODL2MAN="$ac_cv_prog_YODL2MAN"
1081 if test -n "$YODL2MAN"; then
1082 echo "$ac_t""$YODL2MAN" 1>&6
1084 echo "$ac_t""no" 1>&6
1087 test -n "$YODL2MAN" && break
1089 test -n "$YODL2MAN" || YODL2MAN="-echo no yodl"
1091 for ac_prog in yodl2texinfo
1093 # Extract the first word of "$ac_prog", so it can be a program name with args.
1094 set dummy $ac_prog; ac_word=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 if test -n "$YODL2TEXINFO"; then
1101 ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test.
1103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1104 for ac_dir in $PATH; do
1105 test -z "$ac_dir" && ac_dir=.
1106 if test -f $ac_dir/$ac_word; then
1107 ac_cv_prog_YODL2TEXINFO="$ac_prog"
1114 YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO"
1115 if test -n "$YODL2TEXINFO"; then
1116 echo "$ac_t""$YODL2TEXINFO" 1>&6
1118 echo "$ac_t""no" 1>&6
1121 test -n "$YODL2TEXINFO" && break
1123 test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl"
1125 for ac_prog in yodl2txt
1127 # Extract the first word of "$ac_prog", so it can be a program name with args.
1128 set dummy $ac_prog; ac_word=$2
1129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1130 echo "configure:1131: checking for $ac_word" >&5
1131 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1134 if test -n "$YODL2TXT"; then
1135 ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test.
1137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1138 for ac_dir in $PATH; do
1139 test -z "$ac_dir" && ac_dir=.
1140 if test -f $ac_dir/$ac_word; then
1141 ac_cv_prog_YODL2TXT="$ac_prog"
1148 YODL2TXT="$ac_cv_prog_YODL2TXT"
1149 if test -n "$YODL2TXT"; then
1150 echo "$ac_t""$YODL2TXT" 1>&6
1152 echo "$ac_t""no" 1>&6
1155 test -n "$YODL2TXT" && break
1157 test -n "$YODL2TXT" || YODL2TXT="-echo no yodl"
1166 export YODL YODL2HTML YODL2LATEX YODL2MAN YODL2TEXINFO YODL2TXT
1168 if test "x$YODL" = "-echo no yodl"; then
1170 echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2
1176 # AM_PATH_GTK(1.0.0,,AC_MSG_ERROR([please install proper version of gtk]))
1177 # AM_PATH_GTK__(0.9.4,,AC_MSG_ERROR([please install proper version of gtk--]))
1179 for ac_prog in makeinfo
1181 # Extract the first word of "$ac_prog", so it can be a program name with args.
1182 set dummy $ac_prog; ac_word=$2
1183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1184 echo "configure:1185: checking for $ac_word" >&5
1185 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 if test -n "$MAKEINFO"; then
1189 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1192 for ac_dir in $PATH; do
1193 test -z "$ac_dir" && ac_dir=.
1194 if test -f $ac_dir/$ac_word; then
1195 ac_cv_prog_MAKEINFO="$ac_prog"
1202 MAKEINFO="$ac_cv_prog_MAKEINFO"
1203 if test -n "$MAKEINFO"; then
1204 echo "$ac_t""$MAKEINFO" 1>&6
1206 echo "$ac_t""no" 1>&6
1209 test -n "$MAKEINFO" && break
1211 test -n "$MAKEINFO" || MAKEINFO="error"
1213 # AC_CHECK_SEARCH_RESULT($YODL2TEXINFO, yodl,
1214 # You should install Yodl 1.30.pre6 or better)
1218 cat > confcache <<\EOF
1219 # This file is a shell script that caches the results of configure
1220 # tests run on this system so they can be shared between configure
1221 # scripts and configure runs. It is not useful on other systems.
1222 # If it contains results you don't want to keep, you may remove or edit it.
1224 # By default, configure uses ./config.cache as the cache file,
1225 # creating it if it does not exist already. You can give configure
1226 # the --cache-file=FILE option to use a different cache file; that is
1227 # what configure does when it calls configure scripts in
1228 # subdirectories, so they share the cache.
1229 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1230 # config.status only pays attention to the cache file if you give it the
1231 # --recheck option to rerun configure.
1234 # The following way of writing the cache mishandles newlines in values,
1235 # but we know of no workaround that is simple, portable, and efficient.
1236 # So, don't put newlines in cache variables' values.
1237 # Ultrix sh set writes to stderr and can't be redirected directly,
1238 # and sets the high bit in the cache file unless we assign to the vars.
1240 case `(ac_space=' '; set) 2>&1` in
1242 # `set' does not quote correctly, so add quotes (double-quote substitution
1243 # turns \\\\ into \\, and sed turns \\ into \).
1245 -e "s/'/'\\\\''/g" \
1246 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1249 # `set' quotes correctly as required by POSIX, so do not add quotes.
1250 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1253 if cmp -s $cache_file confcache; then
1256 if test -w $cache_file; then
1257 echo "updating cache $cache_file"
1258 cat confcache > $cache_file
1260 echo "not updating unwritable cache $cache_file"
1265 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1267 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1268 # Let make expand exec_prefix.
1269 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1271 # Any assignment to VPATH causes Sun make to only execute
1272 # the first set of double-colon rules, so remove it if not needed.
1273 # If there is a colon in the path, we need to keep it.
1274 if test "x$srcdir" = x.; then
1275 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1278 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1280 DEFS=-DHAVE_CONFIG_H
1282 # Without the "./", some shells look in PATH for config.status.
1283 : ${CONFIG_STATUS=./config.status}
1285 echo creating $CONFIG_STATUS
1286 rm -f $CONFIG_STATUS
1287 cat > $CONFIG_STATUS <<EOF
1289 # Generated automatically by configure.
1290 # Run this file to recreate the current configuration.
1291 # This directory was configured as follows,
1292 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1294 # $0 $ac_configure_args
1296 # Compiler output produced by configure, useful for debugging
1297 # configure, is in ./config.log if it exists.
1299 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1302 case "\$ac_option" in
1303 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1304 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1305 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1306 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1307 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1309 -help | --help | --hel | --he | --h)
1310 echo "\$ac_cs_usage"; exit 0 ;;
1311 *) echo "\$ac_cs_usage"; exit 1 ;;
1315 ac_given_srcdir=$srcdir
1317 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.hh:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1319 cat >> $CONFIG_STATUS <<EOF
1321 # Protect against being on the right side of a sed subst in config.status.
1322 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1323 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1326 s%@CFLAGS@%$CFLAGS%g
1327 s%@CPPFLAGS@%$CPPFLAGS%g
1328 s%@CXXFLAGS@%$CXXFLAGS%g
1330 s%@LDFLAGS@%$LDFLAGS%g
1332 s%@exec_prefix@%$exec_prefix%g
1333 s%@prefix@%$prefix%g
1334 s%@program_transform_name@%$program_transform_name%g
1335 s%@bindir@%$bindir%g
1336 s%@sbindir@%$sbindir%g
1337 s%@libexecdir@%$libexecdir%g
1338 s%@datadir@%$datadir%g
1339 s%@sysconfdir@%$sysconfdir%g
1340 s%@sharedstatedir@%$sharedstatedir%g
1341 s%@localstatedir@%$localstatedir%g
1342 s%@libdir@%$libdir%g
1343 s%@includedir@%$includedir%g
1344 s%@oldincludedir@%$oldincludedir%g
1345 s%@infodir@%$infodir%g
1346 s%@mandir@%$mandir%g
1347 s%@package@%$package%g
1348 s%@PACKAGE@%$PACKAGE%g
1349 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
1350 s%@package_depth@%$package_depth%g
1351 s%@AUTOGENERATE@%$AUTOGENERATE%g
1352 s%@absolute_builddir@%$absolute_builddir%g
1353 s%@stepmake@%$stepmake%g
1354 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
1356 s%@host_alias@%$host_alias%g
1357 s%@host_cpu@%$host_cpu%g
1358 s%@host_vendor@%$host_vendor%g
1359 s%@host_os@%$host_os%g
1364 s%@PYTHON@%$PYTHON%g
1365 s%@DOTEXE@%$DOTEXE%g
1368 s%@INSTALL@%$INSTALL%g
1369 s%@DIR_DATADIR@%$DIR_DATADIR%g
1371 s%@YODL2HTML@%$YODL2HTML%g
1372 s%@YODL2LATEX@%$YODL2LATEX%g
1373 s%@YODL2MAN@%$YODL2MAN%g
1374 s%@YODL2TEXINFO@%$YODL2TEXINFO%g
1375 s%@YODL2TXT@%$YODL2TXT%g
1376 s%@MAKEINFO@%$MAKEINFO%g
1381 cat >> $CONFIG_STATUS <<\EOF
1383 # Split the substitutions into bite-sized pieces for seds with
1384 # small command number limits, like on Digital OSF/1 and HP-UX.
1385 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1386 ac_file=1 # Number of current file.
1387 ac_beg=1 # First line for current file.
1388 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1391 while $ac_more_lines; do
1392 if test $ac_beg -gt 1; then
1393 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1395 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1397 if test ! -s conftest.s$ac_file; then
1399 rm -f conftest.s$ac_file
1401 if test -z "$ac_sed_cmds"; then
1402 ac_sed_cmds="sed -f conftest.s$ac_file"
1404 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1406 ac_file=`expr $ac_file + 1`
1408 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1411 if test -z "$ac_sed_cmds"; then
1416 cat >> $CONFIG_STATUS <<EOF
1418 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
1420 cat >> $CONFIG_STATUS <<\EOF
1421 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1422 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1424 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1425 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1426 *) ac_file_in="${ac_file}.in" ;;
1429 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1431 # Remove last slash and all that follows it. Not all systems have dirname.
1432 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1433 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1434 # The file is in a subdirectory.
1435 test ! -d "$ac_dir" && mkdir "$ac_dir"
1436 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1437 # A "../" for each directory in $ac_dir_suffix.
1438 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1440 ac_dir_suffix= ac_dots=
1443 case "$ac_given_srcdir" in
1445 if test -z "$ac_dots"; then top_srcdir=.
1446 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1447 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1449 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1450 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1454 echo creating "$ac_file"
1456 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1458 *Makefile*) ac_comsub="1i\\
1459 # $configure_input" ;;
1463 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1465 s%@configure_input@%$configure_input%g
1466 s%@srcdir@%$srcdir%g
1467 s%@top_srcdir@%$top_srcdir%g
1468 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1472 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1473 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1475 # ac_d sets the value in "#define NAME VALUE" lines.
1476 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1477 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1480 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1481 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1482 ac_uB='\([ ]\)%\1#\2define\3'
1485 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1486 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1487 ac_eB='$%\1#\2define\3'
1491 if test "${CONFIG_HEADERS+set}" != set; then
1493 cat >> $CONFIG_STATUS <<EOF
1494 CONFIG_HEADERS="$CONFIGFILE.hh:config.hh.in"
1496 cat >> $CONFIG_STATUS <<\EOF
1498 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1499 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1501 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1502 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1503 *) ac_file_in="${ac_file}.in" ;;
1506 echo creating $ac_file
1508 rm -f conftest.frag conftest.in conftest.out
1509 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1510 cat $ac_file_inputs > conftest.in
1514 # Transform confdefs.h into a sed script conftest.vals that substitutes
1515 # the proper values into config.h.in to produce config.h. And first:
1516 # Protect against being on the right side of a sed subst in config.status.
1517 # Protect against being in an unquoted here document in config.status.
1519 cat > conftest.hdr <<\EOF
1522 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1526 sed -n -f conftest.hdr confdefs.h > conftest.vals
1529 # This sed command replaces #undef with comments. This is necessary, for
1530 # example, in the case of _POSIX_SOURCE, which is predefined and required
1531 # on some systems where configure will not decide to define it.
1532 cat >> conftest.vals <<\EOF
1533 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1536 # Break up conftest.vals because some shells have a limit on
1537 # the size of here documents, and old seds have small limits too.
1542 ac_lines=`grep -c . conftest.vals`
1543 # grep -c gives empty output for an empty file on some AIX systems.
1544 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1545 # Write a limited-size here document to conftest.frag.
1546 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1547 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1549 sed -f conftest.frag conftest.in > conftest.out
1551 mv conftest.out conftest.in
1553 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1555 mv conftest.tail conftest.vals
1559 cat >> $CONFIG_STATUS <<\EOF
1560 rm -f conftest.frag conftest.h
1561 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1562 cat conftest.in >> conftest.h
1564 if cmp -s $ac_file conftest.h 2>/dev/null; then
1565 echo "$ac_file is unchanged"
1568 # Remove last slash and all that follows it. Not all systems have dirname.
1569 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1570 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1571 # The file is in a subdirectory.
1572 test ! -d "$ac_dir" && mkdir "$ac_dir"
1575 mv conftest.h $ac_file
1580 cat >> $CONFIG_STATUS <<EOF
1583 cat >> $CONFIG_STATUS <<\EOF
1587 chmod +x $CONFIG_STATUS
1588 rm -fr confdefs* $ac_clean_files
1589 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1593 cp make/toplevel.make.in ./Makefile