2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for util-vserver 0.29.
5 # Report bugs to <enrico.scholz@informatik.tu-chemnitz.de>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='util-vserver'
271 PACKAGE_TARNAME='util-vserver'
272 PACKAGE_VERSION='0.29'
273 PACKAGE_STRING='util-vserver 0.29'
274 PACKAGE_BUGREPORT='enrico.scholz@informatik.tu-chemnitz.de'
276 ac_unique_file="src/capchroot.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB kernelincludedir vserverdir CVS2CL_TAG CVS2CL HAVE_CVS2CL_TRUE HAVE_CVS2CL_FALSE RCS2LOG HAVE_RCS2LOG_TRUE HAVE_RCS2LOG_FALSE ENSC_ENABLE_LINUXCONF_TRUE ENSC_ENABLE_LINUXCONF_FALSE ENSC_ENABLE_INTERNAL_HEADERS_TRUE ENSC_ENABLE_INTERNAL_HEADERS_FALSE CXXCPP EGREP LIBOBJS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CXX_set=${CXX+set}
756 ac_env_CXX_value=$CXX
757 ac_cv_env_CXX_set=${CXX+set}
758 ac_cv_env_CXX_value=$CXX
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_env_CXXFLAGS_value=$CXXFLAGS
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CC_set=${CC+set}
773 ac_cv_env_CC_set=${CC+set}
774 ac_cv_env_CC_value=$CC
775 ac_env_CFLAGS_set=${CFLAGS+set}
776 ac_env_CFLAGS_value=$CFLAGS
777 ac_cv_env_CFLAGS_set=${CFLAGS+set}
778 ac_cv_env_CFLAGS_value=$CFLAGS
779 ac_env_CXXCPP_set=${CXXCPP+set}
780 ac_env_CXXCPP_value=$CXXCPP
781 ac_cv_env_CXXCPP_set=${CXXCPP+set}
782 ac_cv_env_CXXCPP_value=$CXXCPP
785 # Report the --help message.
787 if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
791 \`configure' configures util-vserver 0.29 to adapt to many kinds of systems.
793 Usage: $0 [OPTION]... [VAR=VALUE]...
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE. See below for descriptions of some of the useful variables.
798 Defaults for the options are specified in brackets.
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
814 Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
825 For better control, use the options below.
827 Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
845 --program-prefix=PREFIX prepend PREFIX to installed program names
846 --program-suffix=SUFFIX append SUFFIX to installed program names
847 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
851 if test -n "$ac_init_help"; then
852 case $ac_init_help in
853 short | recursive ) echo "Configuration of util-vserver 0.29:";;
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --disable-dependency-tracking speeds up one-time build
863 --enable-dependency-tracking do not reject slow dependency extractors
864 --enable-linuxconf enable 'newvserver' linuxconf module (default: no)
865 --disable-internal-headers
866 use vserver specific headers from the kernel instead
867 of the shipped versions (default: no)
868 --enable-apis=APIS enable support for the given apis; possible values
869 are: legacy,compat,v11,ALL (default: ALL)
872 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
873 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
874 --with-kerneldir=DIR assume kernelsources in DIR (default:
875 /lib/modules/<current>/build)
876 --with-vrootdir=DIR place vservers under DIR (default: /vservers)
877 --with-syscall=METHOD call syscall(2) with the specified METHOD; valid
878 values are 'fast', 'traditional' and 'auto'
881 Some influential environment variables:
882 CXX C++ compiler command
883 CXXFLAGS C++ compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CC C compiler command
889 CFLAGS C compiler flags
890 CXXCPP C++ preprocessor
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
895 Report bugs to <enrico.scholz@informatik.tu-chemnitz.de>.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
933 .) ac_abs_builddir="$ac_dir";;
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
991 util-vserver configure 0.29
992 generated by GNU Autoconf 2.59
994 Copyright (C) 2003 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1005 It was created by util-vserver $as_me 0.29, which was
1006 generated by GNU Autoconf 2.59. Invocation command line was
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1027 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1030 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1031 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1032 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 test -z "$as_dir" && as_dir=.
1041 echo "PATH: $as_dir"
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1065 ac_must_keep_next=false
1071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1075 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082 if test $ac_must_keep_next = true; then
1083 ac_must_keep_next=false # Got value, back to normal.
1086 *=* | --config-cache | -C | -disable-* | --disable-* \
1087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089 | -with-* | --with-* | -without-* | --without-* | --x)
1090 case "$ac_configure_args0 " in
1091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 -* ) ac_must_keep_next=true ;;
1097 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098 # Get rid of the leading space.
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log. We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113 # Save into config.log some information that might help in debugging.
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1123 # The following way of writing the cache mishandles newlines in values,
1126 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1146 for ac_var in $ac_subst_vars
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1153 if test -n "$ac_subst_files"; then
1160 for ac_var in $ac_subst_files
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
1168 if test -s confdefs.h; then
1175 sed "/^$/d" confdefs.h | sort
1178 test "$ac_signal" != 0 &&
1179 echo "$as_me: caught signal $ac_signal"
1180 echo "$as_me: exit $exit_status"
1182 rm -f core *.core &&
1183 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 for ac_signal in 1 2 13 15; do
1187 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 # Predefined preprocessor variables.
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226 if test "x$prefix" != xNONE; then
1227 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 for ac_site_file in $CONFIG_SITE; do
1233 if test -r "$ac_site_file"; then
1234 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236 sed 's/^/| /' "$ac_site_file" >&5
1241 if test -r "$cache_file"; then
1242 # Some versions of bash will fail to source /dev/null (special
1243 # files actually), so we avoid doing that.
1244 if test -f "$cache_file"; then
1245 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1248 [\\/]* | ?:[\\/]* ) . $cache_file;;
1249 *) . ./$cache_file;;
1253 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1258 # Check that the precious variables saved in the cache have kept the same
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264 eval ac_new_set=\$ac_env_${ac_var}_set
1265 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266 eval ac_new_val="\$ac_env_${ac_var}_value"
1267 case $ac_old_set,$ac_new_set in
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1278 if test "x$ac_old_val" != "x$ac_new_val"; then
1279 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1282 echo "$as_me: former value: $ac_old_val" >&2;}
1283 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1284 echo "$as_me: current value: $ac_new_val" >&2;}
1285 ac_cache_corrupted=:
1288 # Pass precious variables to config.status.
1289 if test "$ac_new_set" = set; then
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 *) ac_arg=$ac_var=$ac_new_val ;;
1295 case " $ac_configure_args " in
1296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1297 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 if $ac_cache_corrupted; then
1302 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306 { (exit 1); exit 1; }; }
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1342 ac_config_headers="$ac_config_headers config.h"
1345 am__api_version="1.8"
1347 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1348 if test -f $ac_dir/install-sh; then
1350 ac_install_sh="$ac_aux_dir/install-sh -c"
1352 elif test -f $ac_dir/install.sh; then
1354 ac_install_sh="$ac_aux_dir/install.sh -c"
1356 elif test -f $ac_dir/shtool; then
1358 ac_install_sh="$ac_aux_dir/shtool install -c"
1362 if test -z "$ac_aux_dir"; then
1363 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1364 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1365 { (exit 1); exit 1; }; }
1367 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1368 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1369 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1371 # Find a good install program. We prefer a C program (faster),
1372 # so one script is as good as another. But avoid the broken or
1373 # incompatible versions:
1374 # SysV /etc/install, /usr/sbin/install
1375 # SunOS /usr/etc/install
1376 # IRIX /sbin/install
1378 # AmigaOS /C/install, which installs bootblocks on floppy discs
1379 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1380 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1381 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1382 # OS/2's system install, which has a completely different semantic
1383 # ./install, which can be erroneously created by make from ./install.sh.
1384 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1385 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1386 if test -z "$INSTALL"; then
1387 if test "${ac_cv_path_install+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1394 test -z "$as_dir" && as_dir=.
1395 # Account for people who put trailing slashes in PATH elements.
1397 ./ | .// | /cC/* | \
1398 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1399 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1402 # OSF1 and SCO ODT 3.0 have their own names for install.
1403 # Don't use installbsd from OSF since it installs stuff as root
1405 for ac_prog in ginstall scoinst install; do
1406 for ac_exec_ext in '' $ac_executable_extensions; do
1407 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1408 if test $ac_prog = install &&
1409 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1410 # AIX install. It has an incompatible calling convention.
1412 elif test $ac_prog = install &&
1413 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1414 # program-specific install script used by HP pwplus--don't use.
1417 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1429 if test "${ac_cv_path_install+set}" = set; then
1430 INSTALL=$ac_cv_path_install
1432 # As a last resort, use the slow shell script. We don't cache a
1433 # path for INSTALL within a source directory, because that will
1434 # break other packages using the cache if that directory is
1435 # removed, or if the path is relative.
1436 INSTALL=$ac_install_sh
1439 echo "$as_me:$LINENO: result: $INSTALL" >&5
1440 echo "${ECHO_T}$INSTALL" >&6
1442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1443 # It thinks the first close brace ends the variable substitution.
1444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1450 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1451 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1454 echo timestamp > conftest.file
1455 # Do `set' in a subshell so we don't clobber the current shell's
1456 # arguments. Must try -L first in case configure is actually a
1457 # symlink; some systems play weird games with the mod time of symlinks
1458 # (eg FreeBSD returns the mod time of the symlink's containing
1461 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1462 if test "$*" = "X"; then
1464 set X `ls -t $srcdir/configure conftest.file`
1467 if test "$*" != "X $srcdir/configure conftest.file" \
1468 && test "$*" != "X conftest.file $srcdir/configure"; then
1470 # If neither matched, then we have a broken ls. This can happen
1471 # if, for instance, CONFIG_SHELL is bash and it inherits a
1472 # broken ls alias from the environment. This has actually
1473 # happened. Such a system could not be considered "sane".
1474 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1475 alias in your environment" >&5
1476 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1477 alias in your environment" >&2;}
1478 { (exit 1); exit 1; }; }
1481 test "$2" = conftest.file
1487 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1488 Check your system clock" >&5
1489 echo "$as_me: error: newly created file is older than distributed files!
1490 Check your system clock" >&2;}
1491 { (exit 1); exit 1; }; }
1493 echo "$as_me:$LINENO: result: yes" >&5
1494 echo "${ECHO_T}yes" >&6
1495 test "$program_prefix" != NONE &&
1496 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1497 # Use a double $ so make ignores it.
1498 test "$program_suffix" != NONE &&
1499 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1500 # Double any \ or $. echo might interpret backslashes.
1501 # By default was `s,x,x', remove it if useless.
1502 cat <<\_ACEOF >conftest.sed
1503 s/[\\$]/&&/g;s/;s,x,x,$//
1505 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1508 # expand $ac_aux_dir to an absolute path
1509 am_aux_dir=`cd $ac_aux_dir && pwd`
1511 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1512 # Use eval to expand $SHELL
1513 if eval "$MISSING --run true"; then
1514 am_missing_run="$MISSING --run "
1517 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1518 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1521 if mkdir -p -- . 2>/dev/null; then
1522 # Keeping the `.' argument allows $(mkdir_p) to be used without
1523 # argument. Indeed, we sometimes output rules like
1524 # $(mkdir_p) $(somedir)
1525 # where $(somedir) is conditionally defined.
1526 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1527 # expensive solution, as it forces Make to start a sub-shell.)
1528 mkdir_p='mkdir -p -- .'
1530 # On NextStep and OpenStep, the `mkdir' command does not
1531 # recognize any option. It will interpret all options as
1532 # directories to create, and then abort because `.' already
1536 test -d $d && rmdir $d
1538 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1539 if test -f "$ac_aux_dir/mkinstalldirs"; then
1540 mkdir_p='$(mkinstalldirs)'
1542 mkdir_p='$(install_sh) -d'
1546 for ac_prog in gawk mawk nawk awk
1548 # Extract the first word of "$ac_prog", so it can be a program name with args.
1549 set dummy $ac_prog; ac_word=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_prog_AWK+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 if test -n "$AWK"; then
1556 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 test -z "$as_dir" && as_dir=.
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565 ac_cv_prog_AWK="$ac_prog"
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 if test -n "$AWK"; then
1576 echo "$as_me:$LINENO: result: $AWK" >&5
1577 echo "${ECHO_T}$AWK" >&6
1579 echo "$as_me:$LINENO: result: no" >&5
1580 echo "${ECHO_T}no" >&6
1583 test -n "$AWK" && break
1586 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1587 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1589 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 cat >conftest.make <<\_ACEOF
1594 @echo 'ac_maketemp="$(MAKE)"'
1596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1597 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1598 if test -n "$ac_maketemp"; then
1599 eval ac_cv_prog_make_${ac_make}_set=yes
1601 eval ac_cv_prog_make_${ac_make}_set=no
1605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1606 echo "$as_me:$LINENO: result: yes" >&5
1607 echo "${ECHO_T}yes" >&6
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612 SET_MAKE="MAKE=${MAKE-make}"
1615 rm -rf .tst 2>/dev/null
1616 mkdir .tst 2>/dev/null
1617 if test -d .tst; then
1622 rmdir .tst 2>/dev/null
1624 # test to see if srcdir already configured
1625 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1626 test -f $srcdir/config.status; then
1627 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1628 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1629 { (exit 1); exit 1; }; }
1632 # test whether we have cygpath
1633 if test -z "$CYGPATH_W"; then
1634 if (cygpath --version) >/dev/null 2>/dev/null; then
1635 CYGPATH_W='cygpath -w'
1642 # Define the identity of the package.
1643 PACKAGE='util-vserver'
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE "$PACKAGE"
1652 cat >>confdefs.h <<_ACEOF
1653 #define VERSION "$VERSION"
1656 # Some tools Automake needs.
1658 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1661 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1664 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1667 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1670 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1673 AMTAR=${AMTAR-"${am_missing_run}tar"}
1675 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1677 # Installed binaries are usually stripped using `strip' when the user
1678 # run `make install-strip'. However `strip' might not be the right
1679 # tool to use in cross-compilation environments, therefore Automake
1680 # will honor the `STRIP' environment variable to overrule this program.
1681 if test "$cross_compiling" != no; then
1682 if test -n "$ac_tool_prefix"; then
1683 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1684 set dummy ${ac_tool_prefix}strip; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_STRIP+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 if test -n "$STRIP"; then
1691 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 STRIP=$ac_cv_prog_STRIP
1710 if test -n "$STRIP"; then
1711 echo "$as_me:$LINENO: result: $STRIP" >&5
1712 echo "${ECHO_T}$STRIP" >&6
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1719 if test -z "$ac_cv_prog_STRIP"; then
1721 # Extract the first word of "strip", so it can be a program name with args.
1722 set dummy strip; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 if test -n "$ac_ct_STRIP"; then
1729 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_ac_ct_STRIP="strip"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1748 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1749 if test -n "$ac_ct_STRIP"; then
1750 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1751 echo "${ECHO_T}$ac_ct_STRIP" >&6
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1759 STRIP="$ac_cv_prog_STRIP"
1763 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1765 # We need awk for the "check" target. The system "awk" is bad on
1770 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1771 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1772 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1773 if test "${enable_maintainer_mode+set}" = set; then
1774 enableval="$enable_maintainer_mode"
1775 USE_MAINTAINER_MODE=$enableval
1777 USE_MAINTAINER_MODE=no
1779 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1780 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1783 if test $USE_MAINTAINER_MODE = yes; then
1784 MAINTAINER_MODE_TRUE=
1785 MAINTAINER_MODE_FALSE='#'
1787 MAINTAINER_MODE_TRUE='#'
1788 MAINTAINER_MODE_FALSE=
1791 MAINT=$MAINTAINER_MODE_TRUE
1796 # Checks for programs.
1798 ac_cpp='$CXXCPP $CPPFLAGS'
1799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1802 if test -n "$ac_tool_prefix"; then
1803 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_CXX+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 if test -n "$CXX"; then
1813 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 if test -n "$CXX"; then
1833 echo "$as_me:$LINENO: result: $CXX" >&5
1834 echo "${ECHO_T}$CXX" >&6
1836 echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6
1840 test -n "$CXX" && break
1843 if test -z "$CXX"; then
1845 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1847 # Extract the first word of "$ac_prog", so it can be a program name with args.
1848 set dummy $ac_prog; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 if test -n "$ac_ct_CXX"; then
1855 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_ac_ct_CXX="$ac_prog"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1874 if test -n "$ac_ct_CXX"; then
1875 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1876 echo "${ECHO_T}$ac_ct_CXX" >&6
1878 echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1882 test -n "$ac_ct_CXX" && break
1884 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1890 # Provide some information about the compiler.
1891 echo "$as_me:$LINENO:" \
1892 "checking for C++ compiler version" >&5
1893 ac_compiler=`set X $ac_compile; echo $2`
1894 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1895 (eval $ac_compiler --version </dev/null >&5) 2>&5
1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898 (exit $ac_status); }
1899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1900 (eval $ac_compiler -v </dev/null >&5) 2>&5
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }
1904 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1905 (eval $ac_compiler -V </dev/null >&5) 2>&5
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }
1910 cat >conftest.$ac_ext <<_ACEOF
1913 cat confdefs.h >>conftest.$ac_ext
1914 cat >>conftest.$ac_ext <<_ACEOF
1915 /* end confdefs.h. */
1925 ac_clean_files_save=$ac_clean_files
1926 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1927 # Try to create an executable without -o first, disregard a.out.
1928 # It will help us diagnose broken compilers, and finding out an intuition
1930 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1931 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1932 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1933 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1934 (eval $ac_link_default) 2>&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; then
1938 # Find the output, starting from the most likely. This scheme is
1939 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1942 # Be careful to initialize this variable, since it used to be cached.
1943 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1945 # b.out is created by i960 compilers.
1946 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1948 test -f "$ac_file" || continue
1950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1953 # This is the source file.
1956 # We found the default executable, but exeext='' is most
1960 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1961 # FIXME: I believe we export ac_cv_exeext for Libtool,
1962 # but it would be cool to find out if it's true. Does anybody
1963 # maintain Libtool? --akim.
1971 echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1974 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1975 See \`config.log' for more details." >&5
1976 echo "$as_me: error: C++ compiler cannot create executables
1977 See \`config.log' for more details." >&2;}
1978 { (exit 77); exit 77; }; }
1981 ac_exeext=$ac_cv_exeext
1982 echo "$as_me:$LINENO: result: $ac_file" >&5
1983 echo "${ECHO_T}$ac_file" >&6
1985 # Check the compiler produces executables we can run. If not, either
1986 # the compiler is broken, or we cross compile.
1987 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1988 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1989 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1990 # If not cross compiling, check that we can run a simple program.
1991 if test "$cross_compiling" != yes; then
1992 if { ac_try='./$ac_file'
1993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; }; then
2000 if test "$cross_compiling" = maybe; then
2003 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2004 If you meant to cross compile, use \`--host'.
2005 See \`config.log' for more details." >&5
2006 echo "$as_me: error: cannot run C++ compiled programs.
2007 If you meant to cross compile, use \`--host'.
2008 See \`config.log' for more details." >&2;}
2009 { (exit 1); exit 1; }; }
2013 echo "$as_me:$LINENO: result: yes" >&5
2014 echo "${ECHO_T}yes" >&6
2016 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2017 ac_clean_files=$ac_clean_files_save
2018 # Check the compiler produces executables we can run. If not, either
2019 # the compiler is broken, or we cross compile.
2020 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2021 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2022 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2023 echo "${ECHO_T}$cross_compiling" >&6
2025 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2026 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2028 (eval $ac_link) 2>&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; then
2032 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2033 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2034 # work properly (i.e., refer to `conftest.exe'), while it won't with
2036 for ac_file in conftest.exe conftest conftest.*; do
2037 test -f "$ac_file" || continue
2039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2040 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2047 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2048 See \`config.log' for more details." >&5
2049 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2050 See \`config.log' for more details." >&2;}
2051 { (exit 1); exit 1; }; }
2054 rm -f conftest$ac_cv_exeext
2055 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2056 echo "${ECHO_T}$ac_cv_exeext" >&6
2058 rm -f conftest.$ac_ext
2059 EXEEXT=$ac_cv_exeext
2061 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2062 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2063 if test "${ac_cv_objext+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 cat >conftest.$ac_ext <<_ACEOF
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h. */
2081 rm -f conftest.o conftest.obj
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083 (eval $ac_compile) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; then
2087 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2095 echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2098 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2099 See \`config.log' for more details." >&5
2100 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2101 See \`config.log' for more details." >&2;}
2102 { (exit 1); exit 1; }; }
2105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2107 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2108 echo "${ECHO_T}$ac_cv_objext" >&6
2109 OBJEXT=$ac_cv_objext
2111 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2112 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2113 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 cat >conftest.$ac_ext <<_ACEOF
2119 cat confdefs.h >>conftest.$ac_ext
2120 cat >>conftest.$ac_ext <<_ACEOF
2121 /* end confdefs.h. */
2134 rm -f conftest.$ac_objext
2135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2136 (eval $ac_compile) 2>conftest.er1
2138 grep -v '^ *+' conftest.er1 >conftest.err
2140 cat conftest.err >&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); } &&
2143 { ac_try='test -z "$ac_cxx_werror_flag"
2144 || test ! -s conftest.err'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2158 echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2164 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2167 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2168 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2169 GXX=`test $ac_compiler_gnu = yes && echo yes`
2170 ac_test_CXXFLAGS=${CXXFLAGS+set}
2171 ac_save_CXXFLAGS=$CXXFLAGS
2173 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2174 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2175 if test "${ac_cv_prog_cxx_g+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 cat >conftest.$ac_ext <<_ACEOF
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h. */
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2197 grep -v '^ *+' conftest.er1 >conftest.err
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_cxx_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 ac_cv_prog_cxx_g=yes
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2224 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2225 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2226 if test "$ac_test_CXXFLAGS" = set; then
2227 CXXFLAGS=$ac_save_CXXFLAGS
2228 elif test $ac_cv_prog_cxx_g = yes; then
2229 if test "$GXX" = yes; then
2235 if test "$GXX" = yes; then
2241 for ac_declaration in \
2243 'extern "C" void std::exit (int) throw (); using std::exit;' \
2244 'extern "C" void std::exit (int); using std::exit;' \
2245 'extern "C" void exit (int) throw ();' \
2246 'extern "C" void exit (int);' \
2249 cat >conftest.$ac_ext <<_ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h. */
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>conftest.er1
2269 grep -v '^ *+' conftest.er1 >conftest.err
2271 cat conftest.err >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
2274 { ac_try='test -z "$ac_cxx_werror_flag"
2275 || test ! -s conftest.err'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295 cat >conftest.$ac_ext <<_ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2314 grep -v '^ *+' conftest.er1 >conftest.err
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_cxx_werror_flag"
2320 || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341 if test -n "$ac_declaration"; then
2342 echo '#ifdef __cplusplus' >>confdefs.h
2343 echo $ac_declaration >>confdefs.h
2344 echo '#endif' >>confdefs.h
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352 DEPDIR="${am__leading_dot}deps"
2354 ac_config_commands="$ac_config_commands depfiles"
2357 am_make=${MAKE-make}
2358 cat > confinc << 'END'
2363 # If we don't find an include directive, just comment out the code.
2364 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2365 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2369 # First try GNU make style include.
2370 echo "include confinc" > confmf
2371 # We grep out `Entering directory' and `Leaving directory'
2372 # messages which can occur if `w' ends up in MAKEFLAGS.
2373 # In particular we don't look at `^make:' because GNU make might
2374 # be invoked under some other name (usually "gmake"), in which
2375 # case it prints its new name instead of `make'.
2376 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2381 # Now try BSD make style include.
2382 if test "$am__include" = "#"; then
2383 echo '.include "confinc"' > confmf
2384 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2385 am__include=.include
2392 echo "$as_me:$LINENO: result: $_am_result" >&5
2393 echo "${ECHO_T}$_am_result" >&6
2394 rm -f confinc confmf
2396 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2397 if test "${enable_dependency_tracking+set}" = set; then
2398 enableval="$enable_dependency_tracking"
2401 if test "x$enable_dependency_tracking" != xno; then
2402 am_depcomp="$ac_aux_dir/depcomp"
2407 if test "x$enable_dependency_tracking" != xno; then
2418 depcc="$CXX" am_compiler_list=
2420 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2421 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2422 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2426 # We make a subdir and do the tests there. Otherwise we can end up
2427 # making bogus files that we don't know about and never remove. For
2428 # instance it was reported that on HP-UX the gcc test will end up
2429 # making a dummy file named `D' -- because `-MD' means `put the output
2432 # Copy depcomp to subdir because otherwise we won't find it if we're
2433 # using a relative directory.
2434 cp "$am_depcomp" conftest.dir
2436 # We will build objects and dependencies in a subdirectory because
2437 # it helps to detect inapplicable dependency modes. For instance
2438 # both Tru64's cc and ICC support -MD to output dependencies as a
2439 # side effect of compilation, but ICC will put the dependencies in
2440 # the current directory while Tru64 will put them in the object
2444 am_cv_CXX_dependencies_compiler_type=none
2445 if test "$am_compiler_list" = ""; then
2446 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2448 for depmode in $am_compiler_list; do
2449 # Setup a source with many dependencies, because some compilers
2450 # like to wrap large dependency lists on column 80 (with \), and
2451 # we should not choose a depcomp mode which is confused by this.
2453 # We need to recreate these files for each test, as the compiler may
2454 # overwrite some of them when testing with obscure command lines.
2455 # This happens at least with the AIX C compiler.
2457 for i in 1 2 3 4 5 6; do
2458 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2461 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2465 # after this tag, mechanisms are not by side-effect, so they'll
2466 # only be used when explicitly requested
2467 if test "x$enable_dependency_tracking" = xyes; then
2475 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2476 # mode. It turns out that the SunPro C++ compiler does not properly
2477 # handle `-M -o', and we need to detect this.
2478 if depmode=$depmode \
2479 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2480 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2481 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2482 >/dev/null 2>conftest.err &&
2483 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2484 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2485 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2486 # icc doesn't choke on unknown options, it will just issue warnings
2487 # (even with -Werror). So we grep stderr for any message
2488 # that says an option was ignored.
2489 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2490 am_cv_CXX_dependencies_compiler_type=$depmode
2499 am_cv_CXX_dependencies_compiler_type=none
2503 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2504 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2505 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2510 test "x$enable_dependency_tracking" != xno \
2511 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2512 am__fastdepCXX_TRUE=
2513 am__fastdepCXX_FALSE='#'
2515 am__fastdepCXX_TRUE='#'
2516 am__fastdepCXX_FALSE=
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525 if test -n "$ac_tool_prefix"; then
2526 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2528 echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2530 if test "${ac_cv_prog_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 if test -n "$CC"; then
2534 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 if test -n "$CC"; then
2554 echo "$as_me:$LINENO: result: $CC" >&5
2555 echo "${ECHO_T}$CC" >&6
2557 echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6
2562 if test -z "$ac_cv_prog_CC"; then
2564 # Extract the first word of "gcc", so it can be a program name with args.
2565 set dummy gcc; ac_word=$2
2566 echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 if test -n "$ac_ct_CC"; then
2572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2581 ac_cv_prog_ac_ct_CC="gcc"
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2591 if test -n "$ac_ct_CC"; then
2592 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2593 echo "${ECHO_T}$ac_ct_CC" >&6
2595 echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6
2604 if test -z "$CC"; then
2605 if test -n "$ac_tool_prefix"; then
2606 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2607 set dummy ${ac_tool_prefix}cc; ac_word=$2
2608 echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2610 if test "${ac_cv_prog_CC+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623 ac_cv_prog_CC="${ac_tool_prefix}cc"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 if test -n "$CC"; then
2634 echo "$as_me:$LINENO: result: $CC" >&5
2635 echo "${ECHO_T}$CC" >&6
2637 echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6
2642 if test -z "$ac_cv_prog_CC"; then
2644 # Extract the first word of "cc", so it can be a program name with args.
2645 set dummy cc; ac_word=$2
2646 echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 if test -n "$ac_ct_CC"; then
2652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661 ac_cv_prog_ac_ct_CC="cc"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671 if test -n "$ac_ct_CC"; then
2672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2673 echo "${ECHO_T}$ac_ct_CC" >&6
2675 echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6
2685 if test -z "$CC"; then
2686 # Extract the first word of "cc", so it can be a program name with args.
2687 set dummy cc; ac_word=$2
2688 echo "$as_me:$LINENO: checking for $ac_word" >&5
2689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2690 if test "${ac_cv_prog_CC+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 if test -n "$CC"; then
2694 ac_cv_prog_CC="$CC" # Let the user override the test.
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2705 ac_prog_rejected=yes
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 if test $ac_prog_rejected = yes; then
2716 # We found a bogon in the path, so make sure we never use it.
2717 set dummy $ac_cv_prog_CC
2719 if test $# != 0; then
2720 # We chose a different compiler from the bogus one.
2721 # However, it has the same basename, so the bogon will be chosen
2722 # first if we set CC to just the basename; use the full file name.
2724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2730 if test -n "$CC"; then
2731 echo "$as_me:$LINENO: result: $CC" >&5
2732 echo "${ECHO_T}$CC" >&6
2734 echo "$as_me:$LINENO: result: no" >&5
2735 echo "${ECHO_T}no" >&6
2739 if test -z "$CC"; then
2740 if test -n "$ac_tool_prefix"; then
2743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2745 echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2747 if test "${ac_cv_prog_CC+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 if test -n "$CC"; then
2771 echo "$as_me:$LINENO: result: $CC" >&5
2772 echo "${ECHO_T}$CC" >&6
2774 echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6
2778 test -n "$CC" && break
2781 if test -z "$CC"; then
2785 # Extract the first word of "$ac_prog", so it can be a program name with args.
2786 set dummy $ac_prog; 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="$ac_prog"
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
2820 test -n "$ac_ct_CC" && break
2829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2830 See \`config.log' for more details." >&5
2831 echo "$as_me: error: no acceptable C compiler found in \$PATH
2832 See \`config.log' for more details." >&2;}
2833 { (exit 1); exit 1; }; }
2835 # Provide some information about the compiler.
2836 echo "$as_me:$LINENO:" \
2837 "checking for C compiler version" >&5
2838 ac_compiler=`set X $ac_compile; echo $2`
2839 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2840 (eval $ac_compiler --version </dev/null >&5) 2>&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }
2844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2845 (eval $ac_compiler -v </dev/null >&5) 2>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }
2849 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2850 (eval $ac_compiler -V </dev/null >&5) 2>&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }
2855 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2856 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2857 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 cat >conftest.$ac_ext <<_ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2882 grep -v '^ *+' conftest.er1 >conftest.err
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2911 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2913 GCC=`test $ac_compiler_gnu = yes && echo yes`
2914 ac_test_CFLAGS=${CFLAGS+set}
2915 ac_save_CFLAGS=$CFLAGS
2917 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2918 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2919 if test "${ac_cv_prog_cc_g+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 cat >conftest.$ac_ext <<_ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2937 rm -f conftest.$ac_objext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2939 (eval $ac_compile) 2>conftest.er1
2941 grep -v '^ *+' conftest.er1 >conftest.err
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } &&
2946 { ac_try='test -z "$ac_c_werror_flag"
2947 || test ! -s conftest.err'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2969 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2970 if test "$ac_test_CFLAGS" = set; then
2971 CFLAGS=$ac_save_CFLAGS
2972 elif test $ac_cv_prog_cc_g = yes; then
2973 if test "$GCC" = yes; then
2979 if test "$GCC" = yes; then
2985 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2986 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2987 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 ac_cv_prog_cc_stdc=no
2992 cat >conftest.$ac_ext <<_ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
3000 #include <sys/types.h>
3001 #include <sys/stat.h>
3002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3003 struct buf { int x; };
3004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3005 static char *e (p, i)
3011 static char *f (char * (*g) (char **, int), char **p, ...)
3016 s = g (p, va_arg (v,int));
3021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3022 function prototypes and stuff, but not '\xHH' hex character constants.
3023 These don't provoke an error unfortunately, instead are silently treated
3024 as 'x'. The following induces an error, until -std1 is added to get
3025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3026 array size at least. It's necessary to write '\x00'==0 to get something
3027 that's true only with -std1. */
3028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3030 int test (int i, double x);
3031 struct s1 {int (*f) (int a);};
3032 struct s2 {int (*f) (double a);};
3033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3039 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3044 # Don't try gcc -ansi; that turns off useful extensions and
3045 # breaks some systems' header files.
3046 # AIX -qlanglvl=ansi
3047 # Ultrix and OSF/1 -std1
3048 # HP-UX 10.20 and later -Ae
3049 # HP-UX older versions -Aa -D_HPUX_SOURCE
3050 # SVR4 -Xc -D__EXTENSIONS__
3051 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3053 CC="$ac_save_CC $ac_arg"
3054 rm -f conftest.$ac_objext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>conftest.er1
3058 grep -v '^ *+' conftest.er1 >conftest.err
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } &&
3063 { ac_try='test -z "$ac_c_werror_flag"
3064 || test ! -s conftest.err'
3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 ac_cv_prog_cc_stdc=$ac_arg
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3083 rm -f conftest.err conftest.$ac_objext
3085 rm -f conftest.$ac_ext conftest.$ac_objext
3090 case "x$ac_cv_prog_cc_stdc" in
3092 echo "$as_me:$LINENO: result: none needed" >&5
3093 echo "${ECHO_T}none needed" >&6 ;;
3095 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3096 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3097 CC="$CC $ac_cv_prog_cc_stdc" ;;
3100 # Some people use a C++ compiler to compile C. Since we use `exit',
3101 # in C++ we need to declare it. In case someone uses the same compiler
3102 # for both compiling C and C++ we need to have the C++ compiler decide
3103 # the declaration of exit, since it's the most demanding environment.
3104 cat >conftest.$ac_ext <<_ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111 (eval $ac_compile) 2>conftest.er1
3113 grep -v '^ *+' conftest.er1 >conftest.err
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } &&
3118 { ac_try='test -z "$ac_c_werror_flag"
3119 || test ! -s conftest.err'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; }; then
3131 for ac_declaration in \
3133 'extern "C" void std::exit (int) throw (); using std::exit;' \
3134 'extern "C" void std::exit (int); using std::exit;' \
3135 'extern "C" void exit (int) throw ();' \
3136 'extern "C" void exit (int);' \
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3155 rm -f conftest.$ac_objext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>conftest.er1
3159 grep -v '^ *+' conftest.er1 >conftest.err
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag"
3165 || test ! -s conftest.err'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3200 rm -f conftest.$ac_objext
3201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202 (eval $ac_compile) 2>conftest.er1
3204 grep -v '^ *+' conftest.er1 >conftest.err
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } &&
3209 { ac_try='test -z "$ac_c_werror_flag"
3210 || test ! -s conftest.err'
3211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; } &&
3216 { ac_try='test -s conftest.$ac_objext'
3217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; }; then
3224 echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3231 if test -n "$ac_declaration"; then
3232 echo '#ifdef __cplusplus' >>confdefs.h
3233 echo $ac_declaration >>confdefs.h
3234 echo '#endif' >>confdefs.h
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249 depcc="$CC" am_compiler_list=
3251 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3252 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3253 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3257 # We make a subdir and do the tests there. Otherwise we can end up
3258 # making bogus files that we don't know about and never remove. For
3259 # instance it was reported that on HP-UX the gcc test will end up
3260 # making a dummy file named `D' -- because `-MD' means `put the output
3263 # Copy depcomp to subdir because otherwise we won't find it if we're
3264 # using a relative directory.
3265 cp "$am_depcomp" conftest.dir
3267 # We will build objects and dependencies in a subdirectory because
3268 # it helps to detect inapplicable dependency modes. For instance
3269 # both Tru64's cc and ICC support -MD to output dependencies as a
3270 # side effect of compilation, but ICC will put the dependencies in
3271 # the current directory while Tru64 will put them in the object
3275 am_cv_CC_dependencies_compiler_type=none
3276 if test "$am_compiler_list" = ""; then
3277 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3279 for depmode in $am_compiler_list; do
3280 # Setup a source with many dependencies, because some compilers
3281 # like to wrap large dependency lists on column 80 (with \), and
3282 # we should not choose a depcomp mode which is confused by this.
3284 # We need to recreate these files for each test, as the compiler may
3285 # overwrite some of them when testing with obscure command lines.
3286 # This happens at least with the AIX C compiler.
3288 for i in 1 2 3 4 5 6; do
3289 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3292 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3296 # after this tag, mechanisms are not by side-effect, so they'll
3297 # only be used when explicitly requested
3298 if test "x$enable_dependency_tracking" = xyes; then
3306 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3307 # mode. It turns out that the SunPro C++ compiler does not properly
3308 # handle `-M -o', and we need to detect this.
3309 if depmode=$depmode \
3310 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3311 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3312 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3313 >/dev/null 2>conftest.err &&
3314 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3315 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3316 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3317 # icc doesn't choke on unknown options, it will just issue warnings
3318 # (even with -Werror). So we grep stderr for any message
3319 # that says an option was ignored.
3320 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3321 am_cv_CC_dependencies_compiler_type=$depmode
3330 am_cv_CC_dependencies_compiler_type=none
3334 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3335 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3336 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3341 test "x$enable_dependency_tracking" != xno \
3342 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3344 am__fastdepCC_FALSE='#'
3346 am__fastdepCC_TRUE='#'
3347 am__fastdepCC_FALSE=
3351 # Find a good install program. We prefer a C program (faster),
3352 # so one script is as good as another. But avoid the broken or
3353 # incompatible versions:
3354 # SysV /etc/install, /usr/sbin/install
3355 # SunOS /usr/etc/install
3356 # IRIX /sbin/install
3358 # AmigaOS /C/install, which installs bootblocks on floppy discs
3359 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3360 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3361 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3362 # OS/2's system install, which has a completely different semantic
3363 # ./install, which can be erroneously created by make from ./install.sh.
3364 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3365 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3366 if test -z "$INSTALL"; then
3367 if test "${ac_cv_path_install+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 test -z "$as_dir" && as_dir=.
3375 # Account for people who put trailing slashes in PATH elements.
3377 ./ | .// | /cC/* | \
3378 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3379 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3382 # OSF1 and SCO ODT 3.0 have their own names for install.
3383 # Don't use installbsd from OSF since it installs stuff as root
3385 for ac_prog in ginstall scoinst install; do
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3388 if test $ac_prog = install &&
3389 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3390 # AIX install. It has an incompatible calling convention.
3392 elif test $ac_prog = install &&
3393 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3394 # program-specific install script used by HP pwplus--don't use.
3397 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3409 if test "${ac_cv_path_install+set}" = set; then
3410 INSTALL=$ac_cv_path_install
3412 # As a last resort, use the slow shell script. We don't cache a
3413 # path for INSTALL within a source directory, because that will
3414 # break other packages using the cache if that directory is
3415 # removed, or if the path is relative.
3416 INSTALL=$ac_install_sh
3419 echo "$as_me:$LINENO: result: $INSTALL" >&5
3420 echo "${ECHO_T}$INSTALL" >&6
3422 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3423 # It thinks the first close brace ends the variable substitution.
3424 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3426 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3428 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3430 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3431 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3433 if test "$LN_S" = "ln -s"; then
3434 echo "$as_me:$LINENO: result: yes" >&5
3435 echo "${ECHO_T}yes" >&6
3437 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3438 echo "${ECHO_T}no, using $LN_S" >&6
3441 if test -n "$ac_tool_prefix"; then
3442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3443 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3444 echo "$as_me:$LINENO: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446 if test "${ac_cv_prog_RANLIB+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 if test -n "$RANLIB"; then
3450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 RANLIB=$ac_cv_prog_RANLIB
3469 if test -n "$RANLIB"; then
3470 echo "$as_me:$LINENO: result: $RANLIB" >&5
3471 echo "${ECHO_T}$RANLIB" >&6
3473 echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6
3478 if test -z "$ac_cv_prog_RANLIB"; then
3479 ac_ct_RANLIB=$RANLIB
3480 # Extract the first word of "ranlib", so it can be a program name with args.
3481 set dummy ranlib; ac_word=$2
3482 echo "$as_me:$LINENO: checking for $ac_word" >&5
3483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3484 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 if test -n "$ac_ct_RANLIB"; then
3488 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3497 ac_cv_prog_ac_ct_RANLIB="ranlib"
3498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3504 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3507 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3508 if test -n "$ac_ct_RANLIB"; then
3509 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3510 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3512 echo "$as_me:$LINENO: result: no" >&5
3513 echo "${ECHO_T}no" >&6
3516 RANLIB=$ac_ct_RANLIB
3518 RANLIB="$ac_cv_prog_RANLIB"
3521 if test "x$CC" != xcc; then
3522 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3523 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3525 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3526 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3528 set dummy $CC; ac_cc=`echo $2 |
3529 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3530 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 cat >conftest.$ac_ext <<_ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3548 # Make sure it works both with $CC and with simple cc.
3549 # We do the test twice because some compilers refuse to overwrite an
3550 # existing .o file with -o, though they will create one.
3551 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3552 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } &&
3557 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); };
3563 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3564 if test "x$CC" != xcc; then
3565 # Test first that cc exists at all.
3566 if { ac_try='cc -c conftest.$ac_ext >&5'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3573 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); };
3587 # cc exists but doesn't like -o.
3588 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3593 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3598 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3599 echo "$as_me:$LINENO: result: yes" >&5
3600 echo "${ECHO_T}yes" >&6
3602 echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6
3605 cat >>confdefs.h <<\_ACEOF
3606 #define NO_MINUS_C_MINUS_O 1
3611 # FIXME: we rely on the cache variable name because
3612 # there is no other way.
3614 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3615 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3616 # Losing compiler, so override with the script.
3617 # FIXME: It is wrong to rewrite CC.
3618 # But if we don't then we get into trouble of one sort or another.
3619 # A longer-term fix would be to have automake use am__CC in this case,
3620 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3621 CC="$am_aux_dir/compile $CC"
3628 warn_flags="-Werror -W"
3629 echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
3630 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 old_CFLAGS="${CFLAGS}"
3638 CFLAGS="$warn_flags"
3639 cat >conftest.$ac_ext <<_ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 inline static void f(){}
3654 rm -f conftest.$ac_objext
3655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3656 (eval $ac_compile) 2>conftest.er1
3658 grep -v '^ *+' conftest.er1 >conftest.err
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try='test -z "$ac_c_werror_flag"
3664 || test ! -s conftest.err'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; } &&
3670 { ac_try='test -s conftest.$ac_objext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3676 ensc_sys_compilerwarnflags_C=${warn_flags}
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3681 ensc_sys_compilerwarnflags_C=
3683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_cpp='$CPP $CPPFLAGS'
3686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 CFLAGS="$old_CFLAGS"
3692 if test x"${ensc_sys_compilerwarnflags_C}" = x; then
3693 echo "$as_me:$LINENO: result: no" >&5
3694 echo "${ECHO_T}no" >&6
3696 echo "$as_me:$LINENO: result: yes" >&5
3697 echo "${ECHO_T}yes" >&6
3704 echo 'void f(){}' > conftest.c
3705 for i in -std=c99 -Wall -pedantic -W -Wno-unused-parameter
3707 echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
3708 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
3709 if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
3711 CFLAGS="${CFLAGS} $i"
3712 echo "$as_me:$LINENO: result: yes" >&5
3713 echo "${ECHO_T}yes" >&6
3715 echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6
3719 rm -f conftest.c conftest.o
3724 warn_flags="-Werror -W"
3725 echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
3726 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6
3728 ac_cpp='$CXXCPP $CPPFLAGS'
3729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3733 old_CFLAGS="${CXXFLAGS}"
3734 CXXFLAGS="$warn_flags"
3735 cat >conftest.$ac_ext <<_ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3741 inline static void f(){}
3750 rm -f conftest.$ac_objext
3751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3752 (eval $ac_compile) 2>conftest.er1
3754 grep -v '^ *+' conftest.er1 >conftest.err
3756 cat conftest.err >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } &&
3759 { ac_try='test -z "$ac_cxx_werror_flag"
3760 || test ! -s conftest.err'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; } &&
3766 { ac_try='test -s conftest.$ac_objext'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; }; then
3772 ensc_sys_compilerwarnflags_CXX=${warn_flags}
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 ensc_sys_compilerwarnflags_CXX=
3779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786 CXXFLAGS="$old_CFLAGS"
3788 if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
3789 echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6
3792 echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3800 echo 'void f(){}' > conftest.cc
3801 for i in -ansi -Wall -pedantic -W -fmessage-length=0
3803 echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
3804 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
3805 if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
3807 CXXFLAGS="${CXXFLAGS} $i"
3808 echo "$as_me:$LINENO: result: yes" >&5
3809 echo "${ECHO_T}yes" >&6
3811 echo "$as_me:$LINENO: result: no" >&5
3812 echo "${ECHO_T}no" >&6
3815 rm -f conftest.cc conftest.o
3820 echo "$as_me:$LINENO: checking for linux kernel dir" >&5
3821 echo $ECHO_N "checking for linux kernel dir... $ECHO_C" >&6
3822 if test "${ensc_cv_path_kerneldir+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 # Check whether --with-kerneldir or --without-kerneldir was given.
3828 if test "${with_kerneldir+set}" = set; then
3829 withval="$with_kerneldir"
3831 yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for kerneldir" >&5
3832 echo "$as_me: error: '$withval' is not a valid value for kerneldir" >&2;}
3833 { (exit 1); exit 1; }; };;
3834 *) ensc_cv_path_kerneldir=$withval;;
3837 ensc_cv_path_kerneldir=
3838 for i in /lib/modules/$(uname -r)/build /usr/src/linux /usr; do
3839 test -e $i/include/linux/version.h && { ensc_cv_path_kerneldir=$i; break; }
3844 echo "$as_me:$LINENO: result: $ensc_cv_path_kerneldir" >&5
3845 echo "${ECHO_T}$ensc_cv_path_kerneldir" >&6
3847 test "$ensc_cv_path_kerneldir" -a -e "$ensc_cv_path_kerneldir"/include/linux/version.h || {
3848 { { echo "$as_me:$LINENO: error: Can not find kernelsources" >&5
3849 echo "$as_me: error: Can not find kernelsources" >&2;}
3850 { (exit 1); exit 1; }; }
3856 echo "$as_me:$LINENO: checking for linux kernel headers" >&5
3857 echo $ECHO_N "checking for linux kernel headers... $ECHO_C" >&6
3858 if test "${ensc_cv_path_kernelheaders+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 ensc_cv_path_kernelheaders=$ensc_cv_path_kerneldir/include
3865 echo "$as_me:$LINENO: result: $ensc_cv_path_kernelheaders" >&5
3866 echo "${ECHO_T}$ensc_cv_path_kernelheaders" >&6
3868 kernelincludedir=$ensc_cv_path_kernelheaders
3872 echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
3873 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6
3875 # Check whether --with-vrootdir or --without-vrootdir was given.
3876 if test "${with_vrootdir+set}" = set; then
3877 withval="$with_vrootdir"
3879 yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
3880 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
3881 { (exit 1); exit 1; }; };;
3882 *) ensc_uv_path_vrootdir=$withval;;
3885 ensc_uv_path_vrootdir=/vservers
3887 echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
3888 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6
3890 if test x"vserverdir" != x; then
3891 vserverdir=$ensc_uv_path_vrootdir
3896 if test x"SYSCALL_SWITCH" != x; then
3897 CVS2CL_TAG='-F SYSCALL_SWITCH'
3901 for ac_prog in cvs2cl
3903 # Extract the first word of "$ac_prog", so it can be a program name with args.
3904 set dummy $ac_prog; ac_word=$2
3905 echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_prog_CVS2CL+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 if test -n "$CVS2CL"; then
3911 ac_cv_prog_CVS2CL="$CVS2CL" # Let the user override the test.
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_CVS2CL="$ac_prog"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 CVS2CL=$ac_cv_prog_CVS2CL
3930 if test -n "$CVS2CL"; then
3931 echo "$as_me:$LINENO: result: $CVS2CL" >&5
3932 echo "${ECHO_T}$CVS2CL" >&6
3934 echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3938 test -n "$CVS2CL" && break
3943 if test x"$CVS2CL" != x; then
3945 HAVE_CVS2CL_FALSE='#'
3947 HAVE_CVS2CL_TRUE='#'
3952 for ac_prog in rcs2log
3954 # Extract the first word of "$ac_prog", so it can be a program name with args.
3955 set dummy $ac_prog; ac_word=$2
3956 echo "$as_me:$LINENO: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_prog_RCS2LOG+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if test -n "$RCS2LOG"; then
3962 ac_cv_prog_RCS2LOG="$RCS2LOG" # Let the user override the test.
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_RCS2LOG="$ac_prog"
3972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 RCS2LOG=$ac_cv_prog_RCS2LOG
3981 if test -n "$RCS2LOG"; then
3982 echo "$as_me:$LINENO: result: $RCS2LOG" >&5
3983 echo "${ECHO_T}$RCS2LOG" >&6
3985 echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6
3989 test -n "$RCS2LOG" && break
3994 if test x"$RCS2LOG" != x; then
3996 HAVE_RCS2LOG_FALSE='#'
3998 HAVE_RCS2LOG_TRUE='#'
4004 echo "$as_me:$LINENO: checking whether to enable linuxconf modules" >&5
4005 echo $ECHO_N "checking whether to enable linuxconf modules... $ECHO_C" >&6
4006 # Check whether --enable-linuxconf or --disable-linuxconf was given.
4007 if test "${enable_linuxconf+set}" = set; then
4008 enableval="$enable_linuxconf"
4009 case "$enableval" in
4011 *) { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--enable-linuxconf'" >&5
4012 echo "$as_me: error: '$i' is not a supported value for '--enable-linuxconf'" >&2;}
4013 { (exit 1); exit 1; }; };;
4021 if test x"$enable_linuxconf" = xyes; then
4022 ENSC_ENABLE_LINUXCONF_TRUE=
4023 ENSC_ENABLE_LINUXCONF_FALSE='#'
4025 ENSC_ENABLE_LINUXCONF_TRUE='#'
4026 ENSC_ENABLE_LINUXCONF_FALSE=
4029 echo "$as_me:$LINENO: result: $enable_linuxconf" >&5
4030 echo "${ECHO_T}$enable_linuxconf" >&6
4033 echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
4034 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6
4035 # Check whether --enable-internal-headers or --disable-internal-headers was given.
4036 if test "${enable_internal_headers+set}" = set; then
4037 enableval="$enable_internal_headers"
4038 case "$enableval" in
4040 *) { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
4041 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
4042 { (exit 1); exit 1; }; };;
4045 enable_internal_headers=yes
4050 if test x"$enable_internal_headers" = xyes; then
4051 ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
4052 ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
4054 ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
4055 ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
4058 echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
4059 echo "${ECHO_T}$enable_internal_headers" >&6
4062 echo "$as_me:$LINENO: checking for supported APIs" >&5
4063 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6
4064 # Check whether --enable-apis or --disable-apis was given.
4065 if test "${enable_apis+set}" = set; then
4066 enableval="$enable_apis"
4072 test x"$enable_apis" != xALL || enable_apis='legacy,compat,v11'
4075 for i in $enable_apis; do
4078 cat >>confdefs.h <<\_ACEOF
4079 #define VC_ENABLE_API_COMPAT 1
4083 cat >>confdefs.h <<\_ACEOF
4084 #define VC_ENABLE_API_LEGACY 1
4088 cat >>confdefs.h <<\_ACEOF
4089 #define VC_ENABLE_API_V11 1
4092 *) { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
4093 echo "$as_me: error: '$i' is not a supported API" >&2;}
4094 { (exit 1); exit 1; }; };;
4098 echo "$as_me:$LINENO: result: $enable_apis" >&5
4099 echo "${ECHO_T}$enable_apis" >&6
4103 echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
4104 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6
4106 # Check whether --with-syscall or --without-syscall was given.
4107 if test "${with_syscall+set}" = set; then
4108 withval="$with_syscall"
4113 echo "$as_me:$LINENO: result: $with_syscall" >&5
4114 echo "${ECHO_T}$with_syscall" >&6
4116 case x"$with_syscall" in
4118 echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
4119 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6
4120 if test "${ensc_cv_test_syscall+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 old_CPPFLAGS=$CPPFLAGS
4125 CPPFLAGS="-I$ensc_cv_path_kernelheaders"
4127 ac_cpp='$CPP $CPPFLAGS'
4128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 cat >conftest.$ac_ext <<_ACEOF
4134 #include <asm/unistd.h>
4135 #include <syscall.h>
4137 #define __NR_foo0 300
4138 #define __NR_foo1 301
4139 #define __NR_foo2 302
4140 #define __NR_foo3 303
4141 #define __NR_foo4 304
4142 #define __NR_foo5 305
4143 inline static _syscall0(int, foo0)
4144 inline static _syscall1(int, foo1, int, a)
4145 inline static _syscall2(int, foo2, int, a, int, b)
4146 inline static _syscall3(int, foo3, int, a, int, b, int, c)
4147 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
4148 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
4160 rm -f conftest.$ac_objext
4161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4162 (eval $ac_compile) 2>conftest.er1
4164 grep -v '^ *+' conftest.er1 >conftest.err
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag"
4170 || test ! -s conftest.err'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; } &&
4176 { ac_try='test -s conftest.$ac_objext'
4177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4182 ensc_cv_test_syscall=fast
4184 echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4187 ensc_cv_test_syscall=traditional
4189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197 CPPFLAGS=$old_CPPFLAGS
4200 echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
4201 echo "${ECHO_T}$ensc_cv_test_syscall" >&6
4202 with_syscall=$ensc_cv_test_syscall
4207 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
4208 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
4209 { (exit 1); exit 1; }; }
4213 if test x"$with_syscall" = xtraditional; then
4215 cat >>confdefs.h <<\_ACEOF
4216 #define ENSC_SYSCALL_TRADITIONAL 1
4225 ac_cpp='$CXXCPP $CPPFLAGS'
4226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4229 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4230 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4231 if test -z "$CXXCPP"; then
4232 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 # Double quotes because CXXCPP needs to be expanded
4236 for CXXCPP in "$CXX -E" "/lib/cpp"
4239 for ac_cxx_preproc_warn_flag in '' yes
4241 # Use a header file that comes with gcc, so configuring glibc
4242 # with a fresh cross-compiler works.
4243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4244 # <limits.h> exists even on freestanding compilers.
4245 # On the NeXT, cc -E runs the code through the compiler's parser,
4246 # not just through cpp. "Syntax error" is here to catch this case.
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4254 # include <limits.h>
4256 # include <assert.h>
4260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } >/dev/null; then
4268 if test -s conftest.err; then
4269 ac_cpp_err=$ac_cxx_preproc_warn_flag
4270 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4277 if test -z "$ac_cpp_err"; then
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 # Broken: fails on valid input.
4286 rm -f conftest.err conftest.$ac_ext
4288 # OK, works on sane cases. Now check whether non-existent headers
4289 # can be detected and how.
4290 cat >conftest.$ac_ext <<_ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4296 #include <ac_nonexistent.h>
4298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4301 grep -v '^ *+' conftest.er1 >conftest.err
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } >/dev/null; then
4306 if test -s conftest.err; then
4307 ac_cpp_err=$ac_cxx_preproc_warn_flag
4308 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4315 if test -z "$ac_cpp_err"; then
4316 # Broken: success on invalid input.
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4322 # Passes both tests.
4326 rm -f conftest.err conftest.$ac_ext
4329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4330 rm -f conftest.err conftest.$ac_ext
4331 if $ac_preproc_ok; then
4336 ac_cv_prog_CXXCPP=$CXXCPP
4339 CXXCPP=$ac_cv_prog_CXXCPP
4341 ac_cv_prog_CXXCPP=$CXXCPP
4343 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4344 echo "${ECHO_T}$CXXCPP" >&6
4346 for ac_cxx_preproc_warn_flag in '' yes
4348 # Use a header file that comes with gcc, so configuring glibc
4349 # with a fresh cross-compiler works.
4350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4351 # <limits.h> exists even on freestanding compilers.
4352 # On the NeXT, cc -E runs the code through the compiler's parser,
4353 # not just through cpp. "Syntax error" is here to catch this case.
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4361 # include <limits.h>
4363 # include <assert.h>
4367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } >/dev/null; then
4375 if test -s conftest.err; then
4376 ac_cpp_err=$ac_cxx_preproc_warn_flag
4377 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4384 if test -z "$ac_cpp_err"; then
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4390 # Broken: fails on valid input.
4393 rm -f conftest.err conftest.$ac_ext
4395 # OK, works on sane cases. Now check whether non-existent headers
4396 # can be detected and how.
4397 cat >conftest.$ac_ext <<_ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4403 #include <ac_nonexistent.h>
4405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } >/dev/null; then
4413 if test -s conftest.err; then
4414 ac_cpp_err=$ac_cxx_preproc_warn_flag
4415 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4422 if test -z "$ac_cpp_err"; then
4423 # Broken: success on invalid input.
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 # Passes both tests.
4433 rm -f conftest.err conftest.$ac_ext
4436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4437 rm -f conftest.err conftest.$ac_ext
4438 if $ac_preproc_ok; then
4441 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4442 See \`config.log' for more details." >&5
4443 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4444 See \`config.log' for more details." >&2;}
4445 { (exit 1); exit 1; }; }
4449 ac_cpp='$CXXCPP $CPPFLAGS'
4450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4455 echo "$as_me:$LINENO: checking for egrep" >&5
4456 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4457 if test "${ac_cv_prog_egrep+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4461 then ac_cv_prog_egrep='grep -E'
4462 else ac_cv_prog_egrep='egrep'
4465 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4466 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4467 EGREP=$ac_cv_prog_egrep
4470 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4471 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4472 if test "${ac_cv_header_stdc+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 cat >conftest.$ac_ext <<_ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4494 rm -f conftest.$ac_objext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496 (eval $ac_compile) 2>conftest.er1
4498 grep -v '^ *+' conftest.er1 >conftest.err
4500 cat conftest.err >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4503 { ac_try='test -z "$ac_cxx_werror_flag"
4504 || test ! -s conftest.err'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_cv_header_stdc=yes
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 ac_cv_header_stdc=no
4523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4525 if test $ac_cv_header_stdc = yes; then
4526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537 $EGREP "memchr" >/dev/null 2>&1; then
4540 ac_cv_header_stdc=no
4546 if test $ac_cv_header_stdc = yes; then
4547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4548 cat >conftest.$ac_ext <<_ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4558 $EGREP "free" >/dev/null 2>&1; then
4561 ac_cv_header_stdc=no
4567 if test $ac_cv_header_stdc = yes; then
4568 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4569 if test "$cross_compiling" = yes; then
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4579 #if ((' ' & 0x0FF) == 0x020)
4580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4583 # define ISLOWER(c) \
4584 (('a' <= (c) && (c) <= 'i') \
4585 || ('j' <= (c) && (c) <= 'r') \
4586 || ('s' <= (c) && (c) <= 'z'))
4587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4595 for (i = 0; i < 256; i++)
4596 if (XOR (islower (i), ISLOWER (i))
4597 || toupper (i) != TOUPPER (i))
4602 rm -f conftest$ac_exeext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4604 (eval $ac_link) 2>&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4615 echo "$as_me: program exited with status $ac_status" >&5
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4620 ac_cv_header_stdc=no
4622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4626 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4627 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4628 if test $ac_cv_header_stdc = yes; then
4630 cat >>confdefs.h <<\_ACEOF
4631 #define STDC_HEADERS 1
4636 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4646 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4647 inttypes.h stdint.h unistd.h
4649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4650 echo "$as_me:$LINENO: checking for $ac_header" >&5
4651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 cat >conftest.$ac_ext <<_ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 $ac_includes_default
4663 #include <$ac_header>
4665 rm -f conftest.$ac_objext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667 (eval $ac_compile) 2>conftest.er1
4669 grep -v '^ *+' conftest.er1 >conftest.err
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
4674 { ac_try='test -z "$ac_cxx_werror_flag"
4675 || test ! -s conftest.err'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; } &&
4681 { ac_try='test -s conftest.$ac_objext'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4687 eval "$as_ac_Header=yes"
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 eval "$as_ac_Header=no"
4694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4699 cat >>confdefs.h <<_ACEOF
4700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4710 ac_cpp='$CXXCPP $CPPFLAGS'
4711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4715 echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
4716 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6
4717 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 cat >conftest.$ac_ext <<_ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 #include <ext2fs/ext2_fs.h>
4728 int main() { return 0; }
4730 rm -f conftest.$ac_objext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732 (eval $ac_compile) 2>conftest.er1
4734 grep -v '^ *+' conftest.er1 >conftest.err
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -z "$ac_cxx_werror_flag"
4740 || test ! -s conftest.err'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; } &&
4746 { ac_try='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 ensc_cv_test_ext2fs_header=e2fsprogs
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4758 cat >conftest.$ac_ext <<_ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 #include <linux/ext2_fs.h>
4765 int main() { return 0; }
4767 rm -f conftest.$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769 (eval $ac_compile) 2>conftest.er1
4771 grep -v '^ *+' conftest.er1 >conftest.err
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } &&
4776 { ac_try='test -z "$ac_cxx_werror_flag"
4777 || test ! -s conftest.err'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; } &&
4783 { ac_try='test -s conftest.$ac_objext'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 ensc_cv_test_ext2fs_header=kernel
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4795 ensc_cv_test_ext2fs_header=none
4797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4801 echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
4802 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6
4804 case x"$ensc_cv_test_ext2fs_header" in
4806 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
4807 echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
4808 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
4809 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
4813 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
4815 # Is the header compilable?
4816 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
4817 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6
4818 cat >conftest.$ac_ext <<_ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 $ac_includes_default
4825 #include <ext2fs/ext2_fs.h>
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>conftest.er1
4831 grep -v '^ *+' conftest.er1 >conftest.err
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try='test -z "$ac_cxx_werror_flag"
4837 || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_header_compiler=yes
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 ac_header_compiler=no
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4858 echo "${ECHO_T}$ac_header_compiler" >&6
4860 # Is the header present?
4861 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
4862 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6
4863 cat >conftest.$ac_ext <<_ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 #include <ext2fs/ext2_fs.h>
4871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4874 grep -v '^ *+' conftest.er1 >conftest.err
4876 cat conftest.err >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } >/dev/null; then
4879 if test -s conftest.err; then
4880 ac_cpp_err=$ac_cxx_preproc_warn_flag
4881 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4888 if test -z "$ac_cpp_err"; then
4889 ac_header_preproc=yes
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4894 ac_header_preproc=no
4896 rm -f conftest.err conftest.$ac_ext
4897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4898 echo "${ECHO_T}$ac_header_preproc" >&6
4900 # So? What about this header?
4901 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4903 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
4904 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4905 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
4906 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
4907 ac_header_preproc=yes
4910 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
4911 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
4912 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: check for missing prerequisite headers?" >&5
4913 echo "$as_me: WARNING: ext2fs/ext2_fs.h: check for missing prerequisite headers?" >&2;}
4914 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
4915 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
4916 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: section \"Present But Cannot Be Compiled\"" >&5
4917 echo "$as_me: WARNING: ext2fs/ext2_fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
4918 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
4919 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
4920 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
4921 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
4924 ## ------------------------------------------------------ ##
4925 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
4926 ## ------------------------------------------------------ ##
4929 sed "s/^/$as_me: WARNING: /" >&2
4932 echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
4933 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
4934 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
4939 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
4940 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
4943 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
4945 cat >>confdefs.h <<\_ACEOF
4946 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
4950 { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
4951 See \`config.log' for more details." >&5
4952 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
4953 See \`config.log' for more details." >&2;}
4954 { (exit 1); exit 1; }; }
4960 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
4961 echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
4962 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
4963 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
4967 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
4969 # Is the header compilable?
4970 echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
4971 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6
4972 cat >conftest.$ac_ext <<_ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4978 $ac_includes_default
4979 #include <linux/ext2_fs.h>
4981 rm -f conftest.$ac_objext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983 (eval $ac_compile) 2>conftest.er1
4985 grep -v '^ *+' conftest.er1 >conftest.err
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try='test -z "$ac_cxx_werror_flag"
4991 || test ! -s conftest.err'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; } &&
4997 { ac_try='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 ac_header_compiler=yes
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5008 ac_header_compiler=no
5010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5012 echo "${ECHO_T}$ac_header_compiler" >&6
5014 # Is the header present?
5015 echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
5016 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5023 #include <linux/ext2_fs.h>
5025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5028 grep -v '^ *+' conftest.er1 >conftest.err
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } >/dev/null; then
5033 if test -s conftest.err; then
5034 ac_cpp_err=$ac_cxx_preproc_warn_flag
5035 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5042 if test -z "$ac_cpp_err"; then
5043 ac_header_preproc=yes
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5048 ac_header_preproc=no
5050 rm -f conftest.err conftest.$ac_ext
5051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5052 echo "${ECHO_T}$ac_header_preproc" >&6
5054 # So? What about this header?
5055 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5057 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5058 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5059 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
5060 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
5061 ac_header_preproc=yes
5064 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
5065 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
5066 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: check for missing prerequisite headers?" >&5
5067 echo "$as_me: WARNING: linux/ext2_fs.h: check for missing prerequisite headers?" >&2;}
5068 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
5069 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
5070 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: section \"Present But Cannot Be Compiled\"" >&5
5071 echo "$as_me: WARNING: linux/ext2_fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
5072 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
5073 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
5074 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
5075 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
5078 ## ------------------------------------------------------ ##
5079 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
5080 ## ------------------------------------------------------ ##
5083 sed "s/^/$as_me: WARNING: /" >&2
5086 echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
5087 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
5088 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
5093 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
5094 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
5097 if test $ac_cv_header_linux_ext2_fs_h = yes; then
5099 cat >>confdefs.h <<\_ACEOF
5100 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
5104 { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
5105 See \`config.log' for more details." >&5
5106 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
5107 See \`config.log' for more details." >&2;}
5108 { (exit 1); exit 1; }; }
5114 { { echo "$as_me:$LINENO: error:
5115 ext2fs headers were not found, or they are not usable. This can have
5116 the following reasons:
5118 * you have neither the e2fsprogs nor the kernel headers installed
5120 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
5121 and you do not have e2fsprogs headers installed; please try to
5122 install e2fsprogs-devel (for Red Hat) or e2fsprogs-dev (for Debian)
5125 * kernel headers are broken and your e2fsprogs headers are too old;
5126 until version 1.27 (inclusive), they are using reserved C++ keywords
5128 * kernel headers are broken and your e2fsprogs headers are too new;
5129 recent (January 2004) BK snapshots of e2fsprogs are unusable for
5130 C++, for details and a solution see
5131 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
5134 In the latter two cases you have the following options:
5135 * fix the headers manually, or
5136 * install a stable version of e2fsprogs (e.g. 1.34), or
5137 * use good kernel headers (from linux 2.4.x)
5139 See \`config.log' for more details." >&5
5140 echo "$as_me: error:
5141 ext2fs headers were not found, or they are not usable. This can have
5142 the following reasons:
5144 * you have neither the e2fsprogs nor the kernel headers installed
5146 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
5147 and you do not have e2fsprogs headers installed; please try to
5148 install e2fsprogs-devel (for Red Hat) or e2fsprogs-dev (for Debian)
5151 * kernel headers are broken and your e2fsprogs headers are too old;
5152 until version 1.27 (inclusive), they are using reserved C++ keywords
5154 * kernel headers are broken and your e2fsprogs headers are too new;
5155 recent (January 2004) BK snapshots of e2fsprogs are unusable for
5156 C++, for details and a solution see
5157 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
5160 In the latter two cases you have the following options:
5161 * fix the headers manually, or
5162 * install a stable version of e2fsprogs (e.g. 1.34), or
5163 * use good kernel headers (from linux 2.4.x)
5165 See \`config.log' for more details." >&2;}
5166 { (exit 1); exit 1; }; }
5170 ac_cpp='$CPP $CPPFLAGS'
5171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5177 for ac_func in vserver
5179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5180 echo "$as_me:$LINENO: checking for $ac_func" >&5
5181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5182 if eval "test \"\${$as_ac_var+set}\" = set"; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 cat >conftest.$ac_ext <<_ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5193 #define $ac_func innocuous_$ac_func
5195 /* System header to define __stub macros and hopefully few prototypes,
5196 which can conflict with char $ac_func (); below.
5197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5198 <limits.h> exists even on freestanding compilers. */
5201 # include <limits.h>
5203 # include <assert.h>
5208 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5216 /* The GNU C library defines this for functions which it implements
5217 to always fail with ENOSYS. Some functions are actually named
5218 something starting with __ and the normal name is an alias. */
5219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5222 char (*f) () = $ac_func;
5231 return f != $ac_func;
5236 rm -f conftest.$ac_objext conftest$ac_exeext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5238 (eval $ac_link) 2>conftest.er1
5240 grep -v '^ *+' conftest.er1 >conftest.err
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try='test -z "$ac_c_werror_flag"
5246 || test ! -s conftest.err'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try='test -s conftest$ac_exeext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 eval "$as_ac_var=yes"
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5263 eval "$as_ac_var=no"
5265 rm -f conftest.err conftest.$ac_objext \
5266 conftest$ac_exeext conftest.$ac_ext
5268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5270 if test `eval echo '${'$as_ac_var'}'` = yes; then
5271 cat >>confdefs.h <<_ACEOF
5272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5278 echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
5279 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6
5280 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 cat >conftest.$ac_ext <<_ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5289 #include <linux/fs.h>
5295 char *p = (char *) MS_MOVE;
5302 rm -f conftest.$ac_objext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304 (eval $ac_compile) 2>conftest.er1
5306 grep -v '^ *+' conftest.er1 >conftest.err
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } &&
5311 { ac_try='test -z "$ac_c_werror_flag"
5312 || test ! -s conftest.err'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; } &&
5318 { ac_try='test -s conftest.$ac_objext'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5324 ac_cv_have_decl_MS_MOVE=yes
5326 echo "$as_me: failed program was:" >&5
5327 sed 's/^/| /' conftest.$ac_ext >&5
5329 ac_cv_have_decl_MS_MOVE=no
5331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5333 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
5334 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6
5335 if test $ac_cv_have_decl_MS_MOVE = yes; then
5337 cat >>confdefs.h <<_ACEOF
5338 #define HAVE_DECL_MS_MOVE 1
5343 cat >>confdefs.h <<_ACEOF
5344 #define HAVE_DECL_MS_MOVE 0
5351 echo "$as_me:$LINENO: checking for xid_t" >&5
5352 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6
5353 if test "${ac_cv_type_xid_t+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 cat >conftest.$ac_ext <<_ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 #include <sys/types.h>
5375 rm -f conftest.$ac_objext
5376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5377 (eval $ac_compile) 2>conftest.er1
5379 grep -v '^ *+' conftest.er1 >conftest.err
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try='test -z "$ac_c_werror_flag"
5385 || test ! -s conftest.err'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; } &&
5391 { ac_try='test -s conftest.$ac_objext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 ac_cv_type_xid_t=yes
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5406 echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
5407 echo "${ECHO_T}$ac_cv_type_xid_t" >&6
5408 if test $ac_cv_type_xid_t = yes; then
5410 cat >>confdefs.h <<_ACEOF
5411 #define HAVE_XID_T 1
5418 ac_config_files="$ac_config_files util-vserver.spec Makefile"
5420 cat >confcache <<\_ACEOF
5421 # This file is a shell script that caches the results of configure
5422 # tests run on this system so they can be shared between configure
5423 # scripts and configure runs, see configure's option --config-cache.
5424 # It is not useful on other systems. If it contains results you don't
5425 # want to keep, you may remove or edit it.
5427 # config.status only pays attention to the cache file if you give it
5428 # the --recheck option to rerun configure.
5430 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5431 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5436 # The following way of writing the cache mishandles newlines in values,
5437 # but we know of no workaround that is simple, portable, and efficient.
5438 # So, don't put newlines in cache variables' values.
5439 # Ultrix sh set writes to stderr and can't be redirected directly,
5440 # and sets the high bit in the cache file unless we assign to the vars.
5443 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5445 # `set' does not quote correctly, so add quotes (double-quote
5446 # substitution turns \\\\ into \\, and sed turns \\ into \).
5449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5452 # `set' quotes correctly as required by POSIX, so do not add quotes.
5454 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5461 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5463 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5465 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5466 if test -w $cache_file; then
5467 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5468 cat confcache >$cache_file
5470 echo "not updating unwritable cache $cache_file"
5475 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5476 # Let make expand exec_prefix.
5477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5479 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5480 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5481 # trailing colons and then remove the whole line if VPATH becomes empty
5482 # (actually we leave an empty line to preserve line numbers).
5483 if test "x$srcdir" = x.; then
5484 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5485 s/:*\$(srcdir):*/:/;
5486 s/:*\${srcdir}:*/:/;
5488 s/^\([^=]*=[ ]*\):*/\1/;
5494 DEFS=-DHAVE_CONFIG_H
5498 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5499 # 1. Remove the extension, and $U if already installed.
5500 ac_i=`echo "$ac_i" |
5501 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5503 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5504 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5508 LTLIBOBJS=$ac_ltlibobjs
5511 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5512 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5513 Usually this means the macro was only invoked conditionally." >&5
5514 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5515 Usually this means the macro was only invoked conditionally." >&2;}
5516 { (exit 1); exit 1; }; }
5518 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5519 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5520 Usually this means the macro was only invoked conditionally." >&5
5521 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5522 Usually this means the macro was only invoked conditionally." >&2;}
5523 { (exit 1); exit 1; }; }
5525 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5526 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
5527 Usually this means the macro was only invoked conditionally." >&5
5528 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
5529 Usually this means the macro was only invoked conditionally." >&2;}
5530 { (exit 1); exit 1; }; }
5532 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5533 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5534 Usually this means the macro was only invoked conditionally." >&5
5535 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5536 Usually this means the macro was only invoked conditionally." >&2;}
5537 { (exit 1); exit 1; }; }
5539 if test -z "${HAVE_CVS2CL_TRUE}" && test -z "${HAVE_CVS2CL_FALSE}"; then
5540 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CVS2CL\" was never defined.
5541 Usually this means the macro was only invoked conditionally." >&5
5542 echo "$as_me: error: conditional \"HAVE_CVS2CL\" was never defined.
5543 Usually this means the macro was only invoked conditionally." >&2;}
5544 { (exit 1); exit 1; }; }
5546 if test -z "${HAVE_RCS2LOG_TRUE}" && test -z "${HAVE_RCS2LOG_FALSE}"; then
5547 { { echo "$as_me:$LINENO: error: conditional \"HAVE_RCS2LOG\" was never defined.
5548 Usually this means the macro was only invoked conditionally." >&5
5549 echo "$as_me: error: conditional \"HAVE_RCS2LOG\" was never defined.
5550 Usually this means the macro was only invoked conditionally." >&2;}
5551 { (exit 1); exit 1; }; }
5553 if test -z "${ENSC_ENABLE_LINUXCONF_TRUE}" && test -z "${ENSC_ENABLE_LINUXCONF_FALSE}"; then
5554 { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_LINUXCONF\" was never defined.
5555 Usually this means the macro was only invoked conditionally." >&5
5556 echo "$as_me: error: conditional \"ENSC_ENABLE_LINUXCONF\" was never defined.
5557 Usually this means the macro was only invoked conditionally." >&2;}
5558 { (exit 1); exit 1; }; }
5560 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
5561 { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
5562 Usually this means the macro was only invoked conditionally." >&5
5563 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
5564 Usually this means the macro was only invoked conditionally." >&2;}
5565 { (exit 1); exit 1; }; }
5568 : ${CONFIG_STATUS=./config.status}
5569 ac_clean_files_save=$ac_clean_files
5570 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5571 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5572 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5573 cat >$CONFIG_STATUS <<_ACEOF
5575 # Generated by $as_me.
5576 # Run this file to recreate the current configuration.
5577 # Compiler output produced by configure, useful for debugging
5578 # configure, is in config.log if it exists.
5583 SHELL=\${CONFIG_SHELL-$SHELL}
5586 cat >>$CONFIG_STATUS <<\_ACEOF
5587 ## --------------------- ##
5588 ## M4sh Initialization. ##
5589 ## --------------------- ##
5591 # Be Bourne compatible
5592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5595 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5596 # is contrary to our usage. Disable this feature.
5597 alias -g '${1+"$@"}'='"$@"'
5598 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5601 DUALCASE=1; export DUALCASE # for MKS sh
5603 # Support unset when possible.
5604 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5611 # Work around bugs in pre-3.0 UWIN ksh.
5612 $as_unset ENV MAIL MAILPATH
5619 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5620 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5621 LC_TELEPHONE LC_TIME
5623 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5624 eval $as_var=C; export $as_var
5630 # Required to use basename.
5631 if expr a : '\(a\)' >/dev/null 2>&1; then
5637 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5638 as_basename=basename
5644 # Name of the executable.
5645 as_me=`$as_basename "$0" ||
5646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5647 X"$0" : 'X\(//\)$' \| \
5648 X"$0" : 'X\(/\)$' \| \
5649 . : '\(.\)' 2>/dev/null ||
5651 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5652 /^X\/\(\/\/\)$/{ s//\1/; q; }
5653 /^X\/\(\/\).*/{ s//\1/; q; }
5657 # PATH needs CR, and LINENO needs CR and PATH.
5658 # Avoid depending upon Character Ranges.
5659 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5660 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5661 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5662 as_cr_digits='0123456789'
5663 as_cr_alnum=$as_cr_Letters$as_cr_digits
5665 # The user is always right.
5666 if test "${PATH_SEPARATOR+set}" != set; then
5667 echo "#! /bin/sh" >conf$$.sh
5668 echo "exit 0" >>conf$$.sh
5670 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5681 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5682 test "x$as_lineno_1" != "x$as_lineno_2" &&
5683 test "x$as_lineno_3" = "x$as_lineno_2" || {
5684 # Find who we are. Look in the path if we contain no path at all
5687 *[\\/]* ) as_myself=$0 ;;
5688 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 test -z "$as_dir" && as_dir=.
5693 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5698 # We did not find ourselves, most probably we were run as `sh COMMAND'
5699 # in which case we are not to be found in the path.
5700 if test "x$as_myself" = x; then
5703 if test ! -f "$as_myself"; then
5704 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5705 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5706 { (exit 1); exit 1; }; }
5708 case $CONFIG_SHELL in
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5714 test -z "$as_dir" && as_dir=.
5715 for as_base in sh bash ksh sh5; do
5718 if ("$as_dir/$as_base" -c '
5721 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5722 test "x$as_lineno_1" != "x$as_lineno_2" &&
5723 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5724 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5725 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5726 CONFIG_SHELL=$as_dir/$as_base
5728 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5736 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5737 # uniformly replaced by the line number. The first 'sed' inserts a
5738 # line-number line before each line; the second 'sed' does the real
5739 # work. The second script uses 'N' to pair each line-number line
5740 # with the numbered line, and appends trailing '-' during
5741 # substitution so that $LINENO is not a special case at line end.
5742 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5743 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5744 sed '=' <$as_myself |
5749 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5752 s,^['$as_cr_digits']*\n,,
5754 chmod +x $as_me.lineno ||
5755 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5756 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5757 { (exit 1); exit 1; }; }
5759 # Don't try to exec as it changes $[0], causing all sort of problems
5760 # (the dirname of $[0] is not the place where we might find the
5761 # original and so on. Autoconf is especially sensible to this).
5763 # Exit status is that of the last command.
5768 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5769 *c*,-n*) ECHO_N= ECHO_C='
5771 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5772 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5775 if expr a : '\(a\)' >/dev/null 2>&1; then
5781 rm -f conf$$ conf$$.exe conf$$.file
5783 if ln -s conf$$.file conf$$ 2>/dev/null; then
5784 # We could just check for DJGPP; but this test a) works b) is more generic
5785 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5786 if test -f conf$$.exe; then
5787 # Don't use ln at all; we don't have any links
5792 elif ln conf$$.file conf$$ 2>/dev/null; then
5797 rm -f conf$$ conf$$.exe conf$$.file
5799 if mkdir -p . 2>/dev/null; then
5802 test -d ./-p && rmdir ./-p
5806 as_executable_p="test -f"
5808 # Sed expression to map a string onto a valid CPP name.
5809 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5811 # Sed expression to map a string onto a valid variable name.
5812 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5816 # We need space, tab and new line, in precisely that order.
5826 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5827 # report actual input values of CONFIG_FILES etc. instead of their
5828 # values after options handling. Logging --version etc. is OK.
5832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5833 ## Running $as_me. ##
5838 This file was extended by util-vserver $as_me 0.29, which was
5839 generated by GNU Autoconf 2.59. Invocation command line was
5841 CONFIG_FILES = $CONFIG_FILES
5842 CONFIG_HEADERS = $CONFIG_HEADERS
5843 CONFIG_LINKS = $CONFIG_LINKS
5844 CONFIG_COMMANDS = $CONFIG_COMMANDS
5848 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5852 # Files that config.status was made for.
5853 if test -n "$ac_config_files"; then
5854 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5857 if test -n "$ac_config_headers"; then
5858 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5861 if test -n "$ac_config_links"; then
5862 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5865 if test -n "$ac_config_commands"; then
5866 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5869 cat >>$CONFIG_STATUS <<\_ACEOF
5872 \`$as_me' instantiates files from templates according to the
5873 current configuration.
5875 Usage: $0 [OPTIONS] [FILE]...
5877 -h, --help print this help, then exit
5878 -V, --version print version number, then exit
5879 -q, --quiet do not print progress messages
5880 -d, --debug don't remove temporary files
5881 --recheck update $as_me by reconfiguring in the same conditions
5882 --file=FILE[:TEMPLATE]
5883 instantiate the configuration file FILE
5884 --header=FILE[:TEMPLATE]
5885 instantiate the configuration header FILE
5887 Configuration files:
5890 Configuration headers:
5893 Configuration commands:
5896 Report bugs to <bug-autoconf@gnu.org>."
5899 cat >>$CONFIG_STATUS <<_ACEOF
5901 util-vserver config.status 0.29
5902 configured by $0, generated by GNU Autoconf 2.59,
5903 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5905 Copyright (C) 2003 Free Software Foundation, Inc.
5906 This config.status script is free software; the Free Software Foundation
5907 gives unlimited permission to copy, distribute and modify it."
5912 cat >>$CONFIG_STATUS <<\_ACEOF
5913 # If no file are specified by the user, then we need to provide default
5914 # value. By we need to know if files were specified by the user.
5920 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5921 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5929 *) # This is not an option, so the user has probably given explicit
5932 ac_need_defaults=false;;
5936 # Handling of the options.
5938 cat >>$CONFIG_STATUS <<\_ACEOF
5939 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5941 --version | --vers* | -V )
5942 echo "$ac_cs_version"; exit 0 ;;
5944 # Conflict between --help and --header
5945 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5946 Try \`$0 --help' for more information." >&5
5947 echo "$as_me: error: ambiguous option: $1
5948 Try \`$0 --help' for more information." >&2;}
5949 { (exit 1); exit 1; }; };;
5950 --help | --hel | -h )
5951 echo "$ac_cs_usage"; exit 0 ;;
5952 --debug | --d* | -d )
5954 --file | --fil | --fi | --f )
5956 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5957 ac_need_defaults=false;;
5958 --header | --heade | --head | --hea )
5960 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5961 ac_need_defaults=false;;
5962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5963 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5967 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5968 Try \`$0 --help' for more information." >&5
5969 echo "$as_me: error: unrecognized option: $1
5970 Try \`$0 --help' for more information." >&2;}
5971 { (exit 1); exit 1; }; } ;;
5973 *) ac_config_targets="$ac_config_targets $1" ;;
5979 ac_configure_extra_args=
5981 if $ac_cs_silent; then
5983 ac_configure_extra_args="$ac_configure_extra_args --silent"
5987 cat >>$CONFIG_STATUS <<_ACEOF
5988 if \$ac_cs_recheck; then
5989 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5990 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5995 cat >>$CONFIG_STATUS <<_ACEOF
5997 # INIT-COMMANDS section.
6000 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6006 cat >>$CONFIG_STATUS <<\_ACEOF
6007 for ac_config_target in $ac_config_targets
6009 case "$ac_config_target" in
6010 # Handling of arguments.
6011 "util-vserver.spec" ) CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
6012 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6013 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6014 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6015 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6016 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6017 { (exit 1); exit 1; }; };;
6021 # If the user did not use the arguments to specify the items to instantiate,
6022 # then the envvar interface is used. Set only those that are not.
6023 # We use the long form for the default assignment because of an extremely
6024 # bizarre bug on SunOS 4.1.3.
6025 if $ac_need_defaults; then
6026 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6027 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6028 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6031 # Have a temporary directory for convenience. Make it in the build tree
6032 # simply because there is no reason to put it here, and in addition,
6033 # creating and moving files from /tmp can sometimes cause problems.
6034 # Create a temporary directory, and hook for its removal unless debugging.
6037 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6038 trap '{ (exit 1); exit 1; }' 1 2 13 15
6041 # Create a (secure) tmp directory for tmp files.
6044 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6045 test -n "$tmp" && test -d "$tmp"
6048 tmp=./confstat$$-$RANDOM
6049 (umask 077 && mkdir $tmp)
6052 echo "$me: cannot create a temporary directory in ." >&2
6053 { (exit 1); exit 1; }
6058 cat >>$CONFIG_STATUS <<_ACEOF
6061 # CONFIG_FILES section.
6064 # No need to generate the scripts if there are no CONFIG_FILES.
6065 # This happens for instance when ./config.status config.h
6066 if test -n "\$CONFIG_FILES"; then
6067 # Protect against being on the right side of a sed subst in config.status.
6068 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6069 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6070 s,@SHELL@,$SHELL,;t t
6071 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6072 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6073 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6074 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6075 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6076 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6077 s,@exec_prefix@,$exec_prefix,;t t
6078 s,@prefix@,$prefix,;t t
6079 s,@program_transform_name@,$program_transform_name,;t t
6080 s,@bindir@,$bindir,;t t
6081 s,@sbindir@,$sbindir,;t t
6082 s,@libexecdir@,$libexecdir,;t t
6083 s,@datadir@,$datadir,;t t
6084 s,@sysconfdir@,$sysconfdir,;t t
6085 s,@sharedstatedir@,$sharedstatedir,;t t
6086 s,@localstatedir@,$localstatedir,;t t
6087 s,@libdir@,$libdir,;t t
6088 s,@includedir@,$includedir,;t t
6089 s,@oldincludedir@,$oldincludedir,;t t
6090 s,@infodir@,$infodir,;t t
6091 s,@mandir@,$mandir,;t t
6092 s,@build_alias@,$build_alias,;t t
6093 s,@host_alias@,$host_alias,;t t
6094 s,@target_alias@,$target_alias,;t t
6096 s,@ECHO_C@,$ECHO_C,;t t
6097 s,@ECHO_N@,$ECHO_N,;t t
6098 s,@ECHO_T@,$ECHO_T,;t t
6100 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6101 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6102 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6103 s,@CYGPATH_W@,$CYGPATH_W,;t t
6104 s,@PACKAGE@,$PACKAGE,;t t
6105 s,@VERSION@,$VERSION,;t t
6106 s,@ACLOCAL@,$ACLOCAL,;t t
6107 s,@AUTOCONF@,$AUTOCONF,;t t
6108 s,@AUTOMAKE@,$AUTOMAKE,;t t
6109 s,@AUTOHEADER@,$AUTOHEADER,;t t
6110 s,@MAKEINFO@,$MAKEINFO,;t t
6111 s,@AMTAR@,$AMTAR,;t t
6112 s,@install_sh@,$install_sh,;t t
6113 s,@STRIP@,$STRIP,;t t
6114 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6115 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6116 s,@mkdir_p@,$mkdir_p,;t t
6118 s,@SET_MAKE@,$SET_MAKE,;t t
6119 s,@am__leading_dot@,$am__leading_dot,;t t
6120 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6121 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6122 s,@MAINT@,$MAINT,;t t
6124 s,@CXXFLAGS@,$CXXFLAGS,;t t
6125 s,@LDFLAGS@,$LDFLAGS,;t t
6126 s,@CPPFLAGS@,$CPPFLAGS,;t t
6127 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6128 s,@EXEEXT@,$EXEEXT,;t t
6129 s,@OBJEXT@,$OBJEXT,;t t
6130 s,@DEPDIR@,$DEPDIR,;t t
6131 s,@am__include@,$am__include,;t t
6132 s,@am__quote@,$am__quote,;t t
6133 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6134 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6135 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6136 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
6137 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
6138 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
6140 s,@CFLAGS@,$CFLAGS,;t t
6141 s,@ac_ct_CC@,$ac_ct_CC,;t t
6142 s,@CCDEPMODE@,$CCDEPMODE,;t t
6143 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6144 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6146 s,@RANLIB@,$RANLIB,;t t
6147 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6148 s,@kernelincludedir@,$kernelincludedir,;t t
6149 s,@vserverdir@,$vserverdir,;t t
6150 s,@CVS2CL_TAG@,$CVS2CL_TAG,;t t
6151 s,@CVS2CL@,$CVS2CL,;t t
6152 s,@HAVE_CVS2CL_TRUE@,$HAVE_CVS2CL_TRUE,;t t
6153 s,@HAVE_CVS2CL_FALSE@,$HAVE_CVS2CL_FALSE,;t t
6154 s,@RCS2LOG@,$RCS2LOG,;t t
6155 s,@HAVE_RCS2LOG_TRUE@,$HAVE_RCS2LOG_TRUE,;t t
6156 s,@HAVE_RCS2LOG_FALSE@,$HAVE_RCS2LOG_FALSE,;t t
6157 s,@ENSC_ENABLE_LINUXCONF_TRUE@,$ENSC_ENABLE_LINUXCONF_TRUE,;t t
6158 s,@ENSC_ENABLE_LINUXCONF_FALSE@,$ENSC_ENABLE_LINUXCONF_FALSE,;t t
6159 s,@ENSC_ENABLE_INTERNAL_HEADERS_TRUE@,$ENSC_ENABLE_INTERNAL_HEADERS_TRUE,;t t
6160 s,@ENSC_ENABLE_INTERNAL_HEADERS_FALSE@,$ENSC_ENABLE_INTERNAL_HEADERS_FALSE,;t t
6161 s,@CXXCPP@,$CXXCPP,;t t
6162 s,@EGREP@,$EGREP,;t t
6163 s,@LIBOBJS@,$LIBOBJS,;t t
6164 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6169 cat >>$CONFIG_STATUS <<\_ACEOF
6170 # Split the substitutions into bite-sized pieces for seds with
6171 # small command number limits, like on Digital OSF/1 and HP-UX.
6173 ac_sed_frag=1 # Number of current file.
6174 ac_beg=1 # First line for current file.
6175 ac_end=$ac_max_sed_lines # Line after last line for current file.
6178 while $ac_more_lines; do
6179 if test $ac_beg -gt 1; then
6180 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6182 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6184 if test ! -s $tmp/subs.frag; then
6187 # The purpose of the label and of the branching condition is to
6188 # speed up the sed processing (if there are no `@' at all, there
6189 # is no need to browse any of the substitutions).
6190 # These are the two extra sed commands mentioned above.
6192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6193 if test -z "$ac_sed_cmds"; then
6194 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6196 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6198 ac_sed_frag=`expr $ac_sed_frag + 1`
6200 ac_end=`expr $ac_end + $ac_max_sed_lines`
6203 if test -z "$ac_sed_cmds"; then
6206 fi # test -n "$CONFIG_FILES"
6209 cat >>$CONFIG_STATUS <<\_ACEOF
6210 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6211 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6213 - | *:- | *:-:* ) # input from stdin
6215 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6216 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6217 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6218 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6219 * ) ac_file_in=$ac_file.in ;;
6222 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6223 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6224 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6225 X"$ac_file" : 'X\(//\)[^/]' \| \
6226 X"$ac_file" : 'X\(//\)$' \| \
6227 X"$ac_file" : 'X\(/\)' \| \
6228 . : '\(.\)' 2>/dev/null ||
6230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6232 /^X\(\/\/\)$/{ s//\1/; q; }
6233 /^X\(\/\).*/{ s//\1/; q; }
6235 { if $as_mkdir_p; then
6240 while test ! -d "$as_dir"; do
6241 as_dirs="$as_dir $as_dirs"
6242 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6243 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6244 X"$as_dir" : 'X\(//\)[^/]' \| \
6245 X"$as_dir" : 'X\(//\)$' \| \
6246 X"$as_dir" : 'X\(/\)' \| \
6247 . : '\(.\)' 2>/dev/null ||
6249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6250 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6251 /^X\(\/\/\)$/{ s//\1/; q; }
6252 /^X\(\/\).*/{ s//\1/; q; }
6255 test ! -n "$as_dirs" || mkdir $as_dirs
6256 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6257 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6258 { (exit 1); exit 1; }; }; }
6262 if test "$ac_dir" != .; then
6263 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6264 # A "../" for each directory in $ac_dir_suffix.
6265 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6267 ac_dir_suffix= ac_top_builddir=
6271 .) # No --srcdir option. We are building in place.
6273 if test -z "$ac_top_builddir"; then
6276 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6278 [\\/]* | ?:[\\/]* ) # Absolute path.
6279 ac_srcdir=$srcdir$ac_dir_suffix;
6280 ac_top_srcdir=$srcdir ;;
6282 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6283 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6286 # Do not use `cd foo && pwd` to compute absolute paths, because
6287 # the directories may not exist.
6289 .) ac_abs_builddir="$ac_dir";;
6292 .) ac_abs_builddir=`pwd`;;
6293 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6294 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6297 case $ac_abs_builddir in
6298 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6300 case ${ac_top_builddir}. in
6301 .) ac_abs_top_builddir=$ac_abs_builddir;;
6302 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6303 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6306 case $ac_abs_builddir in
6307 .) ac_abs_srcdir=$ac_srcdir;;
6310 .) ac_abs_srcdir=$ac_abs_builddir;;
6311 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6312 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6315 case $ac_abs_builddir in
6316 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6318 case $ac_top_srcdir in
6319 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6320 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6321 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6327 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6328 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6331 if test x"$ac_file" != x-; then
6332 { echo "$as_me:$LINENO: creating $ac_file" >&5
6333 echo "$as_me: creating $ac_file" >&6;}
6336 # Let's still pretend it is `configure' which instantiates (i.e., don't
6337 # use $as_me), people would be surprised to read:
6338 # /* config.h. Generated by config.status. */
6339 if test x"$ac_file" = x-; then
6342 configure_input="$ac_file. "
6344 configure_input=$configure_input"Generated from `echo $ac_file_in |
6345 sed 's,.*/,,'` by configure."
6347 # First look for the input files in the build tree, otherwise in the
6349 ac_file_inputs=`IFS=:
6350 for f in $ac_file_in; do
6352 -) echo $tmp/stdin ;;
6354 # Absolute (can't be DOS-style, as IFS=:)
6355 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6356 echo "$as_me: error: cannot find input file: $f" >&2;}
6357 { (exit 1); exit 1; }; }
6360 if test -f "$f"; then
6363 elif test -f "$srcdir/$f"; then
6368 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6369 echo "$as_me: error: cannot find input file: $f" >&2;}
6370 { (exit 1); exit 1; }; }
6373 done` || { (exit 1); exit 1; }
6375 cat >>$CONFIG_STATUS <<_ACEOF
6379 cat >>$CONFIG_STATUS <<\_ACEOF
6381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6382 s,@configure_input@,$configure_input,;t t
6383 s,@srcdir@,$ac_srcdir,;t t
6384 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6385 s,@top_srcdir@,$ac_top_srcdir,;t t
6386 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6387 s,@builddir@,$ac_builddir,;t t
6388 s,@abs_builddir@,$ac_abs_builddir,;t t
6389 s,@top_builddir@,$ac_top_builddir,;t t
6390 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6391 s,@INSTALL@,$ac_INSTALL,;t t
6392 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6394 if test x"$ac_file" != x-; then
6395 mv $tmp/out $ac_file
6403 cat >>$CONFIG_STATUS <<\_ACEOF
6406 # CONFIG_HEADER section.
6409 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6410 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6412 # ac_d sets the value in "#define NAME VALUE" lines.
6413 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6414 ac_dB='[ ].*$,\1#\2'
6417 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6418 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6419 ac_uB='$,\1#\2define\3'
6423 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6424 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6426 - | *:- | *:-:* ) # input from stdin
6428 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6429 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6430 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6431 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6432 * ) ac_file_in=$ac_file.in ;;
6435 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6436 echo "$as_me: creating $ac_file" >&6;}
6438 # First look for the input files in the build tree, otherwise in the
6440 ac_file_inputs=`IFS=:
6441 for f in $ac_file_in; do
6443 -) echo $tmp/stdin ;;
6445 # Absolute (can't be DOS-style, as IFS=:)
6446 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6447 echo "$as_me: error: cannot find input file: $f" >&2;}
6448 { (exit 1); exit 1; }; }
6449 # Do quote $f, to prevent DOS paths from being IFS'd.
6452 if test -f "$f"; then
6455 elif test -f "$srcdir/$f"; then
6460 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6461 echo "$as_me: error: cannot find input file: $f" >&2;}
6462 { (exit 1); exit 1; }; }
6465 done` || { (exit 1); exit 1; }
6466 # Remove the trailing spaces.
6467 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6471 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6472 # `conftest.undefs', that substitutes the proper values into
6473 # config.h.in to produce config.h. The first handles `#define'
6474 # templates, and the second `#undef' templates.
6475 # And first: Protect against being on the right side of a sed subst in
6476 # config.status. Protect against being in an unquoted here document
6478 rm -f conftest.defines conftest.undefs
6479 # Using a here document instead of a string reduces the quoting nightmare.
6480 # Putting comments in sed scripts is not portable.
6482 # `end' is used to avoid that the second main sed command (meant for
6483 # 0-ary CPP macros) applies to n-ary macro definitions.
6484 # See the Autoconf documentation for `clear'.
6485 cat >confdef2sed.sed <<\_ACEOF
6490 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6492 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6495 # If some macros were called several times there might be several times
6496 # the same #defines, which is useless. Nevertheless, we may not want to
6497 # sort them, since we want the *last* AC-DEFINE to be honored.
6498 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6499 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6500 rm -f confdef2sed.sed
6502 # This sed command replaces #undef with comments. This is necessary, for
6503 # example, in the case of _POSIX_SOURCE, which is predefined and required
6504 # on some systems where configure will not decide to define it.
6505 cat >>conftest.undefs <<\_ACEOF
6506 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6509 # Break up conftest.defines because some shells have a limit on the size
6510 # of here documents, and old seds have small limits too (100 cmds).
6511 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6512 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6513 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6514 echo ' :' >>$CONFIG_STATUS
6516 while grep . conftest.defines >/dev/null
6518 # Write a limited-size here document to $tmp/defines.sed.
6519 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6520 # Speed up: don't consider the non `#define' lines.
6521 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6522 # Work around the forget-to-reset-the-flag bug.
6523 echo 't clr' >>$CONFIG_STATUS
6524 echo ': clr' >>$CONFIG_STATUS
6525 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6527 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6531 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6532 rm -f conftest.defines
6533 mv conftest.tail conftest.defines
6535 rm -f conftest.defines
6536 echo ' fi # grep' >>$CONFIG_STATUS
6537 echo >>$CONFIG_STATUS
6539 # Break up conftest.undefs because some shells have a limit on the size
6540 # of here documents, and old seds have small limits too (100 cmds).
6541 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6543 while grep . conftest.undefs >/dev/null
6545 # Write a limited-size here document to $tmp/undefs.sed.
6546 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6547 # Speed up: don't consider the non `#undef'
6548 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6549 # Work around the forget-to-reset-the-flag bug.
6550 echo 't clr' >>$CONFIG_STATUS
6551 echo ': clr' >>$CONFIG_STATUS
6552 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6554 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6558 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6559 rm -f conftest.undefs
6560 mv conftest.tail conftest.undefs
6562 rm -f conftest.undefs
6564 cat >>$CONFIG_STATUS <<\_ACEOF
6565 # Let's still pretend it is `configure' which instantiates (i.e., don't
6566 # use $as_me), people would be surprised to read:
6567 # /* config.h. Generated by config.status. */
6568 if test x"$ac_file" = x-; then
6569 echo "/* Generated by configure. */" >$tmp/config.h
6571 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6573 cat $tmp/in >>$tmp/config.h
6575 if test x"$ac_file" != x-; then
6576 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6577 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6578 echo "$as_me: $ac_file is unchanged" >&6;}
6580 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6582 X"$ac_file" : 'X\(//\)[^/]' \| \
6583 X"$ac_file" : 'X\(//\)$' \| \
6584 X"$ac_file" : 'X\(/\)' \| \
6585 . : '\(.\)' 2>/dev/null ||
6587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6589 /^X\(\/\/\)$/{ s//\1/; q; }
6590 /^X\(\/\).*/{ s//\1/; q; }
6592 { if $as_mkdir_p; then
6597 while test ! -d "$as_dir"; do
6598 as_dirs="$as_dir $as_dirs"
6599 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6601 X"$as_dir" : 'X\(//\)[^/]' \| \
6602 X"$as_dir" : 'X\(//\)$' \| \
6603 X"$as_dir" : 'X\(/\)' \| \
6604 . : '\(.\)' 2>/dev/null ||
6606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6608 /^X\(\/\/\)$/{ s//\1/; q; }
6609 /^X\(\/\).*/{ s//\1/; q; }
6612 test ! -n "$as_dirs" || mkdir $as_dirs
6613 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6614 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6615 { (exit 1); exit 1; }; }; }
6618 mv $tmp/config.h $ac_file
6624 # Compute $ac_file's index in $config_headers.
6626 for _am_header in $config_headers :; do
6628 $ac_file | $ac_file:* )
6631 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6634 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6635 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6636 X$ac_file : 'X\(//\)[^/]' \| \
6637 X$ac_file : 'X\(//\)$' \| \
6638 X$ac_file : 'X\(/\)' \| \
6639 . : '\(.\)' 2>/dev/null ||
6641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6643 /^X\(\/\/\)$/{ s//\1/; q; }
6644 /^X\(\/\).*/{ s//\1/; q; }
6645 s/.*/./; q'`/stamp-h$_am_stamp_count
6648 cat >>$CONFIG_STATUS <<\_ACEOF
6651 # CONFIG_COMMANDS section.
6653 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6654 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6655 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6656 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6657 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6658 X"$ac_dest" : 'X\(//\)[^/]' \| \
6659 X"$ac_dest" : 'X\(//\)$' \| \
6660 X"$ac_dest" : 'X\(/\)' \| \
6661 . : '\(.\)' 2>/dev/null ||
6663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6665 /^X\(\/\/\)$/{ s//\1/; q; }
6666 /^X\(\/\).*/{ s//\1/; q; }
6668 { if $as_mkdir_p; then
6673 while test ! -d "$as_dir"; do
6674 as_dirs="$as_dir $as_dirs"
6675 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6676 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6677 X"$as_dir" : 'X\(//\)[^/]' \| \
6678 X"$as_dir" : 'X\(//\)$' \| \
6679 X"$as_dir" : 'X\(/\)' \| \
6680 . : '\(.\)' 2>/dev/null ||
6682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6684 /^X\(\/\/\)$/{ s//\1/; q; }
6685 /^X\(\/\).*/{ s//\1/; q; }
6688 test ! -n "$as_dirs" || mkdir $as_dirs
6689 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6690 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6691 { (exit 1); exit 1; }; }; }
6695 if test "$ac_dir" != .; then
6696 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6697 # A "../" for each directory in $ac_dir_suffix.
6698 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6700 ac_dir_suffix= ac_top_builddir=
6704 .) # No --srcdir option. We are building in place.
6706 if test -z "$ac_top_builddir"; then
6709 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6711 [\\/]* | ?:[\\/]* ) # Absolute path.
6712 ac_srcdir=$srcdir$ac_dir_suffix;
6713 ac_top_srcdir=$srcdir ;;
6715 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6716 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6719 # Do not use `cd foo && pwd` to compute absolute paths, because
6720 # the directories may not exist.
6722 .) ac_abs_builddir="$ac_dir";;
6725 .) ac_abs_builddir=`pwd`;;
6726 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6727 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6730 case $ac_abs_builddir in
6731 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6733 case ${ac_top_builddir}. in
6734 .) ac_abs_top_builddir=$ac_abs_builddir;;
6735 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6736 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6739 case $ac_abs_builddir in
6740 .) ac_abs_srcdir=$ac_srcdir;;
6743 .) ac_abs_srcdir=$ac_abs_builddir;;
6744 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6745 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6748 case $ac_abs_builddir in
6749 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6751 case $ac_top_srcdir in
6752 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6753 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6754 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6759 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6760 echo "$as_me: executing $ac_dest commands" >&6;}
6762 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6763 # Strip MF so we end up with the name of the file.
6764 mf=`echo "$mf" | sed -e 's/:.*$//'`
6765 # Check whether this is an Automake generated Makefile or not.
6766 # We used to match only the files named `Makefile.in', but
6767 # some people rename them; so instead we look at the file content.
6768 # Grep'ing the first line is not enough: some people post-process
6769 # each Makefile.in and add a new line on top of each file to say so.
6770 # So let's grep whole file.
6771 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6772 dirpart=`(dirname "$mf") 2>/dev/null ||
6773 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6774 X"$mf" : 'X\(//\)[^/]' \| \
6775 X"$mf" : 'X\(//\)$' \| \
6776 X"$mf" : 'X\(/\)' \| \
6777 . : '\(.\)' 2>/dev/null ||
6779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6781 /^X\(\/\/\)$/{ s//\1/; q; }
6782 /^X\(\/\).*/{ s//\1/; q; }
6787 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6788 # Extract the definition of DEP_FILES from the Makefile without
6790 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6791 test -z "$DEPDIR" && continue
6792 # When using ansi2knr, U may be empty or an underscore; expand it
6793 U=`sed -n -e '/^U = / s///p' < "$mf"`
6794 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6795 # We invoke sed twice because it is the simplest approach to
6796 # changing $(DEPDIR) to its actual value in the expansion.
6797 for file in `sed -n -e '
6798 /^DEP_FILES = .*\\\\$/ {
6807 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6808 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6809 # Make sure the directory exists.
6810 test -f "$dirpart/$file" && continue
6811 fdir=`(dirname "$file") 2>/dev/null ||
6812 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6813 X"$file" : 'X\(//\)[^/]' \| \
6814 X"$file" : 'X\(//\)$' \| \
6815 X"$file" : 'X\(/\)' \| \
6816 . : '\(.\)' 2>/dev/null ||
6818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6819 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6820 /^X\(\/\/\)$/{ s//\1/; q; }
6821 /^X\(\/\).*/{ s//\1/; q; }
6823 { if $as_mkdir_p; then
6824 mkdir -p $dirpart/$fdir
6826 as_dir=$dirpart/$fdir
6828 while test ! -d "$as_dir"; do
6829 as_dirs="$as_dir $as_dirs"
6830 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6831 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6832 X"$as_dir" : 'X\(//\)[^/]' \| \
6833 X"$as_dir" : 'X\(//\)$' \| \
6834 X"$as_dir" : 'X\(/\)' \| \
6835 . : '\(.\)' 2>/dev/null ||
6837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6838 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6839 /^X\(\/\/\)$/{ s//\1/; q; }
6840 /^X\(\/\).*/{ s//\1/; q; }
6843 test ! -n "$as_dirs" || mkdir $as_dirs
6844 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6845 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6846 { (exit 1); exit 1; }; }; }
6848 # echo "creating $dirpart/$file"
6849 echo '# dummy' > "$dirpart/$file"
6857 cat >>$CONFIG_STATUS <<\_ACEOF
6859 { (exit 0); exit 0; }
6861 chmod +x $CONFIG_STATUS
6862 ac_clean_files=$ac_clean_files_save
6865 # configure is writing to config.log, and then calls config.status.
6866 # config.status does its own redirection, appending to config.log.
6867 # Unfortunately, on DOS this fails, as config.log is still kept open
6868 # by configure, so config.status won't be able to write to it; its
6869 # output is simply discarded. So we exec the FD to /dev/null,
6870 # effectively closing config.log, so it can be properly (re)opened and
6871 # appended to by config.status. When coming back to configure, we
6872 # need to make the FD available again.
6873 if test "$no_create" != yes; then
6875 ac_config_status_args=
6876 test "$silent" = yes &&
6877 ac_config_status_args="$ac_config_status_args --quiet"
6879 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6881 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6882 # would make configure fail if this is the last instruction.
6883 $ac_cs_success || { (exit 1); exit 1; }