2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.57 for libtar 1.2.11.
5 @%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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.
11 @%:@ Copyright (c) 1998-2003 University of Illinois Board of Trustees
12 @%:@ Copyright (c) 1998-2003 Mark D. Roth
13 @%:@ All rights reserved.
15 ## --------------------- ##
16 ## M4sh Initialization. ##
17 ## --------------------- ##
19 # Be Bourne compatible
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
38 # Work around bugs in pre-3.0 UWIN ksh.
39 $as_unset ENV MAIL MAILPATH
46 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
47 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
51 eval $as_var=C; export $as_var
57 # Required to use basename.
58 if expr a : '\(a\)' >/dev/null 2>&1; then
64 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
71 # Name of the executable.
72 as_me=`$as_basename "$0" ||
73 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74 X"$0" : 'X\(//\)$' \| \
75 X"$0" : 'X\(/\)$' \| \
76 . : '\(.\)' 2>/dev/null ||
78 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
79 /^X\/\(\/\/\)$/{ s//\1/; q; }
80 /^X\/\(\/\).*/{ s//\1/; q; }
84 # PATH needs CR, and LINENO needs CR and PATH.
85 # Avoid depending upon Character Ranges.
86 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
87 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
88 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
89 as_cr_digits='0123456789'
90 as_cr_alnum=$as_cr_Letters$as_cr_digits
92 # The user is always right.
93 if test "${PATH_SEPARATOR+set}" != set; then
94 echo "#! /bin/sh" >conf$$.sh
95 echo "exit 0" >>conf$$.sh
97 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
108 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
109 test "x$as_lineno_1" != "x$as_lineno_2" &&
110 test "x$as_lineno_3" = "x$as_lineno_2" || {
111 # Find who we are. Look in the path if we contain no path at all
114 *[\\/]* ) as_myself=$0 ;;
115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119 test -z "$as_dir" && as_dir=.
120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
125 # We did not find ourselves, most probably we were run as `sh COMMAND'
126 # in which case we are not to be found in the path.
127 if test "x$as_myself" = x; then
130 if test ! -f "$as_myself"; then
131 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
132 { (exit 1); exit 1; }; }
134 case $CONFIG_SHELL in
136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
137 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140 test -z "$as_dir" && as_dir=.
141 for as_base in sh bash ksh sh5; do
144 if ("$as_dir/$as_base" -c '
147 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
148 test "x$as_lineno_1" != "x$as_lineno_2" &&
149 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
150 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
151 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
152 CONFIG_SHELL=$as_dir/$as_base
154 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
162 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
163 # uniformly replaced by the line number. The first 'sed' inserts a
164 # line-number line before each line; the second 'sed' does the real
165 # work. The second script uses 'N' to pair each line-number line
166 # with the numbered line, and appends trailing '-' during
167 # substitution so that $LINENO is not a special case at line end.
168 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
169 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
170 sed '=' <$as_myself |
175 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178 s,^['$as_cr_digits']*\n,,
180 chmod +x $as_me.lineno ||
181 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
182 { (exit 1); exit 1; }; }
184 # Don't try to exec as it changes $[0], causing all sort of problems
185 # (the dirname of $[0] is not the place where we might find the
186 # original and so on. Autoconf is especially sensible to this).
188 # Exit status is that of the last command.
193 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
194 *c*,-n*) ECHO_N= ECHO_C='
196 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
197 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
200 if expr a : '\(a\)' >/dev/null 2>&1; then
206 rm -f conf$$ conf$$.exe conf$$.file
208 if ln -s conf$$.file conf$$ 2>/dev/null; then
209 # We could just check for DJGPP; but this test a) works b) is more generic
210 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
211 if test -f conf$$.exe; then
212 # Don't use ln at all; we don't have any links
217 elif ln conf$$.file conf$$ 2>/dev/null; then
222 rm -f conf$$ conf$$.exe conf$$.file
224 if mkdir -p . 2>/dev/null; then
230 as_executable_p="test -f"
232 # Sed expression to map a string onto a valid CPP name.
233 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
235 # Sed expression to map a string onto a valid variable name.
236 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
240 # We need space, tab and new line, in precisely that order.
250 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
251 # so uname gets run too.
252 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
259 ac_default_prefix=/usr/local
260 ac_config_libobj_dir=.
265 SHELL=${CONFIG_SHELL-/bin/sh}
267 # Maximum number of lines to put in a shell here document.
268 # This variable seems obsolete. It should probably be removed, and
269 # only ac_max_sed_lines should be used.
270 : ${ac_max_here_lines=38}
272 # Identity of this package.
273 PACKAGE_NAME='libtar'
274 PACKAGE_TARNAME='libtar'
275 PACKAGE_VERSION='1.2.11'
276 PACKAGE_STRING='libtar 1.2.11'
279 ac_unique_file="lib/libtar.h"
280 # Factoring default headers for most tests.
281 ac_includes_default="\
284 # include <sys/types.h>
287 # include <sys/stat.h>
298 # if !STDC_HEADERS && HAVE_MEMORY_H
304 # include <strings.h>
307 # include <inttypes.h>
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS EPKG MKENCAP ENCAP_DEFS ENCAP_INSTALL_RULES ENCAP_INSTALL_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LIB@&t@OBJS LISTHASH_PREFIX LISTHASH_DIR MKDIR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE CPP EGREP LTLIBOBJS'
320 # Initialize some variables set by options.
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
332 program_transform_name=s,x,x,
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
392 cache_file=config.cache ;;
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 datadir=$ac_optarg ;;
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
435 -help | --help | --hel | --he | -h)
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
459 -libdir | --libdir | --libdi | --libd)
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486 # Obsolete; use --without-fp.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 sbindir=$ac_optarg ;;
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 sharedstatedir=$ac_optarg ;;
563 -site | --site | --sit)
565 -site=* | --site=* | --sit=*)
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
588 -version | --version | --versio | --versi | --vers | -V)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
614 # Obsolete; use --with-x.
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
666 eval ac_val=$`echo $ac_var`
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val=$`echo $ac_var`
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707 test "$silent" = yes && exec 6>/dev/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
727 if test ! -r $srcdir/$ac_unique_file; then
731 ac_srcdir_defaulted=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
780 # Report the --help message.
782 if test "$ac_init_help" = "long"; then
783 # Omit some internal or obsolete options to make the list less imposing.
784 # This message is too long to be a string in the A/UX 3.1 sh.
786 \`configure' configures libtar 1.2.11 to adapt to many kinds of systems.
788 Usage: $0 [OPTION]... [VAR=VALUE]...
790 To assign environment variables (e.g., CC, CFLAGS...), specify them as
791 VAR=VALUE. See below for descriptions of some of the useful variables.
793 Defaults for the options are specified in brackets.
796 -h, --help display this help and exit
797 --help=short display options specific to this package
798 --help=recursive display the short help of all the included packages
799 -V, --version display version information and exit
800 -q, --quiet, --silent do not print \`checking...' messages
801 --cache-file=FILE cache test results in FILE [disabled]
802 -C, --config-cache alias for \`--cache-file=config.cache'
803 -n, --no-create do not create output files
804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 Installation directories:
810 --prefix=PREFIX install architecture-independent files in PREFIX
812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
815 By default, \`make install' will install all the files in
816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818 for instance \`--prefix=\$HOME'.
820 For better control, use the options below.
822 Fine tuning of the installation directories:
823 --bindir=DIR user executables [EPREFIX/bin]
824 --sbindir=DIR system admin executables [EPREFIX/sbin]
825 --libexecdir=DIR program executables [EPREFIX/libexec]
826 --datadir=DIR read-only architecture-independent data [PREFIX/share]
827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
830 --libdir=DIR object code libraries [EPREFIX/lib]
831 --includedir=DIR C header files [PREFIX/include]
832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
833 --infodir=DIR info documentation [PREFIX/info]
834 --mandir=DIR man documentation [PREFIX/man]
841 if test -n "$ac_init_help"; then
842 case $ac_init_help in
843 short | recursive ) echo "Configuration of libtar 1.2.11:";;
848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 --disable-encap Do not configure as an Encap package
851 --disable-epkg-install Do not run epkg during make install
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --without-zlib Use external gzip binary instead of zlib
858 Some influential environment variables:
859 CC C compiler command
860 CFLAGS C compiler flags
861 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
862 nonstandard directory <lib dir>
863 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
864 headers in a nonstandard directory <include dir>
867 Use these variables to override the choices made by `configure' or to help
868 it to find libraries and programs with nonstandard names/locations.
873 if test "$ac_init_help" = "recursive"; then
874 # If there are subdirs, report their specific --help.
876 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877 test -d $ac_dir || continue
880 if test "$ac_dir" != .; then
881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882 # A "../" for each directory in $ac_dir_suffix.
883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
885 ac_dir_suffix= ac_top_builddir=
889 .) # No --srcdir option. We are building in place.
891 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
896 [\\/]* | ?:[\\/]* ) # Absolute path.
897 ac_srcdir=$srcdir$ac_dir_suffix;
898 ac_top_srcdir=$srcdir ;;
900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
903 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
905 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
906 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
907 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
908 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
911 # Check for guested configure; otherwise get Cygnus style configure.
912 if test -f $ac_srcdir/configure.gnu; then
914 $SHELL $ac_srcdir/configure.gnu --help=recursive
915 elif test -f $ac_srcdir/configure; then
917 $SHELL $ac_srcdir/configure --help=recursive
918 elif test -f $ac_srcdir/configure.ac ||
919 test -f $ac_srcdir/configure.in; then
923 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
929 test -n "$ac_init_help" && exit 0
930 if $ac_init_version; then
932 libtar configure 1.2.11
933 generated by GNU Autoconf 2.57
935 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation, Inc.
937 This configure script is free software; the Free Software Foundation
938 gives unlimited permission to copy, distribute and modify it.
941 Copyright (c) 1998-2003 University of Illinois Board of Trustees
942 Copyright (c) 1998-2003 Mark D. Roth
950 This file contains any messages produced by compilers while
951 running configure, to aid debugging if configure makes a mistake.
953 It was created by libtar $as_me 1.2.11, which was
954 generated by GNU Autoconf 2.57. Invocation command line was
961 @%:@@%:@ --------- @%:@@%:@
962 @%:@@%:@ Platform. @%:@@%:@
963 @%:@@%:@ --------- @%:@@%:@
965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
974 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
975 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
978 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
979 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
980 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
988 test -z "$as_dir" && as_dir=.
997 @%:@@%:@ ----------- @%:@@%:@
998 @%:@@%:@ Core tests. @%:@@%:@
999 @%:@@%:@ ----------- @%:@@%:@
1004 # Keep a trace of the command line.
1005 # Strip out --no-create and --no-recursion so they do not pile up.
1006 # Strip out --silent because we don't want to record it for future runs.
1007 # Also quote any args containing shell meta-characters.
1008 # Make two passes to allow for proper duplicate-argument suppression.
1013 ac_must_keep_next=false
1019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1023 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1024 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1027 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1029 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1030 if test $ac_must_keep_next = true; then
1031 ac_must_keep_next=false # Got value, back to normal.
1034 *=* | --config-cache | -C | -disable-* | --disable-* \
1035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1037 | -with-* | --with-* | -without-* | --without-* | --x)
1038 case "$ac_configure_args0 " in
1039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1042 -* ) ac_must_keep_next=true ;;
1045 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046 # Get rid of the leading space.
1052 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1053 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1055 # When interrupted or exit'd, cleanup temporary files, and complete
1056 # config.log. We remove comments because anyway the quotes in there
1057 # would cause problems or look ugly.
1058 # WARNING: Be sure not to use single quotes in there, as some shells,
1059 # such as our DU 5.0 friend, will then `close' the trap.
1060 trap 'exit_status=$?
1061 # Save into config.log some information that might help in debugging.
1066 @%:@@%:@ ---------------- @%:@@%:@
1067 @%:@@%:@ Cache variables. @%:@@%:@
1068 @%:@@%:@ ---------------- @%:@@%:@
1071 # The following way of writing the cache mishandles newlines in values,
1074 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1077 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1089 @%:@@%:@ ----------------- @%:@@%:@
1090 @%:@@%:@ Output variables. @%:@@%:@
1091 @%:@@%:@ ----------------- @%:@@%:@
1094 for ac_var in $ac_subst_vars
1096 eval ac_val=$`echo $ac_var`
1097 echo "$ac_var='"'"'$ac_val'"'"'"
1101 if test -n "$ac_subst_files"; then
1103 @%:@@%:@ ------------- @%:@@%:@
1104 @%:@@%:@ Output files. @%:@@%:@
1105 @%:@@%:@ ------------- @%:@@%:@
1108 for ac_var in $ac_subst_files
1110 eval ac_val=$`echo $ac_var`
1111 echo "$ac_var='"'"'$ac_val'"'"'"
1116 if test -s confdefs.h; then
1118 @%:@@%:@ ----------- @%:@@%:@
1119 @%:@@%:@ confdefs.h. @%:@@%:@
1120 @%:@@%:@ ----------- @%:@@%:@
1123 sed "/^$/d" confdefs.h | sort
1126 test "$ac_signal" != 0 &&
1127 echo "$as_me: caught signal $ac_signal"
1128 echo "$as_me: exit $exit_status"
1130 rm -f core core.* *.core &&
1131 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1134 for ac_signal in 1 2 13 15; do
1135 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1140 rm -rf conftest* confdefs.h
1141 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1144 # Predefined preprocessor variables.
1146 cat >>confdefs.h <<_ACEOF
1147 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1151 cat >>confdefs.h <<_ACEOF
1152 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1156 cat >>confdefs.h <<_ACEOF
1157 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1161 cat >>confdefs.h <<_ACEOF
1162 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1166 cat >>confdefs.h <<_ACEOF
1167 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1171 # Let the site file select an alternate cache file if it wants to.
1172 # Prefer explicitly selected file to automatically selected ones.
1173 if test -z "$CONFIG_SITE"; then
1174 if test "x$prefix" != xNONE; then
1175 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1180 for ac_site_file in $CONFIG_SITE; do
1181 if test -r "$ac_site_file"; then
1182 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1183 echo "$as_me: loading site script $ac_site_file" >&6;}
1184 sed 's/^/| /' "$ac_site_file" >&5
1189 if test -r "$cache_file"; then
1190 # Some versions of bash will fail to source /dev/null (special
1191 # files actually), so we avoid doing that.
1192 if test -f "$cache_file"; then
1193 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1194 echo "$as_me: loading cache $cache_file" >&6;}
1196 [\\/]* | ?:[\\/]* ) . $cache_file;;
1197 *) . ./$cache_file;;
1201 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1202 echo "$as_me: creating cache $cache_file" >&6;}
1206 # Check that the precious variables saved in the cache have kept the same
1208 ac_cache_corrupted=false
1209 for ac_var in `(set) 2>&1 |
1210 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212 eval ac_new_set=\$ac_env_${ac_var}_set
1213 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214 eval ac_new_val="\$ac_env_${ac_var}_value"
1215 case $ac_old_set,$ac_new_set in
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1221 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1222 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223 ac_cache_corrupted=: ;;
1226 if test "x$ac_old_val" != "x$ac_new_val"; then
1227 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1228 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1229 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1230 echo "$as_me: former value: $ac_old_val" >&2;}
1231 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1232 echo "$as_me: current value: $ac_new_val" >&2;}
1233 ac_cache_corrupted=:
1236 # Pass precious variables to config.status.
1237 if test "$ac_new_set" = set; then
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 *) ac_arg=$ac_var=$ac_new_val ;;
1243 case " $ac_configure_args " in
1244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1245 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1249 if $ac_cache_corrupted; then
1250 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1251 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1252 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1253 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254 { (exit 1); exit 1; }; }
1258 ac_cpp='$CPP $CPPFLAGS'
1259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291 for ac_dir in autoconf $srcdir/autoconf; do
1292 if test -f $ac_dir/install-sh; then
1294 ac_install_sh="$ac_aux_dir/install-sh -c"
1296 elif test -f $ac_dir/install.sh; then
1298 ac_install_sh="$ac_aux_dir/install.sh -c"
1300 elif test -f $ac_dir/shtool; then
1302 ac_install_sh="$ac_aux_dir/shtool install -c"
1306 if test -z "$ac_aux_dir"; then
1307 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1308 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1309 { (exit 1); exit 1; }; }
1311 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1312 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1313 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1315 ac_config_headers="$ac_config_headers config.h"
1322 # allow user to disable Encap support
1323 # Check whether --enable-encap or --disable-encap was given.
1324 if test "${enable_encap+set}" = set; then
1325 enableval="$enable_encap"
1328 enable_encap=default
1331 if test "$enable_encap" != "no"; then
1332 # look for epkg and mkencap
1333 # Extract the first word of "epkg", so it can be a program name with args.
1334 set dummy epkg; ac_word=$2
1335 echo "$as_me:$LINENO: checking for $ac_word" >&5
1336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1337 if test "${ac_cv_path_EPKG+set}" = set; then
1338 echo $ECHO_N "(cached) $ECHO_C" >&6
1342 ac_cv_path_EPKG="$EPKG" # Let the user override the test with a path.
1345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1349 test -z "$as_dir" && as_dir=.
1350 for ac_exec_ext in '' $ac_executable_extensions; do
1351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1352 ac_cv_path_EPKG="$as_dir/$ac_word$ac_exec_ext"
1353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1362 EPKG=$ac_cv_path_EPKG
1364 if test -n "$EPKG"; then
1365 echo "$as_me:$LINENO: result: $EPKG" >&5
1366 echo "${ECHO_T}$EPKG" >&6
1368 echo "$as_me:$LINENO: result: no" >&5
1369 echo "${ECHO_T}no" >&6
1372 # Extract the first word of "mkencap", so it can be a program name with args.
1373 set dummy mkencap; ac_word=$2
1374 echo "$as_me:$LINENO: checking for $ac_word" >&5
1375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1376 if test "${ac_cv_path_MKENCAP+set}" = set; then
1377 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 ac_cv_path_MKENCAP="$MKENCAP" # Let the user override the test with a path.
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388 test -z "$as_dir" && as_dir=.
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391 ac_cv_path_MKENCAP="$as_dir/$ac_word$ac_exec_ext"
1392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401 MKENCAP=$ac_cv_path_MKENCAP
1403 if test -n "$MKENCAP"; then
1404 echo "$as_me:$LINENO: result: $MKENCAP" >&5
1405 echo "${ECHO_T}$MKENCAP" >&6
1407 echo "$as_me:$LINENO: result: no" >&5
1408 echo "${ECHO_T}no" >&6
1412 # enable by default if epkg or mkencap are found
1413 if test "${EPKG:+set}" = "set" || test "${MKENCAP:+set}" = "set" && test "$enable_encap" = "default"; then
1418 if test "$enable_encap" = "yes"; then
1419 # generate fallback values for ${ENCAP_SOURCE} and ${ENCAP_TARGET}
1420 # from the environment or the default prefix
1421 if test -z "${ENCAP_SOURCE}" && test -z "${ENCAP_TARGET}"; then
1422 ENCAP_SOURCE="${ac_default_prefix}/encap";
1423 ENCAP_TARGET="${ac_default_prefix}";
1424 elif test -z "${ENCAP_TARGET}"; then
1425 ENCAP_TARGET="`dirname ${ENCAP_SOURCE}`";
1426 elif test -z "${ENCAP_SOURCE}"; then
1427 ENCAP_SOURCE="${ENCAP_TARGET}/encap";
1430 # if --prefix is specified:
1431 # 1) if its next-to-last component is "encap", assume that it
1432 # points to the package directory
1433 # 2) otherwise, assume it points to the target directory
1434 if test "${prefix}" != "NONE"; then
1435 prefixdir="`dirname ${prefix}`";
1436 prefixbase="`basename ${prefix}`";
1437 if test "`basename ${prefixdir}`" = "encap"; then
1438 ENCAP_SOURCE="${prefixdir}";
1439 ENCAP_TARGET="`dirname ${ENCAP_SOURCE}`";
1440 elif test "${prefixdir}" != "${ENCAP_SOURCE}"; then
1441 ENCAP_SOURCE="${prefix}/encap";
1442 ENCAP_TARGET="${prefix}";
1444 if ( test "`basename ${prefixdir}`" = "encap" || \
1445 test "${prefixdir}" = "${ENCAP_SOURCE}" ) && \
1446 test "${prefixbase}" != "${PACKAGE_NAME}-${PACKAGE_VERSION}"; then
1447 ENCAP_PKGSPEC="${prefixbase}";
1452 echo "$as_me:$LINENO: checking for Encap source directory" >&5
1453 echo $ECHO_N "checking for Encap source directory... $ECHO_C" >&6
1454 echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}" >&5
1455 echo "${ECHO_T}${ENCAP_SOURCE}" >&6
1456 echo "$as_me:$LINENO: checking for Encap target directory" >&5
1457 echo $ECHO_N "checking for Encap target directory... $ECHO_C" >&6
1458 echo "$as_me:$LINENO: result: ${ENCAP_TARGET}" >&5
1459 echo "${ECHO_T}${ENCAP_TARGET}" >&6
1460 echo "$as_me:$LINENO: checking for Encap package directory" >&5
1461 echo $ECHO_N "checking for Encap package directory... $ECHO_C" >&6
1462 if test "${ENCAP_PKGSPEC:-unset}" = "unset"; then
1463 ENCAP_PKGSPEC='${PACKAGE_NAME}-${PACKAGE_VERSION}';
1464 echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}/${PACKAGE_NAME}-${PACKAGE_VERSION}" >&5
1465 echo "${ECHO_T}${ENCAP_SOURCE}/${PACKAGE_NAME}-${PACKAGE_VERSION}" >&6
1467 echo "$as_me:$LINENO: result: ${ENCAP_SOURCE}/${ENCAP_PKGSPEC}" >&5
1468 echo "${ECHO_T}${ENCAP_SOURCE}/${ENCAP_PKGSPEC}" >&6
1470 prefix='${ENCAP_SOURCE}/${ENCAP_PKGSPEC}';
1472 # override default sysconfdir and localstatedir
1473 if test "$sysconfdir" = '${prefix}/etc'; then
1474 sysconfdir='${ENCAP_TARGET}/etc';
1476 if test "$localstatedir" = '${prefix}/var'; then
1477 localstatedir='/var/lib/${PACKAGE_NAME}';
1480 # check for --disable-epkg-install
1481 # Check whether --enable-epkg-install or --disable-epkg-install was given.
1482 if test "${enable_epkg_install+set}" = set; then
1483 enableval="$enable_epkg_install"
1486 enable_epkg_install=yes
1488 if test "$enable_epkg_install" = "no"; then
1492 # generate Makefile variables
1494 ENCAP_DEFS="ENCAP_SOURCE = ${ENCAP_SOURCE}\\
1495 ENCAP_TARGET = ${ENCAP_TARGET}\\
1496 ENCAP_PKGSPEC = ${ENCAP_PKGSPEC}\\
1498 MKENCAP = ${MKENCAP:-:}\\
1499 MKENCAP_OPTS = ${MKENCAP_OPTS}";
1502 ENCAP_INSTALL_RULES='if test -f ${top_srcdir}/COPYRIGHT; then \\\
1503 ${INSTALL_DATA} ${top_srcdir}/COPYRIGHT ${ENCAP_SOURCE}/${ENCAP_PKGSPEC}; \\\
1505 ${MKENCAP} ${MKENCAP_OPTS} -s ${DESTDIR}${ENCAP_SOURCE} -e ${ENCAP_PKGSPEC};\
1506 if test -z \"${DESTDIR}\"; then \\\
1507 ${EPKG} -s ${ENCAP_SOURCE} -t ${ENCAP_TARGET} ${ENCAP_PKGSPEC}; \\\
1511 ENCAP_INSTALL_TARGET=postinstall-encap
1513 ENCAP_INSTALL_TARGET=
1521 # COMPAT_VAR___PROGNAME
1522 # ---------------------
1523 # Check if libc defines the __progname variable.
1527 # COMPAT_FUNC_BASENAME
1528 # --------------------
1529 # Check for working basename() function.
1533 # COMPAT_FUNC_DIRNAME
1534 # -------------------
1535 # Check for working dirname() function.
1539 # COMPAT_FUNC_FNMATCH
1540 # -------------------
1541 # Check for working fnmatch() function.
1547 # Check for working glob() function.
1551 # COMPAT_FUNC_MAKEDEV
1552 # -------------------
1553 # Check for number of arguments expected by makedev().
1557 # COMPAT_FUNC_SNPRINTF
1558 # --------------------
1559 # Check for working snprintf() function.
1563 # COMPAT_PROTO_MACRO(FUNCTION, HEADER, MACRO-LIST, [BODY])
1564 # --------------------------------------------------------
1565 # Determine which C preprocessor macro is needed to expose prototype of
1566 # FUNCTION in HEADER. First, we try with nothing special defined; then we
1567 # try with each macro from MACRO-LIST. We stop as soon as it's found
1568 # and adjust $CFLAGS appropriately.
1572 # COMPAT_FUNC_STRTOK_R
1573 # --------------------
1574 # Check for working strtok_r().
1578 # COMPAT_FUNC_GETPWUID_R
1579 # ----------------------
1580 # Check for POSIX-compliant getpwuid_r().
1584 # COMPAT_FUNC_GETHOSTBYNAME_R
1585 # ---------------------------
1586 # Check for gethostbyname_r().
1590 # COMPAT_FUNC_GETSERVBYNAME_R
1591 # ---------------------------
1592 # Check for getservbyname_r().
1596 # COMPAT_REPLACE_FUNC(function)
1597 # -----------------------------
1598 # Replacement for AC_REPLACE_FUNCS.
1602 # COMPAT_FUNC_GETHOSTNAME
1603 # -----------------------
1604 # Check for gethostname().
1608 # COMPAT_FUNC_INET_ATON
1609 # ---------------------
1610 # Check for inet_aton().
1614 # COMPAT_FUNC_STRDUP
1615 # ------------------
1616 # Check for strdup().
1620 # COMPAT_FUNC_STRLCAT
1621 # -------------------
1622 # Check for strlcat().
1626 # COMPAT_FUNC_STRLCPY
1627 # -------------------
1628 # Check for strlcpy().
1632 # COMPAT_FUNC_STRMODE
1633 # -------------------
1634 # Check for strmode().
1638 # COMPAT_FUNC_STRRSTR
1639 # -------------------
1640 # Check for strrstr().
1644 # COMPAT_FUNC_STRSEP
1645 # ------------------
1646 # Check for strsep().
1652 ac_cpp='$CPP $CPPFLAGS'
1653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1656 if test -n "$ac_tool_prefix"; then
1657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 if test -n "$CC"; then
1665 ac_cv_prog_CC="$CC" # Let the user override the test.
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 if test -n "$CC"; then
1685 echo "$as_me:$LINENO: result: $CC" >&5
1686 echo "${ECHO_T}$CC" >&6
1688 echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1693 if test -z "$ac_cv_prog_CC"; then
1695 # Extract the first word of "gcc", so it can be a program name with args.
1696 set dummy gcc; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="gcc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722 if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724 echo "${ECHO_T}$ac_ct_CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1735 if test -z "$CC"; then
1736 if test -n "$ac_tool_prefix"; then
1737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1738 set dummy ${ac_tool_prefix}cc; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 if test -n "$CC"; then
1745 ac_cv_prog_CC="$CC" # Let the user override the test.
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_CC="${ac_tool_prefix}cc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764 if test -n "$CC"; then
1765 echo "$as_me:$LINENO: result: $CC" >&5
1766 echo "${ECHO_T}$CC" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1773 if test -z "$ac_cv_prog_CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args.
1776 set dummy cc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC="cc"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1816 if test -z "$CC"; then
1817 # Extract the first word of "cc", so it can be a program name with args.
1818 set dummy cc; ac_word=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 test -z "$as_dir" && as_dir=.
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1836 ac_prog_rejected=yes
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 if test $ac_prog_rejected = yes; then
1847 # We found a bogon in the path, so make sure we never use it.
1848 set dummy $ac_cv_prog_CC
1850 if test $@%:@ != 0; then
1851 # We chose a different compiler from the bogus one.
1852 # However, it has the same basename, so the bogon will be chosen
1853 # first if we set CC to just the basename; use the full file name.
1855 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1861 if test -n "$CC"; then
1862 echo "$as_me:$LINENO: result: $CC" >&5
1863 echo "${ECHO_T}$CC" >&6
1865 echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1870 if test -z "$CC"; then
1871 if test -n "$ac_tool_prefix"; then
1874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 if test -n "$CC"; then
1882 ac_cv_prog_CC="$CC" # Let the user override the test.
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 if test -n "$CC"; then
1902 echo "$as_me:$LINENO: result: $CC" >&5
1903 echo "${ECHO_T}$CC" >&6
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1909 test -n "$CC" && break
1912 if test -z "$CC"; then
1916 # Extract the first word of "$ac_prog", so it can be a program name with args.
1917 set dummy $ac_prog; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 if test -n "$ac_ct_CC"; then
1924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_prog_ac_ct_CC="$ac_prog"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1943 if test -n "$ac_ct_CC"; then
1944 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1945 echo "${ECHO_T}$ac_ct_CC" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1951 test -n "$ac_ct_CC" && break
1960 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1961 See \`config.log' for more details." >&5
1962 echo "$as_me: error: no acceptable C compiler found in \$PATH
1963 See \`config.log' for more details." >&2;}
1964 { (exit 1); exit 1; }; }
1966 # Provide some information about the compiler.
1967 echo "$as_me:$LINENO:" \
1968 "checking for C compiler version" >&5
1969 ac_compiler=`set X $ac_compile; echo $2`
1970 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1971 (eval $ac_compiler --version </dev/null >&5) 2>&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }
1975 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1976 (eval $ac_compiler -v </dev/null >&5) 2>&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }
1980 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1981 (eval $ac_compiler -V </dev/null >&5) 2>&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }
1986 cat >conftest.$ac_ext <<_ACEOF
1987 #line $LINENO "configure"
1990 cat confdefs.h >>conftest.$ac_ext
1991 cat >>conftest.$ac_ext <<_ACEOF
1992 /* end confdefs.h. */
2002 ac_clean_files_save=$ac_clean_files
2003 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2004 # Try to create an executable without -o first, disregard a.out.
2005 # It will help us diagnose broken compilers, and finding out an intuition
2007 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2008 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2009 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2010 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2011 (eval $ac_link_default) 2>&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; then
2015 # Find the output, starting from the most likely. This scheme is
2016 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2019 # Be careful to initialize this variable, since it used to be cached.
2020 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2022 # b.out is created by i960 compilers.
2023 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2025 test -f "$ac_file" || continue
2027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2030 # This is the source file.
2033 # We found the default executable, but exeext='' is most
2037 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2038 # FIXME: I believe we export ac_cv_exeext for Libtool,
2039 # but it would be cool to find out if it's true. Does anybody
2040 # maintain Libtool? --akim.
2048 echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2051 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2052 See \`config.log' for more details." >&5
2053 echo "$as_me: error: C compiler cannot create executables
2054 See \`config.log' for more details." >&2;}
2055 { (exit 77); exit 77; }; }
2058 ac_exeext=$ac_cv_exeext
2059 echo "$as_me:$LINENO: result: $ac_file" >&5
2060 echo "${ECHO_T}$ac_file" >&6
2062 # Check the compiler produces executables we can run. If not, either
2063 # the compiler is broken, or we cross compile.
2064 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2065 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2066 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2067 # If not cross compiling, check that we can run a simple program.
2068 if test "$cross_compiling" != yes; then
2069 if { ac_try='./$ac_file'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2077 if test "$cross_compiling" = maybe; then
2080 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2081 If you meant to cross compile, use \`--host'.
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: cannot run C compiled programs.
2084 If you meant to cross compile, use \`--host'.
2085 See \`config.log' for more details." >&2;}
2086 { (exit 1); exit 1; }; }
2090 echo "$as_me:$LINENO: result: yes" >&5
2091 echo "${ECHO_T}yes" >&6
2093 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2094 ac_clean_files=$ac_clean_files_save
2095 # Check the compiler produces executables we can run. If not, either
2096 # the compiler is broken, or we cross compile.
2097 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2098 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2099 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2100 echo "${ECHO_T}$cross_compiling" >&6
2102 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2103 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2105 (eval $ac_link) 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; then
2109 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2110 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2111 # work properly (i.e., refer to `conftest.exe'), while it won't with
2113 for ac_file in conftest.exe conftest conftest.*; do
2114 test -f "$ac_file" || continue
2116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2117 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2124 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2125 See \`config.log' for more details." >&5
2126 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2127 See \`config.log' for more details." >&2;}
2128 { (exit 1); exit 1; }; }
2131 rm -f conftest$ac_cv_exeext
2132 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2133 echo "${ECHO_T}$ac_cv_exeext" >&6
2135 rm -f conftest.$ac_ext
2136 EXEEXT=$ac_cv_exeext
2138 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2139 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2140 if test "${ac_cv_objext+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 cat >conftest.$ac_ext <<_ACEOF
2144 #line $LINENO "configure"
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2159 rm -f conftest.o conftest.obj
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; then
2165 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2168 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2173 echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2176 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2177 See \`config.log' for more details." >&5
2178 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2179 See \`config.log' for more details." >&2;}
2180 { (exit 1); exit 1; }; }
2183 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2185 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2186 echo "${ECHO_T}$ac_cv_objext" >&6
2187 OBJEXT=$ac_cv_objext
2189 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2190 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2191 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 cat >conftest.$ac_ext <<_ACEOF
2195 #line $LINENO "configure"
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h. */
2213 rm -f conftest.$ac_objext
2214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215 (eval $ac_compile) 2>&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); } &&
2219 { ac_try='test -s conftest.$ac_objext'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2227 echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2232 rm -f conftest.$ac_objext conftest.$ac_ext
2233 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2236 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2237 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2238 GCC=`test $ac_compiler_gnu = yes && echo yes`
2239 ac_test_CFLAGS=${CFLAGS+set}
2240 ac_save_CFLAGS=$CFLAGS
2242 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2243 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2244 if test "${ac_cv_prog_cc_g+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 cat >conftest.$ac_ext <<_ACEOF
2248 #line $LINENO "configure"
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h. */
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2282 rm -f conftest.$ac_objext conftest.$ac_ext
2284 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2285 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2286 if test "$ac_test_CFLAGS" = set; then
2287 CFLAGS=$ac_save_CFLAGS
2288 elif test $ac_cv_prog_cc_g = yes; then
2289 if test "$GCC" = yes; then
2295 if test "$GCC" = yes; then
2301 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2302 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2303 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 ac_cv_prog_cc_stdc=no
2308 cat >conftest.$ac_ext <<_ACEOF
2309 #line $LINENO "configure"
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h. */
2317 #include <sys/types.h>
2318 #include <sys/stat.h>
2319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2320 struct buf { int x; };
2321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2322 static char *e (p, i)
2328 static char *f (char * (*g) (char **, int), char **p, ...)
2333 s = g (p, va_arg (v,int));
2337 int test (int i, double x);
2338 struct s1 {int (*f) (int a);};
2339 struct s2 {int (*f) (double a);};
2340 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2346 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2351 # Don't try gcc -ansi; that turns off useful extensions and
2352 # breaks some systems' header files.
2353 # AIX -qlanglvl=ansi
2354 # Ultrix and OSF/1 -std1
2355 # HP-UX 10.20 and later -Ae
2356 # HP-UX older versions -Aa -D_HPUX_SOURCE
2357 # SVR4 -Xc -D__EXTENSIONS__
2358 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2360 CC="$ac_save_CC $ac_arg"
2361 rm -f conftest.$ac_objext
2362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363 (eval $ac_compile) 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2373 ac_cv_prog_cc_stdc=$ac_arg
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2380 rm -f conftest.$ac_objext
2382 rm -f conftest.$ac_ext conftest.$ac_objext
2387 case "x$ac_cv_prog_cc_stdc" in
2389 echo "$as_me:$LINENO: result: none needed" >&5
2390 echo "${ECHO_T}none needed" >&6 ;;
2392 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2393 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2394 CC="$CC $ac_cv_prog_cc_stdc" ;;
2397 # Some people use a C++ compiler to compile C. Since we use `exit',
2398 # in C++ we need to declare it. In case someone uses the same compiler
2399 # for both compiling C and C++ we need to have the C++ compiler decide
2400 # the declaration of exit, since it's the most demanding environment.
2401 cat >conftest.$ac_ext <<_ACEOF
2402 @%:@ifndef __cplusplus
2406 rm -f conftest.$ac_objext
2407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408 (eval $ac_compile) 2>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 for ac_declaration in \
2420 '#include <stdlib.h>' \
2421 'extern "C" void std::exit (int) throw (); using std::exit;' \
2422 'extern "C" void std::exit (int); using std::exit;' \
2423 'extern "C" void exit (int) throw ();' \
2424 'extern "C" void exit (int);' \
2427 cat >conftest.$ac_ext <<_ACEOF
2428 #line $LINENO "configure"
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2434 @%:@include <stdlib.h>
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2463 rm -f conftest.$ac_objext conftest.$ac_ext
2464 cat >conftest.$ac_ext <<_ACEOF
2465 #line $LINENO "configure"
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2480 rm -f conftest.$ac_objext
2481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2482 (eval $ac_compile) 2>&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
2486 { ac_try='test -s conftest.$ac_objext'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2498 rm -f conftest.$ac_objext conftest.$ac_ext
2501 if test -n "$ac_declaration"; then
2502 echo '#ifdef __cplusplus' >>confdefs.h
2503 echo $ac_declaration >>confdefs.h
2504 echo '#endif' >>confdefs.h
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2512 rm -f conftest.$ac_objext conftest.$ac_ext
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523 cat >>confdefs.h <<\_ACEOF
2524 @%:@define NEED_STRLCPY 1
2527 echo "$as_me:$LINENO: checking for strlcpy" >&5
2528 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
2529 if test "${ac_cv_func_strlcpy+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 cat >conftest.$ac_ext <<_ACEOF
2533 #line $LINENO "configure"
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h. */
2539 /* System header to define __stub macros and hopefully few prototypes,
2540 which can conflict with char strlcpy (); below.
2541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2542 <limits.h> exists even on freestanding compilers. */
2544 # include <limits.h>
2546 # include <assert.h>
2548 /* Override any gcc2 internal prototype to avoid an error. */
2553 /* We use char because int might match the return type of a gcc2
2554 builtin and then its argument prototype would still apply. */
2556 /* The GNU C library defines this for functions which it implements
2557 to always fail with ENOSYS. Some functions are actually named
2558 something starting with __ and the normal name is an alias. */
2559 #if defined (__stub_strlcpy) || defined (__stub___strlcpy)
2562 char (*f) () = strlcpy;
2571 return f != strlcpy;
2576 rm -f conftest.$ac_objext conftest$ac_exeext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2578 (eval $ac_link) 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -s conftest$ac_exeext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2588 ac_cv_func_strlcpy=yes
2590 echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2593 ac_cv_func_strlcpy=no
2595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2597 echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
2598 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
2599 if test $ac_cv_func_strlcpy = yes; then
2601 cat >>confdefs.h <<\_ACEOF
2602 @%:@define HAVE_STRLCPY 1
2606 LIB@&t@OBJS="$LIB@&t@OBJS strlcpy.$ac_objext"
2615 cat >>confdefs.h <<\_ACEOF
2616 @%:@define NEED_STRSEP 1
2619 echo "$as_me:$LINENO: checking for strsep" >&5
2620 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
2621 if test "${ac_cv_func_strsep+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 cat >conftest.$ac_ext <<_ACEOF
2625 #line $LINENO "configure"
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2631 /* System header to define __stub macros and hopefully few prototypes,
2632 which can conflict with char strsep (); below.
2633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2634 <limits.h> exists even on freestanding compilers. */
2636 # include <limits.h>
2638 # include <assert.h>
2640 /* Override any gcc2 internal prototype to avoid an error. */
2645 /* We use char because int might match the return type of a gcc2
2646 builtin and then its argument prototype would still apply. */
2648 /* The GNU C library defines this for functions which it implements
2649 to always fail with ENOSYS. Some functions are actually named
2650 something starting with __ and the normal name is an alias. */
2651 #if defined (__stub_strsep) || defined (__stub___strsep)
2654 char (*f) () = strsep;
2668 rm -f conftest.$ac_objext conftest$ac_exeext
2669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670 (eval $ac_link) 2>&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } &&
2674 { ac_try='test -s conftest$ac_exeext'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; }; then
2680 ac_cv_func_strsep=yes
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2685 ac_cv_func_strsep=no
2687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2689 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
2690 echo "${ECHO_T}$ac_cv_func_strsep" >&6
2691 if test $ac_cv_func_strsep = yes; then
2693 cat >>confdefs.h <<\_ACEOF
2694 @%:@define HAVE_STRSEP 1
2698 LIB@&t@OBJS="$LIB@&t@OBJS strsep.$ac_objext"
2711 if test -z "libtar"; then
2712 LISTHASH_PREFIX="${PACKAGE_NAME}";
2714 LISTHASH_PREFIX="libtar";
2718 LISTHASH_DIR="listhash";
2721 ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_listhash.h:listhash/listhash.h.in"
2723 ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_list.c:listhash/list.c.in"
2725 ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_hash.c:listhash/hash.c.in"
2727 ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_list_new.3:listhash/list_new.3.in"
2729 ac_config_files="$ac_config_files listhash/${LISTHASH_PREFIX}_hash_new.3:listhash/hash_new.3.in"
2734 if test -z "$CFLAGS"; then
2737 MKDIR="mkdir -p -m 755"
2742 ac_cpp='$CPP $CPPFLAGS'
2743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746 if test -n "$ac_tool_prefix"; then
2747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2748 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2749 echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2751 if test "${ac_cv_prog_CC+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 if test -n "$CC"; then
2755 ac_cv_prog_CC="$CC" # Let the user override the test.
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 if test -n "$CC"; then
2775 echo "$as_me:$LINENO: result: $CC" >&5
2776 echo "${ECHO_T}$CC" >&6
2778 echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6
2783 if test -z "$ac_cv_prog_CC"; then
2785 # Extract the first word of "gcc", so it can be a program name with args.
2786 set dummy gcc; ac_word=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 if test -n "$ac_ct_CC"; then
2793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_ac_ct_CC="gcc"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812 if test -n "$ac_ct_CC"; then
2813 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2814 echo "${ECHO_T}$ac_ct_CC" >&6
2816 echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2825 if test -z "$CC"; then
2826 if test -n "$ac_tool_prefix"; then
2827 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2828 set dummy ${ac_tool_prefix}cc; ac_word=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CC+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CC="${ac_tool_prefix}cc"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 if test -n "$CC"; then
2855 echo "$as_me:$LINENO: result: $CC" >&5
2856 echo "${ECHO_T}$CC" >&6
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2863 if test -z "$ac_cv_prog_CC"; then
2865 # Extract the first word of "cc", so it can be a program name with args.
2866 set dummy cc; ac_word=$2
2867 echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 if test -n "$ac_ct_CC"; then
2873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_ac_ct_CC="cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2892 if test -n "$ac_ct_CC"; then
2893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2894 echo "${ECHO_T}$ac_ct_CC" >&6
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2906 if test -z "$CC"; then
2907 # Extract the first word of "cc", so it can be a program name with args.
2908 set dummy cc; ac_word=$2
2909 echo "$as_me:$LINENO: checking for $ac_word" >&5
2910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2911 if test "${ac_cv_prog_CC+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2926 ac_prog_rejected=yes
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 if test $ac_prog_rejected = yes; then
2937 # We found a bogon in the path, so make sure we never use it.
2938 set dummy $ac_cv_prog_CC
2940 if test $@%:@ != 0; then
2941 # We chose a different compiler from the bogus one.
2942 # However, it has the same basename, so the bogon will be chosen
2943 # first if we set CC to just the basename; use the full file name.
2945 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2951 if test -n "$CC"; then
2952 echo "$as_me:$LINENO: result: $CC" >&5
2953 echo "${ECHO_T}$CC" >&6
2955 echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2966 echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968 if test "${ac_cv_prog_CC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 if test -n "$CC"; then
2992 echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6
2995 echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6
2999 test -n "$CC" && break
3002 if test -z "$CC"; then
3006 # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy $ac_prog; ac_word=$2
3008 echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_ac_ct_CC="$ac_prog"
3024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3035 echo "${ECHO_T}$ac_ct_CC" >&6
3037 echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6
3041 test -n "$ac_ct_CC" && break
3050 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3051 See \`config.log' for more details." >&5
3052 echo "$as_me: error: no acceptable C compiler found in \$PATH
3053 See \`config.log' for more details." >&2;}
3054 { (exit 1); exit 1; }; }
3056 # Provide some information about the compiler.
3057 echo "$as_me:$LINENO:" \
3058 "checking for C compiler version" >&5
3059 ac_compiler=`set X $ac_compile; echo $2`
3060 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3061 (eval $ac_compiler --version </dev/null >&5) 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }
3065 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3066 (eval $ac_compiler -v </dev/null >&5) 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }
3070 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3071 (eval $ac_compiler -V </dev/null >&5) 2>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }
3076 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3077 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3078 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 cat >conftest.$ac_ext <<_ACEOF
3082 #line $LINENO "configure"
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3100 rm -f conftest.$ac_objext
3101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3102 (eval $ac_compile) 2>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3119 rm -f conftest.$ac_objext conftest.$ac_ext
3120 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3123 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3124 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3125 GCC=`test $ac_compiler_gnu = yes && echo yes`
3126 ac_test_CFLAGS=${CFLAGS+set}
3127 ac_save_CFLAGS=$CFLAGS
3129 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3130 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3131 if test "${ac_cv_prog_cc_g+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 cat >conftest.$ac_ext <<_ACEOF
3135 #line $LINENO "configure"
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3150 rm -f conftest.$ac_objext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152 (eval $ac_compile) 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3169 rm -f conftest.$ac_objext conftest.$ac_ext
3171 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3172 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3173 if test "$ac_test_CFLAGS" = set; then
3174 CFLAGS=$ac_save_CFLAGS
3175 elif test $ac_cv_prog_cc_g = yes; then
3176 if test "$GCC" = yes; then
3182 if test "$GCC" = yes; then
3188 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3189 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3190 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 ac_cv_prog_cc_stdc=no
3195 cat >conftest.$ac_ext <<_ACEOF
3196 #line $LINENO "configure"
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3204 #include <sys/types.h>
3205 #include <sys/stat.h>
3206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3207 struct buf { int x; };
3208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3209 static char *e (p, i)
3215 static char *f (char * (*g) (char **, int), char **p, ...)
3220 s = g (p, va_arg (v,int));
3224 int test (int i, double x);
3225 struct s1 {int (*f) (int a);};
3226 struct s2 {int (*f) (double a);};
3227 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3233 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3238 # Don't try gcc -ansi; that turns off useful extensions and
3239 # breaks some systems' header files.
3240 # AIX -qlanglvl=ansi
3241 # Ultrix and OSF/1 -std1
3242 # HP-UX 10.20 and later -Ae
3243 # HP-UX older versions -Aa -D_HPUX_SOURCE
3244 # SVR4 -Xc -D__EXTENSIONS__
3245 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3247 CC="$ac_save_CC $ac_arg"
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_prog_cc_stdc=$ac_arg
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3267 rm -f conftest.$ac_objext
3269 rm -f conftest.$ac_ext conftest.$ac_objext
3274 case "x$ac_cv_prog_cc_stdc" in
3276 echo "$as_me:$LINENO: result: none needed" >&5
3277 echo "${ECHO_T}none needed" >&6 ;;
3279 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3281 CC="$CC $ac_cv_prog_cc_stdc" ;;
3284 # Some people use a C++ compiler to compile C. Since we use `exit',
3285 # in C++ we need to declare it. In case someone uses the same compiler
3286 # for both compiling C and C++ we need to have the C++ compiler decide
3287 # the declaration of exit, since it's the most demanding environment.
3288 cat >conftest.$ac_ext <<_ACEOF
3289 @%:@ifndef __cplusplus
3293 rm -f conftest.$ac_objext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3295 (eval $ac_compile) 2>&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 for ac_declaration in \
3307 '#include <stdlib.h>' \
3308 'extern "C" void std::exit (int) throw (); using std::exit;' \
3309 'extern "C" void std::exit (int); using std::exit;' \
3310 'extern "C" void exit (int) throw ();' \
3311 'extern "C" void exit (int);' \
3314 cat >conftest.$ac_ext <<_ACEOF
3315 #line $LINENO "configure"
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321 @%:@include <stdlib.h>
3331 rm -f conftest.$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } &&
3337 { ac_try='test -s conftest.$ac_objext'
3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3345 echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3350 rm -f conftest.$ac_objext conftest.$ac_ext
3351 cat >conftest.$ac_ext <<_ACEOF
3352 #line $LINENO "configure"
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3367 rm -f conftest.$ac_objext
3368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369 (eval $ac_compile) 2>&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } &&
3373 { ac_try='test -s conftest.$ac_objext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3385 rm -f conftest.$ac_objext conftest.$ac_ext
3388 if test -n "$ac_declaration"; then
3389 echo '#ifdef __cplusplus' >>confdefs.h
3390 echo $ac_declaration >>confdefs.h
3391 echo '#endif' >>confdefs.h
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3399 rm -f conftest.$ac_objext conftest.$ac_ext
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406 if test -n "$ac_tool_prefix"; then
3407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3409 echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411 if test "${ac_cv_prog_RANLIB+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 if test -n "$RANLIB"; then
3415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 RANLIB=$ac_cv_prog_RANLIB
3434 if test -n "$RANLIB"; then
3435 echo "$as_me:$LINENO: result: $RANLIB" >&5
3436 echo "${ECHO_T}$RANLIB" >&6
3438 echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3443 if test -z "$ac_cv_prog_RANLIB"; then
3444 ac_ct_RANLIB=$RANLIB
3445 # Extract the first word of "ranlib", so it can be a program name with args.
3446 set dummy ranlib; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 if test -n "$ac_ct_RANLIB"; then
3453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_RANLIB="ranlib"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3473 if test -n "$ac_ct_RANLIB"; then
3474 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3475 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3477 echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3481 RANLIB=$ac_ct_RANLIB
3483 RANLIB="$ac_cv_prog_RANLIB"
3486 # Find a good install program. We prefer a C program (faster),
3487 # so one script is as good as another. But avoid the broken or
3488 # incompatible versions:
3489 # SysV /etc/install, /usr/sbin/install
3490 # SunOS /usr/etc/install
3491 # IRIX /sbin/install
3493 # AmigaOS /C/install, which installs bootblocks on floppy discs
3494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3497 # ./install, which can be erroneously created by make from ./install.sh.
3498 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3499 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3500 if test -z "$INSTALL"; then
3501 if test "${ac_cv_path_install+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 test -z "$as_dir" && as_dir=.
3509 # Account for people who put trailing slashes in PATH elements.
3511 ./ | .// | /cC/* | \
3512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3515 # OSF1 and SCO ODT 3.0 have their own names for install.
3516 # Don't use installbsd from OSF since it installs stuff as root
3518 for ac_prog in ginstall scoinst install; do
3519 for ac_exec_ext in '' $ac_executable_extensions; do
3520 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3521 if test $ac_prog = install &&
3522 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3523 # AIX install. It has an incompatible calling convention.
3525 elif test $ac_prog = install &&
3526 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3527 # program-specific install script used by HP pwplus--don't use.
3530 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3542 if test "${ac_cv_path_install+set}" = set; then
3543 INSTALL=$ac_cv_path_install
3545 # As a last resort, use the slow shell script. We don't cache a
3546 # path for INSTALL within a source directory, because that will
3547 # break other packages using the cache if that directory is
3548 # removed, or if the path is relative.
3549 INSTALL=$ac_install_sh
3552 echo "$as_me:$LINENO: result: $INSTALL" >&5
3553 echo "${ECHO_T}$INSTALL" >&6
3555 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3556 # It thinks the first close brace ends the variable substitution.
3557 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3559 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3561 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3563 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3564 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3566 if test "$LN_S" = "ln -s"; then
3567 echo "$as_me:$LINENO: result: yes" >&5
3568 echo "${ECHO_T}yes" >&6
3570 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3571 echo "${ECHO_T}no, using $LN_S" >&6
3574 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3575 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3576 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3577 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 cat >conftest.make <<\_ACEOF
3582 @echo 'ac_maketemp="$(MAKE)"'
3584 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3585 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3586 if test -n "$ac_maketemp"; then
3587 eval ac_cv_prog_make_${ac_make}_set=yes
3589 eval ac_cv_prog_make_${ac_make}_set=no
3593 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3594 echo "$as_me:$LINENO: result: yes" >&5
3595 echo "${ECHO_T}yes" >&6
3598 echo "$as_me:$LINENO: result: no" >&5
3599 echo "${ECHO_T}no" >&6
3600 SET_MAKE="MAKE=${MAKE-make}"
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3611 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3612 # On Suns, sometimes $CPP names a directory.
3613 if test -n "$CPP" && test -d "$CPP"; then
3616 if test -z "$CPP"; then
3617 if test "${ac_cv_prog_CPP+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 # Double quotes because CPP needs to be expanded
3621 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3624 for ac_c_preproc_warn_flag in '' yes
3626 # Use a header file that comes with gcc, so configuring glibc
3627 # with a fresh cross-compiler works.
3628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3629 # <limits.h> exists even on freestanding compilers.
3630 # On the NeXT, cc -E runs the code through the compiler's parser,
3631 # not just through cpp. "Syntax error" is here to catch this case.
3632 cat >conftest.$ac_ext <<_ACEOF
3633 #line $LINENO "configure"
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3640 @%:@ include <limits.h>
3642 @%:@ include <assert.h>
3646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3649 grep -v '^ *+' conftest.er1 >conftest.err
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } >/dev/null; then
3654 if test -s conftest.err; then
3655 ac_cpp_err=$ac_c_preproc_warn_flag
3662 if test -z "$ac_cpp_err"; then
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3668 # Broken: fails on valid input.
3671 rm -f conftest.err conftest.$ac_ext
3673 # OK, works on sane cases. Now check whether non-existent headers
3674 # can be detected and how.
3675 cat >conftest.$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3682 @%:@include <ac_nonexistent.h>
3684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3687 grep -v '^ *+' conftest.er1 >conftest.err
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } >/dev/null; then
3692 if test -s conftest.err; then
3693 ac_cpp_err=$ac_c_preproc_warn_flag
3700 if test -z "$ac_cpp_err"; then
3701 # Broken: success on invalid input.
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707 # Passes both tests.
3711 rm -f conftest.err conftest.$ac_ext
3714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3715 rm -f conftest.err conftest.$ac_ext
3716 if $ac_preproc_ok; then
3728 echo "$as_me:$LINENO: result: $CPP" >&5
3729 echo "${ECHO_T}$CPP" >&6
3731 for ac_c_preproc_warn_flag in '' yes
3733 # Use a header file that comes with gcc, so configuring glibc
3734 # with a fresh cross-compiler works.
3735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3736 # <limits.h> exists even on freestanding compilers.
3737 # On the NeXT, cc -E runs the code through the compiler's parser,
3738 # not just through cpp. "Syntax error" is here to catch this case.
3739 cat >conftest.$ac_ext <<_ACEOF
3740 #line $LINENO "configure"
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3747 @%:@ include <limits.h>
3749 @%:@ include <assert.h>
3753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3756 grep -v '^ *+' conftest.er1 >conftest.err
3758 cat conftest.err >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } >/dev/null; then
3761 if test -s conftest.err; then
3762 ac_cpp_err=$ac_c_preproc_warn_flag
3769 if test -z "$ac_cpp_err"; then
3772 echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3775 # Broken: fails on valid input.
3778 rm -f conftest.err conftest.$ac_ext
3780 # OK, works on sane cases. Now check whether non-existent headers
3781 # can be detected and how.
3782 cat >conftest.$ac_ext <<_ACEOF
3783 #line $LINENO "configure"
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3789 @%:@include <ac_nonexistent.h>
3791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3794 grep -v '^ *+' conftest.er1 >conftest.err
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } >/dev/null; then
3799 if test -s conftest.err; then
3800 ac_cpp_err=$ac_c_preproc_warn_flag
3807 if test -z "$ac_cpp_err"; then
3808 # Broken: success on invalid input.
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 # Passes both tests.
3818 rm -f conftest.err conftest.$ac_ext
3821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3822 rm -f conftest.err conftest.$ac_ext
3823 if $ac_preproc_ok; then
3826 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3827 See \`config.log' for more details." >&5
3828 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3829 See \`config.log' for more details." >&2;}
3830 { (exit 1); exit 1; }; }
3834 ac_cpp='$CPP $CPPFLAGS'
3835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840 echo "$as_me:$LINENO: checking for egrep" >&5
3841 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3842 if test "${ac_cv_prog_egrep+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3846 then ac_cv_prog_egrep='grep -E'
3847 else ac_cv_prog_egrep='egrep'
3850 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3851 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3852 EGREP=$ac_cv_prog_egrep
3856 echo "$as_me:$LINENO: checking for AIX" >&5
3857 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3858 cat >conftest.$ac_ext <<_ACEOF
3859 #line $LINENO "configure"
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871 $EGREP "yes" >/dev/null 2>&1; then
3872 echo "$as_me:$LINENO: result: yes" >&5
3873 echo "${ECHO_T}yes" >&6
3874 cat >>confdefs.h <<\_ACEOF
3875 @%:@define _ALL_SOURCE 1
3879 echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3885 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3886 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3887 if test "${ac_cv_c_const+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 cat >conftest.$ac_ext <<_ACEOF
3891 #line $LINENO "configure"
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3901 /* FIXME: Include the comments suggested by Paul. */
3903 /* Ultrix mips cc rejects this. */
3904 typedef int charset[2];
3906 /* SunOS 4.1.1 cc rejects this. */
3907 char const *const *ccp;
3909 /* NEC SVR4.0.2 mips cc rejects this. */
3910 struct point {int x, y;};
3911 static struct point const zero = {0,0};
3912 /* AIX XL C 1.02.0.0 rejects this.
3913 It does not let you subtract one const X* pointer from another in
3914 an arm of an if-expression whose if-part is not a constant
3916 const char *g = "string";
3917 ccp = &g + (g ? g-g : 0);
3918 /* HPUX 7.0 cc rejects these. */
3921 ccp = (char const *const *) p;
3922 { /* SCO 3.2v4 cc rejects this. */
3924 char const *s = 0 ? (char *) 0 : (char const *) 0;
3928 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3930 const int *foo = &x[0];
3933 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3934 typedef const int *iptr;
3938 { /* AIX XL C 1.02.0.0 rejects this saying
3939 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3940 struct s { int j; const int *ap[3]; };
3941 struct s *b; b->j = 5;
3943 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3952 rm -f conftest.$ac_objext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954 (eval $ac_compile) 2>&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -s conftest.$ac_objext'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; }; then
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3971 rm -f conftest.$ac_objext conftest.$ac_ext
3973 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3974 echo "${ECHO_T}$ac_cv_c_const" >&6
3975 if test $ac_cv_c_const = no; then
3977 cat >>confdefs.h <<\_ACEOF
3985 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3986 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3987 if test "${ac_cv_header_stdc+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 cat >conftest.$ac_ext <<_ACEOF
3991 #line $LINENO "configure"
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
4010 rm -f conftest.$ac_objext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4012 (eval $ac_compile) 2>&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } &&
4016 { ac_try='test -s conftest.$ac_objext'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4022 ac_cv_header_stdc=yes
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 ac_cv_header_stdc=no
4029 rm -f conftest.$ac_objext conftest.$ac_ext
4031 if test $ac_cv_header_stdc = yes; then
4032 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4033 cat >conftest.$ac_ext <<_ACEOF
4034 #line $LINENO "configure"
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4044 $EGREP "memchr" >/dev/null 2>&1; then
4047 ac_cv_header_stdc=no
4053 if test $ac_cv_header_stdc = yes; then
4054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4055 cat >conftest.$ac_ext <<_ACEOF
4056 #line $LINENO "configure"
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4066 $EGREP "free" >/dev/null 2>&1; then
4069 ac_cv_header_stdc=no
4075 if test $ac_cv_header_stdc = yes; then
4076 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4077 if test "$cross_compiling" = yes; then
4080 cat >conftest.$ac_ext <<_ACEOF
4081 #line $LINENO "configure"
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h. */
4088 #if ((' ' & 0x0FF) == 0x020)
4089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4092 # define ISLOWER(c) \
4093 (('a' <= (c) && (c) <= 'i') \
4094 || ('j' <= (c) && (c) <= 'r') \
4095 || ('s' <= (c) && (c) <= 'z'))
4096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4104 for (i = 0; i < 256; i++)
4105 if (XOR (islower (i), ISLOWER (i))
4106 || toupper (i) != TOUPPER (i))
4111 rm -f conftest$ac_exeext
4112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4113 (eval $ac_link) 2>&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4124 echo "$as_me: program exited with status $ac_status" >&5
4125 echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4129 ac_cv_header_stdc=no
4131 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4135 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4136 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4137 if test $ac_cv_header_stdc = yes; then
4139 cat >>confdefs.h <<\_ACEOF
4140 @%:@define STDC_HEADERS 1
4145 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4155 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4156 inttypes.h stdint.h unistd.h
4158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4159 echo "$as_me:$LINENO: checking for $ac_header" >&5
4160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 cat >conftest.$ac_ext <<_ACEOF
4165 #line $LINENO "configure"
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 $ac_includes_default
4173 @%:@include <$ac_header>
4175 rm -f conftest.$ac_objext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 eval "$as_ac_Header=yes"
4189 echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 eval "$as_ac_Header=no"
4194 rm -f conftest.$ac_objext conftest.$ac_ext
4196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4199 cat >>confdefs.h <<_ACEOF
4200 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4209 for ac_header in unistd.h
4211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4213 echo "$as_me:$LINENO: checking for $ac_header" >&5
4214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4221 # Is the header compilable?
4222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4224 cat >conftest.$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 $ac_includes_default
4232 @%:@include <$ac_header>
4234 rm -f conftest.$ac_objext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236 (eval $ac_compile) 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_header_compiler=yes
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 ac_header_compiler=no
4253 rm -f conftest.$ac_objext conftest.$ac_ext
4254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4255 echo "${ECHO_T}$ac_header_compiler" >&6
4257 # Is the header present?
4258 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4260 cat >conftest.$ac_ext <<_ACEOF
4261 #line $LINENO "configure"
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 @%:@include <$ac_header>
4269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4272 grep -v '^ *+' conftest.er1 >conftest.err
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } >/dev/null; then
4277 if test -s conftest.err; then
4278 ac_cpp_err=$ac_c_preproc_warn_flag
4285 if test -z "$ac_cpp_err"; then
4286 ac_header_preproc=yes
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 ac_header_preproc=no
4293 rm -f conftest.err conftest.$ac_ext
4294 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4295 echo "${ECHO_T}$ac_header_preproc" >&6
4297 # So? What about this header?
4298 case $ac_header_compiler:$ac_header_preproc in
4300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4306 @%:@@%:@ ------------------------------------ @%:@@%:@
4307 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4308 @%:@@%:@ ------------------------------------ @%:@@%:@
4311 sed "s/^/$as_me: WARNING: /" >&2
4314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4322 @%:@@%:@ ------------------------------------ @%:@@%:@
4323 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4324 @%:@@%:@ ------------------------------------ @%:@@%:@
4327 sed "s/^/$as_me: WARNING: /" >&2
4330 echo "$as_me:$LINENO: checking for $ac_header" >&5
4331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 eval "$as_ac_Header=$ac_header_preproc"
4337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4342 cat >>confdefs.h <<_ACEOF
4343 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4350 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4351 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
4352 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 cat >conftest.$ac_ext <<_ACEOF
4356 #line $LINENO "configure"
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 @%:@include <sys/types.h>
4366 return makedev(0, 0);
4371 rm -f conftest.$ac_objext conftest$ac_exeext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4373 (eval $ac_link) 2>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try='test -s conftest$ac_exeext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_header_sys_types_h_makedev=yes
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 ac_cv_header_sys_types_h_makedev=no
4390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4393 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4394 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
4396 if test $ac_cv_header_sys_types_h_makedev = no; then
4397 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4398 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4399 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4400 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4404 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4406 # Is the header compilable?
4407 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4408 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4410 #line $LINENO "configure"
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 $ac_includes_default
4417 @%:@include <sys/mkdev.h>
4419 rm -f conftest.$ac_objext
4420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421 (eval $ac_compile) 2>&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } &&
4425 { ac_try='test -s conftest.$ac_objext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_header_compiler=yes
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 ac_header_compiler=no
4438 rm -f conftest.$ac_objext conftest.$ac_ext
4439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4440 echo "${ECHO_T}$ac_header_compiler" >&6
4442 # Is the header present?
4443 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4444 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
4445 cat >conftest.$ac_ext <<_ACEOF
4446 #line $LINENO "configure"
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4452 @%:@include <sys/mkdev.h>
4454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } >/dev/null; then
4462 if test -s conftest.err; then
4463 ac_cpp_err=$ac_c_preproc_warn_flag
4470 if test -z "$ac_cpp_err"; then
4471 ac_header_preproc=yes
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4476 ac_header_preproc=no
4478 rm -f conftest.err conftest.$ac_ext
4479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4480 echo "${ECHO_T}$ac_header_preproc" >&6
4482 # So? What about this header?
4483 case $ac_header_compiler:$ac_header_preproc in
4485 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4486 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4488 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4491 @%:@@%:@ ------------------------------------ @%:@@%:@
4492 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4493 @%:@@%:@ ------------------------------------ @%:@@%:@
4496 sed "s/^/$as_me: WARNING: /" >&2
4499 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4500 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4502 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4504 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4507 @%:@@%:@ ------------------------------------ @%:@@%:@
4508 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4509 @%:@@%:@ ------------------------------------ @%:@@%:@
4512 sed "s/^/$as_me: WARNING: /" >&2
4515 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4516 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4517 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 ac_cv_header_sys_mkdev_h=$ac_header_preproc
4522 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4523 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4526 if test $ac_cv_header_sys_mkdev_h = yes; then
4528 cat >>confdefs.h <<\_ACEOF
4529 @%:@define MAJOR_IN_MKDEV 1
4536 if test $ac_cv_header_sys_mkdev_h = no; then
4537 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4538 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4539 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4540 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4544 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4546 # Is the header compilable?
4547 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4548 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
4549 cat >conftest.$ac_ext <<_ACEOF
4550 #line $LINENO "configure"
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 $ac_includes_default
4557 @%:@include <sys/sysmacros.h>
4559 rm -f conftest.$ac_objext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try='test -s conftest.$ac_objext'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4571 ac_header_compiler=yes
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4576 ac_header_compiler=no
4578 rm -f conftest.$ac_objext conftest.$ac_ext
4579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4580 echo "${ECHO_T}$ac_header_compiler" >&6
4582 # Is the header present?
4583 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4584 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
4585 cat >conftest.$ac_ext <<_ACEOF
4586 #line $LINENO "configure"
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 @%:@include <sys/sysmacros.h>
4594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4597 grep -v '^ *+' conftest.er1 >conftest.err
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } >/dev/null; then
4602 if test -s conftest.err; then
4603 ac_cpp_err=$ac_c_preproc_warn_flag
4610 if test -z "$ac_cpp_err"; then
4611 ac_header_preproc=yes
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4616 ac_header_preproc=no
4618 rm -f conftest.err conftest.$ac_ext
4619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4620 echo "${ECHO_T}$ac_header_preproc" >&6
4622 # So? What about this header?
4623 case $ac_header_compiler:$ac_header_preproc in
4625 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4626 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4627 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4628 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4631 @%:@@%:@ ------------------------------------ @%:@@%:@
4632 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4633 @%:@@%:@ ------------------------------------ @%:@@%:@
4636 sed "s/^/$as_me: WARNING: /" >&2
4639 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4640 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4641 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4642 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4643 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4644 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4647 @%:@@%:@ ------------------------------------ @%:@@%:@
4648 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
4649 @%:@@%:@ ------------------------------------ @%:@@%:@
4652 sed "s/^/$as_me: WARNING: /" >&2
4655 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4656 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4657 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
4662 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4663 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4666 if test $ac_cv_header_sys_sysmacros_h = yes; then
4668 cat >>confdefs.h <<\_ACEOF
4669 @%:@define MAJOR_IN_SYSMACROS 1
4678 echo "$as_me:$LINENO: checking for major_t" >&5
4679 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
4680 if test "${ac_cv_type_major_t+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 cat >conftest.$ac_ext <<_ACEOF
4684 #line $LINENO "configure"
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 #include <sys/types.h>
4691 #ifdef MAJOR_IN_MKDEV
4692 # include <sys/mkdev.h>
4694 # ifdef MAJOR_IN_SYSMACROS
4695 # include <sys/sysmacros.h>
4706 if (sizeof (major_t))
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } &&
4718 { ac_try='test -s conftest.$ac_objext'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; }; then
4724 ac_cv_type_major_t=yes
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 ac_cv_type_major_t=no
4731 rm -f conftest.$ac_objext conftest.$ac_ext
4733 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
4734 echo "${ECHO_T}$ac_cv_type_major_t" >&6
4735 if test $ac_cv_type_major_t = yes; then
4737 cat >>confdefs.h <<_ACEOF
4738 @%:@define HAVE_MAJOR_T 1
4744 cat >>confdefs.h <<\_ACEOF
4745 @%:@define major_t unsigned int
4751 echo "$as_me:$LINENO: checking for minor_t" >&5
4752 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
4753 if test "${ac_cv_type_minor_t+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 cat >conftest.$ac_ext <<_ACEOF
4757 #line $LINENO "configure"
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 #include <sys/types.h>
4764 #ifdef MAJOR_IN_MKDEV
4765 # include <sys/mkdev.h>
4767 # ifdef MAJOR_IN_SYSMACROS
4768 # include <sys/sysmacros.h>
4779 if (sizeof (minor_t))
4785 rm -f conftest.$ac_objext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787 (eval $ac_compile) 2>&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try='test -s conftest.$ac_objext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_cv_type_minor_t=yes
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4802 ac_cv_type_minor_t=no
4804 rm -f conftest.$ac_objext conftest.$ac_ext
4806 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
4807 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
4808 if test $ac_cv_type_minor_t = yes; then
4810 cat >>confdefs.h <<_ACEOF
4811 @%:@define HAVE_MINOR_T 1
4817 cat >>confdefs.h <<\_ACEOF
4818 @%:@define minor_t unsigned int
4824 echo "$as_me:$LINENO: checking for dev_t" >&5
4825 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
4826 if test "${ac_cv_type_dev_t+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 cat >conftest.$ac_ext <<_ACEOF
4830 #line $LINENO "configure"
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 #include <sys/types.h>
4837 #ifdef MAJOR_IN_MKDEV
4838 # include <sys/mkdev.h>
4840 # ifdef MAJOR_IN_SYSMACROS
4841 # include <sys/sysmacros.h>
4858 rm -f conftest.$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860 (eval $ac_compile) 2>&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 ac_cv_type_dev_t=yes
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4877 rm -f conftest.$ac_objext conftest.$ac_ext
4879 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
4880 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
4881 if test $ac_cv_type_dev_t = yes; then
4883 cat >>confdefs.h <<_ACEOF
4884 @%:@define HAVE_DEV_T 1
4890 cat >>confdefs.h <<\_ACEOF
4891 @%:@define dev_t unsigned long
4897 echo "$as_me:$LINENO: checking for socklen_t" >&5
4898 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4899 if test "${ac_cv_type_socklen_t+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 cat >conftest.$ac_ext <<_ACEOF
4903 #line $LINENO "configure"
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 #include <sys/types.h>
4910 #include <sys/socket.h>
4917 if ((socklen_t *) 0)
4919 if (sizeof (socklen_t))
4925 rm -f conftest.$ac_objext
4926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4927 (eval $ac_compile) 2>&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } &&
4931 { ac_try='test -s conftest.$ac_objext'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4937 ac_cv_type_socklen_t=yes
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4942 ac_cv_type_socklen_t=no
4944 rm -f conftest.$ac_objext conftest.$ac_ext
4946 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4947 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4948 if test $ac_cv_type_socklen_t = yes; then
4950 cat >>confdefs.h <<_ACEOF
4951 @%:@define HAVE_SOCKLEN_T 1
4957 cat >>confdefs.h <<\_ACEOF
4958 @%:@define socklen_t unsigned long
4964 echo "$as_me:$LINENO: checking for uint64_t" >&5
4965 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4966 if test "${ac_cv_type_uint64_t+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 cat >conftest.$ac_ext <<_ACEOF
4970 #line $LINENO "configure"
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 $ac_includes_default
4982 if (sizeof (uint64_t))
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990 (eval $ac_compile) 2>&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 ac_cv_type_uint64_t=yes
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5005 ac_cv_type_uint64_t=no
5007 rm -f conftest.$ac_objext conftest.$ac_ext
5009 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5010 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5011 if test $ac_cv_type_uint64_t = yes; then
5013 cat >>confdefs.h <<_ACEOF
5014 @%:@define HAVE_UINT64_T 1
5020 cat >>confdefs.h <<\_ACEOF
5021 @%:@define uint64_t long long
5027 echo "$as_me:$LINENO: checking for mode_t" >&5
5028 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5029 if test "${ac_cv_type_mode_t+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 cat >conftest.$ac_ext <<_ACEOF
5033 #line $LINENO "configure"
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 $ac_includes_default
5045 if (sizeof (mode_t))
5051 rm -f conftest.$ac_objext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053 (eval $ac_compile) 2>&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } &&
5057 { ac_try='test -s conftest.$ac_objext'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 ac_cv_type_mode_t=yes
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5068 ac_cv_type_mode_t=no
5070 rm -f conftest.$ac_objext conftest.$ac_ext
5072 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5073 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5074 if test $ac_cv_type_mode_t = yes; then
5078 cat >>confdefs.h <<_ACEOF
5079 @%:@define mode_t int
5084 echo "$as_me:$LINENO: checking for off_t" >&5
5085 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5086 if test "${ac_cv_type_off_t+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 cat >conftest.$ac_ext <<_ACEOF
5090 #line $LINENO "configure"
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5096 $ac_includes_default
5108 rm -f conftest.$ac_objext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5110 (eval $ac_compile) 2>&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } &&
5114 { ac_try='test -s conftest.$ac_objext'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; }; then
5120 ac_cv_type_off_t=yes
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5127 rm -f conftest.$ac_objext conftest.$ac_ext
5129 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5130 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5131 if test $ac_cv_type_off_t = yes; then
5135 cat >>confdefs.h <<_ACEOF
5136 @%:@define off_t long
5141 echo "$as_me:$LINENO: checking for size_t" >&5
5142 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5143 if test "${ac_cv_type_size_t+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 $ac_includes_default
5159 if (sizeof (size_t))
5165 rm -f conftest.$ac_objext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167 (eval $ac_compile) 2>&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
5171 { ac_try='test -s conftest.$ac_objext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 ac_cv_type_size_t=yes
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 ac_cv_type_size_t=no
5184 rm -f conftest.$ac_objext conftest.$ac_ext
5186 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5187 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5188 if test $ac_cv_type_size_t = yes; then
5192 cat >>confdefs.h <<_ACEOF
5193 @%:@define size_t unsigned
5198 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5199 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5200 if test "${ac_cv_type_uid_t+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 cat >conftest.$ac_ext <<_ACEOF
5204 #line $LINENO "configure"
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 #include <sys/types.h>
5213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5214 $EGREP "uid_t" >/dev/null 2>&1; then
5215 ac_cv_type_uid_t=yes
5222 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5223 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5224 if test $ac_cv_type_uid_t = no; then
5226 cat >>confdefs.h <<\_ACEOF
5227 @%:@define uid_t int
5231 cat >>confdefs.h <<\_ACEOF
5232 @%:@define gid_t int
5237 echo "$as_me:$LINENO: checking for nlink_t" >&5
5238 echo $ECHO_N "checking for nlink_t... $ECHO_C" >&6
5239 if test "${ac_cv_type_nlink_t+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 cat >conftest.$ac_ext <<_ACEOF
5243 #line $LINENO "configure"
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 $ac_includes_default
5255 if (sizeof (nlink_t))
5261 rm -f conftest.$ac_objext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263 (eval $ac_compile) 2>&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } &&
5267 { ac_try='test -s conftest.$ac_objext'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5273 ac_cv_type_nlink_t=yes
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5278 ac_cv_type_nlink_t=no
5280 rm -f conftest.$ac_objext conftest.$ac_ext
5282 echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
5283 echo "${ECHO_T}$ac_cv_type_nlink_t" >&6
5284 if test $ac_cv_type_nlink_t = yes; then
5286 cat >>confdefs.h <<_ACEOF
5287 @%:@define HAVE_NLINK_T 1
5293 cat >>confdefs.h <<\_ACEOF
5294 @%:@define nlink_t unsigned short
5304 cat >>confdefs.h <<\_ACEOF
5305 @%:@define NEED_BASENAME 1
5309 for ac_header in libgen.h
5311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5313 echo "$as_me:$LINENO: checking for $ac_header" >&5
5314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5321 # Is the header compilable?
5322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5324 cat >conftest.$ac_ext <<_ACEOF
5325 #line $LINENO "configure"
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5331 $ac_includes_default
5332 @%:@include <$ac_header>
5334 rm -f conftest.$ac_objext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336 (eval $ac_compile) 2>&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -s conftest.$ac_objext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_header_compiler=yes
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 ac_header_compiler=no
5353 rm -f conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5355 echo "${ECHO_T}$ac_header_compiler" >&6
5357 # Is the header present?
5358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5360 cat >conftest.$ac_ext <<_ACEOF
5361 #line $LINENO "configure"
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 @%:@include <$ac_header>
5369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } >/dev/null; then
5377 if test -s conftest.err; then
5378 ac_cpp_err=$ac_c_preproc_warn_flag
5385 if test -z "$ac_cpp_err"; then
5386 ac_header_preproc=yes
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 ac_header_preproc=no
5393 rm -f conftest.err conftest.$ac_ext
5394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395 echo "${ECHO_T}$ac_header_preproc" >&6
5397 # So? What about this header?
5398 case $ac_header_compiler:$ac_header_preproc in
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5406 @%:@@%:@ ------------------------------------ @%:@@%:@
5407 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5408 @%:@@%:@ ------------------------------------ @%:@@%:@
5411 sed "s/^/$as_me: WARNING: /" >&2
5414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5422 @%:@@%:@ ------------------------------------ @%:@@%:@
5423 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5424 @%:@@%:@ ------------------------------------ @%:@@%:@
5427 sed "s/^/$as_me: WARNING: /" >&2
5430 echo "$as_me:$LINENO: checking for $ac_header" >&5
5431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 eval "$as_ac_Header=$ac_header_preproc"
5437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5442 cat >>confdefs.h <<_ACEOF
5443 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5450 echo "$as_me:$LINENO: checking for working basename" >&5
5451 echo $ECHO_N "checking for working basename... $ECHO_C" >&6
5452 if test "${compat_cv_func_basename_works+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 if test "$cross_compiling" = yes; then
5456 compat_cv_func_basename_works=no
5459 cat >conftest.$ac_ext <<_ACEOF
5460 #line $LINENO "configure"
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5468 #ifdef HAVE_LIBGEN_H
5469 # include <libgen.h>
5477 const test_t tests[] = {
5478 { "/usr/local/foo", "foo" },
5479 { "/usr/local/foo/", "foo" },
5487 for (i = 0; tests[i].test; i++) {
5488 strcpy(test1, tests[i].test);
5489 if (strcmp(basename(test1), tests[i].result) ||
5490 strcmp(test1, tests[i].test))
5498 rm -f conftest$ac_exeext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500 (eval $ac_link) 2>&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; }; then
5509 compat_cv_func_basename_works=yes
5511 echo "$as_me: program exited with status $ac_status" >&5
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5516 compat_cv_func_basename_works=no
5518 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5522 echo "$as_me:$LINENO: result: $compat_cv_func_basename_works" >&5
5523 echo "${ECHO_T}$compat_cv_func_basename_works" >&6
5524 if test "$compat_cv_func_basename_works" = "yes"; then
5526 cat >>confdefs.h <<\_ACEOF
5527 @%:@define HAVE_BASENAME 1
5531 LIB@&t@OBJS="$LIB@&t@OBJS basename.$ac_objext"
5536 cat >>confdefs.h <<\_ACEOF
5537 @%:@define NEED_DIRNAME 1
5541 for ac_header in libgen.h
5543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5545 echo "$as_me:$LINENO: checking for $ac_header" >&5
5546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5553 # Is the header compilable?
5554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5556 cat >conftest.$ac_ext <<_ACEOF
5557 #line $LINENO "configure"
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 $ac_includes_default
5564 @%:@include <$ac_header>
5566 rm -f conftest.$ac_objext
5567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568 (eval $ac_compile) 2>&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 ac_header_compiler=yes
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5583 ac_header_compiler=no
5585 rm -f conftest.$ac_objext conftest.$ac_ext
5586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5587 echo "${ECHO_T}$ac_header_compiler" >&6
5589 # Is the header present?
5590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5592 cat >conftest.$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 @%:@include <$ac_header>
5601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } >/dev/null; then
5609 if test -s conftest.err; then
5610 ac_cpp_err=$ac_c_preproc_warn_flag
5617 if test -z "$ac_cpp_err"; then
5618 ac_header_preproc=yes
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5623 ac_header_preproc=no
5625 rm -f conftest.err conftest.$ac_ext
5626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5627 echo "${ECHO_T}$ac_header_preproc" >&6
5629 # So? What about this header?
5630 case $ac_header_compiler:$ac_header_preproc in
5632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5638 @%:@@%:@ ------------------------------------ @%:@@%:@
5639 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5640 @%:@@%:@ ------------------------------------ @%:@@%:@
5643 sed "s/^/$as_me: WARNING: /" >&2
5646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5654 @%:@@%:@ ------------------------------------ @%:@@%:@
5655 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5656 @%:@@%:@ ------------------------------------ @%:@@%:@
5659 sed "s/^/$as_me: WARNING: /" >&2
5662 echo "$as_me:$LINENO: checking for $ac_header" >&5
5663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 eval "$as_ac_Header=$ac_header_preproc"
5669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5674 cat >>confdefs.h <<_ACEOF
5675 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5682 echo "$as_me:$LINENO: checking for working dirname" >&5
5683 echo $ECHO_N "checking for working dirname... $ECHO_C" >&6
5684 if test "${compat_cv_func_dirname_works+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 if test "$cross_compiling" = yes; then
5688 compat_cv_func_dirname_works=no
5691 cat >conftest.$ac_ext <<_ACEOF
5692 #line $LINENO "configure"
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5700 #ifdef HAVE_LIBGEN_H
5701 # include <libgen.h>
5709 const test_t tests[] = {
5711 { "/usr/local/foo", "/usr/local" },
5712 { "/usr/local/foo/", "/usr/local" },
5722 for (i = 0; tests[i].test; i++) {
5723 strcpy(test1, tests[i].test);
5724 if (strcmp(dirname(test1), tests[i].result) ||
5725 strcmp(test1, tests[i].test))
5733 rm -f conftest$ac_exeext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5735 (eval $ac_link) 2>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 compat_cv_func_dirname_works=yes
5746 echo "$as_me: program exited with status $ac_status" >&5
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5751 compat_cv_func_dirname_works=no
5753 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5757 echo "$as_me:$LINENO: result: $compat_cv_func_dirname_works" >&5
5758 echo "${ECHO_T}$compat_cv_func_dirname_works" >&6
5759 if test "$compat_cv_func_dirname_works" = "yes"; then
5761 cat >>confdefs.h <<\_ACEOF
5762 @%:@define HAVE_DIRNAME 1
5766 LIB@&t@OBJS="$LIB@&t@OBJS dirname.$ac_objext"
5771 cat >>confdefs.h <<\_ACEOF
5772 @%:@define NEED_FNMATCH 1
5776 for ac_header in fnmatch.h
5778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5780 echo "$as_me:$LINENO: checking for $ac_header" >&5
5781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5788 # Is the header compilable?
5789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5791 cat >conftest.$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 $ac_includes_default
5799 @%:@include <$ac_header>
5801 rm -f conftest.$ac_objext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803 (eval $ac_compile) 2>&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try='test -s conftest.$ac_objext'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5813 ac_header_compiler=yes
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 ac_header_compiler=no
5820 rm -f conftest.$ac_objext conftest.$ac_ext
5821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5822 echo "${ECHO_T}$ac_header_compiler" >&6
5824 # Is the header present?
5825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5827 cat >conftest.$ac_ext <<_ACEOF
5828 #line $LINENO "configure"
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 @%:@include <$ac_header>
5836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5839 grep -v '^ *+' conftest.er1 >conftest.err
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } >/dev/null; then
5844 if test -s conftest.err; then
5845 ac_cpp_err=$ac_c_preproc_warn_flag
5852 if test -z "$ac_cpp_err"; then
5853 ac_header_preproc=yes
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5858 ac_header_preproc=no
5860 rm -f conftest.err conftest.$ac_ext
5861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5862 echo "${ECHO_T}$ac_header_preproc" >&6
5864 # So? What about this header?
5865 case $ac_header_compiler:$ac_header_preproc in
5867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5873 @%:@@%:@ ------------------------------------ @%:@@%:@
5874 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5875 @%:@@%:@ ------------------------------------ @%:@@%:@
5878 sed "s/^/$as_me: WARNING: /" >&2
5881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5889 @%:@@%:@ ------------------------------------ @%:@@%:@
5890 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
5891 @%:@@%:@ ------------------------------------ @%:@@%:@
5894 sed "s/^/$as_me: WARNING: /" >&2
5897 echo "$as_me:$LINENO: checking for $ac_header" >&5
5898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 eval "$as_ac_Header=$ac_header_preproc"
5904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5909 cat >>confdefs.h <<_ACEOF
5910 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5917 if test "$ac_cv_header_fnmatch_h" = "yes"; then
5918 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
5919 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
5920 if test "${ac_cv_func_fnmatch_works+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 # Some versions of Solaris, SCO, and the GNU C Library
5924 # have a broken or incompatible fnmatch.
5925 # So we run a test program. If we are cross-compiling, take no chance.
5926 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
5927 if test "$cross_compiling" = yes; then
5928 ac_cv_func_fnmatch_works=cross
5930 cat >conftest.$ac_ext <<_ACEOF
5931 #line $LINENO "configure"
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5937 #include <fnmatch.h>
5938 # define y(a, b, c) (fnmatch (a, b, c) == 0)
5939 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
5945 (!(y ("a*", "abc", 0)
5946 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
5947 && y ("a\\\\bc", "abc", 0)
5948 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
5949 && y ("*x", ".x", 0)
5950 && n ("*x", ".x", FNM_PERIOD)
5956 rm -f conftest$ac_exeext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5958 (eval $ac_link) 2>&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 ac_cv_func_fnmatch_works=yes
5969 echo "$as_me: program exited with status $ac_status" >&5
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5974 ac_cv_func_fnmatch_works=no
5976 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5979 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
5980 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
5981 if test $ac_cv_func_fnmatch_works = yes; then
5983 cat >>confdefs.h <<\_ACEOF
5984 @%:@define HAVE_FNMATCH 1
5992 if test "$ac_cv_func_fnmatch_works" != "yes"; then
5994 for ac_header in ctype.h
5996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5998 echo "$as_me:$LINENO: checking for $ac_header" >&5
5999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6006 # Is the header compilable?
6007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6009 cat >conftest.$ac_ext <<_ACEOF
6010 #line $LINENO "configure"
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 $ac_includes_default
6017 @%:@include <$ac_header>
6019 rm -f conftest.$ac_objext
6020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021 (eval $ac_compile) 2>&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } &&
6025 { ac_try='test -s conftest.$ac_objext'
6026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; }; then
6031 ac_header_compiler=yes
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_header_compiler=no
6038 rm -f conftest.$ac_objext conftest.$ac_ext
6039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6040 echo "${ECHO_T}$ac_header_compiler" >&6
6042 # Is the header present?
6043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6045 cat >conftest.$ac_ext <<_ACEOF
6046 #line $LINENO "configure"
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 @%:@include <$ac_header>
6054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6057 grep -v '^ *+' conftest.er1 >conftest.err
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } >/dev/null; then
6062 if test -s conftest.err; then
6063 ac_cpp_err=$ac_c_preproc_warn_flag
6070 if test -z "$ac_cpp_err"; then
6071 ac_header_preproc=yes
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 ac_header_preproc=no
6078 rm -f conftest.err conftest.$ac_ext
6079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6080 echo "${ECHO_T}$ac_header_preproc" >&6
6082 # So? What about this header?
6083 case $ac_header_compiler:$ac_header_preproc in
6085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6091 @%:@@%:@ ------------------------------------ @%:@@%:@
6092 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
6093 @%:@@%:@ ------------------------------------ @%:@@%:@
6096 sed "s/^/$as_me: WARNING: /" >&2
6099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6107 @%:@@%:@ ------------------------------------ @%:@@%:@
6108 @%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
6109 @%:@@%:@ ------------------------------------ @%:@@%:@
6112 sed "s/^/$as_me: WARNING: /" >&2
6115 echo "$as_me:$LINENO: checking for $ac_header" >&5
6116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 eval "$as_ac_Header=$ac_header_preproc"
6122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6127 cat >>confdefs.h <<_ACEOF
6128 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6135 LIB@&t@OBJS="$LIB@&t@OBJS fnmatch.$ac_objext"
6139 for ac_func in lchown
6141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6142 echo "$as_me:$LINENO: checking for $ac_func" >&5
6143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6144 if eval "test \"\${$as_ac_var+set}\" = set"; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 cat >conftest.$ac_ext <<_ACEOF
6148 #line $LINENO "configure"
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 /* System header to define __stub macros and hopefully few prototypes,
6155 which can conflict with char $ac_func (); below.
6156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6157 <limits.h> exists even on freestanding compilers. */
6159 # include <limits.h>
6161 # include <assert.h>
6163 /* Override any gcc2 internal prototype to avoid an error. */
6168 /* We use char because int might match the return type of a gcc2
6169 builtin and then its argument prototype would still apply. */
6171 /* The GNU C library defines this for functions which it implements
6172 to always fail with ENOSYS. Some functions are actually named
6173 something starting with __ and the normal name is an alias. */
6174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6177 char (*f) () = $ac_func;
6186 return f != $ac_func;
6191 rm -f conftest.$ac_objext conftest$ac_exeext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193 (eval $ac_link) 2>&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try='test -s conftest$ac_exeext'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; }; then
6203 eval "$as_ac_var=yes"
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6208 eval "$as_ac_var=no"
6210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6214 if test `eval echo '${'$as_ac_var'}'` = yes; then
6215 cat >>confdefs.h <<_ACEOF
6216 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6225 cat >>confdefs.h <<\_ACEOF
6226 @%:@define NEED_MAKEDEV 1
6229 echo "$as_me:$LINENO: checking whether makedev expects three arguments" >&5
6230 echo $ECHO_N "checking whether makedev expects three arguments... $ECHO_C" >&6
6231 if test "${compat_cv_func_makedev_three_args+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 if test "$cross_compiling" = yes; then
6235 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6236 See \`config.log' for more details." >&5
6237 echo "$as_me: error: cannot run test program while cross compiling
6238 See \`config.log' for more details." >&2;}
6239 { (exit 1); exit 1; }; }
6241 cat >conftest.$ac_ext <<_ACEOF
6243 #line $LINENO "configure"
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6250 #include <sys/types.h>
6251 #ifdef MAJOR_IN_MKDEV
6252 # include <sys/mkdev.h>
6254 # ifdef MAJOR_IN_SYSMACROS
6255 # include <sys/sysmacros.h>
6267 dev = makedev(0, maj, min);
6268 if (major(dev) != maj
6269 || minor(dev) != min)
6277 rm -f conftest$ac_exeext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6279 (eval $ac_link) 2>&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; }; then
6288 compat_cv_func_makedev_three_args=yes
6290 echo "$as_me: program exited with status $ac_status" >&5
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6295 compat_cv_func_makedev_three_args=no
6298 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6302 echo "$as_me:$LINENO: result: $compat_cv_func_makedev_three_args" >&5
6303 echo "${ECHO_T}$compat_cv_func_makedev_three_args" >&6
6304 if test "$compat_cv_func_makedev_three_args" = "yes"; then
6306 cat >>confdefs.h <<\_ACEOF
6307 @%:@define MAKEDEV_THREE_ARGS 1
6314 cat >>confdefs.h <<\_ACEOF
6315 @%:@define NEED_SNPRINTF 1
6318 echo "$as_me:$LINENO: checking for working snprintf" >&5
6319 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
6320 if test "${compat_cv_func_snprintf_works+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 if test "$cross_compiling" = yes; then
6324 compat_cv_func_snprintf_works=no
6327 cat >conftest.$ac_ext <<_ACEOF
6328 #line $LINENO "configure"
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6344 const test_t tests[] = {
6345 { 10, "12345678901234567890", 20, "123456789" },
6347 { 0, "12345678901234567890", 20, NULL },
6348 { -1, "12345678901234567890", -1, NULL },
6350 { 0, NULL, 0, NULL }
6357 for (i = 0; tests[i].test; i++) {
6358 memset(test1, 'X', sizeof(test1));
6359 if ((snprintf(test1, tests[i].length, "%s", tests[i].test)
6360 != tests[i].retval) ||
6361 (tests[i].result && strcmp(tests[i].result, test1)))
6369 rm -f conftest$ac_exeext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371 (eval $ac_link) 2>&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; }; then
6380 compat_cv_func_snprintf_works=yes
6382 echo "$as_me: program exited with status $ac_status" >&5
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6387 compat_cv_func_snprintf_works=no
6389 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6393 echo "$as_me:$LINENO: result: $compat_cv_func_snprintf_works" >&5
6394 echo "${ECHO_T}$compat_cv_func_snprintf_works" >&6
6395 if test "$compat_cv_func_snprintf_works" = "yes"; then
6397 cat >>confdefs.h <<\_ACEOF
6398 @%:@define HAVE_SNPRINTF 1
6402 LIB@&t@OBJS="$LIB@&t@OBJS snprintf.$ac_objext"
6408 cat >>confdefs.h <<\_ACEOF
6409 @%:@define NEED_STRDUP 1
6412 echo "$as_me:$LINENO: checking for strdup" >&5
6413 echo $ECHO_N "checking for strdup... $ECHO_C" >&6
6414 if test "${ac_cv_func_strdup+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 cat >conftest.$ac_ext <<_ACEOF
6418 #line $LINENO "configure"
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 /* System header to define __stub macros and hopefully few prototypes,
6425 which can conflict with char strdup (); below.
6426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6427 <limits.h> exists even on freestanding compilers. */
6429 # include <limits.h>
6431 # include <assert.h>
6433 /* Override any gcc2 internal prototype to avoid an error. */
6438 /* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */
6441 /* The GNU C library defines this for functions which it implements
6442 to always fail with ENOSYS. Some functions are actually named
6443 something starting with __ and the normal name is an alias. */
6444 #if defined (__stub_strdup) || defined (__stub___strdup)
6447 char (*f) () = strdup;
6461 rm -f conftest.$ac_objext conftest$ac_exeext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463 (eval $ac_link) 2>&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
6467 { ac_try='test -s conftest$ac_exeext'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; }; then
6473 ac_cv_func_strdup=yes
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6478 ac_cv_func_strdup=no
6480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6482 echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
6483 echo "${ECHO_T}$ac_cv_func_strdup" >&6
6484 if test $ac_cv_func_strdup = yes; then
6486 cat >>confdefs.h <<\_ACEOF
6487 @%:@define HAVE_STRDUP 1
6491 LIB@&t@OBJS="$LIB@&t@OBJS strdup.$ac_objext"
6498 for ac_func in strftime
6500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6501 echo "$as_me:$LINENO: checking for $ac_func" >&5
6502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6503 if eval "test \"\${$as_ac_var+set}\" = set"; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 cat >conftest.$ac_ext <<_ACEOF
6507 #line $LINENO "configure"
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 /* System header to define __stub macros and hopefully few prototypes,
6514 which can conflict with char $ac_func (); below.
6515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6516 <limits.h> exists even on freestanding compilers. */
6518 # include <limits.h>
6520 # include <assert.h>
6522 /* Override any gcc2 internal prototype to avoid an error. */
6527 /* We use char because int might match the return type of a gcc2
6528 builtin and then its argument prototype would still apply. */
6530 /* The GNU C library defines this for functions which it implements
6531 to always fail with ENOSYS. Some functions are actually named
6532 something starting with __ and the normal name is an alias. */
6533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6536 char (*f) () = $ac_func;
6545 return f != $ac_func;
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6552 (eval $ac_link) 2>&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -s conftest$ac_exeext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 eval "$as_ac_var=yes"
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 eval "$as_ac_var=no"
6569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6573 if test `eval echo '${'$as_ac_var'}'` = yes; then
6574 cat >>confdefs.h <<_ACEOF
6575 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6579 # strftime is in -lintl on SCO UNIX.
6580 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
6581 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6582 if test "${ac_cv_lib_intl_strftime+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 ac_check_lib_save_LIBS=$LIBS
6587 cat >conftest.$ac_ext <<_ACEOF
6588 #line $LINENO "configure"
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6595 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6610 rm -f conftest.$ac_objext conftest$ac_exeext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612 (eval $ac_link) 2>&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -s conftest$ac_exeext'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
6622 ac_cv_lib_intl_strftime=yes
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6627 ac_cv_lib_intl_strftime=no
6629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6630 LIBS=$ac_check_lib_save_LIBS
6632 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
6633 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6634 if test $ac_cv_lib_intl_strftime = yes; then
6635 cat >>confdefs.h <<\_ACEOF
6636 @%:@define HAVE_STRFTIME 1
6648 cat >>confdefs.h <<\_ACEOF
6649 @%:@define NEED_STRLCPY 1
6652 echo "$as_me:$LINENO: checking for strlcpy" >&5
6653 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
6654 if test "${ac_cv_func_strlcpy+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 cat >conftest.$ac_ext <<_ACEOF
6658 #line $LINENO "configure"
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 /* System header to define __stub macros and hopefully few prototypes,
6665 which can conflict with char strlcpy (); below.
6666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6667 <limits.h> exists even on freestanding compilers. */
6669 # include <limits.h>
6671 # include <assert.h>
6673 /* Override any gcc2 internal prototype to avoid an error. */
6678 /* We use char because int might match the return type of a gcc2
6679 builtin and then its argument prototype would still apply. */
6681 /* The GNU C library defines this for functions which it implements
6682 to always fail with ENOSYS. Some functions are actually named
6683 something starting with __ and the normal name is an alias. */
6684 #if defined (__stub_strlcpy) || defined (__stub___strlcpy)
6687 char (*f) () = strlcpy;
6696 return f != strlcpy;
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_cv_func_strlcpy=yes
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 ac_cv_func_strlcpy=no
6720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6722 echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
6723 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
6724 if test $ac_cv_func_strlcpy = yes; then
6726 cat >>confdefs.h <<\_ACEOF
6727 @%:@define HAVE_STRLCPY 1
6731 LIB@&t@OBJS="$LIB@&t@OBJS strlcpy.$ac_objext"
6740 cat >>confdefs.h <<\_ACEOF
6741 @%:@define NEED_STRMODE 1
6744 echo "$as_me:$LINENO: checking for strmode" >&5
6745 echo $ECHO_N "checking for strmode... $ECHO_C" >&6
6746 if test "${ac_cv_func_strmode+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 cat >conftest.$ac_ext <<_ACEOF
6750 #line $LINENO "configure"
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 /* System header to define __stub macros and hopefully few prototypes,
6757 which can conflict with char strmode (); below.
6758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6759 <limits.h> exists even on freestanding compilers. */
6761 # include <limits.h>
6763 # include <assert.h>
6765 /* Override any gcc2 internal prototype to avoid an error. */
6770 /* We use char because int might match the return type of a gcc2
6771 builtin and then its argument prototype would still apply. */
6773 /* The GNU C library defines this for functions which it implements
6774 to always fail with ENOSYS. Some functions are actually named
6775 something starting with __ and the normal name is an alias. */
6776 #if defined (__stub_strmode) || defined (__stub___strmode)
6779 char (*f) () = strmode;
6788 return f != strmode;
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795 (eval $ac_link) 2>&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -s conftest$ac_exeext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_cv_func_strmode=yes
6807 echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6810 ac_cv_func_strmode=no
6812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6814 echo "$as_me:$LINENO: result: $ac_cv_func_strmode" >&5
6815 echo "${ECHO_T}$ac_cv_func_strmode" >&6
6816 if test $ac_cv_func_strmode = yes; then
6818 cat >>confdefs.h <<\_ACEOF
6819 @%:@define HAVE_STRMODE 1
6823 LIB@&t@OBJS="$LIB@&t@OBJS strmode.$ac_objext"
6832 cat >>confdefs.h <<\_ACEOF
6833 @%:@define NEED_STRSEP 1
6836 echo "$as_me:$LINENO: checking for strsep" >&5
6837 echo $ECHO_N "checking for strsep... $ECHO_C" >&6
6838 if test "${ac_cv_func_strsep+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 /* System header to define __stub macros and hopefully few prototypes,
6849 which can conflict with char strsep (); below.
6850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6851 <limits.h> exists even on freestanding compilers. */
6853 # include <limits.h>
6855 # include <assert.h>
6857 /* Override any gcc2 internal prototype to avoid an error. */
6862 /* We use char because int might match the return type of a gcc2
6863 builtin and then its argument prototype would still apply. */
6865 /* The GNU C library defines this for functions which it implements
6866 to always fail with ENOSYS. Some functions are actually named
6867 something starting with __ and the normal name is an alias. */
6868 #if defined (__stub_strsep) || defined (__stub___strsep)
6871 char (*f) () = strsep;
6885 rm -f conftest.$ac_objext conftest$ac_exeext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6887 (eval $ac_link) 2>&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } &&
6891 { ac_try='test -s conftest$ac_exeext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 ac_cv_func_strsep=yes
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6902 ac_cv_func_strsep=no
6904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6906 echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
6907 echo "${ECHO_T}$ac_cv_func_strsep" >&6
6908 if test $ac_cv_func_strsep = yes; then
6910 cat >>confdefs.h <<\_ACEOF
6911 @%:@define HAVE_STRSEP 1
6915 LIB@&t@OBJS="$LIB@&t@OBJS strsep.$ac_objext"
6924 # Check whether --with-zlib or --without-zlib was given.
6925 if test "${with_zlib+set}" = set; then
6926 withval="$with_zlib"
6931 if test "$with_zlib" = "yes"; then
6933 echo "$as_me:$LINENO: checking for gzread in -lz" >&5
6934 echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
6935 if test "${ac_cv_lib_z_gzread+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 ac_check_lib_save_LIBS=$LIBS
6940 cat >conftest.$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6948 /* Override any gcc2 internal prototype to avoid an error. */
6952 /* We use char because int might match the return type of a gcc2
6953 builtin and then its argument prototype would still apply. */
6963 rm -f conftest.$ac_objext conftest$ac_exeext
6964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6965 (eval $ac_link) 2>&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
6969 { ac_try='test -s conftest$ac_exeext'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
6975 ac_cv_lib_z_gzread=yes
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6980 ac_cv_lib_z_gzread=no
6982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6983 LIBS=$ac_check_lib_save_LIBS
6985 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
6986 echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
6987 if test $ac_cv_lib_z_gzread = yes; then
6988 cat >>confdefs.h <<_ACEOF
6989 @%:@define HAVE_LIBZ 1
6999 ac_config_files="$ac_config_files Makefile lib/Makefile libtar/Makefile doc/Makefile"
7001 cat >confcache <<\_ACEOF
7002 # This file is a shell script that caches the results of configure
7003 # tests run on this system so they can be shared between configure
7004 # scripts and configure runs, see configure's option --config-cache.
7005 # It is not useful on other systems. If it contains results you don't
7006 # want to keep, you may remove or edit it.
7008 # config.status only pays attention to the cache file if you give it
7009 # the --recheck option to rerun configure.
7011 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7012 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7017 # The following way of writing the cache mishandles newlines in values,
7018 # but we know of no workaround that is simple, portable, and efficient.
7019 # So, don't put newlines in cache variables' values.
7020 # Ultrix sh set writes to stderr and can't be redirected directly,
7021 # and sets the high bit in the cache file unless we assign to the vars.
7024 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7026 # `set' does not quote correctly, so add quotes (double-quote
7027 # substitution turns \\\\ into \\, and sed turns \\ into \).
7030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7033 # `set' quotes correctly as required by POSIX, so do not add quotes.
7035 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7042 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7044 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7046 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7047 if test -w $cache_file; then
7048 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7049 cat confcache >$cache_file
7051 echo "not updating unwritable cache $cache_file"
7056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7057 # Let make expand exec_prefix.
7058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7060 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7061 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7062 # trailing colons and then remove the whole line if VPATH becomes empty
7063 # (actually we leave an empty line to preserve line numbers).
7064 if test "x$srcdir" = x.; then
7065 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7066 s/:*\$(srcdir):*/:/;
7067 s/:*\${srcdir}:*/:/;
7069 s/^\([^=]*=[ ]*\):*/\1/;
7075 DEFS=-DHAVE_CONFIG_H
7079 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
7080 # 1. Remove the extension, and $U if already installed.
7081 ac_i=`echo "$ac_i" |
7082 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7084 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7085 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7087 LIB@&t@OBJS=$ac_libobjs
7089 LTLIBOBJS=$ac_ltlibobjs
7093 : ${CONFIG_STATUS=./config.status}
7094 ac_clean_files_save=$ac_clean_files
7095 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7096 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7097 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7098 cat >$CONFIG_STATUS <<_ACEOF
7100 # Generated by $as_me.
7101 # Run this file to recreate the current configuration.
7102 # Compiler output produced by configure, useful for debugging
7103 # configure, is in config.log if it exists.
7108 SHELL=\${CONFIG_SHELL-$SHELL}
7111 cat >>$CONFIG_STATUS <<\_ACEOF
7112 ## --------------------- ##
7113 ## M4sh Initialization. ##
7114 ## --------------------- ##
7116 # Be Bourne compatible
7117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7120 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7121 # is contrary to our usage. Disable this feature.
7122 alias -g '${1+"$@"}'='"$@"'
7123 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7127 # Support unset when possible.
7128 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7135 # Work around bugs in pre-3.0 UWIN ksh.
7136 $as_unset ENV MAIL MAILPATH
7143 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7144 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7145 LC_TELEPHONE LC_TIME
7147 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7148 eval $as_var=C; export $as_var
7154 # Required to use basename.
7155 if expr a : '\(a\)' >/dev/null 2>&1; then
7161 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7162 as_basename=basename
7168 # Name of the executable.
7169 as_me=`$as_basename "$0" ||
7170 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7171 X"$0" : 'X\(//\)$' \| \
7172 X"$0" : 'X\(/\)$' \| \
7173 . : '\(.\)' 2>/dev/null ||
7175 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7176 /^X\/\(\/\/\)$/{ s//\1/; q; }
7177 /^X\/\(\/\).*/{ s//\1/; q; }
7181 # PATH needs CR, and LINENO needs CR and PATH.
7182 # Avoid depending upon Character Ranges.
7183 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7184 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7185 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7186 as_cr_digits='0123456789'
7187 as_cr_alnum=$as_cr_Letters$as_cr_digits
7189 # The user is always right.
7190 if test "${PATH_SEPARATOR+set}" != set; then
7191 echo "#! /bin/sh" >conf$$.sh
7192 echo "exit 0" >>conf$$.sh
7194 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7205 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7206 test "x$as_lineno_1" != "x$as_lineno_2" &&
7207 test "x$as_lineno_3" = "x$as_lineno_2" || {
7208 # Find who we are. Look in the path if we contain no path at all
7211 *[\\/]* ) as_myself=$0 ;;
7212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir=.
7217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7222 # We did not find ourselves, most probably we were run as `sh COMMAND'
7223 # in which case we are not to be found in the path.
7224 if test "x$as_myself" = x; then
7227 if test ! -f "$as_myself"; then
7228 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7229 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7230 { (exit 1); exit 1; }; }
7232 case $CONFIG_SHELL in
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7238 test -z "$as_dir" && as_dir=.
7239 for as_base in sh bash ksh sh5; do
7242 if ("$as_dir/$as_base" -c '
7245 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7246 test "x$as_lineno_1" != "x$as_lineno_2" &&
7247 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7248 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7249 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7250 CONFIG_SHELL=$as_dir/$as_base
7252 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7260 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7261 # uniformly replaced by the line number. The first 'sed' inserts a
7262 # line-number line before each line; the second 'sed' does the real
7263 # work. The second script uses 'N' to pair each line-number line
7264 # with the numbered line, and appends trailing '-' during
7265 # substitution so that $LINENO is not a special case at line end.
7266 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7267 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7268 sed '=' <$as_myself |
7273 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7276 s,^['$as_cr_digits']*\n,,
7278 chmod +x $as_me.lineno ||
7279 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7280 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7281 { (exit 1); exit 1; }; }
7283 # Don't try to exec as it changes $[0], causing all sort of problems
7284 # (the dirname of $[0] is not the place where we might find the
7285 # original and so on. Autoconf is especially sensible to this).
7287 # Exit status is that of the last command.
7292 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7293 *c*,-n*) ECHO_N= ECHO_C='
7295 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7296 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7299 if expr a : '\(a\)' >/dev/null 2>&1; then
7305 rm -f conf$$ conf$$.exe conf$$.file
7307 if ln -s conf$$.file conf$$ 2>/dev/null; then
7308 # We could just check for DJGPP; but this test a) works b) is more generic
7309 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7310 if test -f conf$$.exe; then
7311 # Don't use ln at all; we don't have any links
7316 elif ln conf$$.file conf$$ 2>/dev/null; then
7321 rm -f conf$$ conf$$.exe conf$$.file
7323 if mkdir -p . 2>/dev/null; then
7329 as_executable_p="test -f"
7331 # Sed expression to map a string onto a valid CPP name.
7332 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7334 # Sed expression to map a string onto a valid variable name.
7335 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7339 # We need space, tab and new line, in precisely that order.
7349 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7350 # report actual input values of CONFIG_FILES etc. instead of their
7351 # values after options handling. Logging --version etc. is OK.
7355 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
7356 @%:@@%:@ Running $as_me. @%:@@%:@
7361 This file was extended by libtar $as_me 1.2.11, which was
7362 generated by GNU Autoconf 2.57. Invocation command line was
7364 CONFIG_FILES = $CONFIG_FILES
7365 CONFIG_HEADERS = $CONFIG_HEADERS
7366 CONFIG_LINKS = $CONFIG_LINKS
7367 CONFIG_COMMANDS = $CONFIG_COMMANDS
7371 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7375 # Files that config.status was made for.
7376 if test -n "$ac_config_files"; then
7377 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7380 if test -n "$ac_config_headers"; then
7381 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7384 if test -n "$ac_config_links"; then
7385 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7388 if test -n "$ac_config_commands"; then
7389 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7392 cat >>$CONFIG_STATUS <<\_ACEOF
7395 \`$as_me' instantiates files from templates according to the
7396 current configuration.
7398 Usage: $0 [OPTIONS] [FILE]...
7400 -h, --help print this help, then exit
7401 -V, --version print version number, then exit
7402 -q, --quiet do not print progress messages
7403 -d, --debug don't remove temporary files
7404 --recheck update $as_me by reconfiguring in the same conditions
7405 --file=FILE[:TEMPLATE]
7406 instantiate the configuration file FILE
7407 --header=FILE[:TEMPLATE]
7408 instantiate the configuration header FILE
7410 Configuration files:
7413 Configuration headers:
7416 Report bugs to <bug-autoconf@gnu.org>."
7419 cat >>$CONFIG_STATUS <<_ACEOF
7421 libtar config.status 1.2.11
7422 configured by $0, generated by GNU Autoconf 2.57,
7423 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7425 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7426 Free Software Foundation, Inc.
7427 This config.status script is free software; the Free Software Foundation
7428 gives unlimited permission to copy, distribute and modify it."
7433 cat >>$CONFIG_STATUS <<\_ACEOF
7434 # If no file are specified by the user, then we need to provide default
7435 # value. By we need to know if files were specified by the user.
7441 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7442 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7450 *) # This is not an option, so the user has probably given explicit
7453 ac_need_defaults=false;;
7457 # Handling of the options.
7459 cat >>$CONFIG_STATUS <<\_ACEOF
7460 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7462 --version | --vers* | -V )
7463 echo "$ac_cs_version"; exit 0 ;;
7465 # Conflict between --help and --header
7466 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7467 Try \`$0 --help' for more information." >&5
7468 echo "$as_me: error: ambiguous option: $1
7469 Try \`$0 --help' for more information." >&2;}
7470 { (exit 1); exit 1; }; };;
7471 --help | --hel | -h )
7472 echo "$ac_cs_usage"; exit 0 ;;
7473 --debug | --d* | -d )
7475 --file | --fil | --fi | --f )
7477 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7478 ac_need_defaults=false;;
7479 --header | --heade | --head | --hea )
7481 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7482 ac_need_defaults=false;;
7483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7484 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7488 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7489 Try \`$0 --help' for more information." >&5
7490 echo "$as_me: error: unrecognized option: $1
7491 Try \`$0 --help' for more information." >&2;}
7492 { (exit 1); exit 1; }; } ;;
7494 *) ac_config_targets="$ac_config_targets $1" ;;
7500 ac_configure_extra_args=
7502 if $ac_cs_silent; then
7504 ac_configure_extra_args="$ac_configure_extra_args --silent"
7508 cat >>$CONFIG_STATUS <<_ACEOF
7509 if \$ac_cs_recheck; then
7510 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7511 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7520 cat >>$CONFIG_STATUS <<\_ACEOF
7521 for ac_config_target in $ac_config_targets
7523 case "$ac_config_target" in
7524 # Handling of arguments.
7525 "listhash/${LISTHASH_PREFIX}_listhash.h" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_listhash.h:listhash/listhash.h.in" ;;
7526 "listhash/${LISTHASH_PREFIX}_list.c" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_list.c:listhash/list.c.in" ;;
7527 "listhash/${LISTHASH_PREFIX}_hash.c" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_hash.c:listhash/hash.c.in" ;;
7528 "listhash/${LISTHASH_PREFIX}_list_new.3" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_list_new.3:listhash/list_new.3.in" ;;
7529 "listhash/${LISTHASH_PREFIX}_hash_new.3" ) CONFIG_FILES="$CONFIG_FILES listhash/${LISTHASH_PREFIX}_hash_new.3:listhash/hash_new.3.in" ;;
7530 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7531 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7532 "libtar/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtar/Makefile" ;;
7533 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7534 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7535 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7536 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7537 { (exit 1); exit 1; }; };;
7541 # If the user did not use the arguments to specify the items to instantiate,
7542 # then the envvar interface is used. Set only those that are not.
7543 # We use the long form for the default assignment because of an extremely
7544 # bizarre bug on SunOS 4.1.3.
7545 if $ac_need_defaults; then
7546 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7547 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7550 # Have a temporary directory for convenience. Make it in the build tree
7551 # simply because there is no reason to put it here, and in addition,
7552 # creating and moving files from /tmp can sometimes cause problems.
7553 # Create a temporary directory, and hook for its removal unless debugging.
7556 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7557 trap '{ (exit 1); exit 1; }' 1 2 13 15
7560 # Create a (secure) tmp directory for tmp files.
7563 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7564 test -n "$tmp" && test -d "$tmp"
7567 tmp=./confstat$$-$RANDOM
7568 (umask 077 && mkdir $tmp)
7571 echo "$me: cannot create a temporary directory in ." >&2
7572 { (exit 1); exit 1; }
7577 cat >>$CONFIG_STATUS <<_ACEOF
7580 # CONFIG_FILES section.
7583 # No need to generate the scripts if there are no CONFIG_FILES.
7584 # This happens for instance when ./config.status config.h
7585 if test -n "\$CONFIG_FILES"; then
7586 # Protect against being on the right side of a sed subst in config.status.
7587 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7588 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7589 s,@SHELL@,$SHELL,;t t
7590 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7591 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7592 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7593 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7594 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7595 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7596 s,@exec_prefix@,$exec_prefix,;t t
7597 s,@prefix@,$prefix,;t t
7598 s,@program_transform_name@,$program_transform_name,;t t
7599 s,@bindir@,$bindir,;t t
7600 s,@sbindir@,$sbindir,;t t
7601 s,@libexecdir@,$libexecdir,;t t
7602 s,@datadir@,$datadir,;t t
7603 s,@sysconfdir@,$sysconfdir,;t t
7604 s,@sharedstatedir@,$sharedstatedir,;t t
7605 s,@localstatedir@,$localstatedir,;t t
7606 s,@libdir@,$libdir,;t t
7607 s,@includedir@,$includedir,;t t
7608 s,@oldincludedir@,$oldincludedir,;t t
7609 s,@infodir@,$infodir,;t t
7610 s,@mandir@,$mandir,;t t
7611 s,@build_alias@,$build_alias,;t t
7612 s,@host_alias@,$host_alias,;t t
7613 s,@target_alias@,$target_alias,;t t
7615 s,@ECHO_C@,$ECHO_C,;t t
7616 s,@ECHO_N@,$ECHO_N,;t t
7617 s,@ECHO_T@,$ECHO_T,;t t
7620 s,@MKENCAP@,$MKENCAP,;t t
7621 s,@ENCAP_DEFS@,$ENCAP_DEFS,;t t
7622 s,@ENCAP_INSTALL_RULES@,$ENCAP_INSTALL_RULES,;t t
7623 s,@ENCAP_INSTALL_TARGET@,$ENCAP_INSTALL_TARGET,;t t
7625 s,@CFLAGS@,$CFLAGS,;t t
7626 s,@LDFLAGS@,$LDFLAGS,;t t
7627 s,@CPPFLAGS@,$CPPFLAGS,;t t
7628 s,@ac_ct_CC@,$ac_ct_CC,;t t
7629 s,@EXEEXT@,$EXEEXT,;t t
7630 s,@OBJEXT@,$OBJEXT,;t t
7631 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
7632 s,@LISTHASH_PREFIX@,$LISTHASH_PREFIX,;t t
7633 s,@LISTHASH_DIR@,$LISTHASH_DIR,;t t
7634 s,@MKDIR@,$MKDIR,;t t
7635 s,@RANLIB@,$RANLIB,;t t
7636 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7637 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7638 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7639 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7641 s,@SET_MAKE@,$SET_MAKE,;t t
7643 s,@EGREP@,$EGREP,;t t
7644 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7649 cat >>$CONFIG_STATUS <<\_ACEOF
7650 # Split the substitutions into bite-sized pieces for seds with
7651 # small command number limits, like on Digital OSF/1 and HP-UX.
7653 ac_sed_frag=1 # Number of current file.
7654 ac_beg=1 # First line for current file.
7655 ac_end=$ac_max_sed_lines # Line after last line for current file.
7658 while $ac_more_lines; do
7659 if test $ac_beg -gt 1; then
7660 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7662 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7664 if test ! -s $tmp/subs.frag; then
7667 # The purpose of the label and of the branching condition is to
7668 # speed up the sed processing (if there are no `@' at all, there
7669 # is no need to browse any of the substitutions).
7670 # These are the two extra sed commands mentioned above.
7672 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7673 if test -z "$ac_sed_cmds"; then
7674 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7676 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7678 ac_sed_frag=`expr $ac_sed_frag + 1`
7680 ac_end=`expr $ac_end + $ac_max_sed_lines`
7683 if test -z "$ac_sed_cmds"; then
7686 fi # test -n "$CONFIG_FILES"
7689 cat >>$CONFIG_STATUS <<\_ACEOF
7690 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7691 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7693 - | *:- | *:-:* ) # input from stdin
7695 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7696 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7697 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7698 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7699 * ) ac_file_in=$ac_file.in ;;
7702 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7703 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7705 X"$ac_file" : 'X\(//\)[^/]' \| \
7706 X"$ac_file" : 'X\(//\)$' \| \
7707 X"$ac_file" : 'X\(/\)' \| \
7708 . : '\(.\)' 2>/dev/null ||
7710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7712 /^X\(\/\/\)$/{ s//\1/; q; }
7713 /^X\(\/\).*/{ s//\1/; q; }
7715 { if $as_mkdir_p; then
7720 while test ! -d "$as_dir"; do
7721 as_dirs="$as_dir $as_dirs"
7722 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7724 X"$as_dir" : 'X\(//\)[^/]' \| \
7725 X"$as_dir" : 'X\(//\)$' \| \
7726 X"$as_dir" : 'X\(/\)' \| \
7727 . : '\(.\)' 2>/dev/null ||
7729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7731 /^X\(\/\/\)$/{ s//\1/; q; }
7732 /^X\(\/\).*/{ s//\1/; q; }
7735 test ! -n "$as_dirs" || mkdir $as_dirs
7736 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7737 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7738 { (exit 1); exit 1; }; }; }
7742 if test "$ac_dir" != .; then
7743 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7744 # A "../" for each directory in $ac_dir_suffix.
7745 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7747 ac_dir_suffix= ac_top_builddir=
7751 .) # No --srcdir option. We are building in place.
7753 if test -z "$ac_top_builddir"; then
7756 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7758 [\\/]* | ?:[\\/]* ) # Absolute path.
7759 ac_srcdir=$srcdir$ac_dir_suffix;
7760 ac_top_srcdir=$srcdir ;;
7762 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7763 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7765 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7767 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7768 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7769 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7770 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7774 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7775 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7778 if test x"$ac_file" != x-; then
7779 { echo "$as_me:$LINENO: creating $ac_file" >&5
7780 echo "$as_me: creating $ac_file" >&6;}
7783 # Let's still pretend it is `configure' which instantiates (i.e., don't
7784 # use $as_me), people would be surprised to read:
7785 # /* config.h. Generated by config.status. */
7786 if test x"$ac_file" = x-; then
7789 configure_input="$ac_file. "
7791 configure_input=$configure_input"Generated from `echo $ac_file_in |
7792 sed 's,.*/,,'` by configure."
7794 # First look for the input files in the build tree, otherwise in the
7796 ac_file_inputs=`IFS=:
7797 for f in $ac_file_in; do
7799 -) echo $tmp/stdin ;;
7801 # Absolute (can't be DOS-style, as IFS=:)
7802 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7803 echo "$as_me: error: cannot find input file: $f" >&2;}
7804 { (exit 1); exit 1; }; }
7807 if test -f "$f"; then
7810 elif test -f "$srcdir/$f"; then
7815 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7816 echo "$as_me: error: cannot find input file: $f" >&2;}
7817 { (exit 1); exit 1; }; }
7820 done` || { (exit 1); exit 1; }
7822 cat >>$CONFIG_STATUS <<_ACEOF
7826 cat >>$CONFIG_STATUS <<\_ACEOF
7828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7829 s,@configure_input@,$configure_input,;t t
7830 s,@srcdir@,$ac_srcdir,;t t
7831 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7832 s,@top_srcdir@,$ac_top_srcdir,;t t
7833 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7834 s,@builddir@,$ac_builddir,;t t
7835 s,@abs_builddir@,$ac_abs_builddir,;t t
7836 s,@top_builddir@,$ac_top_builddir,;t t
7837 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7838 s,@INSTALL@,$ac_INSTALL,;t t
7839 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7841 if test x"$ac_file" != x-; then
7842 mv $tmp/out $ac_file
7850 cat >>$CONFIG_STATUS <<\_ACEOF
7853 # CONFIG_HEADER section.
7856 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7857 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7859 # ac_d sets the value in "#define NAME VALUE" lines.
7860 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7861 ac_dB='[ ].*$,\1#\2'
7864 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7865 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7866 ac_uB='$,\1#\2define\3'
7870 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7871 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7873 - | *:- | *:-:* ) # input from stdin
7875 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7876 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7877 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7878 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7879 * ) ac_file_in=$ac_file.in ;;
7882 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7883 echo "$as_me: creating $ac_file" >&6;}
7885 # First look for the input files in the build tree, otherwise in the
7887 ac_file_inputs=`IFS=:
7888 for f in $ac_file_in; do
7890 -) echo $tmp/stdin ;;
7892 # Absolute (can't be DOS-style, as IFS=:)
7893 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7894 echo "$as_me: error: cannot find input file: $f" >&2;}
7895 { (exit 1); exit 1; }; }
7898 if test -f "$f"; then
7901 elif test -f "$srcdir/$f"; then
7906 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7907 echo "$as_me: error: cannot find input file: $f" >&2;}
7908 { (exit 1); exit 1; }; }
7911 done` || { (exit 1); exit 1; }
7912 # Remove the trailing spaces.
7913 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7917 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7918 # `conftest.undefs', that substitutes the proper values into
7919 # config.h.in to produce config.h. The first handles `#define'
7920 # templates, and the second `#undef' templates.
7921 # And first: Protect against being on the right side of a sed subst in
7922 # config.status. Protect against being in an unquoted here document
7924 rm -f conftest.defines conftest.undefs
7925 # Using a here document instead of a string reduces the quoting nightmare.
7926 # Putting comments in sed scripts is not portable.
7928 # `end' is used to avoid that the second main sed command (meant for
7929 # 0-ary CPP macros) applies to n-ary macro definitions.
7930 # See the Autoconf documentation for `clear'.
7931 cat >confdef2sed.sed <<\_ACEOF
7936 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7938 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7941 # If some macros were called several times there might be several times
7942 # the same #defines, which is useless. Nevertheless, we may not want to
7943 # sort them, since we want the *last* AC-DEFINE to be honored.
7944 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7945 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7946 rm -f confdef2sed.sed
7948 # This sed command replaces #undef with comments. This is necessary, for
7949 # example, in the case of _POSIX_SOURCE, which is predefined and required
7950 # on some systems where configure will not decide to define it.
7951 cat >>conftest.undefs <<\_ACEOF
7952 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7955 # Break up conftest.defines because some shells have a limit on the size
7956 # of here documents, and old seds have small limits too (100 cmds).
7957 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7958 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7959 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7960 echo ' :' >>$CONFIG_STATUS
7962 while grep . conftest.defines >/dev/null
7964 # Write a limited-size here document to $tmp/defines.sed.
7965 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7966 # Speed up: don't consider the non `#define' lines.
7967 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7968 # Work around the forget-to-reset-the-flag bug.
7969 echo 't clr' >>$CONFIG_STATUS
7970 echo ': clr' >>$CONFIG_STATUS
7971 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7973 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7977 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7978 rm -f conftest.defines
7979 mv conftest.tail conftest.defines
7981 rm -f conftest.defines
7982 echo ' fi # grep' >>$CONFIG_STATUS
7983 echo >>$CONFIG_STATUS
7985 # Break up conftest.undefs because some shells have a limit on the size
7986 # of here documents, and old seds have small limits too (100 cmds).
7987 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7989 while grep . conftest.undefs >/dev/null
7991 # Write a limited-size here document to $tmp/undefs.sed.
7992 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7993 # Speed up: don't consider the non `#undef'
7994 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7995 # Work around the forget-to-reset-the-flag bug.
7996 echo 't clr' >>$CONFIG_STATUS
7997 echo ': clr' >>$CONFIG_STATUS
7998 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8000 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8004 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8005 rm -f conftest.undefs
8006 mv conftest.tail conftest.undefs
8008 rm -f conftest.undefs
8010 cat >>$CONFIG_STATUS <<\_ACEOF
8011 # Let's still pretend it is `configure' which instantiates (i.e., don't
8012 # use $as_me), people would be surprised to read:
8013 # /* config.h. Generated by config.status. */
8014 if test x"$ac_file" = x-; then
8015 echo "/* Generated by configure. */" >$tmp/config.h
8017 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8019 cat $tmp/in >>$tmp/config.h
8021 if test x"$ac_file" != x-; then
8022 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8023 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8024 echo "$as_me: $ac_file is unchanged" >&6;}
8026 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8027 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8028 X"$ac_file" : 'X\(//\)[^/]' \| \
8029 X"$ac_file" : 'X\(//\)$' \| \
8030 X"$ac_file" : 'X\(/\)' \| \
8031 . : '\(.\)' 2>/dev/null ||
8033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8034 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8035 /^X\(\/\/\)$/{ s//\1/; q; }
8036 /^X\(\/\).*/{ s//\1/; q; }
8038 { if $as_mkdir_p; then
8043 while test ! -d "$as_dir"; do
8044 as_dirs="$as_dir $as_dirs"
8045 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8046 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8047 X"$as_dir" : 'X\(//\)[^/]' \| \
8048 X"$as_dir" : 'X\(//\)$' \| \
8049 X"$as_dir" : 'X\(/\)' \| \
8050 . : '\(.\)' 2>/dev/null ||
8052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8053 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8054 /^X\(\/\/\)$/{ s//\1/; q; }
8055 /^X\(\/\).*/{ s//\1/; q; }
8058 test ! -n "$as_dirs" || mkdir $as_dirs
8059 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8060 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8061 { (exit 1); exit 1; }; }; }
8064 mv $tmp/config.h $ac_file
8073 cat >>$CONFIG_STATUS <<\_ACEOF
8075 { (exit 0); exit 0; }
8077 chmod +x $CONFIG_STATUS
8078 ac_clean_files=$ac_clean_files_save
8081 # configure is writing to config.log, and then calls config.status.
8082 # config.status does its own redirection, appending to config.log.
8083 # Unfortunately, on DOS this fails, as config.log is still kept open
8084 # by configure, so config.status won't be able to write to it; its
8085 # output is simply discarded. So we exec the FD to /dev/null,
8086 # effectively closing config.log, so it can be properly (re)opened and
8087 # appended to by config.status. When coming back to configure, we
8088 # need to make the FD available again.
8089 if test "$no_create" != yes; then
8091 ac_config_status_args=
8092 test "$silent" = yes &&
8093 ac_config_status_args="$ac_config_status_args --quiet"
8095 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8097 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8098 # would make configure fail if this is the last instruction.
8099 $ac_cs_success || { (exit 1); exit 1; }