2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # 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.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="cpmfs.c"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name=s,x,x,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
267 -help | --help | --hel | --he | -h)
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers | -V)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --build=BUILD configure for building on BUILD [guessed]
659 --host=HOST build programs to run on HOST [BUILD]
663 if test -n "$ac_init_help"; then
668 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
669 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
670 --with-defformat Specify default format (ibm-3740)
671 --with-libdsk Specify path to libdsk library
672 --with-dmalloc Specify path to dmalloc library
674 Some influential environment variables:
675 CC C compiler command
676 CFLAGS C compiler flags
677 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
678 nonstandard directory <lib dir>
679 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
680 headers in a nonstandard directory <include dir>
683 Use these variables to override the choices made by `configure' or to help
684 it to find libraries and programs with nonstandard names/locations.
689 if test "$ac_init_help" = "recursive"; then
690 # If there are subdirs, report their specific --help.
692 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
694 # A "../" for each directory in /$ac_subdir.
695 ac_dots=`echo $ac_subdir |
696 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
699 .) # No --srcdir option. We are building in place.
700 ac_sub_srcdir=$srcdir ;;
701 [\\/]* | ?:[\\/]* ) # Absolute path.
702 ac_sub_srcdir=$srcdir/$ac_subdir ;;
704 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
707 # Check for guested configure; otherwise get Cygnus style configure.
708 if test -f $ac_sub_srcdir/configure.gnu; then
710 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
711 elif test -f $ac_sub_srcdir/configure; then
713 $SHELL $ac_sub_srcdir/configure --help=recursive
714 elif test -f $ac_sub_srcdir/configure.ac ||
715 test -f $ac_sub_srcdir/configure.in; then
719 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
725 test -n "$ac_init_help" && exit 0
726 if $ac_init_version; then
729 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
730 Free Software Foundation, Inc.
731 This configure script is free software; the Free Software Foundation
732 gives unlimited permission to copy, distribute and modify it.
738 This file contains any messages produced by compilers while
739 running configure, to aid debugging if configure makes a mistake.
741 It was created by $as_me, which was
742 generated by GNU Autoconf 2.52. Invocation command line was
753 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
754 uname -m = `(uname -m) 2>/dev/null || echo unknown`
755 uname -r = `(uname -r) 2>/dev/null || echo unknown`
756 uname -s = `(uname -s) 2>/dev/null || echo unknown`
757 uname -v = `(uname -v) 2>/dev/null || echo unknown`
759 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
760 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
762 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
763 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
764 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
765 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
766 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
767 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
768 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
782 # Keep a trace of the command line.
783 # Strip out --no-create and --no-recursion so they do not pile up.
784 # Also quote any args containing shell meta-characters.
790 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
791 | --no-cr | --no-c) ;;
792 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
793 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
794 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
795 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
796 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
798 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
801 # Get rid of the leading space.
804 # When interrupted or exit'd, cleanup temporary files, and complete
805 # config.log. We remove comments because anyway the quotes in there
806 # would cause problems or look ugly.
808 # Save into config.log some information that might help in debugging.
810 echo "## ----------------- ##" >&5
811 echo "## Cache variables. ##" >&5
812 echo "## ----------------- ##" >&5
814 # The following way of writing the cache mishandles newlines in values,
817 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
820 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
825 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
829 sed "/^$/d" confdefs.h >conftest.log
830 if test -s conftest.log; then
832 echo "## ------------ ##" >&5
833 echo "## confdefs.h. ##" >&5
834 echo "## ------------ ##" >&5
839 test "$ac_signal" != 0 &&
840 echo "$as_me: caught signal $ac_signal" >&5
841 echo "$as_me: exit $exit_status" >&5
842 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
845 for ac_signal in 1 2 13 15; do
846 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
850 # confdefs.h avoids OS command line length limits that DEFS can exceed.
851 rm -rf conftest* confdefs.h
852 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
855 # Let the site file select an alternate cache file if it wants to.
856 # Prefer explicitly selected file to automatically selected ones.
857 if test -z "$CONFIG_SITE"; then
858 if test "x$prefix" != xNONE; then
859 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
861 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
864 for ac_site_file in $CONFIG_SITE; do
865 if test -r "$ac_site_file"; then
866 { echo "$as_me:866: loading site script $ac_site_file" >&5
867 echo "$as_me: loading site script $ac_site_file" >&6;}
868 cat "$ac_site_file" >&5
873 if test -r "$cache_file"; then
874 # Some versions of bash will fail to source /dev/null (special
875 # files actually), so we avoid doing that.
876 if test -f "$cache_file"; then
877 { echo "$as_me:877: loading cache $cache_file" >&5
878 echo "$as_me: loading cache $cache_file" >&6;}
880 [\\/]* | ?:[\\/]* ) . $cache_file;;
885 { echo "$as_me:885: creating cache $cache_file" >&5
886 echo "$as_me: creating cache $cache_file" >&6;}
890 # Check that the precious variables saved in the cache have kept the same
892 ac_cache_corrupted=false
893 for ac_var in `(set) 2>&1 |
894 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
895 eval ac_old_set=\$ac_cv_env_${ac_var}_set
896 eval ac_new_set=\$ac_env_${ac_var}_set
897 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
898 eval ac_new_val="\$ac_env_${ac_var}_value"
899 case $ac_old_set,$ac_new_set in
901 { echo "$as_me:901: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
902 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
903 ac_cache_corrupted=: ;;
905 { echo "$as_me:905: error: \`$ac_var' was not set in the previous run" >&5
906 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
907 ac_cache_corrupted=: ;;
910 if test "x$ac_old_val" != "x$ac_new_val"; then
911 { echo "$as_me:911: error: \`$ac_var' has changed since the previous run:" >&5
912 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
913 { echo "$as_me:913: former value: $ac_old_val" >&5
914 echo "$as_me: former value: $ac_old_val" >&2;}
915 { echo "$as_me:915: current value: $ac_new_val" >&5
916 echo "$as_me: current value: $ac_new_val" >&2;}
920 # Pass precious variables to config.status. It doesn't matter if
921 # we pass some twice (in addition to the command line arguments).
922 if test "$ac_new_set" = set; then
924 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
925 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
926 ac_configure_args="$ac_configure_args '$ac_arg'"
928 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
933 if $ac_cache_corrupted; then
934 { echo "$as_me:934: error: changes in the environment can compromise the build" >&5
935 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
936 { { echo "$as_me:936: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
937 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
938 { (exit 1); exit 1; }; }
942 ac_cpp='$CPP $CPPFLAGS'
943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
947 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
948 *c*,-n*) ECHO_N= ECHO_C='
950 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
951 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
953 echo "#! $SHELL" >conftest.sh
954 echo "exit 0" >>conftest.sh
956 if { (echo "$as_me:956: PATH=\".;.\"; conftest.sh") >&5
957 (PATH=".;."; conftest.sh) 2>&5
959 echo "$as_me:959: \$? = $ac_status" >&5
960 (exit $ac_status); }; then
961 ac_path_separator=';'
965 PATH_SEPARATOR="$ac_path_separator"
968 ac_config_headers="$ac_config_headers config.h"
971 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
972 if test -f $ac_dir/install-sh; then
974 ac_install_sh="$ac_aux_dir/install-sh -c"
976 elif test -f $ac_dir/install.sh; then
978 ac_install_sh="$ac_aux_dir/install.sh -c"
980 elif test -f $ac_dir/shtool; then
982 ac_install_sh="$ac_aux_dir/shtool install -c"
986 if test -z "$ac_aux_dir"; then
987 { { echo "$as_me:987: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
988 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
989 { (exit 1); exit 1; }; }
991 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
992 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
993 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
995 # Make sure we can run config.sub.
996 $ac_config_sub sun4 >/dev/null 2>&1 ||
997 { { echo "$as_me:997: error: cannot run $ac_config_sub" >&5
998 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
999 { (exit 1); exit 1; }; }
1001 echo "$as_me:1001: checking build system type" >&5
1002 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1003 if test "${ac_cv_build+set}" = set; then
1004 echo $ECHO_N "(cached) $ECHO_C" >&6
1006 ac_cv_build_alias=$build_alias
1007 test -z "$ac_cv_build_alias" &&
1008 ac_cv_build_alias=`$ac_config_guess`
1009 test -z "$ac_cv_build_alias" &&
1010 { { echo "$as_me:1010: error: cannot guess build type; you must specify one" >&5
1011 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1012 { (exit 1); exit 1; }; }
1013 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1014 { { echo "$as_me:1014: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1015 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1016 { (exit 1); exit 1; }; }
1019 echo "$as_me:1019: result: $ac_cv_build" >&5
1020 echo "${ECHO_T}$ac_cv_build" >&6
1022 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1023 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1024 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1026 echo "$as_me:1026: checking host system type" >&5
1027 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1028 if test "${ac_cv_host+set}" = set; then
1029 echo $ECHO_N "(cached) $ECHO_C" >&6
1031 ac_cv_host_alias=$host_alias
1032 test -z "$ac_cv_host_alias" &&
1033 ac_cv_host_alias=$ac_cv_build_alias
1034 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1035 { { echo "$as_me:1035: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1036 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1037 { (exit 1); exit 1; }; }
1040 echo "$as_me:1040: result: $ac_cv_host" >&5
1041 echo "${ECHO_T}$ac_cv_host" >&6
1043 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1048 UPDATED='April 21, 2002'
1052 if test "$prefix" = NONE
1067 ac_cpp='$CPP $CPPFLAGS'
1068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1071 if test -n "$ac_tool_prefix"; then
1072 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1073 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1074 echo "$as_me:1074: checking for $ac_word" >&5
1075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1076 if test "${ac_cv_prog_CC+set}" = set; then
1077 echo $ECHO_N "(cached) $ECHO_C" >&6
1079 if test -n "$CC"; then
1080 ac_cv_prog_CC="$CC" # Let the user override the test.
1082 ac_save_IFS=$IFS; IFS=$ac_path_separator
1084 for ac_dir in $ac_dummy; do
1086 test -z "$ac_dir" && ac_dir=.
1087 $as_executable_p "$ac_dir/$ac_word" || continue
1088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1089 echo "$as_me:1089: found $ac_dir/$ac_word" >&5
1096 if test -n "$CC"; then
1097 echo "$as_me:1097: result: $CC" >&5
1098 echo "${ECHO_T}$CC" >&6
1100 echo "$as_me:1100: result: no" >&5
1101 echo "${ECHO_T}no" >&6
1105 if test -z "$ac_cv_prog_CC"; then
1107 # Extract the first word of "gcc", so it can be a program name with args.
1108 set dummy gcc; ac_word=$2
1109 echo "$as_me:1109: checking for $ac_word" >&5
1110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1111 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1112 echo $ECHO_N "(cached) $ECHO_C" >&6
1114 if test -n "$ac_ct_CC"; then
1115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1117 ac_save_IFS=$IFS; IFS=$ac_path_separator
1119 for ac_dir in $ac_dummy; do
1121 test -z "$ac_dir" && ac_dir=.
1122 $as_executable_p "$ac_dir/$ac_word" || continue
1123 ac_cv_prog_ac_ct_CC="gcc"
1124 echo "$as_me:1124: found $ac_dir/$ac_word" >&5
1130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1131 if test -n "$ac_ct_CC"; then
1132 echo "$as_me:1132: result: $ac_ct_CC" >&5
1133 echo "${ECHO_T}$ac_ct_CC" >&6
1135 echo "$as_me:1135: result: no" >&5
1136 echo "${ECHO_T}no" >&6
1144 if test -z "$CC"; then
1145 if test -n "$ac_tool_prefix"; then
1146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1147 set dummy ${ac_tool_prefix}cc; ac_word=$2
1148 echo "$as_me:1148: checking for $ac_word" >&5
1149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1150 if test "${ac_cv_prog_CC+set}" = set; then
1151 echo $ECHO_N "(cached) $ECHO_C" >&6
1153 if test -n "$CC"; then
1154 ac_cv_prog_CC="$CC" # Let the user override the test.
1156 ac_save_IFS=$IFS; IFS=$ac_path_separator
1158 for ac_dir in $ac_dummy; do
1160 test -z "$ac_dir" && ac_dir=.
1161 $as_executable_p "$ac_dir/$ac_word" || continue
1162 ac_cv_prog_CC="${ac_tool_prefix}cc"
1163 echo "$as_me:1163: found $ac_dir/$ac_word" >&5
1170 if test -n "$CC"; then
1171 echo "$as_me:1171: result: $CC" >&5
1172 echo "${ECHO_T}$CC" >&6
1174 echo "$as_me:1174: result: no" >&5
1175 echo "${ECHO_T}no" >&6
1179 if test -z "$ac_cv_prog_CC"; then
1181 # Extract the first word of "cc", so it can be a program name with args.
1182 set dummy cc; ac_word=$2
1183 echo "$as_me:1183: checking for $ac_word" >&5
1184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1186 echo $ECHO_N "(cached) $ECHO_C" >&6
1188 if test -n "$ac_ct_CC"; then
1189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1191 ac_save_IFS=$IFS; IFS=$ac_path_separator
1193 for ac_dir in $ac_dummy; do
1195 test -z "$ac_dir" && ac_dir=.
1196 $as_executable_p "$ac_dir/$ac_word" || continue
1197 ac_cv_prog_ac_ct_CC="cc"
1198 echo "$as_me:1198: found $ac_dir/$ac_word" >&5
1204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1205 if test -n "$ac_ct_CC"; then
1206 echo "$as_me:1206: result: $ac_ct_CC" >&5
1207 echo "${ECHO_T}$ac_ct_CC" >&6
1209 echo "$as_me:1209: result: no" >&5
1210 echo "${ECHO_T}no" >&6
1219 if test -z "$CC"; then
1220 # Extract the first word of "cc", so it can be a program name with args.
1221 set dummy cc; ac_word=$2
1222 echo "$as_me:1222: checking for $ac_word" >&5
1223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1224 if test "${ac_cv_prog_CC+set}" = set; then
1225 echo $ECHO_N "(cached) $ECHO_C" >&6
1227 if test -n "$CC"; then
1228 ac_cv_prog_CC="$CC" # Let the user override the test.
1231 ac_save_IFS=$IFS; IFS=$ac_path_separator
1233 for ac_dir in $ac_dummy; do
1235 test -z "$ac_dir" && ac_dir=.
1236 $as_executable_p "$ac_dir/$ac_word" || continue
1237 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1238 ac_prog_rejected=yes
1242 echo "$as_me:1242: found $ac_dir/$ac_word" >&5
1246 if test $ac_prog_rejected = yes; then
1247 # We found a bogon in the path, so make sure we never use it.
1248 set dummy $ac_cv_prog_CC
1250 if test $# != 0; then
1251 # We chose a different compiler from the bogus one.
1252 # However, it has the same basename, so the bogon will be chosen
1253 # first if we set CC to just the basename; use the full file name.
1255 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1263 if test -n "$CC"; then
1264 echo "$as_me:1264: result: $CC" >&5
1265 echo "${ECHO_T}$CC" >&6
1267 echo "$as_me:1267: result: no" >&5
1268 echo "${ECHO_T}no" >&6
1272 if test -z "$CC"; then
1273 if test -n "$ac_tool_prefix"; then
1276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1278 echo "$as_me:1278: checking for $ac_word" >&5
1279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1280 if test "${ac_cv_prog_CC+set}" = set; then
1281 echo $ECHO_N "(cached) $ECHO_C" >&6
1283 if test -n "$CC"; then
1284 ac_cv_prog_CC="$CC" # Let the user override the test.
1286 ac_save_IFS=$IFS; IFS=$ac_path_separator
1288 for ac_dir in $ac_dummy; do
1290 test -z "$ac_dir" && ac_dir=.
1291 $as_executable_p "$ac_dir/$ac_word" || continue
1292 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1293 echo "$as_me:1293: found $ac_dir/$ac_word" >&5
1300 if test -n "$CC"; then
1301 echo "$as_me:1301: result: $CC" >&5
1302 echo "${ECHO_T}$CC" >&6
1304 echo "$as_me:1304: result: no" >&5
1305 echo "${ECHO_T}no" >&6
1308 test -n "$CC" && break
1311 if test -z "$CC"; then
1315 # Extract the first word of "$ac_prog", so it can be a program name with args.
1316 set dummy $ac_prog; ac_word=$2
1317 echo "$as_me:1317: checking for $ac_word" >&5
1318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1320 echo $ECHO_N "(cached) $ECHO_C" >&6
1322 if test -n "$ac_ct_CC"; then
1323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1325 ac_save_IFS=$IFS; IFS=$ac_path_separator
1327 for ac_dir in $ac_dummy; do
1329 test -z "$ac_dir" && ac_dir=.
1330 $as_executable_p "$ac_dir/$ac_word" || continue
1331 ac_cv_prog_ac_ct_CC="$ac_prog"
1332 echo "$as_me:1332: found $ac_dir/$ac_word" >&5
1338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1339 if test -n "$ac_ct_CC"; then
1340 echo "$as_me:1340: result: $ac_ct_CC" >&5
1341 echo "${ECHO_T}$ac_ct_CC" >&6
1343 echo "$as_me:1343: result: no" >&5
1344 echo "${ECHO_T}no" >&6
1347 test -n "$ac_ct_CC" && break
1355 test -z "$CC" && { { echo "$as_me:1355: error: no acceptable cc found in \$PATH" >&5
1356 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1357 { (exit 1); exit 1; }; }
1359 # Provide some information about the compiler.
1360 echo "$as_me:1360:" \
1361 "checking for C compiler version" >&5
1362 ac_compiler=`set X $ac_compile; echo $2`
1363 { (eval echo "$as_me:1363: \"$ac_compiler --version </dev/null >&5\"") >&5
1364 (eval $ac_compiler --version </dev/null >&5) 2>&5
1366 echo "$as_me:1366: \$? = $ac_status" >&5
1367 (exit $ac_status); }
1368 { (eval echo "$as_me:1368: \"$ac_compiler -v </dev/null >&5\"") >&5
1369 (eval $ac_compiler -v </dev/null >&5) 2>&5
1371 echo "$as_me:1371: \$? = $ac_status" >&5
1372 (exit $ac_status); }
1373 { (eval echo "$as_me:1373: \"$ac_compiler -V </dev/null >&5\"") >&5
1374 (eval $ac_compiler -V </dev/null >&5) 2>&5
1376 echo "$as_me:1376: \$? = $ac_status" >&5
1377 (exit $ac_status); }
1379 cat >conftest.$ac_ext <<_ACEOF
1380 #line 1380 "configure"
1381 #include "confdefs.h"
1391 ac_clean_files_save=$ac_clean_files
1392 ac_clean_files="$ac_clean_files a.out a.exe"
1393 # Try to create an executable without -o first, disregard a.out.
1394 # It will help us diagnose broken compilers, and finding out an intuition
1396 echo "$as_me:1396: checking for C compiler default output" >&5
1397 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1398 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1399 if { (eval echo "$as_me:1399: \"$ac_link_default\"") >&5
1400 (eval $ac_link_default) 2>&5
1402 echo "$as_me:1402: \$? = $ac_status" >&5
1403 (exit $ac_status); }; then
1404 # Find the output, starting from the most likely. This scheme is
1405 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1407 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1408 ls a.out conftest 2>/dev/null;
1409 ls a.* conftest.* 2>/dev/null`; do
1411 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1412 a.out ) # We found the default executable, but exeext='' is most
1415 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1416 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1423 echo "$as_me: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1425 { { echo "$as_me:1425: error: C compiler cannot create executables" >&5
1426 echo "$as_me: error: C compiler cannot create executables" >&2;}
1427 { (exit 77); exit 77; }; }
1430 ac_exeext=$ac_cv_exeext
1431 echo "$as_me:1431: result: $ac_file" >&5
1432 echo "${ECHO_T}$ac_file" >&6
1434 # Check the compiler produces executables we can run. If not, either
1435 # the compiler is broken, or we cross compile.
1436 echo "$as_me:1436: checking whether the C compiler works" >&5
1437 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1438 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1439 # If not cross compiling, check that we can run a simple program.
1440 if test "$cross_compiling" != yes; then
1441 if { ac_try='./$ac_file'
1442 { (eval echo "$as_me:1442: \"$ac_try\"") >&5
1445 echo "$as_me:1445: \$? = $ac_status" >&5
1446 (exit $ac_status); }; }; then
1449 if test "$cross_compiling" = maybe; then
1452 { { echo "$as_me:1452: error: cannot run C compiled programs.
1453 If you meant to cross compile, use \`--host'." >&5
1454 echo "$as_me: error: cannot run C compiled programs.
1455 If you meant to cross compile, use \`--host'." >&2;}
1456 { (exit 1); exit 1; }; }
1460 echo "$as_me:1460: result: yes" >&5
1461 echo "${ECHO_T}yes" >&6
1463 rm -f a.out a.exe conftest$ac_cv_exeext
1464 ac_clean_files=$ac_clean_files_save
1465 # Check the compiler produces executables we can run. If not, either
1466 # the compiler is broken, or we cross compile.
1467 echo "$as_me:1467: checking whether we are cross compiling" >&5
1468 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1469 echo "$as_me:1469: result: $cross_compiling" >&5
1470 echo "${ECHO_T}$cross_compiling" >&6
1472 echo "$as_me:1472: checking for executable suffix" >&5
1473 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1474 if { (eval echo "$as_me:1474: \"$ac_link\"") >&5
1475 (eval $ac_link) 2>&5
1477 echo "$as_me:1477: \$? = $ac_status" >&5
1478 (exit $ac_status); }; then
1479 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1480 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1481 # work properly (i.e., refer to `conftest.exe'), while it won't with
1483 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1485 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1486 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1493 { { echo "$as_me:1493: error: cannot compute EXEEXT: cannot compile and link" >&5
1494 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1495 { (exit 1); exit 1; }; }
1498 rm -f conftest$ac_cv_exeext
1499 echo "$as_me:1499: result: $ac_cv_exeext" >&5
1500 echo "${ECHO_T}$ac_cv_exeext" >&6
1502 rm -f conftest.$ac_ext
1503 EXEEXT=$ac_cv_exeext
1505 echo "$as_me:1505: checking for object suffix" >&5
1506 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1507 if test "${ac_cv_objext+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 cat >conftest.$ac_ext <<_ACEOF
1511 #line 1511 "configure"
1512 #include "confdefs.h"
1522 rm -f conftest.o conftest.obj
1523 if { (eval echo "$as_me:1523: \"$ac_compile\"") >&5
1524 (eval $ac_compile) 2>&5
1526 echo "$as_me:1526: \$? = $ac_status" >&5
1527 (exit $ac_status); }; then
1528 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1536 echo "$as_me: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1538 { { echo "$as_me:1538: error: cannot compute OBJEXT: cannot compile" >&5
1539 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1540 { (exit 1); exit 1; }; }
1543 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1545 echo "$as_me:1545: result: $ac_cv_objext" >&5
1546 echo "${ECHO_T}$ac_cv_objext" >&6
1547 OBJEXT=$ac_cv_objext
1549 echo "$as_me:1549: checking whether we are using the GNU C compiler" >&5
1550 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1551 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 cat >conftest.$ac_ext <<_ACEOF
1555 #line 1555 "configure"
1556 #include "confdefs.h"
1569 rm -f conftest.$ac_objext
1570 if { (eval echo "$as_me:1570: \"$ac_compile\"") >&5
1571 (eval $ac_compile) 2>&5
1573 echo "$as_me:1573: \$? = $ac_status" >&5
1574 (exit $ac_status); } &&
1575 { ac_try='test -s conftest.$ac_objext'
1576 { (eval echo "$as_me:1576: \"$ac_try\"") >&5
1579 echo "$as_me:1579: \$? = $ac_status" >&5
1580 (exit $ac_status); }; }; then
1583 echo "$as_me: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1587 rm -f conftest.$ac_objext conftest.$ac_ext
1588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1591 echo "$as_me:1591: result: $ac_cv_c_compiler_gnu" >&5
1592 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1593 GCC=`test $ac_compiler_gnu = yes && echo yes`
1594 ac_test_CFLAGS=${CFLAGS+set}
1595 ac_save_CFLAGS=$CFLAGS
1597 echo "$as_me:1597: checking whether $CC accepts -g" >&5
1598 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1599 if test "${ac_cv_prog_cc_g+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 cat >conftest.$ac_ext <<_ACEOF
1603 #line 1603 "configure"
1604 #include "confdefs.h"
1614 rm -f conftest.$ac_objext
1615 if { (eval echo "$as_me:1615: \"$ac_compile\"") >&5
1616 (eval $ac_compile) 2>&5
1618 echo "$as_me:1618: \$? = $ac_status" >&5
1619 (exit $ac_status); } &&
1620 { ac_try='test -s conftest.$ac_objext'
1621 { (eval echo "$as_me:1621: \"$ac_try\"") >&5
1624 echo "$as_me:1624: \$? = $ac_status" >&5
1625 (exit $ac_status); }; }; then
1628 echo "$as_me: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1632 rm -f conftest.$ac_objext conftest.$ac_ext
1634 echo "$as_me:1634: result: $ac_cv_prog_cc_g" >&5
1635 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1636 if test "$ac_test_CFLAGS" = set; then
1637 CFLAGS=$ac_save_CFLAGS
1638 elif test $ac_cv_prog_cc_g = yes; then
1639 if test "$GCC" = yes; then
1645 if test "$GCC" = yes; then
1651 # Some people use a C++ compiler to compile C. Since we use `exit',
1652 # in C++ we need to declare it. In case someone uses the same compiler
1653 # for both compiling C and C++ we need to have the C++ compiler decide
1654 # the declaration of exit, since it's the most demanding environment.
1655 cat >conftest.$ac_ext <<_ACEOF
1660 rm -f conftest.$ac_objext
1661 if { (eval echo "$as_me:1661: \"$ac_compile\"") >&5
1662 (eval $ac_compile) 2>&5
1664 echo "$as_me:1664: \$? = $ac_status" >&5
1665 (exit $ac_status); } &&
1666 { ac_try='test -s conftest.$ac_objext'
1667 { (eval echo "$as_me:1667: \"$ac_try\"") >&5
1670 echo "$as_me:1670: \$? = $ac_status" >&5
1671 (exit $ac_status); }; }; then
1672 for ac_declaration in \
1674 '#include <stdlib.h>' \
1675 'extern "C" void std::exit (int) throw (); using std::exit;' \
1676 'extern "C" void std::exit (int); using std::exit;' \
1677 'extern "C" void exit (int) throw ();' \
1678 'extern "C" void exit (int);' \
1681 cat >conftest.$ac_ext <<_ACEOF
1682 #line 1682 "configure"
1683 #include "confdefs.h"
1694 rm -f conftest.$ac_objext
1695 if { (eval echo "$as_me:1695: \"$ac_compile\"") >&5
1696 (eval $ac_compile) 2>&5
1698 echo "$as_me:1698: \$? = $ac_status" >&5
1699 (exit $ac_status); } &&
1700 { ac_try='test -s conftest.$ac_objext'
1701 { (eval echo "$as_me:1701: \"$ac_try\"") >&5
1704 echo "$as_me:1704: \$? = $ac_status" >&5
1705 (exit $ac_status); }; }; then
1708 echo "$as_me: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1712 rm -f conftest.$ac_objext conftest.$ac_ext
1713 cat >conftest.$ac_ext <<_ACEOF
1714 #line 1714 "configure"
1715 #include "confdefs.h"
1725 rm -f conftest.$ac_objext
1726 if { (eval echo "$as_me:1726: \"$ac_compile\"") >&5
1727 (eval $ac_compile) 2>&5
1729 echo "$as_me:1729: \$? = $ac_status" >&5
1730 (exit $ac_status); } &&
1731 { ac_try='test -s conftest.$ac_objext'
1732 { (eval echo "$as_me:1732: \"$ac_try\"") >&5
1735 echo "$as_me:1735: \$? = $ac_status" >&5
1736 (exit $ac_status); }; }; then
1739 echo "$as_me: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1742 rm -f conftest.$ac_objext conftest.$ac_ext
1745 if test -n "$ac_declaration"; then
1746 echo '#ifdef __cplusplus' >>confdefs.h
1747 echo $ac_declaration >>confdefs.h
1748 echo '#endif' >>confdefs.h
1752 echo "$as_me: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1755 rm -f conftest.$ac_objext conftest.$ac_ext
1757 ac_cpp='$CPP $CPPFLAGS'
1758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1762 # Find a good install program. We prefer a C program (faster),
1763 # so one script is as good as another. But avoid the broken or
1764 # incompatible versions:
1765 # SysV /etc/install, /usr/sbin/install
1766 # SunOS /usr/etc/install
1767 # IRIX /sbin/install
1769 # AmigaOS /C/install, which installs bootblocks on floppy discs
1770 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1771 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1772 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1773 # ./install, which can be erroneously created by make from ./install.sh.
1774 echo "$as_me:1774: checking for a BSD compatible install" >&5
1775 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1776 if test -z "$INSTALL"; then
1777 if test "${ac_cv_path_install+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 ac_save_IFS=$IFS; IFS=$ac_path_separator
1781 for ac_dir in $PATH; do
1783 # Account for people who put trailing slashes in PATH elements.
1785 / | ./ | .// | /cC/* \
1786 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1789 # OSF1 and SCO ODT 3.0 have their own names for install.
1790 # Don't use installbsd from OSF since it installs stuff as root
1792 for ac_prog in ginstall scoinst install; do
1793 if $as_executable_p "$ac_dir/$ac_prog"; then
1794 if test $ac_prog = install &&
1795 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1796 # AIX install. It has an incompatible calling convention.
1798 elif test $ac_prog = install &&
1799 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1800 # program-specific install script used by HP pwplus--don't use.
1803 ac_cv_path_install="$ac_dir/$ac_prog -c"
1813 if test "${ac_cv_path_install+set}" = set; then
1814 INSTALL=$ac_cv_path_install
1816 # As a last resort, use the slow shell script. We don't cache a
1817 # path for INSTALL within a source directory, because that will
1818 # break other packages using the cache if that directory is
1819 # removed, or if the path is relative.
1820 INSTALL=$ac_install_sh
1823 echo "$as_me:1823: result: $INSTALL" >&5
1824 echo "${ECHO_T}$INSTALL" >&6
1826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1827 # It thinks the first close brace ends the variable substitution.
1828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1832 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1835 ac_cpp='$CPP $CPPFLAGS'
1836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1839 echo "$as_me:1839: checking how to run the C preprocessor" >&5
1840 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1841 # On Suns, sometimes $CPP names a directory.
1842 if test -n "$CPP" && test -d "$CPP"; then
1845 if test -z "$CPP"; then
1846 if test "${ac_cv_prog_CPP+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 # Double quotes because CPP needs to be expanded
1850 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1853 for ac_c_preproc_warn_flag in '' yes
1855 # Use a header file that comes with gcc, so configuring glibc
1856 # with a fresh cross-compiler works.
1857 # On the NeXT, cc -E runs the code through the compiler's parser,
1858 # not just through cpp. "Syntax error" is here to catch this case.
1859 cat >conftest.$ac_ext <<_ACEOF
1860 #line 1860 "configure"
1861 #include "confdefs.h"
1865 if { (eval echo "$as_me:1865: \"$ac_cpp conftest.$ac_ext\"") >&5
1866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1868 egrep -v '^ *\+' conftest.er1 >conftest.err
1870 cat conftest.err >&5
1871 echo "$as_me:1871: \$? = $ac_status" >&5
1872 (exit $ac_status); } >/dev/null; then
1873 if test -s conftest.err; then
1874 ac_cpp_err=$ac_c_preproc_warn_flag
1881 if test -z "$ac_cpp_err"; then
1884 echo "$as_me: failed program was:" >&5
1885 cat conftest.$ac_ext >&5
1886 # Broken: fails on valid input.
1889 rm -f conftest.err conftest.$ac_ext
1891 # OK, works on sane cases. Now check whether non-existent headers
1892 # can be detected and how.
1893 cat >conftest.$ac_ext <<_ACEOF
1894 #line 1894 "configure"
1895 #include "confdefs.h"
1896 #include <ac_nonexistent.h>
1898 if { (eval echo "$as_me:1898: \"$ac_cpp conftest.$ac_ext\"") >&5
1899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1901 egrep -v '^ *\+' conftest.er1 >conftest.err
1903 cat conftest.err >&5
1904 echo "$as_me:1904: \$? = $ac_status" >&5
1905 (exit $ac_status); } >/dev/null; then
1906 if test -s conftest.err; then
1907 ac_cpp_err=$ac_c_preproc_warn_flag
1914 if test -z "$ac_cpp_err"; then
1915 # Broken: success on invalid input.
1918 echo "$as_me: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1920 # Passes both tests.
1924 rm -f conftest.err conftest.$ac_ext
1927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1928 rm -f conftest.err conftest.$ac_ext
1929 if $ac_preproc_ok; then
1941 echo "$as_me:1941: result: $CPP" >&5
1942 echo "${ECHO_T}$CPP" >&6
1944 for ac_c_preproc_warn_flag in '' yes
1946 # Use a header file that comes with gcc, so configuring glibc
1947 # with a fresh cross-compiler works.
1948 # On the NeXT, cc -E runs the code through the compiler's parser,
1949 # not just through cpp. "Syntax error" is here to catch this case.
1950 cat >conftest.$ac_ext <<_ACEOF
1951 #line 1951 "configure"
1952 #include "confdefs.h"
1956 if { (eval echo "$as_me:1956: \"$ac_cpp conftest.$ac_ext\"") >&5
1957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1959 egrep -v '^ *\+' conftest.er1 >conftest.err
1961 cat conftest.err >&5
1962 echo "$as_me:1962: \$? = $ac_status" >&5
1963 (exit $ac_status); } >/dev/null; then
1964 if test -s conftest.err; then
1965 ac_cpp_err=$ac_c_preproc_warn_flag
1972 if test -z "$ac_cpp_err"; then
1975 echo "$as_me: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1977 # Broken: fails on valid input.
1980 rm -f conftest.err conftest.$ac_ext
1982 # OK, works on sane cases. Now check whether non-existent headers
1983 # can be detected and how.
1984 cat >conftest.$ac_ext <<_ACEOF
1985 #line 1985 "configure"
1986 #include "confdefs.h"
1987 #include <ac_nonexistent.h>
1989 if { (eval echo "$as_me:1989: \"$ac_cpp conftest.$ac_ext\"") >&5
1990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1992 egrep -v '^ *\+' conftest.er1 >conftest.err
1994 cat conftest.err >&5
1995 echo "$as_me:1995: \$? = $ac_status" >&5
1996 (exit $ac_status); } >/dev/null; then
1997 if test -s conftest.err; then
1998 ac_cpp_err=$ac_c_preproc_warn_flag
2005 if test -z "$ac_cpp_err"; then
2006 # Broken: success on invalid input.
2009 echo "$as_me: failed program was:" >&5
2010 cat conftest.$ac_ext >&5
2011 # Passes both tests.
2015 rm -f conftest.err conftest.$ac_ext
2018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2019 rm -f conftest.err conftest.$ac_ext
2020 if $ac_preproc_ok; then
2023 { { echo "$as_me:2023: error: C preprocessor \"$CPP\" fails sanity check" >&5
2024 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2025 { (exit 1); exit 1; }; }
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034 if test "$GCC" = yes
2036 CFLAGS="${CFLAGS} ${PIPE}-Wmissing-prototypes -Wstrict-prototypes -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-declarations -Wnested-externs -pedantic -fno-common"
2040 # Check whether --with-defformat or --without-defformat was given.
2041 if test "${with_defformat+set}" = set; then
2042 withval="$with_defformat"
2043 DEFFORMAT="$withval"
2045 DEFFORMAT="ibm-3740"
2048 # Check whether --with-libdsk or --without-libdsk was given.
2049 if test "${with_libdsk+set}" = set; then
2050 withval="$with_libdsk"
2056 # Check whether --with-dmalloc or --without-dmalloc was given.
2057 if test "${with_dmalloc+set}" = set; then
2058 withval="$with_dmalloc"
2065 *cygwin* ) CYGWIN=yes;;
2070 *mingw32* ) MINGW32=yes;;
2076 if test "$CYGWIN" = "yes"
2080 if test "$MINGW32" = "yes"
2085 echo "$as_me:2085: checking for printw in -lcurses" >&5
2086 echo $ECHO_N "checking for printw in -lcurses... $ECHO_C" >&6
2087 if test "${ac_cv_lib_curses_printw+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 ac_check_lib_save_LIBS=$LIBS
2091 LIBS="-lcurses $LIBS"
2092 cat >conftest.$ac_ext <<_ACEOF
2093 #line 2093 "configure"
2094 #include "confdefs.h"
2096 /* Override any gcc2 internal prototype to avoid an error. */
2100 /* We use char because int might match the return type of a gcc2
2101 builtin and then its argument prototype would still apply. */
2111 rm -f conftest.$ac_objext conftest$ac_exeext
2112 if { (eval echo "$as_me:2112: \"$ac_link\"") >&5
2113 (eval $ac_link) 2>&5
2115 echo "$as_me:2115: \$? = $ac_status" >&5
2116 (exit $ac_status); } &&
2117 { ac_try='test -s conftest$ac_exeext'
2118 { (eval echo "$as_me:2118: \"$ac_try\"") >&5
2121 echo "$as_me:2121: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2123 ac_cv_lib_curses_printw=yes
2125 echo "$as_me: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2127 ac_cv_lib_curses_printw=no
2129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2130 LIBS=$ac_check_lib_save_LIBS
2132 echo "$as_me:2132: result: $ac_cv_lib_curses_printw" >&5
2133 echo "${ECHO_T}$ac_cv_lib_curses_printw" >&6
2134 if test $ac_cv_lib_curses_printw = yes; then
2135 FSED_CPM=fsed.cpm LIBS="-lcurses $LIBS"
2140 if test x"$FSED_CPM" = x""; then
2141 echo "$as_me:2141: checking for printw in -lncurses" >&5
2142 echo $ECHO_N "checking for printw in -lncurses... $ECHO_C" >&6
2143 if test "${ac_cv_lib_ncurses_printw+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 ac_check_lib_save_LIBS=$LIBS
2147 LIBS="-lncurses $LIBS"
2148 cat >conftest.$ac_ext <<_ACEOF
2149 #line 2149 "configure"
2150 #include "confdefs.h"
2152 /* Override any gcc2 internal prototype to avoid an error. */
2156 /* We use char because int might match the return type of a gcc2
2157 builtin and then its argument prototype would still apply. */
2167 rm -f conftest.$ac_objext conftest$ac_exeext
2168 if { (eval echo "$as_me:2168: \"$ac_link\"") >&5
2169 (eval $ac_link) 2>&5
2171 echo "$as_me:2171: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -s conftest$ac_exeext'
2174 { (eval echo "$as_me:2174: \"$ac_try\"") >&5
2177 echo "$as_me:2177: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 ac_cv_lib_ncurses_printw=yes
2181 echo "$as_me: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2183 ac_cv_lib_ncurses_printw=no
2185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2186 LIBS=$ac_check_lib_save_LIBS
2188 echo "$as_me:2188: result: $ac_cv_lib_ncurses_printw" >&5
2189 echo "${ECHO_T}$ac_cv_lib_ncurses_printw" >&6
2190 if test $ac_cv_lib_ncurses_printw = yes; then
2191 FSED_CPM=fsed.cpm LIBS="-lncurses $LIBS"
2198 if test "$LIBDSK" != ""; then
2200 CPPFLAGS="$CPPFLAGS -I$LIBDSK/include"
2201 CFLAGS="$CFLAGS -I$LIBDSK/include"
2202 LDFLAGS="$LDFLAGS -L$LIBDSK/lib"
2204 echo "$as_me:2204: checking for dsk_open in -ldsk" >&5
2205 echo $ECHO_N "checking for dsk_open in -ldsk... $ECHO_C" >&6
2206 if test "${ac_cv_lib_dsk_dsk_open+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 ac_check_lib_save_LIBS=$LIBS
2211 cat >conftest.$ac_ext <<_ACEOF
2212 #line 2212 "configure"
2213 #include "confdefs.h"
2215 /* Override any gcc2 internal prototype to avoid an error. */
2219 /* We use char because int might match the return type of a gcc2
2220 builtin and then its argument prototype would still apply. */
2230 rm -f conftest.$ac_objext conftest$ac_exeext
2231 if { (eval echo "$as_me:2231: \"$ac_link\"") >&5
2232 (eval $ac_link) 2>&5
2234 echo "$as_me:2234: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -s conftest$ac_exeext'
2237 { (eval echo "$as_me:2237: \"$ac_try\"") >&5
2240 echo "$as_me:2240: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 ac_cv_lib_dsk_dsk_open=yes
2244 echo "$as_me: failed program was:" >&5
2245 cat conftest.$ac_ext >&5
2246 ac_cv_lib_dsk_dsk_open=no
2248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2249 LIBS=$ac_check_lib_save_LIBS
2251 echo "$as_me:2251: result: $ac_cv_lib_dsk_dsk_open" >&5
2252 echo "${ECHO_T}$ac_cv_lib_dsk_dsk_open" >&6
2253 if test $ac_cv_lib_dsk_dsk_open = yes; then
2254 cat >>confdefs.h <<EOF
2255 #define HAVE_LIBDSK 1
2262 for ac_header in libdsk.h
2264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2265 echo "$as_me:2265: checking for $ac_header" >&5
2266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 cat >conftest.$ac_ext <<_ACEOF
2271 #line 2271 "configure"
2272 #include "confdefs.h"
2273 #include <$ac_header>
2275 if { (eval echo "$as_me:2275: \"$ac_cpp conftest.$ac_ext\"") >&5
2276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2278 egrep -v '^ *\+' conftest.er1 >conftest.err
2280 cat conftest.err >&5
2281 echo "$as_me:2281: \$? = $ac_status" >&5
2282 (exit $ac_status); } >/dev/null; then
2283 if test -s conftest.err; then
2284 ac_cpp_err=$ac_c_preproc_warn_flag
2291 if test -z "$ac_cpp_err"; then
2292 eval "$as_ac_Header=yes"
2294 echo "$as_me: failed program was:" >&5
2295 cat conftest.$ac_ext >&5
2296 eval "$as_ac_Header=no"
2298 rm -f conftest.err conftest.$ac_ext
2300 echo "$as_me:2300: result: `eval echo '${'$as_ac_Header'}'`" >&5
2301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2303 cat >>confdefs.h <<EOF
2304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2308 echo "No libdsk.h - aborting"; exit 1
2314 if test x"$DEVICE" = x"win32"; then
2316 for ac_header in windows.h winioctl.h
2318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2319 echo "$as_me:2319: checking for $ac_header" >&5
2320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #line 2325 "configure"
2326 #include "confdefs.h"
2327 #include <$ac_header>
2329 if { (eval echo "$as_me:2329: \"$ac_cpp conftest.$ac_ext\"") >&5
2330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2332 egrep -v '^ *\+' conftest.er1 >conftest.err
2334 cat conftest.err >&5
2335 echo "$as_me:2335: \$? = $ac_status" >&5
2336 (exit $ac_status); } >/dev/null; then
2337 if test -s conftest.err; then
2338 ac_cpp_err=$ac_c_preproc_warn_flag
2345 if test -z "$ac_cpp_err"; then
2346 eval "$as_ac_Header=yes"
2348 echo "$as_me: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2350 eval "$as_ac_Header=no"
2352 rm -f conftest.err conftest.$ac_ext
2354 echo "$as_me:2354: result: `eval echo '${'$as_ac_Header'}'`" >&5
2355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2357 cat >>confdefs.h <<EOF
2358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2362 echo "Windows headers not found - aborting"; exit 1
2368 if test x"$DMALLOC" != x""; then
2369 CPPFLAGS = "-I$DMALLOC/include $CPPFLAGS"
2370 CFLAGS = "-I$DMALLOC/include $CFLAGS"
2371 LDFLAGS = "-L$DMALLOC/lib $LDFLAGS"
2373 echo "$as_me:2373: checking for malloc in -ldmalloc" >&5
2374 echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6
2375 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 ac_check_lib_save_LIBS=$LIBS
2379 LIBS="-ldmalloc $LIBS"
2380 cat >conftest.$ac_ext <<_ACEOF
2381 #line 2381 "configure"
2382 #include "confdefs.h"
2384 /* Override any gcc2 internal prototype to avoid an error. */
2388 /* We use char because int might match the return type of a gcc2
2389 builtin and then its argument prototype would still apply. */
2399 rm -f conftest.$ac_objext conftest$ac_exeext
2400 if { (eval echo "$as_me:2400: \"$ac_link\"") >&5
2401 (eval $ac_link) 2>&5
2403 echo "$as_me:2403: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -s conftest$ac_exeext'
2406 { (eval echo "$as_me:2406: \"$ac_try\"") >&5
2409 echo "$as_me:2409: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_lib_dmalloc_malloc=yes
2413 echo "$as_me: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2415 ac_cv_lib_dmalloc_malloc=no
2417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2418 LIBS=$ac_check_lib_save_LIBS
2420 echo "$as_me:2420: result: $ac_cv_lib_dmalloc_malloc" >&5
2421 echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6
2422 if test $ac_cv_lib_dmalloc_malloc = yes; then
2423 cat >>confdefs.h <<EOF
2424 #define HAVE_LIBDMALLOC 1
2427 LIBS="-ldmalloc $LIBS"
2431 for ac_header in dmalloc.h
2433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2434 echo "$as_me:2434: checking for $ac_header" >&5
2435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 cat >conftest.$ac_ext <<_ACEOF
2440 #line 2440 "configure"
2441 #include "confdefs.h"
2442 #include <$ac_header>
2444 if { (eval echo "$as_me:2444: \"$ac_cpp conftest.$ac_ext\"") >&5
2445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2447 egrep -v '^ *\+' conftest.er1 >conftest.err
2449 cat conftest.err >&5
2450 echo "$as_me:2450: \$? = $ac_status" >&5
2451 (exit $ac_status); } >/dev/null; then
2452 if test -s conftest.err; then
2453 ac_cpp_err=$ac_c_preproc_warn_flag
2460 if test -z "$ac_cpp_err"; then
2461 eval "$as_ac_Header=yes"
2463 echo "$as_me: failed program was:" >&5
2464 cat conftest.$ac_ext >&5
2465 eval "$as_ac_Header=no"
2467 rm -f conftest.err conftest.$ac_ext
2469 echo "$as_me:2469: result: `eval echo '${'$as_ac_Header'}'`" >&5
2470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2472 cat >>confdefs.h <<EOF
2473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2481 echo "$as_me:2481: checking for ANSI C header files" >&5
2482 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2483 if test "${ac_cv_header_stdc+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 cat >conftest.$ac_ext <<_ACEOF
2487 #line 2487 "configure"
2488 #include "confdefs.h"
2495 if { (eval echo "$as_me:2495: \"$ac_cpp conftest.$ac_ext\"") >&5
2496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498 egrep -v '^ *\+' conftest.er1 >conftest.err
2500 cat conftest.err >&5
2501 echo "$as_me:2501: \$? = $ac_status" >&5
2502 (exit $ac_status); } >/dev/null; then
2503 if test -s conftest.err; then
2504 ac_cpp_err=$ac_c_preproc_warn_flag
2511 if test -z "$ac_cpp_err"; then
2512 ac_cv_header_stdc=yes
2514 echo "$as_me: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2516 ac_cv_header_stdc=no
2518 rm -f conftest.err conftest.$ac_ext
2520 if test $ac_cv_header_stdc = yes; then
2521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2522 cat >conftest.$ac_ext <<_ACEOF
2523 #line 2523 "configure"
2524 #include "confdefs.h"
2528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2529 egrep "memchr" >/dev/null 2>&1; then
2532 ac_cv_header_stdc=no
2538 if test $ac_cv_header_stdc = yes; then
2539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2540 cat >conftest.$ac_ext <<_ACEOF
2541 #line 2541 "configure"
2542 #include "confdefs.h"
2546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2547 egrep "free" >/dev/null 2>&1; then
2550 ac_cv_header_stdc=no
2556 if test $ac_cv_header_stdc = yes; then
2557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2558 if test "$cross_compiling" = yes; then
2561 cat >conftest.$ac_ext <<_ACEOF
2562 #line 2562 "configure"
2563 #include "confdefs.h"
2565 #if ((' ' & 0x0FF) == 0x020)
2566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2569 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2570 || ('j' <= (c) && (c) <= 'r') \
2571 || ('s' <= (c) && (c) <= 'z'))
2572 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2580 for (i = 0; i < 256; i++)
2581 if (XOR (islower (i), ISLOWER (i))
2582 || toupper (i) != TOUPPER (i))
2587 rm -f conftest$ac_exeext
2588 if { (eval echo "$as_me:2588: \"$ac_link\"") >&5
2589 (eval $ac_link) 2>&5
2591 echo "$as_me:2591: \$? = $ac_status" >&5
2592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2593 { (eval echo "$as_me:2593: \"$ac_try\"") >&5
2596 echo "$as_me:2596: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2600 echo "$as_me: program exited with status $ac_status" >&5
2601 echo "$as_me: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2603 ac_cv_header_stdc=no
2605 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2609 echo "$as_me:2609: result: $ac_cv_header_stdc" >&5
2610 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2611 if test $ac_cv_header_stdc = yes; then
2613 cat >>confdefs.h <<\EOF
2614 #define STDC_HEADERS 1
2619 for ac_header in fcntl.h sys/types.h sys/stat.h limits.h unistd.h
2621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2622 echo "$as_me:2622: checking for $ac_header" >&5
2623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 cat >conftest.$ac_ext <<_ACEOF
2628 #line 2628 "configure"
2629 #include "confdefs.h"
2630 #include <$ac_header>
2632 if { (eval echo "$as_me:2632: \"$ac_cpp conftest.$ac_ext\"") >&5
2633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2635 egrep -v '^ *\+' conftest.er1 >conftest.err
2637 cat conftest.err >&5
2638 echo "$as_me:2638: \$? = $ac_status" >&5
2639 (exit $ac_status); } >/dev/null; then
2640 if test -s conftest.err; then
2641 ac_cpp_err=$ac_c_preproc_warn_flag
2648 if test -z "$ac_cpp_err"; then
2649 eval "$as_ac_Header=yes"
2651 echo "$as_me: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2653 eval "$as_ac_Header=no"
2655 rm -f conftest.err conftest.$ac_ext
2657 echo "$as_me:2657: result: `eval echo '${'$as_ac_Header'}'`" >&5
2658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2660 cat >>confdefs.h <<EOF
2661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2667 echo "$as_me:2667: checking for $CC option to accept ANSI C" >&5
2668 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2669 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 ac_cv_prog_cc_stdc=no
2674 cat >conftest.$ac_ext <<_ACEOF
2675 #line 2675 "configure"
2676 #include "confdefs.h"
2679 #include <sys/types.h>
2680 #include <sys/stat.h>
2681 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2682 struct buf { int x; };
2683 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2684 static char *e (p, i)
2690 static char *f (char * (*g) (char **, int), char **p, ...)
2695 s = g (p, va_arg (v,int));
2699 int test (int i, double x);
2700 struct s1 {int (*f) (int a);};
2701 struct s2 {int (*f) (double a);};
2702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2708 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2713 # Don't try gcc -ansi; that turns off useful extensions and
2714 # breaks some systems' header files.
2715 # AIX -qlanglvl=ansi
2716 # Ultrix and OSF/1 -std1
2717 # HP-UX 10.20 and later -Ae
2718 # HP-UX older versions -Aa -D_HPUX_SOURCE
2719 # SVR4 -Xc -D__EXTENSIONS__
2720 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2722 CC="$ac_save_CC $ac_arg"
2723 rm -f conftest.$ac_objext
2724 if { (eval echo "$as_me:2724: \"$ac_compile\"") >&5
2725 (eval $ac_compile) 2>&5
2727 echo "$as_me:2727: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -s conftest.$ac_objext'
2730 { (eval echo "$as_me:2730: \"$ac_try\"") >&5
2733 echo "$as_me:2733: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2735 ac_cv_prog_cc_stdc=$ac_arg
2738 echo "$as_me: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2741 rm -f conftest.$ac_objext
2743 rm -f conftest.$ac_ext conftest.$ac_objext
2748 case "x$ac_cv_prog_cc_stdc" in
2750 echo "$as_me:2750: result: none needed" >&5
2751 echo "${ECHO_T}none needed" >&6 ;;
2753 echo "$as_me:2753: result: $ac_cv_prog_cc_stdc" >&5
2754 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2755 CC="$CC $ac_cv_prog_cc_stdc" ;;
2758 echo "$as_me:2758: checking for an ANSI C-conforming const" >&5
2759 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2760 if test "${ac_cv_c_const+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 cat >conftest.$ac_ext <<_ACEOF
2764 #line 2764 "configure"
2765 #include "confdefs.h"
2770 /* FIXME: Include the comments suggested by Paul. */
2772 /* Ultrix mips cc rejects this. */
2773 typedef int charset[2];
2775 /* SunOS 4.1.1 cc rejects this. */
2776 char const *const *ccp;
2778 /* NEC SVR4.0.2 mips cc rejects this. */
2779 struct point {int x, y;};
2780 static struct point const zero = {0,0};
2781 /* AIX XL C 1.02.0.0 rejects this.
2782 It does not let you subtract one const X* pointer from another in
2783 an arm of an if-expression whose if-part is not a constant
2785 const char *g = "string";
2786 ccp = &g + (g ? g-g : 0);
2787 /* HPUX 7.0 cc rejects these. */
2790 ccp = (char const *const *) p;
2791 { /* SCO 3.2v4 cc rejects this. */
2793 char const *s = 0 ? (char *) 0 : (char const *) 0;
2797 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2799 const int *foo = &x[0];
2802 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2803 typedef const int *iptr;
2807 { /* AIX XL C 1.02.0.0 rejects this saying
2808 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2809 struct s { int j; const int *ap[3]; };
2810 struct s *b; b->j = 5;
2812 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:2822: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>&5
2825 echo "$as_me:2825: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -s conftest.$ac_objext'
2828 { (eval echo "$as_me:2828: \"$ac_try\"") >&5
2831 echo "$as_me:2831: \$? = $ac_status" >&5
2832 (exit $ac_status); }; }; then
2835 echo "$as_me: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2839 rm -f conftest.$ac_objext conftest.$ac_ext
2841 echo "$as_me:2841: result: $ac_cv_c_const" >&5
2842 echo "${ECHO_T}$ac_cv_c_const" >&6
2843 if test $ac_cv_c_const = no; then
2845 cat >>confdefs.h <<\EOF
2851 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2853 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2854 inttypes.h stdint.h unistd.h
2856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2857 echo "$as_me:2857: checking for $ac_header" >&5
2858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 cat >conftest.$ac_ext <<_ACEOF
2863 #line 2863 "configure"
2864 #include "confdefs.h"
2865 $ac_includes_default
2866 #include <$ac_header>
2868 rm -f conftest.$ac_objext
2869 if { (eval echo "$as_me:2869: \"$ac_compile\"") >&5
2870 (eval $ac_compile) 2>&5
2872 echo "$as_me:2872: \$? = $ac_status" >&5
2873 (exit $ac_status); } &&
2874 { ac_try='test -s conftest.$ac_objext'
2875 { (eval echo "$as_me:2875: \"$ac_try\"") >&5
2878 echo "$as_me:2878: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2880 eval "$as_ac_Header=yes"
2882 echo "$as_me: failed program was:" >&5
2883 cat conftest.$ac_ext >&5
2884 eval "$as_ac_Header=no"
2886 rm -f conftest.$ac_objext conftest.$ac_ext
2888 echo "$as_me:2888: result: `eval echo '${'$as_ac_Header'}'`" >&5
2889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2891 cat >>confdefs.h <<EOF
2892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2898 echo "$as_me:2898: checking for mode_t" >&5
2899 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
2900 if test "${ac_cv_type_mode_t+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 cat >conftest.$ac_ext <<_ACEOF
2904 #line 2904 "configure"
2905 #include "confdefs.h"
2906 $ac_includes_default
2912 if (sizeof (mode_t))
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:2919: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>&5
2922 echo "$as_me:2922: \$? = $ac_status" >&5
2923 (exit $ac_status); } &&
2924 { ac_try='test -s conftest.$ac_objext'
2925 { (eval echo "$as_me:2925: \"$ac_try\"") >&5
2928 echo "$as_me:2928: \$? = $ac_status" >&5
2929 (exit $ac_status); }; }; then
2930 ac_cv_type_mode_t=yes
2932 echo "$as_me: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2934 ac_cv_type_mode_t=no
2936 rm -f conftest.$ac_objext conftest.$ac_ext
2938 echo "$as_me:2938: result: $ac_cv_type_mode_t" >&5
2939 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
2940 if test $ac_cv_type_mode_t = yes; then
2944 cat >>confdefs.h <<EOF
2950 echo "$as_me:2950: checking for off_t" >&5
2951 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2952 if test "${ac_cv_type_off_t+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 cat >conftest.$ac_ext <<_ACEOF
2956 #line 2956 "configure"
2957 #include "confdefs.h"
2958 $ac_includes_default
2970 rm -f conftest.$ac_objext
2971 if { (eval echo "$as_me:2971: \"$ac_compile\"") >&5
2972 (eval $ac_compile) 2>&5
2974 echo "$as_me:2974: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (eval echo "$as_me:2977: \"$ac_try\"") >&5
2980 echo "$as_me:2980: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 ac_cv_type_off_t=yes
2984 echo "$as_me: failed program was:" >&5
2985 cat conftest.$ac_ext >&5
2988 rm -f conftest.$ac_objext conftest.$ac_ext
2990 echo "$as_me:2990: result: $ac_cv_type_off_t" >&5
2991 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2992 if test $ac_cv_type_off_t = yes; then
2996 cat >>confdefs.h <<EOF
3002 echo "$as_me:3002: checking for pid_t" >&5
3003 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3004 if test "${ac_cv_type_pid_t+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 cat >conftest.$ac_ext <<_ACEOF
3008 #line 3008 "configure"
3009 #include "confdefs.h"
3010 $ac_includes_default
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:3023: \"$ac_compile\"") >&5
3024 (eval $ac_compile) 2>&5
3026 echo "$as_me:3026: \$? = $ac_status" >&5
3027 (exit $ac_status); } &&
3028 { ac_try='test -s conftest.$ac_objext'
3029 { (eval echo "$as_me:3029: \"$ac_try\"") >&5
3032 echo "$as_me:3032: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3034 ac_cv_type_pid_t=yes
3036 echo "$as_me: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3040 rm -f conftest.$ac_objext conftest.$ac_ext
3042 echo "$as_me:3042: result: $ac_cv_type_pid_t" >&5
3043 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3044 if test $ac_cv_type_pid_t = yes; then
3048 cat >>confdefs.h <<EOF
3054 echo "$as_me:3054: checking for size_t" >&5
3055 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3056 if test "${ac_cv_type_size_t+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 cat >conftest.$ac_ext <<_ACEOF
3060 #line 3060 "configure"
3061 #include "confdefs.h"
3062 $ac_includes_default
3068 if (sizeof (size_t))
3074 rm -f conftest.$ac_objext
3075 if { (eval echo "$as_me:3075: \"$ac_compile\"") >&5
3076 (eval $ac_compile) 2>&5
3078 echo "$as_me:3078: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (eval echo "$as_me:3081: \"$ac_try\"") >&5
3084 echo "$as_me:3084: \$? = $ac_status" >&5
3085 (exit $ac_status); }; }; then
3086 ac_cv_type_size_t=yes
3088 echo "$as_me: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3090 ac_cv_type_size_t=no
3092 rm -f conftest.$ac_objext conftest.$ac_ext
3094 echo "$as_me:3094: result: $ac_cv_type_size_t" >&5
3095 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3096 if test $ac_cv_type_size_t = yes; then
3100 cat >>confdefs.h <<EOF
3101 #define size_t unsigned
3106 echo "$as_me:3106: checking whether struct tm is in sys/time.h or time.h" >&5
3107 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3108 if test "${ac_cv_struct_tm+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 cat >conftest.$ac_ext <<_ACEOF
3112 #line 3112 "configure"
3113 #include "confdefs.h"
3114 #include <sys/types.h>
3120 struct tm *tp; tp->tm_sec;
3125 rm -f conftest.$ac_objext
3126 if { (eval echo "$as_me:3126: \"$ac_compile\"") >&5
3127 (eval $ac_compile) 2>&5
3129 echo "$as_me:3129: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -s conftest.$ac_objext'
3132 { (eval echo "$as_me:3132: \"$ac_try\"") >&5
3135 echo "$as_me:3135: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3137 ac_cv_struct_tm=time.h
3139 echo "$as_me: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3141 ac_cv_struct_tm=sys/time.h
3143 rm -f conftest.$ac_objext conftest.$ac_ext
3145 echo "$as_me:3145: result: $ac_cv_struct_tm" >&5
3146 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3147 if test $ac_cv_struct_tm = sys/time.h; then
3149 cat >>confdefs.h <<\EOF
3150 #define TM_IN_SYS_TIME 1
3155 if test x"$FSED_CPM" != x""; then
3156 FSED_CPM="$FSED_CPM$EXEEXT"
3159 echo "$as_me:3159: checking for working memcmp" >&5
3160 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3161 if test "${ac_cv_func_memcmp_working+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 if test "$cross_compiling" = yes; then
3165 ac_cv_func_memcmp_working=no
3167 cat >conftest.$ac_ext <<_ACEOF
3168 #line 3168 "configure"
3169 #include "confdefs.h"
3175 /* Some versions of memcmp are not 8-bit clean. */
3176 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3177 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3180 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3181 or more and with at least one buffer not starting on a 4-byte boundary.
3182 William Lewis provided this test program. */
3187 for (i = 0; i < 4; i++)
3191 strcpy (a, "--------01111111");
3192 strcpy (b, "--------10000000");
3193 if (memcmp (a, b, 16) >= 0)
3203 rm -f conftest$ac_exeext
3204 if { (eval echo "$as_me:3204: \"$ac_link\"") >&5
3205 (eval $ac_link) 2>&5
3207 echo "$as_me:3207: \$? = $ac_status" >&5
3208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3209 { (eval echo "$as_me:3209: \"$ac_try\"") >&5
3212 echo "$as_me:3212: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3214 ac_cv_func_memcmp_working=yes
3216 echo "$as_me: program exited with status $ac_status" >&5
3217 echo "$as_me: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3219 ac_cv_func_memcmp_working=no
3221 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3224 echo "$as_me:3224: result: $ac_cv_func_memcmp_working" >&5
3225 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
3226 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
3228 for ac_func in strftime
3230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3231 echo "$as_me:3231: checking for $ac_func" >&5
3232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3233 if eval "test \"\${$as_ac_var+set}\" = set"; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 cat >conftest.$ac_ext <<_ACEOF
3237 #line 3237 "configure"
3238 #include "confdefs.h"
3239 /* System header to define __stub macros and hopefully few prototypes,
3240 which can conflict with char $ac_func (); below. */
3242 /* Override any gcc2 internal prototype to avoid an error. */
3246 /* We use char because int might match the return type of a gcc2
3247 builtin and then its argument prototype would still apply. */
3254 /* The GNU C library defines this for functions which it implements
3255 to always fail with ENOSYS. Some functions are actually named
3256 something starting with __ and the normal name is an alias. */
3257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3267 rm -f conftest.$ac_objext conftest$ac_exeext
3268 if { (eval echo "$as_me:3268: \"$ac_link\"") >&5
3269 (eval $ac_link) 2>&5
3271 echo "$as_me:3271: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -s conftest$ac_exeext'
3274 { (eval echo "$as_me:3274: \"$ac_try\"") >&5
3277 echo "$as_me:3277: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 eval "$as_ac_var=yes"
3281 echo "$as_me: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3283 eval "$as_ac_var=no"
3285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3287 echo "$as_me:3287: result: `eval echo '${'$as_ac_var'}'`" >&5
3288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3289 if test `eval echo '${'$as_ac_var'}'` = yes; then
3290 cat >>confdefs.h <<EOF
3291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3295 # strftime is in -lintl on SCO UNIX.
3296 echo "$as_me:3296: checking for strftime in -lintl" >&5
3297 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
3298 if test "${ac_cv_lib_intl_strftime+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 ac_check_lib_save_LIBS=$LIBS
3303 cat >conftest.$ac_ext <<_ACEOF
3304 #line 3304 "configure"
3305 #include "confdefs.h"
3307 /* Override any gcc2 internal prototype to avoid an error. */
3311 /* We use char because int might match the return type of a gcc2
3312 builtin and then its argument prototype would still apply. */
3322 rm -f conftest.$ac_objext conftest$ac_exeext
3323 if { (eval echo "$as_me:3323: \"$ac_link\"") >&5
3324 (eval $ac_link) 2>&5
3326 echo "$as_me:3326: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -s conftest$ac_exeext'
3329 { (eval echo "$as_me:3329: \"$ac_try\"") >&5
3332 echo "$as_me:3332: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_cv_lib_intl_strftime=yes
3336 echo "$as_me: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3338 ac_cv_lib_intl_strftime=no
3340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3341 LIBS=$ac_check_lib_save_LIBS
3343 echo "$as_me:3343: result: $ac_cv_lib_intl_strftime" >&5
3344 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
3345 if test $ac_cv_lib_intl_strftime = yes; then
3346 cat >>confdefs.h <<\EOF
3347 #define HAVE_STRFTIME 1
3356 for ac_func in mktime strerror
3358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3359 echo "$as_me:3359: checking for $ac_func" >&5
3360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3361 if eval "test \"\${$as_ac_var+set}\" = set"; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 cat >conftest.$ac_ext <<_ACEOF
3365 #line 3365 "configure"
3366 #include "confdefs.h"
3367 /* System header to define __stub macros and hopefully few prototypes,
3368 which can conflict with char $ac_func (); below. */
3370 /* Override any gcc2 internal prototype to avoid an error. */
3374 /* We use char because int might match the return type of a gcc2
3375 builtin and then its argument prototype would still apply. */
3382 /* The GNU C library defines this for functions which it implements
3383 to always fail with ENOSYS. Some functions are actually named
3384 something starting with __ and the normal name is an alias. */
3385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3395 rm -f conftest.$ac_objext conftest$ac_exeext
3396 if { (eval echo "$as_me:3396: \"$ac_link\"") >&5
3397 (eval $ac_link) 2>&5
3399 echo "$as_me:3399: \$? = $ac_status" >&5
3400 (exit $ac_status); } &&
3401 { ac_try='test -s conftest$ac_exeext'
3402 { (eval echo "$as_me:3402: \"$ac_try\"") >&5
3405 echo "$as_me:3405: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3407 eval "$as_ac_var=yes"
3409 echo "$as_me: failed program was:" >&5
3410 cat conftest.$ac_ext >&5
3411 eval "$as_ac_var=no"
3413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3415 echo "$as_me:3415: result: `eval echo '${'$as_ac_var'}'`" >&5
3416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3417 if test `eval echo '${'$as_ac_var'}'` = yes; then
3418 cat >>confdefs.h <<EOF
3419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3425 eval DATADIR=$datadir
3427 ac_config_files="$ac_config_files Makefile cpm.5 cpmchattr.1 cpmchmod.1 cpmcp.1 cpmls.1 cpmrm.1 fsck.cpm.1 fsed.cpm.1 mkfs.cpm.1"
3428 cat >confcache <<\_ACEOF
3429 # This file is a shell script that caches the results of configure
3430 # tests run on this system so they can be shared between configure
3431 # scripts and configure runs, see configure's option --config-cache.
3432 # It is not useful on other systems. If it contains results you don't
3433 # want to keep, you may remove or edit it.
3435 # config.status only pays attention to the cache file if you give it
3436 # the --recheck option to rerun configure.
3438 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3444 # The following way of writing the cache mishandles newlines in values,
3445 # but we know of no workaround that is simple, portable, and efficient.
3446 # So, don't put newlines in cache variables' values.
3447 # Ultrix sh set writes to stderr and can't be redirected directly,
3448 # and sets the high bit in the cache file unless we assign to the vars.
3451 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3453 # `set' does not quote correctly, so add quotes (double-quote
3454 # substitution turns \\\\ into \\, and sed turns \\ into \).
3457 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3460 # `set' quotes correctly as required by POSIX, so do not add quotes.
3462 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3469 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3471 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3473 if cmp -s $cache_file confcache; then :; else
3474 if test -w $cache_file; then
3475 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3476 cat confcache >$cache_file
3478 echo "not updating unwritable cache $cache_file"
3483 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3484 # Let make expand exec_prefix.
3485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3487 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3488 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3489 # trailing colons and then remove the whole line if VPATH becomes empty
3490 # (actually we leave an empty line to preserve line numbers).
3491 if test "x$srcdir" = x.; then
3492 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3493 s/:*\$(srcdir):*/:/;
3494 s/:*\${srcdir}:*/:/;
3496 s/^\([^=]*=[ ]*\):*/\1/;
3502 DEFS=-DHAVE_CONFIG_H
3504 : ${CONFIG_STATUS=./config.status}
3505 ac_clean_files_save=$ac_clean_files
3506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3507 { echo "$as_me:3507: creating $CONFIG_STATUS" >&5
3508 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3509 cat >$CONFIG_STATUS <<_ACEOF
3511 # Generated automatically by configure.
3512 # Run this file to recreate the current configuration.
3513 # Compiler output produced by configure, useful for debugging
3514 # configure, is in config.log if it exists.
3517 SHELL=\${CONFIG_SHELL-$SHELL}
3518 ac_cs_invocation="\$0 \$@"
3522 cat >>$CONFIG_STATUS <<\_ACEOF
3523 # Be Bourne compatible
3524 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3527 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3531 # Name of the executable.
3532 as_me=`echo "$0" |sed 's,.*[\\/],,'`
3534 if expr a : '\(a\)' >/dev/null 2>&1; then
3540 rm -f conf$$ conf$$.exe conf$$.file
3542 if ln -s conf$$.file conf$$ 2>/dev/null; then
3543 # We could just check for DJGPP; but this test a) works b) is more generic
3544 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3545 if test -f conf$$.exe; then
3546 # Don't use ln at all; we don't have any links
3551 elif ln conf$$.file conf$$ 2>/dev/null; then
3556 rm -f conf$$ conf$$.exe conf$$.file
3558 as_executable_p="test -f"
3560 # Support unset when possible.
3561 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3568 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3569 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3570 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3571 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3572 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3573 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3574 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3575 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3578 # We need space, tab and new line, in precisely that order.
3584 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3590 # Files that config.status was made for.
3591 if test -n "$ac_config_files"; then
3592 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3595 if test -n "$ac_config_headers"; then
3596 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3599 if test -n "$ac_config_links"; then
3600 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3603 if test -n "$ac_config_commands"; then
3604 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3607 cat >>$CONFIG_STATUS <<\EOF
3610 \`$as_me' instantiates files from templates according to the
3611 current configuration.
3613 Usage: $0 [OPTIONS] [FILE]...
3615 -h, --help print this help, then exit
3616 -V, --version print version number, then exit
3617 -d, --debug don't remove temporary files
3618 --recheck update $as_me by reconfiguring in the same conditions
3619 --file=FILE[:TEMPLATE]
3620 instantiate the configuration file FILE
3621 --header=FILE[:TEMPLATE]
3622 instantiate the configuration header FILE
3624 Configuration files:
3627 Configuration headers:
3630 Report bugs to <bug-autoconf@gnu.org>."
3633 cat >>$CONFIG_STATUS <<EOF
3636 configured by $0, generated by GNU Autoconf 2.52,
3637 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3639 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3640 Free Software Foundation, Inc.
3641 This config.status script is free software; the Free Software Foundation
3642 gives unlimited permission to copy, distribute and modify it."
3647 cat >>$CONFIG_STATUS <<\EOF
3648 # If no file are specified by the user, then we need to provide default
3649 # value. By we need to know if files were specified by the user.
3655 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3656 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3658 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3662 *) # This is not an option, so the user has probably given explicit
3664 ac_need_defaults=false;;
3668 # Handling of the options.
3670 cat >>$CONFIG_STATUS <<EOF
3671 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3672 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3673 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3675 cat >>$CONFIG_STATUS <<\EOF
3676 --version | --vers* | -V )
3677 echo "$ac_cs_version"; exit 0 ;;
3679 # Conflict between --help and --header
3680 { { echo "$as_me:3680: error: ambiguous option: $1
3681 Try \`$0 --help' for more information." >&5
3682 echo "$as_me: error: ambiguous option: $1
3683 Try \`$0 --help' for more information." >&2;}
3684 { (exit 1); exit 1; }; };;
3685 --help | --hel | -h )
3686 echo "$ac_cs_usage"; exit 0 ;;
3687 --debug | --d* | -d )
3689 --file | --fil | --fi | --f )
3691 CONFIG_FILES="$CONFIG_FILES $1"
3692 ac_need_defaults=false;;
3693 --header | --heade | --head | --hea )
3695 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3696 ac_need_defaults=false;;
3699 -*) { { echo "$as_me:3699: error: unrecognized option: $1
3700 Try \`$0 --help' for more information." >&5
3701 echo "$as_me: error: unrecognized option: $1
3702 Try \`$0 --help' for more information." >&2;}
3703 { (exit 1); exit 1; }; } ;;
3705 *) ac_config_targets="$ac_config_targets $1" ;;
3714 ## ----------------------- ##
3715 ## Running config.status. ##
3716 ## ----------------------- ##
3718 This file was extended by $as_me 2.52, executed with
3719 CONFIG_FILES = $CONFIG_FILES
3720 CONFIG_HEADERS = $CONFIG_HEADERS
3721 CONFIG_LINKS = $CONFIG_LINKS
3722 CONFIG_COMMANDS = $CONFIG_COMMANDS
3724 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3729 cat >>$CONFIG_STATUS <<\EOF
3730 for ac_config_target in $ac_config_targets
3732 case "$ac_config_target" in
3733 # Handling of arguments.
3734 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3735 "cpm.5" ) CONFIG_FILES="$CONFIG_FILES cpm.5" ;;
3736 "cpmchattr.1" ) CONFIG_FILES="$CONFIG_FILES cpmchattr.1" ;;
3737 "cpmchmod.1" ) CONFIG_FILES="$CONFIG_FILES cpmchmod.1" ;;
3738 "cpmcp.1" ) CONFIG_FILES="$CONFIG_FILES cpmcp.1" ;;
3739 "cpmls.1" ) CONFIG_FILES="$CONFIG_FILES cpmls.1" ;;
3740 "cpmrm.1" ) CONFIG_FILES="$CONFIG_FILES cpmrm.1" ;;
3741 "fsck.cpm.1" ) CONFIG_FILES="$CONFIG_FILES fsck.cpm.1" ;;
3742 "fsed.cpm.1" ) CONFIG_FILES="$CONFIG_FILES fsed.cpm.1" ;;
3743 "mkfs.cpm.1" ) CONFIG_FILES="$CONFIG_FILES mkfs.cpm.1" ;;
3744 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3745 *) { { echo "$as_me:3745: error: invalid argument: $ac_config_target" >&5
3746 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3747 { (exit 1); exit 1; }; };;
3751 # If the user did not use the arguments to specify the items to instantiate,
3752 # then the envvar interface is used. Set only those that are not.
3753 # We use the long form for the default assignment because of an extremely
3754 # bizarre bug on SunOS 4.1.3.
3755 if $ac_need_defaults; then
3756 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3757 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3760 # Create a temporary directory, and hook for its removal unless debugging.
3763 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3764 trap '{ (exit 1); exit 1; }' 1 2 13 15
3767 # Create a (secure) tmp directory for tmp files.
3770 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3771 test -n "$tmp" && test -d "$tmp"
3774 tmp=$TMPDIR/cs$$-$RANDOM
3775 (umask 077 && mkdir $tmp)
3778 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3779 { (exit 1); exit 1; }
3784 cat >>$CONFIG_STATUS <<EOF
3787 # CONFIG_FILES section.
3790 # No need to generate the scripts if there are no CONFIG_FILES.
3791 # This happens for instance when ./config.status config.h
3792 if test -n "\$CONFIG_FILES"; then
3793 # Protect against being on the right side of a sed subst in config.status.
3794 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3795 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3796 s,@SHELL@,$SHELL,;t t
3797 s,@exec_prefix@,$exec_prefix,;t t
3798 s,@prefix@,$prefix,;t t
3799 s,@program_transform_name@,$program_transform_name,;t t
3800 s,@bindir@,$bindir,;t t
3801 s,@sbindir@,$sbindir,;t t
3802 s,@libexecdir@,$libexecdir,;t t
3803 s,@datadir@,$datadir,;t t
3804 s,@sysconfdir@,$sysconfdir,;t t
3805 s,@sharedstatedir@,$sharedstatedir,;t t
3806 s,@localstatedir@,$localstatedir,;t t
3807 s,@libdir@,$libdir,;t t
3808 s,@includedir@,$includedir,;t t
3809 s,@oldincludedir@,$oldincludedir,;t t
3810 s,@infodir@,$infodir,;t t
3811 s,@mandir@,$mandir,;t t
3812 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3813 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3814 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3815 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3816 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3817 s,@build_alias@,$build_alias,;t t
3818 s,@host_alias@,$host_alias,;t t
3819 s,@target_alias@,$target_alias,;t t
3820 s,@ECHO_C@,$ECHO_C,;t t
3821 s,@ECHO_N@,$ECHO_N,;t t
3822 s,@ECHO_T@,$ECHO_T,;t t
3823 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3826 s,@build@,$build,;t t
3827 s,@build_cpu@,$build_cpu,;t t
3828 s,@build_vendor@,$build_vendor,;t t
3829 s,@build_os@,$build_os,;t t
3831 s,@host_cpu@,$host_cpu,;t t
3832 s,@host_vendor@,$host_vendor,;t t
3833 s,@host_os@,$host_os,;t t
3835 s,@CFLAGS@,$CFLAGS,;t t
3836 s,@LDFLAGS@,$LDFLAGS,;t t
3837 s,@CPPFLAGS@,$CPPFLAGS,;t t
3838 s,@ac_ct_CC@,$ac_ct_CC,;t t
3839 s,@EXEEXT@,$EXEEXT,;t t
3840 s,@OBJEXT@,$OBJEXT,;t t
3841 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3842 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3843 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3845 s,@LIBOBJS@,$LIBOBJS,;t t
3846 s,@LDLIBS@,$LDLIBS,;t t
3847 s,@LDDEPS@,$LDDEPS,;t t
3848 s,@DEVICE@,$DEVICE,;t t
3849 s,@DATADIR@,$DATADIR,;t t
3850 s,@DISKDEFS@,$DISKDEFS,;t t
3851 s,@DEFFORMAT@,$DEFFORMAT,;t t
3852 s,@FSED_CPM@,$FSED_CPM,;t t
3853 s,@UPDATED@,$UPDATED,;t t
3858 cat >>$CONFIG_STATUS <<\EOF
3859 # Split the substitutions into bite-sized pieces for seds with
3860 # small command number limits, like on Digital OSF/1 and HP-UX.
3862 ac_sed_frag=1 # Number of current file.
3863 ac_beg=1 # First line for current file.
3864 ac_end=$ac_max_sed_lines # Line after last line for current file.
3867 while $ac_more_lines; do
3868 if test $ac_beg -gt 1; then
3869 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3871 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3873 if test ! -s $tmp/subs.frag; then
3876 # The purpose of the label and of the branching condition is to
3877 # speed up the sed processing (if there are no `@' at all, there
3878 # is no need to browse any of the substitutions).
3879 # These are the two extra sed commands mentioned above.
3881 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3882 if test -z "$ac_sed_cmds"; then
3883 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3885 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3887 ac_sed_frag=`expr $ac_sed_frag + 1`
3889 ac_end=`expr $ac_end + $ac_max_sed_lines`
3892 if test -z "$ac_sed_cmds"; then
3895 fi # test -n "$CONFIG_FILES"
3898 cat >>$CONFIG_STATUS <<\EOF
3899 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3900 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3902 - | *:- | *:-:* ) # input from stdin
3904 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3905 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3906 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3907 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3908 * ) ac_file_in=$ac_file.in ;;
3911 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3912 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3913 X"$ac_file" : 'X\(//\)[^/]' \| \
3914 X"$ac_file" : 'X\(//\)$' \| \
3915 X"$ac_file" : 'X\(/\)' \| \
3916 . : '\(.\)' 2>/dev/null ||
3918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3919 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3920 /^X\(\/\/\)$/{ s//\1/; q; }
3921 /^X\(\/\).*/{ s//\1/; q; }
3923 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3925 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3929 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3930 case $as_mkdir_dir in
3931 # Skip DOS drivespec
3932 ?:) as_incr_dir=$as_mkdir_dir ;;
3934 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3935 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3940 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3941 # A "../" for each directory in $ac_dir_suffix.
3942 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3944 ac_dir_suffix= ac_dots=
3949 if test -z "$ac_dots"; then
3952 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3955 ac_srcdir=$srcdir$ac_dir_suffix;
3956 ac_top_srcdir=$srcdir ;;
3958 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3959 ac_top_srcdir=$ac_dots$srcdir ;;
3963 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3964 *) ac_INSTALL=$ac_dots$INSTALL ;;
3967 if test x"$ac_file" != x-; then
3968 { echo "$as_me:3968: creating $ac_file" >&5
3969 echo "$as_me: creating $ac_file" >&6;}
3972 # Let's still pretend it is `configure' which instantiates (i.e., don't
3973 # use $as_me), people would be surprised to read:
3974 # /* config.h. Generated automatically by config.status. */
3975 configure_input="Generated automatically from `echo $ac_file_in |
3976 sed 's,.*/,,'` by configure."
3978 # First look for the input files in the build tree, otherwise in the
3980 ac_file_inputs=`IFS=:
3981 for f in $ac_file_in; do
3983 -) echo $tmp/stdin ;;
3985 # Absolute (can't be DOS-style, as IFS=:)
3986 test -f "$f" || { { echo "$as_me:3986: error: cannot find input file: $f" >&5
3987 echo "$as_me: error: cannot find input file: $f" >&2;}
3988 { (exit 1); exit 1; }; }
3991 if test -f "$f"; then
3994 elif test -f "$srcdir/$f"; then
3999 { { echo "$as_me:3999: error: cannot find input file: $f" >&5
4000 echo "$as_me: error: cannot find input file: $f" >&2;}
4001 { (exit 1); exit 1; }; }
4004 done` || { (exit 1); exit 1; }
4006 cat >>$CONFIG_STATUS <<EOF
4010 cat >>$CONFIG_STATUS <<\EOF
4012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4013 s,@configure_input@,$configure_input,;t t
4014 s,@srcdir@,$ac_srcdir,;t t
4015 s,@top_srcdir@,$ac_top_srcdir,;t t
4016 s,@INSTALL@,$ac_INSTALL,;t t
4017 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4019 if test x"$ac_file" != x-; then
4020 mv $tmp/out $ac_file
4028 cat >>$CONFIG_STATUS <<\EOF
4031 # CONFIG_HEADER section.
4034 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4035 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4037 # ac_d sets the value in "#define NAME VALUE" lines.
4038 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4039 ac_dB='[ ].*$,\1#\2'
4042 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4043 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4044 ac_uB='$,\1#\2define\3'
4048 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4049 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4051 - | *:- | *:-:* ) # input from stdin
4053 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4054 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4055 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4056 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4057 * ) ac_file_in=$ac_file.in ;;
4060 test x"$ac_file" != x- && { echo "$as_me:4060: creating $ac_file" >&5
4061 echo "$as_me: creating $ac_file" >&6;}
4063 # First look for the input files in the build tree, otherwise in the
4065 ac_file_inputs=`IFS=:
4066 for f in $ac_file_in; do
4068 -) echo $tmp/stdin ;;
4070 # Absolute (can't be DOS-style, as IFS=:)
4071 test -f "$f" || { { echo "$as_me:4071: error: cannot find input file: $f" >&5
4072 echo "$as_me: error: cannot find input file: $f" >&2;}
4073 { (exit 1); exit 1; }; }
4076 if test -f "$f"; then
4079 elif test -f "$srcdir/$f"; then
4084 { { echo "$as_me:4084: error: cannot find input file: $f" >&5
4085 echo "$as_me: error: cannot find input file: $f" >&2;}
4086 { (exit 1); exit 1; }; }
4089 done` || { (exit 1); exit 1; }
4090 # Remove the trailing spaces.
4091 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4095 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4096 # `conftest.undefs', that substitutes the proper values into
4097 # config.h.in to produce config.h. The first handles `#define'
4098 # templates, and the second `#undef' templates.
4099 # And first: Protect against being on the right side of a sed subst in
4100 # config.status. Protect against being in an unquoted here document
4102 rm -f conftest.defines conftest.undefs
4103 # Using a here document instead of a string reduces the quoting nightmare.
4104 # Putting comments in sed scripts is not portable.
4106 # `end' is used to avoid that the second main sed command (meant for
4107 # 0-ary CPP macros) applies to n-ary macro definitions.
4108 # See the Autoconf documentation for `clear'.
4109 cat >confdef2sed.sed <<\EOF
4114 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
4116 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4119 # If some macros were called several times there might be several times
4120 # the same #defines, which is useless. Nevertheless, we may not want to
4121 # sort them, since we want the *last* AC-DEFINE to be honored.
4122 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4123 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4124 rm -f confdef2sed.sed
4126 # This sed command replaces #undef with comments. This is necessary, for
4127 # example, in the case of _POSIX_SOURCE, which is predefined and required
4128 # on some systems where configure will not decide to define it.
4129 cat >>conftest.undefs <<\EOF
4130 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4133 # Break up conftest.defines because some shells have a limit on the size
4134 # of here documents, and old seds have small limits too (100 cmds).
4135 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4136 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4137 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4138 echo ' :' >>$CONFIG_STATUS
4140 while grep . conftest.defines >/dev/null
4142 # Write a limited-size here document to $tmp/defines.sed.
4143 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4144 # Speed up: don't consider the non `#define' lines.
4145 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4146 # Work around the forget-to-reset-the-flag bug.
4147 echo 't clr' >>$CONFIG_STATUS
4148 echo ': clr' >>$CONFIG_STATUS
4149 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4151 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4155 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4156 rm -f conftest.defines
4157 mv conftest.tail conftest.defines
4159 rm -f conftest.defines
4160 echo ' fi # egrep' >>$CONFIG_STATUS
4161 echo >>$CONFIG_STATUS
4163 # Break up conftest.undefs because some shells have a limit on the size
4164 # of here documents, and old seds have small limits too (100 cmds).
4165 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4167 while grep . conftest.undefs >/dev/null
4169 # Write a limited-size here document to $tmp/undefs.sed.
4170 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4171 # Speed up: don't consider the non `#undef'
4172 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4173 # Work around the forget-to-reset-the-flag bug.
4174 echo 't clr' >>$CONFIG_STATUS
4175 echo ': clr' >>$CONFIG_STATUS
4176 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4178 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4182 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4183 rm -f conftest.undefs
4184 mv conftest.tail conftest.undefs
4186 rm -f conftest.undefs
4188 cat >>$CONFIG_STATUS <<\EOF
4189 # Let's still pretend it is `configure' which instantiates (i.e., don't
4190 # use $as_me), people would be surprised to read:
4191 # /* config.h. Generated automatically by config.status. */
4192 if test x"$ac_file" = x-; then
4193 echo "/* Generated automatically by configure. */" >$tmp/config.h
4195 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
4197 cat $tmp/in >>$tmp/config.h
4199 if test x"$ac_file" != x-; then
4200 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4201 { echo "$as_me:4201: $ac_file is unchanged" >&5
4202 echo "$as_me: $ac_file is unchanged" >&6;}
4204 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4205 X"$ac_file" : 'X\(//\)[^/]' \| \
4206 X"$ac_file" : 'X\(//\)$' \| \
4207 X"$ac_file" : 'X\(/\)' \| \
4208 . : '\(.\)' 2>/dev/null ||
4210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4212 /^X\(\/\/\)$/{ s//\1/; q; }
4213 /^X\(\/\).*/{ s//\1/; q; }
4215 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4217 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4221 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4222 case $as_mkdir_dir in
4223 # Skip DOS drivespec
4224 ?:) as_incr_dir=$as_mkdir_dir ;;
4226 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4227 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4234 mv $tmp/config.h $ac_file
4243 cat >>$CONFIG_STATUS <<\EOF
4245 { (exit 0); exit 0; }
4247 chmod +x $CONFIG_STATUS
4248 ac_clean_files=$ac_clean_files_save
4250 # configure is writing to config.log, and then calls config.status.
4251 # config.status does its own redirection, appending to config.log.
4252 # Unfortunately, on DOS this fails, as config.log is still kept open
4253 # by configure, so config.status won't be able to write to it; its
4254 # output is simply discarded. So we exec the FD to /dev/null,
4255 # effectively closing config.log, so it can be properly (re)opened and
4256 # appended to by config.status. When coming back to configure, we
4257 # need to make the FD available again.
4258 if test "$no_create" != yes; then
4261 $SHELL $CONFIG_STATUS || ac_cs_success=false
4263 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4264 # would make configure fail if this is the last instruction.
4265 $ac_cs_success || { (exit 1); exit 1; }