2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.68 for lxc 0.8.0-rc1.
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
94
*[\\/]* ) as_myself=$0 ;;
95
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99
test -z "$as_dir" && as_dir=.
100
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
111
if test ! -f "$as_myself"; then
112
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there. '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
if test "x$CONFIG_SHELL" = x; then
138
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142
# is contrary to our usage. Disable this feature.
143
alias -g '\${1+\"\$@\"}'='\"\$@\"'
146
case \`(set -o) 2>/dev/null\` in #(
154
as_required="as_fn_return () { (exit \$1); }
155
as_fn_success () { as_fn_return 0; }
156
as_fn_failure () { as_fn_return 1; }
157
as_fn_ret_success () { return 0; }
158
as_fn_ret_failure () { return 1; }
161
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
exitcode=1; echo positional parameters were not saved.
170
test x\$exitcode = x0 || exit 1"
171
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
test \$(( 1 + 1 )) = 2 || exit 1"
176
if (eval "$as_required") 2>/dev/null; then :
181
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189
test -z "$as_dir" && as_dir=.
193
for as_base in sh bash ksh sh5; do
194
# Try only shells that exist, to save several forks.
195
as_shell=$as_dir/$as_base
196
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198
CONFIG_SHELL=$as_shell as_have_required=yes
199
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209
CONFIG_SHELL=$SHELL as_have_required=yes
214
if test "x$CONFIG_SHELL" != x; then :
215
# We cannot yet assume a decent shell, so we have to provide a
216
# neutralization value for shells without unset; and this also
217
# works around shells that cannot unset nonexistent variables.
218
# Preserve -v and -x to the replacement shell.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224
*v*x* | *x*v* ) as_opts=-vx ;;
229
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232
if test x$as_have_required = xno; then :
233
$as_echo "$0: This script requires a shell more modern than all"
234
$as_echo "$0: the shells that I found on your system."
235
if test x${ZSH_VERSION+set} = xset ; then
236
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
239
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240
$0: including any error possibly output before this
241
$0: message. Then install a modern shell, or manually run
242
$0: the script under such a shell if you do have one."
248
SHELL=${CONFIG_SHELL-/bin/sh}
250
# Unset more variables known to interfere with behavior of common tools.
251
CLICOLOR_FORCE= GREP_OPTIONS=
252
unset CLICOLOR_FORCE GREP_OPTIONS
254
## --------------------- ##
255
## M4sh Shell Functions. ##
256
## --------------------- ##
259
# Portably unset VAR.
262
{ eval $1=; unset $1;}
266
# as_fn_set_status STATUS
267
# -----------------------
268
# Set $? to STATUS, without forking.
276
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286
# Create "$as_dir" as a directory, including parents if necessary.
291
-*) as_dir=./$as_dir;;
293
test -d "$as_dir" || eval $as_mkdir_p || {
297
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300
as_dirs="'$as_qdir' $as_dirs"
301
as_dir=`$as_dirname -- "$as_dir" ||
302
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303
X"$as_dir" : 'X\(//\)[^/]' \| \
304
X"$as_dir" : 'X\(//\)$' \| \
305
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306
$as_echo X"$as_dir" |
307
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324
test -d "$as_dir" && break
326
test -z "$as_dirs" || eval "mkdir $as_dirs"
327
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
# as_fn_append VAR VALUE
332
# ----------------------
333
# Append the text in VALUE to the end of the definition contained in VAR. Take
334
# advantage of any shell optimizations that allow amortized linear growth over
335
# repeated appends, instead of the typical quadratic growth present in naive
337
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338
eval 'as_fn_append ()
351
# Perform arithmetic evaluation on the ARGs, and store the result in the
352
# global $as_val. Take advantage of shells that can avoid forks. The arguments
353
# must be portable across $(()) and expr.
354
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362
as_val=`expr "$@" || test $? -eq 1`
367
# as_fn_error STATUS ERROR [LINENO LOG_FD]
368
# ----------------------------------------
369
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371
# script with STATUS, using 1 if that was 0.
374
as_status=$1; test $as_status -eq 0 && as_status=1
376
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379
$as_echo "$as_me: error: $2" >&2
380
as_fn_exit $as_status
383
if expr a : '\(a\)' >/dev/null 2>&1 &&
384
test "X`expr 00001 : '.*\(...\)'`" = X001; then
390
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402
as_me=`$as_basename -- "$0" ||
403
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404
X"$0" : 'X\(//\)$' \| \
405
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407
sed '/^.*\/\([^/][^/]*\)\/*$/{
421
# Avoid depending upon Character Ranges.
422
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425
as_cr_digits='0123456789'
426
as_cr_alnum=$as_cr_Letters$as_cr_digits
429
as_lineno_1=$LINENO as_lineno_1a=$LINENO
430
as_lineno_2=$LINENO as_lineno_2a=$LINENO
431
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449
chmod +x "$as_me.lineno" ||
450
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452
# Don't try to exec as it changes $[0], causing all sort of problems
453
# (the dirname of $[0] is not the place where we might find the
454
# original and so on. Autoconf is especially sensitive to this).
456
# Exit status is that of the last command.
460
ECHO_C= ECHO_N= ECHO_T=
461
case `echo -n x` in #(((((
463
case `echo 'xy\c'` in
464
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
466
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473
rm -f conf$$ conf$$.exe conf$$.file
474
if test -d conf$$.dir; then
475
rm -f conf$$.dir/conf$$.file
478
mkdir conf$$.dir 2>/dev/null
480
if (echo >conf$$.file) 2>/dev/null; then
481
if ln -s conf$$.file conf$$ 2>/dev/null; then
483
# ... but there are two gotchas:
484
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486
# In both cases, we have to default to `cp -p'.
487
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489
elif ln conf$$.file conf$$ 2>/dev/null; then
497
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498
rmdir conf$$.dir 2>/dev/null
500
if mkdir -p . 2>/dev/null; then
501
as_mkdir_p='mkdir -p "$as_dir"'
503
test -d ./-p && rmdir ./-p
507
if test -x / >/dev/null 2>&1; then
510
if ls -dL / >/dev/null 2>&1; then
517
if test -d "$1"; then
523
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524
???[sx]*):;;*)false;;esac;fi
528
as_executable_p=$as_test_x
530
# Sed expression to map a string onto a valid CPP name.
531
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
# Sed expression to map a string onto a valid variable name.
534
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
test -n "$DJDIR" || exec 7<&0 </dev/null
541
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542
# so uname gets run too.
543
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
ac_default_prefix=/usr/local
550
ac_config_libobj_dir=.
557
# Identity of this package.
559
PACKAGE_TARNAME='lxc'
560
PACKAGE_VERSION='0.8.0-rc1'
561
PACKAGE_STRING='lxc 0.8.0-rc1'
565
ac_unique_file="configure.ac"
566
# Factoring default headers for most tests.
567
ac_includes_default="\
569
#ifdef HAVE_SYS_TYPES_H
570
# include <sys/types.h>
572
#ifdef HAVE_SYS_STAT_H
573
# include <sys/stat.h>
579
# ifdef HAVE_STDLIB_H
584
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589
#ifdef HAVE_STRINGS_H
590
# include <strings.h>
592
#ifdef HAVE_INTTYPES_H
593
# include <inttypes.h>
602
ac_subst_vars='am__EXEEXT_FALSE
622
ENABLE_EXAMPLES_FALSE
665
INSTALL_STRIP_PROGRAM
707
program_transform_name
720
enable_option_checking
721
enable_dependency_tracking
729
ac_precious_vars='build_alias
740
# Initialize some variables set by options.
742
ac_init_version=false
743
ac_unrecognized_opts=
745
# The variables have the same names as the options, with
746
# dashes changed to underlines.
754
program_transform_name=s,x,x,
762
# Installation directory options.
763
# These are left unexpanded so users can "make install exec_prefix=/foo"
764
# and all the variables that are supposed to be based on exec_prefix
765
# by default will actually change.
766
# Use braces instead of parens because sh, perl, etc. also accept them.
767
# (The list follows the same order as the GNU Coding Standards.)
768
bindir='${exec_prefix}/bin'
769
sbindir='${exec_prefix}/sbin'
770
libexecdir='${exec_prefix}/libexec'
771
datarootdir='${prefix}/share'
772
datadir='${datarootdir}'
773
sysconfdir='${prefix}/etc'
774
sharedstatedir='${prefix}/com'
775
localstatedir='${prefix}/var'
776
includedir='${prefix}/include'
777
oldincludedir='/usr/include'
778
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
779
infodir='${datarootdir}/info'
784
libdir='${exec_prefix}/lib'
785
localedir='${datarootdir}/locale'
786
mandir='${datarootdir}/man'
792
# If the previous option needs an argument, assign it.
793
if test -n "$ac_prev"; then
794
eval $ac_prev=\$ac_option
800
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
805
# Accept the important Cygnus configure options, so we can diagnose typos.
807
case $ac_dashdash$ac_option in
811
-bindir | --bindir | --bindi | --bind | --bin | --bi)
813
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816
-build | --build | --buil | --bui | --bu)
817
ac_prev=build_alias ;;
818
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
819
build_alias=$ac_optarg ;;
821
-cache-file | --cache-file | --cache-fil | --cache-fi \
822
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823
ac_prev=cache_file ;;
824
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826
cache_file=$ac_optarg ;;
829
cache_file=config.cache ;;
831
-datadir | --datadir | --datadi | --datad)
833
-datadir=* | --datadir=* | --datadi=* | --datad=*)
834
datadir=$ac_optarg ;;
836
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837
| --dataroo | --dataro | --datar)
838
ac_prev=datarootdir ;;
839
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841
datarootdir=$ac_optarg ;;
843
-disable-* | --disable-*)
844
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845
# Reject names that are not valid shell variable names.
846
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
847
as_fn_error $? "invalid feature name: $ac_useropt"
848
ac_useropt_orig=$ac_useropt
849
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
850
case $ac_user_opts in
854
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
855
ac_unrecognized_sep=', ';;
857
eval enable_$ac_useropt=no ;;
859
-docdir | --docdir | --docdi | --doc | --do)
861
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869
-enable-* | --enable-*)
870
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871
# Reject names that are not valid shell variable names.
872
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873
as_fn_error $? "invalid feature name: $ac_useropt"
874
ac_useropt_orig=$ac_useropt
875
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876
case $ac_user_opts in
880
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
881
ac_unrecognized_sep=', ';;
883
eval enable_$ac_useropt=\$ac_optarg ;;
885
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
886
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
887
| --exec | --exe | --ex)
888
ac_prev=exec_prefix ;;
889
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
890
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
891
| --exec=* | --exe=* | --ex=*)
892
exec_prefix=$ac_optarg ;;
894
-gas | --gas | --ga | --g)
895
# Obsolete; use --with-gas.
898
-help | --help | --hel | --he | -h)
900
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
901
ac_init_help=recursive ;;
902
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
903
ac_init_help=short ;;
905
-host | --host | --hos | --ho)
906
ac_prev=host_alias ;;
907
-host=* | --host=* | --hos=* | --ho=*)
908
host_alias=$ac_optarg ;;
910
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
912
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
914
htmldir=$ac_optarg ;;
916
-includedir | --includedir | --includedi | --included | --include \
917
| --includ | --inclu | --incl | --inc)
918
ac_prev=includedir ;;
919
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
920
| --includ=* | --inclu=* | --incl=* | --inc=*)
921
includedir=$ac_optarg ;;
923
-infodir | --infodir | --infodi | --infod | --info | --inf)
925
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
926
infodir=$ac_optarg ;;
928
-libdir | --libdir | --libdi | --libd)
930
-libdir=* | --libdir=* | --libdi=* | --libd=*)
933
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
934
| --libexe | --libex | --libe)
935
ac_prev=libexecdir ;;
936
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
937
| --libexe=* | --libex=* | --libe=*)
938
libexecdir=$ac_optarg ;;
940
-localedir | --localedir | --localedi | --localed | --locale)
942
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
943
localedir=$ac_optarg ;;
945
-localstatedir | --localstatedir | --localstatedi | --localstated \
946
| --localstate | --localstat | --localsta | --localst | --locals)
947
ac_prev=localstatedir ;;
948
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
949
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
950
localstatedir=$ac_optarg ;;
952
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
954
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
958
# Obsolete; use --without-fp.
961
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
962
| --no-cr | --no-c | -n)
965
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
966
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
970
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
971
| --oldin | --oldi | --old | --ol | --o)
972
ac_prev=oldincludedir ;;
973
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
974
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
975
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
976
oldincludedir=$ac_optarg ;;
978
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
980
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983
-program-prefix | --program-prefix | --program-prefi | --program-pref \
984
| --program-pre | --program-pr | --program-p)
985
ac_prev=program_prefix ;;
986
-program-prefix=* | --program-prefix=* | --program-prefi=* \
987
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
988
program_prefix=$ac_optarg ;;
990
-program-suffix | --program-suffix | --program-suffi | --program-suff \
991
| --program-suf | --program-su | --program-s)
992
ac_prev=program_suffix ;;
993
-program-suffix=* | --program-suffix=* | --program-suffi=* \
994
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
995
program_suffix=$ac_optarg ;;
997
-program-transform-name | --program-transform-name \
998
| --program-transform-nam | --program-transform-na \
999
| --program-transform-n | --program-transform- \
1000
| --program-transform | --program-transfor \
1001
| --program-transfo | --program-transf \
1002
| --program-trans | --program-tran \
1003
| --progr-tra | --program-tr | --program-t)
1004
ac_prev=program_transform_name ;;
1005
-program-transform-name=* | --program-transform-name=* \
1006
| --program-transform-nam=* | --program-transform-na=* \
1007
| --program-transform-n=* | --program-transform-=* \
1008
| --program-transform=* | --program-transfor=* \
1009
| --program-transfo=* | --program-transf=* \
1010
| --program-trans=* | --program-tran=* \
1011
| --progr-tra=* | --program-tr=* | --program-t=*)
1012
program_transform_name=$ac_optarg ;;
1014
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1016
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1017
pdfdir=$ac_optarg ;;
1019
-psdir | --psdir | --psdi | --psd | --ps)
1021
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1025
| -silent | --silent | --silen | --sile | --sil)
1028
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1030
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1032
sbindir=$ac_optarg ;;
1034
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1035
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1036
| --sharedst | --shareds | --shared | --share | --shar \
1038
ac_prev=sharedstatedir ;;
1039
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1040
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1041
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1043
sharedstatedir=$ac_optarg ;;
1045
-site | --site | --sit)
1047
-site=* | --site=* | --sit=*)
1050
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1052
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1053
srcdir=$ac_optarg ;;
1055
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1056
| --syscon | --sysco | --sysc | --sys | --sy)
1057
ac_prev=sysconfdir ;;
1058
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1059
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1060
sysconfdir=$ac_optarg ;;
1062
-target | --target | --targe | --targ | --tar | --ta | --t)
1063
ac_prev=target_alias ;;
1064
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1065
target_alias=$ac_optarg ;;
1067
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1070
-version | --version | --versio | --versi | --vers | -V)
1071
ac_init_version=: ;;
1074
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1075
# Reject names that are not valid shell variable names.
1076
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077
as_fn_error $? "invalid package name: $ac_useropt"
1078
ac_useropt_orig=$ac_useropt
1079
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080
case $ac_user_opts in
1084
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1085
ac_unrecognized_sep=', ';;
1087
eval with_$ac_useropt=\$ac_optarg ;;
1089
-without-* | --without-*)
1090
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1091
# Reject names that are not valid shell variable names.
1092
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093
as_fn_error $? "invalid package name: $ac_useropt"
1094
ac_useropt_orig=$ac_useropt
1095
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096
case $ac_user_opts in
1100
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1101
ac_unrecognized_sep=', ';;
1103
eval with_$ac_useropt=no ;;
1106
# Obsolete; use --with-x.
1109
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1110
| --x-incl | --x-inc | --x-in | --x-i)
1111
ac_prev=x_includes ;;
1112
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1113
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1114
x_includes=$ac_optarg ;;
1116
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1117
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1118
ac_prev=x_libraries ;;
1119
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1120
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1121
x_libraries=$ac_optarg ;;
1123
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1124
Try \`$0 --help' for more information"
1128
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1129
# Reject names that are not valid shell variable names.
1130
case $ac_envvar in #(
1131
'' | [0-9]* | *[!_$as_cr_alnum]* )
1132
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1134
eval $ac_envvar=\$ac_optarg
1135
export $ac_envvar ;;
1138
# FIXME: should be removed in autoconf 3.0.
1139
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1140
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1141
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1142
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1148
if test -n "$ac_prev"; then
1149
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1150
as_fn_error $? "missing argument to $ac_option"
1153
if test -n "$ac_unrecognized_opts"; then
1154
case $enable_option_checking in
1156
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1157
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1161
# Check all directory arguments for consistency.
1162
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1163
datadir sysconfdir sharedstatedir localstatedir includedir \
1164
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1165
libdir localedir mandir
1167
eval ac_val=\$$ac_var
1168
# Remove trailing slashes.
1171
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1172
eval $ac_var=\$ac_val;;
1174
# Be sure to have absolute directory names.
1176
[\\/$]* | ?:[\\/]* ) continue;;
1177
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1179
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1182
# There might be people who depend on the old broken behavior: `$host'
1183
# used to hold the argument of --host etc.
1184
# FIXME: To remove some day.
1187
target=$target_alias
1189
# FIXME: To remove some day.
1190
if test "x$host_alias" != x; then
1191
if test "x$build_alias" = x; then
1192
cross_compiling=maybe
1193
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1194
If a cross compiler is detected then cross compile mode will be used" >&2
1195
elif test "x$build_alias" != "x$host_alias"; then
1201
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1203
test "$silent" = yes && exec 6>/dev/null
1206
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1207
ac_ls_di=`ls -di .` &&
1208
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1209
as_fn_error $? "working directory cannot be determined"
1210
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211
as_fn_error $? "pwd does not report name of working directory"
1214
# Find the source files, if location was not specified.
1215
if test -z "$srcdir"; then
1216
ac_srcdir_defaulted=yes
1217
# Try the directory containing this script, then the parent directory.
1218
ac_confdir=`$as_dirname -- "$as_myself" ||
1219
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1220
X"$as_myself" : 'X\(//\)[^/]' \| \
1221
X"$as_myself" : 'X\(//\)$' \| \
1222
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1223
$as_echo X"$as_myself" |
1224
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242
if test ! -r "$srcdir/$ac_unique_file"; then
1246
ac_srcdir_defaulted=no
1248
if test ! -r "$srcdir/$ac_unique_file"; then
1249
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1250
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1252
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1254
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1256
# When building in place, set srcdir=.
1257
if test "$ac_abs_confdir" = "$ac_pwd"; then
1260
# Remove unnecessary trailing slashes from srcdir.
1261
# Double slashes in file names in object file debugging info
1262
# mess up M-x gdb in Emacs.
1264
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266
for ac_var in $ac_precious_vars; do
1267
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268
eval ac_env_${ac_var}_value=\$${ac_var}
1269
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274
# Report the --help message.
1276
if test "$ac_init_help" = "long"; then
1277
# Omit some internal or obsolete options to make the list less imposing.
1278
# This message is too long to be a string in the A/UX 3.1 sh.
1280
\`configure' configures lxc 0.8.0-rc1 to adapt to many kinds of systems.
1282
Usage: $0 [OPTION]... [VAR=VALUE]...
1284
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285
VAR=VALUE. See below for descriptions of some of the useful variables.
1287
Defaults for the options are specified in brackets.
1290
-h, --help display this help and exit
1291
--help=short display options specific to this package
1292
--help=recursive display the short help of all the included packages
1293
-V, --version display version information and exit
1294
-q, --quiet, --silent do not print \`checking ...' messages
1295
--cache-file=FILE cache test results in FILE [disabled]
1296
-C, --config-cache alias for \`--cache-file=config.cache'
1297
-n, --no-create do not create output files
1298
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1300
Installation directories:
1301
--prefix=PREFIX install architecture-independent files in PREFIX
1302
[$ac_default_prefix]
1303
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306
By default, \`make install' will install all the files in
1307
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309
for instance \`--prefix=\$HOME'.
1311
For better control, use the options below.
1313
Fine tuning of the installation directories:
1314
--bindir=DIR user executables [EPREFIX/bin]
1315
--sbindir=DIR system admin executables [EPREFIX/sbin]
1316
--libexecdir=DIR program executables [EPREFIX/libexec]
1317
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320
--libdir=DIR object code libraries [EPREFIX/lib]
1321
--includedir=DIR C header files [PREFIX/include]
1322
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1323
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325
--infodir=DIR info documentation [DATAROOTDIR/info]
1326
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327
--mandir=DIR man documentation [DATAROOTDIR/man]
1328
--docdir=DIR documentation root [DATAROOTDIR/doc/lxc]
1329
--htmldir=DIR html documentation [DOCDIR]
1330
--dvidir=DIR dvi documentation [DOCDIR]
1331
--pdfdir=DIR pdf documentation [DOCDIR]
1332
--psdir=DIR ps documentation [DOCDIR]
1338
--program-prefix=PREFIX prepend PREFIX to installed program names
1339
--program-suffix=SUFFIX append SUFFIX to installed program names
1340
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1343
--build=BUILD configure for building on BUILD [guessed]
1344
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1348
if test -n "$ac_init_help"; then
1349
case $ac_init_help in
1350
short | recursive ) echo "Configuration of lxc 0.8.0-rc1:";;
1355
--disable-option-checking ignore unrecognized --enable/--with options
1356
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1358
--disable-dependency-tracking speeds up one-time build
1359
--enable-dependency-tracking do not reject slow dependency extractors
1360
--disable-rpath do not set rpath in executables
1361
--enable-doc make mans (require docbook2man installed)
1363
--disable-examples do not install configuration examples
1366
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1367
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1368
--with-config-path=dir lxc configuration repository path
1369
--with-rootfs-path=dir lxc rootfs mount point
1370
--with-linuxdir=DIR specify path to Linux source directory
1372
Some influential environment variables:
1373
CC C compiler command
1374
CFLAGS C compiler flags
1375
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1376
nonstandard directory <lib dir>
1377
LIBS libraries to pass to the linker, e.g. -l<library>
1378
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1379
you have headers in a nonstandard directory <include dir>
1382
Use these variables to override the choices made by `configure' or to help
1383
it to find libraries and programs with nonstandard names/locations.
1385
Report bugs to the package provider.
1390
if test "$ac_init_help" = "recursive"; then
1391
# If there are subdirs, report their specific --help.
1392
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1393
test -d "$ac_dir" ||
1394
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1399
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1402
# A ".." for each directory in $ac_dir_suffix.
1403
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1404
case $ac_top_builddir_sub in
1405
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1409
ac_abs_top_builddir=$ac_pwd
1410
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411
# for backward compatibility:
1412
ac_top_builddir=$ac_top_build_prefix
1415
.) # We are building in place.
1417
ac_top_srcdir=$ac_top_builddir_sub
1418
ac_abs_top_srcdir=$ac_pwd ;;
1419
[\\/]* | ?:[\\/]* ) # Absolute name.
1420
ac_srcdir=$srcdir$ac_dir_suffix;
1421
ac_top_srcdir=$srcdir
1422
ac_abs_top_srcdir=$srcdir ;;
1424
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425
ac_top_srcdir=$ac_top_build_prefix$srcdir
1426
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1428
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1430
cd "$ac_dir" || { ac_status=$?; continue; }
1431
# Check for guested configure.
1432
if test -f "$ac_srcdir/configure.gnu"; then
1434
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435
elif test -f "$ac_srcdir/configure"; then
1437
$SHELL "$ac_srcdir/configure" --help=recursive
1439
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1441
cd "$ac_pwd" || { ac_status=$?; break; }
1445
test -n "$ac_init_help" && exit $ac_status
1446
if $ac_init_version; then
1448
lxc configure 0.8.0-rc1
1449
generated by GNU Autoconf 2.68
1451
Copyright (C) 2010 Free Software Foundation, Inc.
1452
This configure script is free software; the Free Software Foundation
1453
gives unlimited permission to copy, distribute and modify it.
1458
## ------------------------ ##
1459
## Autoconf initialization. ##
1460
## ------------------------ ##
1462
# ac_fn_c_try_compile LINENO
1463
# --------------------------
1464
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1465
ac_fn_c_try_compile ()
1467
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1468
rm -f conftest.$ac_objext
1469
if { { ac_try="$ac_compile"
1471
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1472
*) ac_try_echo=$ac_try;;
1474
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1475
$as_echo "$ac_try_echo"; } >&5
1476
(eval "$ac_compile") 2>conftest.err
1478
if test -s conftest.err; then
1479
grep -v '^ *+' conftest.err >conftest.er1
1480
cat conftest.er1 >&5
1481
mv -f conftest.er1 conftest.err
1483
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484
test $ac_status = 0; } && {
1485
test -z "$ac_c_werror_flag" ||
1486
test ! -s conftest.err
1487
} && test -s conftest.$ac_objext; then :
1490
$as_echo "$as_me: failed program was:" >&5
1491
sed 's/^/| /' conftest.$ac_ext >&5
1495
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1496
as_fn_set_status $ac_retval
1498
} # ac_fn_c_try_compile
1500
# ac_fn_c_try_cpp LINENO
1501
# ----------------------
1502
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1505
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506
if { { ac_try="$ac_cpp conftest.$ac_ext"
1508
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509
*) ac_try_echo=$ac_try;;
1511
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512
$as_echo "$ac_try_echo"; } >&5
1513
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1515
if test -s conftest.err; then
1516
grep -v '^ *+' conftest.err >conftest.er1
1517
cat conftest.er1 >&5
1518
mv -f conftest.er1 conftest.err
1520
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521
test $ac_status = 0; } > conftest.i && {
1522
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1523
test ! -s conftest.err
1527
$as_echo "$as_me: failed program was:" >&5
1528
sed 's/^/| /' conftest.$ac_ext >&5
1532
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533
as_fn_set_status $ac_retval
1537
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1538
# -------------------------------------------------------
1539
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1540
# the include files in INCLUDES and setting the cache variable VAR
1542
ac_fn_c_check_header_mongrel ()
1544
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545
if eval \${$3+:} false; then :
1546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1547
$as_echo_n "checking for $2... " >&6; }
1548
if eval \${$3+:} false; then :
1549
$as_echo_n "(cached) " >&6
1552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1553
$as_echo "$ac_res" >&6; }
1555
# Is the header compilable?
1556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1557
$as_echo_n "checking $2 usability... " >&6; }
1558
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1559
/* end confdefs.h. */
1563
if ac_fn_c_try_compile "$LINENO"; then :
1564
ac_header_compiler=yes
1566
ac_header_compiler=no
1568
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1570
$as_echo "$ac_header_compiler" >&6; }
1572
# Is the header present?
1573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1574
$as_echo_n "checking $2 presence... " >&6; }
1575
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576
/* end confdefs.h. */
1579
if ac_fn_c_try_cpp "$LINENO"; then :
1580
ac_header_preproc=yes
1582
ac_header_preproc=no
1584
rm -f conftest.err conftest.i conftest.$ac_ext
1585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1586
$as_echo "$ac_header_preproc" >&6; }
1588
# So? What about this header?
1589
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1591
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1592
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1593
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1594
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1597
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1598
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1599
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1600
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1601
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1602
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1603
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1604
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1605
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1606
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610
$as_echo_n "checking for $2... " >&6; }
1611
if eval \${$3+:} false; then :
1612
$as_echo_n "(cached) " >&6
1614
eval "$3=\$ac_header_compiler"
1617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618
$as_echo "$ac_res" >&6; }
1620
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
} # ac_fn_c_check_header_mongrel
1624
# ac_fn_c_try_run LINENO
1625
# ----------------------
1626
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1627
# that executables *can* be run.
1630
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631
if { { ac_try="$ac_link"
1633
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634
*) ac_try_echo=$ac_try;;
1636
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637
$as_echo "$ac_try_echo"; } >&5
1638
(eval "$ac_link") 2>&5
1640
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1642
{ { case "(($ac_try" in
1643
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644
*) ac_try_echo=$ac_try;;
1646
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647
$as_echo "$ac_try_echo"; } >&5
1648
(eval "$ac_try") 2>&5
1650
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651
test $ac_status = 0; }; }; then :
1654
$as_echo "$as_me: program exited with status $ac_status" >&5
1655
$as_echo "$as_me: failed program was:" >&5
1656
sed 's/^/| /' conftest.$ac_ext >&5
1658
ac_retval=$ac_status
1660
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662
as_fn_set_status $ac_retval
1666
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1667
# -------------------------------------------------------
1668
# Tests whether HEADER exists and can be compiled using the include files in
1669
# INCLUDES, setting the cache variable VAR accordingly.
1670
ac_fn_c_check_header_compile ()
1672
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674
$as_echo_n "checking for $2... " >&6; }
1675
if eval \${$3+:} false; then :
1676
$as_echo_n "(cached) " >&6
1678
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679
/* end confdefs.h. */
1683
if ac_fn_c_try_compile "$LINENO"; then :
1688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692
$as_echo "$ac_res" >&6; }
1693
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695
} # ac_fn_c_check_header_compile
1697
# ac_fn_c_try_link LINENO
1698
# -----------------------
1699
# Try to link conftest.$ac_ext, and return whether this succeeded.
1702
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703
rm -f conftest.$ac_objext conftest$ac_exeext
1704
if { { ac_try="$ac_link"
1706
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707
*) ac_try_echo=$ac_try;;
1709
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710
$as_echo "$ac_try_echo"; } >&5
1711
(eval "$ac_link") 2>conftest.err
1713
if test -s conftest.err; then
1714
grep -v '^ *+' conftest.err >conftest.er1
1715
cat conftest.er1 >&5
1716
mv -f conftest.er1 conftest.err
1718
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719
test $ac_status = 0; } && {
1720
test -z "$ac_c_werror_flag" ||
1721
test ! -s conftest.err
1722
} && test -s conftest$ac_exeext && {
1723
test "$cross_compiling" = yes ||
1724
$as_test_x conftest$ac_exeext
1728
$as_echo "$as_me: failed program was:" >&5
1729
sed 's/^/| /' conftest.$ac_ext >&5
1733
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1734
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1735
# interfere with the next link command; also delete a directory that is
1736
# left behind by Apple's compiler. We do this before executing the actions.
1737
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739
as_fn_set_status $ac_retval
1741
} # ac_fn_c_try_link
1743
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1744
# ---------------------------------------------
1745
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1747
ac_fn_c_check_decl ()
1749
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750
as_decl_name=`echo $2|sed 's/ *(.*//'`
1751
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1753
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1754
if eval \${$3+:} false; then :
1755
$as_echo_n "(cached) " >&6
1757
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758
/* end confdefs.h. */
1763
#ifndef $as_decl_name
1765
(void) $as_decl_use;
1767
(void) $as_decl_name;
1775
if ac_fn_c_try_compile "$LINENO"; then :
1780
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784
$as_echo "$ac_res" >&6; }
1785
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
} # ac_fn_c_check_decl
1788
cat >config.log <<_ACEOF
1789
This file contains any messages produced by compilers while
1790
running configure, to aid debugging if configure makes a mistake.
1792
It was created by lxc $as_me 0.8.0-rc1, which was
1793
generated by GNU Autoconf 2.68. Invocation command line was
1805
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1806
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1807
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1808
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1809
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1811
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1812
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1814
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1815
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1816
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1817
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1818
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1819
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1820
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828
test -z "$as_dir" && as_dir=.
1829
$as_echo "PATH: $as_dir"
1845
# Keep a trace of the command line.
1846
# Strip out --no-create and --no-recursion so they do not pile up.
1847
# Strip out --silent because we don't want to record it for future runs.
1848
# Also quote any args containing shell meta-characters.
1849
# Make two passes to allow for proper duplicate-argument suppression.
1853
ac_must_keep_next=false
1859
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1860
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1861
| -silent | --silent | --silen | --sile | --sil)
1864
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1867
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1869
as_fn_append ac_configure_args1 " '$ac_arg'"
1870
if test $ac_must_keep_next = true; then
1871
ac_must_keep_next=false # Got value, back to normal.
1874
*=* | --config-cache | -C | -disable-* | --disable-* \
1875
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1876
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1877
| -with-* | --with-* | -without-* | --without-* | --x)
1878
case "$ac_configure_args0 " in
1879
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1882
-* ) ac_must_keep_next=true ;;
1885
as_fn_append ac_configure_args " '$ac_arg'"
1890
{ ac_configure_args0=; unset ac_configure_args0;}
1891
{ ac_configure_args1=; unset ac_configure_args1;}
1893
# When interrupted or exit'd, cleanup temporary files, and complete
1894
# config.log. We remove comments because anyway the quotes in there
1895
# would cause problems or look ugly.
1896
# WARNING: Use '\'' to represent an apostrophe within the trap.
1897
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1898
trap 'exit_status=$?
1899
# Save into config.log some information that might help in debugging.
1903
$as_echo "## ---------------- ##
1904
## Cache variables. ##
1905
## ---------------- ##"
1907
# The following way of writing the cache mishandles newlines in values,
1909
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1910
eval ac_val=\$$ac_var
1914
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1915
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1918
_ | IFS | as_nl) ;; #(
1919
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1920
*) { eval $ac_var=; unset $ac_var;} ;;
1925
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1926
*${as_nl}ac_space=\ *)
1928
"s/'\''/'\''\\\\'\'''\''/g;
1929
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1932
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1939
$as_echo "## ----------------- ##
1940
## Output variables. ##
1941
## ----------------- ##"
1943
for ac_var in $ac_subst_vars
1945
eval ac_val=\$$ac_var
1947
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1949
$as_echo "$ac_var='\''$ac_val'\''"
1953
if test -n "$ac_subst_files"; then
1954
$as_echo "## ------------------- ##
1955
## File substitutions. ##
1956
## ------------------- ##"
1958
for ac_var in $ac_subst_files
1960
eval ac_val=\$$ac_var
1962
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1964
$as_echo "$ac_var='\''$ac_val'\''"
1969
if test -s confdefs.h; then
1970
$as_echo "## ----------- ##
1977
test "$ac_signal" != 0 &&
1978
$as_echo "$as_me: caught signal $ac_signal"
1979
$as_echo "$as_me: exit $exit_status"
1981
rm -f core *.core core.conftest.* &&
1982
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1985
for ac_signal in 1 2 13 15; do
1986
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1990
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1991
rm -f -r conftest* confdefs.h
1993
$as_echo "/* confdefs.h */" > confdefs.h
1995
# Predefined preprocessor variables.
1997
cat >>confdefs.h <<_ACEOF
1998
#define PACKAGE_NAME "$PACKAGE_NAME"
2001
cat >>confdefs.h <<_ACEOF
2002
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2005
cat >>confdefs.h <<_ACEOF
2006
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2009
cat >>confdefs.h <<_ACEOF
2010
#define PACKAGE_STRING "$PACKAGE_STRING"
2013
cat >>confdefs.h <<_ACEOF
2014
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2017
cat >>confdefs.h <<_ACEOF
2018
#define PACKAGE_URL "$PACKAGE_URL"
2022
# Let the site file select an alternate cache file if it wants to.
2023
# Prefer an explicitly selected file to automatically selected ones.
2026
if test -n "$CONFIG_SITE"; then
2027
# We do not want a PATH search for config.site.
2028
case $CONFIG_SITE in #((
2029
-*) ac_site_file1=./$CONFIG_SITE;;
2030
*/*) ac_site_file1=$CONFIG_SITE;;
2031
*) ac_site_file1=./$CONFIG_SITE;;
2033
elif test "x$prefix" != xNONE; then
2034
ac_site_file1=$prefix/share/config.site
2035
ac_site_file2=$prefix/etc/config.site
2037
ac_site_file1=$ac_default_prefix/share/config.site
2038
ac_site_file2=$ac_default_prefix/etc/config.site
2040
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2042
test "x$ac_site_file" = xNONE && continue
2043
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2044
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2045
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2046
sed 's/^/| /' "$ac_site_file" >&5
2048
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2049
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2050
as_fn_error $? "failed to load site script $ac_site_file
2051
See \`config.log' for more details" "$LINENO" 5; }
2055
if test -r "$cache_file"; then
2056
# Some versions of bash will fail to source /dev/null (special files
2057
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2058
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2059
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2060
$as_echo "$as_me: loading cache $cache_file" >&6;}
2062
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2063
*) . "./$cache_file";;
2067
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2068
$as_echo "$as_me: creating cache $cache_file" >&6;}
2072
# Check that the precious variables saved in the cache have kept the same
2074
ac_cache_corrupted=false
2075
for ac_var in $ac_precious_vars; do
2076
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2077
eval ac_new_set=\$ac_env_${ac_var}_set
2078
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2079
eval ac_new_val=\$ac_env_${ac_var}_value
2080
case $ac_old_set,$ac_new_set in
2082
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2083
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2084
ac_cache_corrupted=: ;;
2086
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2087
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2088
ac_cache_corrupted=: ;;
2091
if test "x$ac_old_val" != "x$ac_new_val"; then
2092
# differences in whitespace do not lead to failure.
2093
ac_old_val_w=`echo x $ac_old_val`
2094
ac_new_val_w=`echo x $ac_new_val`
2095
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2096
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2097
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2098
ac_cache_corrupted=:
2100
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2101
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2102
eval $ac_var=\$ac_old_val
2104
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2105
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2106
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2107
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2110
# Pass precious variables to config.status.
2111
if test "$ac_new_set" = set; then
2113
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2114
*) ac_arg=$ac_var=$ac_new_val ;;
2116
case " $ac_configure_args " in
2117
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2118
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2122
if $ac_cache_corrupted; then
2123
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2124
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2125
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2126
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2127
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2129
## -------------------- ##
2130
## Main body of script. ##
2131
## -------------------- ##
2134
ac_cpp='$CPP $CPPFLAGS'
2135
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143
for ac_dir in config "$srcdir"/config; do
2144
if test -f "$ac_dir/install-sh"; then
2146
ac_install_sh="$ac_aux_dir/install-sh -c"
2148
elif test -f "$ac_dir/install.sh"; then
2150
ac_install_sh="$ac_aux_dir/install.sh -c"
2152
elif test -f "$ac_dir/shtool"; then
2154
ac_install_sh="$ac_aux_dir/shtool install -c"
2158
if test -z "$ac_aux_dir"; then
2159
as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2162
# These three variables are undocumented and unsupported,
2163
# and are intended to be withdrawn in a future Autoconf release.
2164
# They can cause serious problems if a builder's source tree is in a directory
2165
# whose full name contains unusual characters.
2166
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2167
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2168
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2171
ac_config_headers="$ac_config_headers src/config.h"
2173
am__api_version='1.11'
2175
# Find a good install program. We prefer a C program (faster),
2176
# so one script is as good as another. But avoid the broken or
2177
# incompatible versions:
2178
# SysV /etc/install, /usr/sbin/install
2179
# SunOS /usr/etc/install
2180
# IRIX /sbin/install
2182
# AmigaOS /C/install, which installs bootblocks on floppy discs
2183
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2184
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2185
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2186
# OS/2's system install, which has a completely different semantic
2187
# ./install, which can be erroneously created by make from ./install.sh.
2188
# Reject install programs that cannot install multiple files.
2189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2190
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2191
if test -z "$INSTALL"; then
2192
if ${ac_cv_path_install+:} false; then :
2193
$as_echo_n "(cached) " >&6
2195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199
test -z "$as_dir" && as_dir=.
2200
# Account for people who put trailing slashes in PATH elements.
2201
case $as_dir/ in #((
2202
./ | .// | /[cC]/* | \
2203
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2204
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2207
# OSF1 and SCO ODT 3.0 have their own names for install.
2208
# Don't use installbsd from OSF since it installs stuff as root
2210
for ac_prog in ginstall scoinst install; do
2211
for ac_exec_ext in '' $ac_executable_extensions; do
2212
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2213
if test $ac_prog = install &&
2214
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2215
# AIX install. It has an incompatible calling convention.
2217
elif test $ac_prog = install &&
2218
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2219
# program-specific install script used by HP pwplus--don't use.
2222
rm -rf conftest.one conftest.two conftest.dir
2223
echo one > conftest.one
2224
echo two > conftest.two
2226
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2227
test -s conftest.one && test -s conftest.two &&
2228
test -s conftest.dir/conftest.one &&
2229
test -s conftest.dir/conftest.two
2231
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2244
rm -rf conftest.one conftest.two conftest.dir
2247
if test "${ac_cv_path_install+set}" = set; then
2248
INSTALL=$ac_cv_path_install
2250
# As a last resort, use the slow shell script. Don't cache a
2251
# value for INSTALL within a source directory, because that will
2252
# break other packages using the cache if that directory is
2253
# removed, or if the value is a relative name.
2254
INSTALL=$ac_install_sh
2257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2258
$as_echo "$INSTALL" >&6; }
2260
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2261
# It thinks the first close brace ends the variable substitution.
2262
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2264
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2266
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2269
$as_echo_n "checking whether build environment is sane... " >&6; }
2272
echo timestamp > conftest.file
2273
# Reject unsafe characters in $srcdir or the absolute working directory
2274
# name. Accept space and tab only in the latter.
2278
*[\\\"\#\$\&\'\`$am_lf]*)
2279
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2282
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2283
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2286
# Do `set' in a subshell so we don't clobber the current shell's
2287
# arguments. Must try -L first in case configure is actually a
2288
# symlink; some systems play weird games with the mod time of symlinks
2289
# (eg FreeBSD returns the mod time of the symlink's containing
2292
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2293
if test "$*" = "X"; then
2295
set X `ls -t "$srcdir/configure" conftest.file`
2298
if test "$*" != "X $srcdir/configure conftest.file" \
2299
&& test "$*" != "X conftest.file $srcdir/configure"; then
2301
# If neither matched, then we have a broken ls. This can happen
2302
# if, for instance, CONFIG_SHELL is bash and it inherits a
2303
# broken ls alias from the environment. This has actually
2304
# happened. Such a system could not be considered "sane".
2305
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2306
alias in your environment" "$LINENO" 5
2309
test "$2" = conftest.file
2315
as_fn_error $? "newly created file is older than distributed files!
2316
Check your system clock" "$LINENO" 5
2318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2319
$as_echo "yes" >&6; }
2320
test "$program_prefix" != NONE &&
2321
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2322
# Use a double $ so make ignores it.
2323
test "$program_suffix" != NONE &&
2324
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2325
# Double any \ or $.
2326
# By default was `s,x,x', remove it if useless.
2327
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2328
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2330
# expand $ac_aux_dir to an absolute path
2331
am_aux_dir=`cd $ac_aux_dir && pwd`
2333
if test x"${MISSING+set}" != xset; then
2336
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2338
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2341
# Use eval to expand $SHELL
2342
if eval "$MISSING --run true"; then
2343
am_missing_run="$MISSING --run "
2346
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2347
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2350
if test x"${install_sh}" != xset; then
2353
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2355
install_sh="\${SHELL} $am_aux_dir/install-sh"
2359
# Installed binaries are usually stripped using `strip' when the user
2360
# run `make install-strip'. However `strip' might not be the right
2361
# tool to use in cross-compilation environments, therefore Automake
2362
# will honor the `STRIP' environment variable to overrule this program.
2363
if test "$cross_compiling" != no; then
2364
if test -n "$ac_tool_prefix"; then
2365
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2366
set dummy ${ac_tool_prefix}strip; ac_word=$2
2367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2368
$as_echo_n "checking for $ac_word... " >&6; }
2369
if ${ac_cv_prog_STRIP+:} false; then :
2370
$as_echo_n "(cached) " >&6
2372
if test -n "$STRIP"; then
2373
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379
test -z "$as_dir" && as_dir=.
2380
for ac_exec_ext in '' $ac_executable_extensions; do
2381
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2383
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2392
STRIP=$ac_cv_prog_STRIP
2393
if test -n "$STRIP"; then
2394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2395
$as_echo "$STRIP" >&6; }
2397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2398
$as_echo "no" >&6; }
2403
if test -z "$ac_cv_prog_STRIP"; then
2405
# Extract the first word of "strip", so it can be a program name with args.
2406
set dummy strip; ac_word=$2
2407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2408
$as_echo_n "checking for $ac_word... " >&6; }
2409
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2410
$as_echo_n "(cached) " >&6
2412
if test -n "$ac_ct_STRIP"; then
2413
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419
test -z "$as_dir" && as_dir=.
2420
for ac_exec_ext in '' $ac_executable_extensions; do
2421
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422
ac_cv_prog_ac_ct_STRIP="strip"
2423
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2433
if test -n "$ac_ct_STRIP"; then
2434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2435
$as_echo "$ac_ct_STRIP" >&6; }
2437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438
$as_echo "no" >&6; }
2441
if test "x$ac_ct_STRIP" = x; then
2444
case $cross_compiling:$ac_tool_warned in
2446
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2447
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2448
ac_tool_warned=yes ;;
2453
STRIP="$ac_cv_prog_STRIP"
2457
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2460
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2461
if test -z "$MKDIR_P"; then
2462
if ${ac_cv_path_mkdir+:} false; then :
2463
$as_echo_n "(cached) " >&6
2465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2469
test -z "$as_dir" && as_dir=.
2470
for ac_prog in mkdir gmkdir; do
2471
for ac_exec_ext in '' $ac_executable_extensions; do
2472
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2473
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2474
'mkdir (GNU coreutils) '* | \
2475
'mkdir (coreutils) '* | \
2476
'mkdir (fileutils) '4.1*)
2477
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2487
test -d ./--version && rmdir ./--version
2488
if test "${ac_cv_path_mkdir+set}" = set; then
2489
MKDIR_P="$ac_cv_path_mkdir -p"
2491
# As a last resort, use the slow shell script. Don't cache a
2492
# value for MKDIR_P within a source directory, because that will
2493
# break other packages using the cache if that directory is
2494
# removed, or if the value is a relative name.
2495
MKDIR_P="$ac_install_sh -d"
2498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2499
$as_echo "$MKDIR_P" >&6; }
2503
[\\/$]* | ?:[\\/]*) ;;
2504
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2507
for ac_prog in gawk mawk nawk awk
2509
# Extract the first word of "$ac_prog", so it can be a program name with args.
2510
set dummy $ac_prog; ac_word=$2
2511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2512
$as_echo_n "checking for $ac_word... " >&6; }
2513
if ${ac_cv_prog_AWK+:} false; then :
2514
$as_echo_n "(cached) " >&6
2516
if test -n "$AWK"; then
2517
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2519
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523
test -z "$as_dir" && as_dir=.
2524
for ac_exec_ext in '' $ac_executable_extensions; do
2525
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2526
ac_cv_prog_AWK="$ac_prog"
2527
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537
if test -n "$AWK"; then
2538
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2539
$as_echo "$AWK" >&6; }
2541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2542
$as_echo "no" >&6; }
2546
test -n "$AWK" && break
2549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2550
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2552
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2553
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2554
$as_echo_n "(cached) " >&6
2556
cat >conftest.make <<\_ACEOF
2559
@echo '@@@%%%=$(MAKE)=@@@%%%'
2561
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2562
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2564
eval ac_cv_prog_make_${ac_make}_set=yes;;
2566
eval ac_cv_prog_make_${ac_make}_set=no;;
2570
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2572
$as_echo "yes" >&6; }
2575
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2576
$as_echo "no" >&6; }
2577
SET_MAKE="MAKE=${MAKE-make}"
2580
rm -rf .tst 2>/dev/null
2581
mkdir .tst 2>/dev/null
2582
if test -d .tst; then
2587
rmdir .tst 2>/dev/null
2589
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2590
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2591
# is not polluted with repeated "-I."
2592
am__isrc=' -I$(srcdir)'
2593
# test to see if srcdir already configured
2594
if test -f $srcdir/config.status; then
2595
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2599
# test whether we have cygpath
2600
if test -z "$CYGPATH_W"; then
2601
if (cygpath --version) >/dev/null 2>/dev/null; then
2602
CYGPATH_W='cygpath -w'
2609
# Define the identity of the package.
2614
cat >>confdefs.h <<_ACEOF
2615
#define PACKAGE "$PACKAGE"
2619
cat >>confdefs.h <<_ACEOF
2620
#define VERSION "$VERSION"
2623
# Some tools Automake needs.
2625
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2628
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2631
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2634
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2637
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2639
# We need awk for the "check" target. The system "awk" is bad on
2641
# Always define AMTAR for backward compatibility.
2643
AMTAR=${AMTAR-"${am_missing_run}tar"}
2645
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2651
# Make sure we can run config.sub.
2652
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2653
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2656
$as_echo_n "checking build system type... " >&6; }
2657
if ${ac_cv_build+:} false; then :
2658
$as_echo_n "(cached) " >&6
2660
ac_build_alias=$build_alias
2661
test "x$ac_build_alias" = x &&
2662
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2663
test "x$ac_build_alias" = x &&
2664
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2665
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2666
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2670
$as_echo "$ac_cv_build" >&6; }
2671
case $ac_cv_build in
2673
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2676
ac_save_IFS=$IFS; IFS='-'
2682
# Remember, the first character of IFS is used to create $*,
2683
# except with old shells:
2686
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2689
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2690
$as_echo_n "checking host system type... " >&6; }
2691
if ${ac_cv_host+:} false; then :
2692
$as_echo_n "(cached) " >&6
2694
if test "x$host_alias" = x; then
2695
ac_cv_host=$ac_cv_build
2697
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2698
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2703
$as_echo "$ac_cv_host" >&6; }
2706
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2709
ac_save_IFS=$IFS; IFS='-'
2715
# Remember, the first character of IFS is used to create $*,
2716
# except with old shells:
2719
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2722
DEPDIR="${am__leading_dot}deps"
2724
ac_config_commands="$ac_config_commands depfiles"
2727
am_make=${MAKE-make}
2728
cat > confinc << 'END'
2730
@echo this is the am__doit target
2733
# If we don't find an include directive, just comment out the code.
2734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2735
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2739
# First try GNU make style include.
2740
echo "include confinc" > confmf
2741
# Ignore all kinds of additional output from `make'.
2742
case `$am_make -s -f confmf 2> /dev/null` in #(
2743
*the\ am__doit\ target*)
2749
# Now try BSD make style include.
2750
if test "$am__include" = "#"; then
2751
echo '.include "confinc"' > confmf
2752
case `$am_make -s -f confmf 2> /dev/null` in #(
2753
*the\ am__doit\ target*)
2754
am__include=.include
2762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2763
$as_echo "$_am_result" >&6; }
2764
rm -f confinc confmf
2766
# Check whether --enable-dependency-tracking was given.
2767
if test "${enable_dependency_tracking+set}" = set; then :
2768
enableval=$enable_dependency_tracking;
2771
if test "x$enable_dependency_tracking" != xno; then
2772
am_depcomp="$ac_aux_dir/depcomp"
2775
if test "x$enable_dependency_tracking" != xno; then
2785
ac_cpp='$CPP $CPPFLAGS'
2786
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789
if test -n "$ac_tool_prefix"; then
2790
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2791
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2792
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793
$as_echo_n "checking for $ac_word... " >&6; }
2794
if ${ac_cv_prog_CC+:} false; then :
2795
$as_echo_n "(cached) " >&6
2797
if test -n "$CC"; then
2798
ac_cv_prog_CC="$CC" # Let the user override the test.
2800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804
test -z "$as_dir" && as_dir=.
2805
for ac_exec_ext in '' $ac_executable_extensions; do
2806
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2808
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818
if test -n "$CC"; then
2819
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820
$as_echo "$CC" >&6; }
2822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823
$as_echo "no" >&6; }
2828
if test -z "$ac_cv_prog_CC"; then
2830
# Extract the first word of "gcc", so it can be a program name with args.
2831
set dummy gcc; ac_word=$2
2832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833
$as_echo_n "checking for $ac_word... " >&6; }
2834
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2835
$as_echo_n "(cached) " >&6
2837
if test -n "$ac_ct_CC"; then
2838
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844
test -z "$as_dir" && as_dir=.
2845
for ac_exec_ext in '' $ac_executable_extensions; do
2846
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847
ac_cv_prog_ac_ct_CC="gcc"
2848
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2858
if test -n "$ac_ct_CC"; then
2859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2860
$as_echo "$ac_ct_CC" >&6; }
2862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863
$as_echo "no" >&6; }
2866
if test "x$ac_ct_CC" = x; then
2869
case $cross_compiling:$ac_tool_warned in
2871
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2872
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873
ac_tool_warned=yes ;;
2881
if test -z "$CC"; then
2882
if test -n "$ac_tool_prefix"; then
2883
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2884
set dummy ${ac_tool_prefix}cc; ac_word=$2
2885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886
$as_echo_n "checking for $ac_word... " >&6; }
2887
if ${ac_cv_prog_CC+:} false; then :
2888
$as_echo_n "(cached) " >&6
2890
if test -n "$CC"; then
2891
ac_cv_prog_CC="$CC" # Let the user override the test.
2893
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897
test -z "$as_dir" && as_dir=.
2898
for ac_exec_ext in '' $ac_executable_extensions; do
2899
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900
ac_cv_prog_CC="${ac_tool_prefix}cc"
2901
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911
if test -n "$CC"; then
2912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2913
$as_echo "$CC" >&6; }
2915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916
$as_echo "no" >&6; }
2922
if test -z "$CC"; then
2923
# Extract the first word of "cc", so it can be a program name with args.
2924
set dummy cc; ac_word=$2
2925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926
$as_echo_n "checking for $ac_word... " >&6; }
2927
if ${ac_cv_prog_CC+:} false; then :
2928
$as_echo_n "(cached) " >&6
2930
if test -n "$CC"; then
2931
ac_cv_prog_CC="$CC" # Let the user override the test.
2934
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938
test -z "$as_dir" && as_dir=.
2939
for ac_exec_ext in '' $ac_executable_extensions; do
2940
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2942
ac_prog_rejected=yes
2946
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953
if test $ac_prog_rejected = yes; then
2954
# We found a bogon in the path, so make sure we never use it.
2955
set dummy $ac_cv_prog_CC
2957
if test $# != 0; then
2958
# We chose a different compiler from the bogus one.
2959
# However, it has the same basename, so the bogon will be chosen
2960
# first if we set CC to just the basename; use the full file name.
2962
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2968
if test -n "$CC"; then
2969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970
$as_echo "$CC" >&6; }
2972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973
$as_echo "no" >&6; }
2978
if test -z "$CC"; then
2979
if test -n "$ac_tool_prefix"; then
2980
for ac_prog in cl.exe
2982
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2983
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985
$as_echo_n "checking for $ac_word... " >&6; }
2986
if ${ac_cv_prog_CC+:} false; then :
2987
$as_echo_n "(cached) " >&6
2989
if test -n "$CC"; then
2990
ac_cv_prog_CC="$CC" # Let the user override the test.
2992
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996
test -z "$as_dir" && as_dir=.
2997
for ac_exec_ext in '' $ac_executable_extensions; do
2998
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3000
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010
if test -n "$CC"; then
3011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012
$as_echo "$CC" >&6; }
3014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015
$as_echo "no" >&6; }
3019
test -n "$CC" && break
3022
if test -z "$CC"; then
3024
for ac_prog in cl.exe
3026
# Extract the first word of "$ac_prog", so it can be a program name with args.
3027
set dummy $ac_prog; ac_word=$2
3028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029
$as_echo_n "checking for $ac_word... " >&6; }
3030
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3031
$as_echo_n "(cached) " >&6
3033
if test -n "$ac_ct_CC"; then
3034
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040
test -z "$as_dir" && as_dir=.
3041
for ac_exec_ext in '' $ac_executable_extensions; do
3042
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043
ac_cv_prog_ac_ct_CC="$ac_prog"
3044
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3054
if test -n "$ac_ct_CC"; then
3055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3056
$as_echo "$ac_ct_CC" >&6; }
3058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059
$as_echo "no" >&6; }
3063
test -n "$ac_ct_CC" && break
3066
if test "x$ac_ct_CC" = x; then
3069
case $cross_compiling:$ac_tool_warned in
3071
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073
ac_tool_warned=yes ;;
3082
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084
as_fn_error $? "no acceptable C compiler found in \$PATH
3085
See \`config.log' for more details" "$LINENO" 5; }
3087
# Provide some information about the compiler.
3088
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3091
for ac_option in --version -v -V -qversion; do
3092
{ { ac_try="$ac_compiler $ac_option >&5"
3094
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095
*) ac_try_echo=$ac_try;;
3097
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098
$as_echo "$ac_try_echo"; } >&5
3099
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3101
if test -s conftest.err; then
3103
... rest of stderr output deleted ...
3104
10q' conftest.err >conftest.er1
3105
cat conftest.er1 >&5
3107
rm -f conftest.er1 conftest.err
3108
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109
test $ac_status = 0; }
3112
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113
/* end confdefs.h. */
3123
ac_clean_files_save=$ac_clean_files
3124
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3125
# Try to create an executable without -o first, disregard a.out.
3126
# It will help us diagnose broken compilers, and finding out an intuition
3128
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3129
$as_echo_n "checking whether the C compiler works... " >&6; }
3130
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3132
# The possible output files:
3133
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3136
for ac_file in $ac_files
3139
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3140
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3145
if { { ac_try="$ac_link_default"
3147
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148
*) ac_try_echo=$ac_try;;
3150
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3151
$as_echo "$ac_try_echo"; } >&5
3152
(eval "$ac_link_default") 2>&5
3154
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155
test $ac_status = 0; }; then :
3156
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3157
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3158
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3159
# so that the user can short-circuit this test for compilers unknown to
3161
for ac_file in $ac_files ''
3163
test -f "$ac_file" || continue
3165
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3168
# We found the default executable, but exeext='' is most
3172
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3174
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3176
# We set ac_cv_exeext here because the later test for it is not
3177
# safe: cross compilers may not add the suffix if given an `-o'
3178
# argument, so we may need to know it at that point already.
3179
# Even if this section looks crufty: it has the advantage of
3186
test "$ac_cv_exeext" = no && ac_cv_exeext=
3191
if test -z "$ac_file"; then :
3192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193
$as_echo "no" >&6; }
3194
$as_echo "$as_me: failed program was:" >&5
3195
sed 's/^/| /' conftest.$ac_ext >&5
3197
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199
as_fn_error 77 "C compiler cannot create executables
3200
See \`config.log' for more details" "$LINENO" 5; }
3202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203
$as_echo "yes" >&6; }
3205
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3206
$as_echo_n "checking for C compiler default output file name... " >&6; }
3207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3208
$as_echo "$ac_file" >&6; }
3209
ac_exeext=$ac_cv_exeext
3211
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3212
ac_clean_files=$ac_clean_files_save
3213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3214
$as_echo_n "checking for suffix of executables... " >&6; }
3215
if { { ac_try="$ac_link"
3217
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218
*) ac_try_echo=$ac_try;;
3220
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221
$as_echo "$ac_try_echo"; } >&5
3222
(eval "$ac_link") 2>&5
3224
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225
test $ac_status = 0; }; then :
3226
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3227
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3228
# work properly (i.e., refer to `conftest.exe'), while it won't with
3230
for ac_file in conftest.exe conftest conftest.*; do
3231
test -f "$ac_file" || continue
3233
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3234
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3243
See \`config.log' for more details" "$LINENO" 5; }
3245
rm -f conftest conftest$ac_cv_exeext
3246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3247
$as_echo "$ac_cv_exeext" >&6; }
3249
rm -f conftest.$ac_ext
3250
EXEEXT=$ac_cv_exeext
3252
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253
/* end confdefs.h. */
3258
FILE *f = fopen ("conftest.out", "w");
3259
return ferror (f) || fclose (f) != 0;
3265
ac_clean_files="$ac_clean_files conftest.out"
3266
# Check that the compiler produces executables we can run. If not, either
3267
# the compiler is broken, or we cross compile.
3268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3269
$as_echo_n "checking whether we are cross compiling... " >&6; }
3270
if test "$cross_compiling" != yes; then
3271
{ { ac_try="$ac_link"
3273
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274
*) ac_try_echo=$ac_try;;
3276
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277
$as_echo "$ac_try_echo"; } >&5
3278
(eval "$ac_link") 2>&5
3280
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281
test $ac_status = 0; }
3282
if { ac_try='./conftest$ac_cv_exeext'
3283
{ { case "(($ac_try" in
3284
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285
*) ac_try_echo=$ac_try;;
3287
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288
$as_echo "$ac_try_echo"; } >&5
3289
(eval "$ac_try") 2>&5
3291
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292
test $ac_status = 0; }; }; then
3295
if test "$cross_compiling" = maybe; then
3298
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300
as_fn_error $? "cannot run C compiled programs.
3301
If you meant to cross compile, use \`--host'.
3302
See \`config.log' for more details" "$LINENO" 5; }
3306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3307
$as_echo "$cross_compiling" >&6; }
3309
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3310
ac_clean_files=$ac_clean_files_save
3311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3312
$as_echo_n "checking for suffix of object files... " >&6; }
3313
if ${ac_cv_objext+:} false; then :
3314
$as_echo_n "(cached) " >&6
3316
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317
/* end confdefs.h. */
3327
rm -f conftest.o conftest.obj
3328
if { { ac_try="$ac_compile"
3330
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331
*) ac_try_echo=$ac_try;;
3333
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334
$as_echo "$ac_try_echo"; } >&5
3335
(eval "$ac_compile") 2>&5
3337
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338
test $ac_status = 0; }; then :
3339
for ac_file in conftest.o conftest.obj conftest.*; do
3340
test -f "$ac_file" || continue;
3342
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3343
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3348
$as_echo "$as_me: failed program was:" >&5
3349
sed 's/^/| /' conftest.$ac_ext >&5
3351
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353
as_fn_error $? "cannot compute suffix of object files: cannot compile
3354
See \`config.log' for more details" "$LINENO" 5; }
3356
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3359
$as_echo "$ac_cv_objext" >&6; }
3360
OBJEXT=$ac_cv_objext
3362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3363
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3364
if ${ac_cv_c_compiler_gnu+:} false; then :
3365
$as_echo_n "(cached) " >&6
3367
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368
/* end confdefs.h. */
3381
if ac_fn_c_try_compile "$LINENO"; then :
3386
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3391
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3392
if test $ac_compiler_gnu = yes; then
3397
ac_test_CFLAGS=${CFLAGS+set}
3398
ac_save_CFLAGS=$CFLAGS
3399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3400
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3401
if ${ac_cv_prog_cc_g+:} false; then :
3402
$as_echo_n "(cached) " >&6
3404
ac_save_c_werror_flag=$ac_c_werror_flag
3405
ac_c_werror_flag=yes
3408
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409
/* end confdefs.h. */
3419
if ac_fn_c_try_compile "$LINENO"; then :
3423
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424
/* end confdefs.h. */
3434
if ac_fn_c_try_compile "$LINENO"; then :
3437
ac_c_werror_flag=$ac_save_c_werror_flag
3439
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440
/* end confdefs.h. */
3450
if ac_fn_c_try_compile "$LINENO"; then :
3453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458
ac_c_werror_flag=$ac_save_c_werror_flag
3460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3461
$as_echo "$ac_cv_prog_cc_g" >&6; }
3462
if test "$ac_test_CFLAGS" = set; then
3463
CFLAGS=$ac_save_CFLAGS
3464
elif test $ac_cv_prog_cc_g = yes; then
3465
if test "$GCC" = yes; then
3471
if test "$GCC" = yes; then
3477
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3478
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3479
if ${ac_cv_prog_cc_c89+:} false; then :
3480
$as_echo_n "(cached) " >&6
3482
ac_cv_prog_cc_c89=no
3484
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485
/* end confdefs.h. */
3488
#include <sys/types.h>
3489
#include <sys/stat.h>
3490
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3491
struct buf { int x; };
3492
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3493
static char *e (p, i)
3499
static char *f (char * (*g) (char **, int), char **p, ...)
3504
s = g (p, va_arg (v,int));
3509
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3510
function prototypes and stuff, but not '\xHH' hex character constants.
3511
These don't provoke an error unfortunately, instead are silently treated
3512
as 'x'. The following induces an error, until -std is added to get
3513
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3514
array size at least. It's necessary to write '\x00'==0 to get something
3515
that's true only with -std. */
3516
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3518
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3519
inside strings and character constants. */
3521
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3523
int test (int i, double x);
3524
struct s1 {int (*f) (int a);};
3525
struct s2 {int (*f) (double a);};
3526
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3532
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3537
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3538
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3540
CC="$ac_save_CC $ac_arg"
3541
if ac_fn_c_try_compile "$LINENO"; then :
3542
ac_cv_prog_cc_c89=$ac_arg
3544
rm -f core conftest.err conftest.$ac_objext
3545
test "x$ac_cv_prog_cc_c89" != "xno" && break
3547
rm -f conftest.$ac_ext
3552
case "x$ac_cv_prog_cc_c89" in
3554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3555
$as_echo "none needed" >&6; } ;;
3557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3558
$as_echo "unsupported" >&6; } ;;
3560
CC="$CC $ac_cv_prog_cc_c89"
3561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3562
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3564
if test "x$ac_cv_prog_cc_c89" != xno; then :
3569
ac_cpp='$CPP $CPPFLAGS'
3570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574
depcc="$CC" am_compiler_list=
3576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3577
$as_echo_n "checking dependency style of $depcc... " >&6; }
3578
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3579
$as_echo_n "(cached) " >&6
3581
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3582
# We make a subdir and do the tests there. Otherwise we can end up
3583
# making bogus files that we don't know about and never remove. For
3584
# instance it was reported that on HP-UX the gcc test will end up
3585
# making a dummy file named `D' -- because `-MD' means `put the output
3588
# Copy depcomp to subdir because otherwise we won't find it if we're
3589
# using a relative directory.
3590
cp "$am_depcomp" conftest.dir
3592
# We will build objects and dependencies in a subdirectory because
3593
# it helps to detect inapplicable dependency modes. For instance
3594
# both Tru64's cc and ICC support -MD to output dependencies as a
3595
# side effect of compilation, but ICC will put the dependencies in
3596
# the current directory while Tru64 will put them in the object
3600
am_cv_CC_dependencies_compiler_type=none
3601
if test "$am_compiler_list" = ""; then
3602
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3605
case " $depcc " in #(
3606
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3609
for depmode in $am_compiler_list; do
3610
# Setup a source with many dependencies, because some compilers
3611
# like to wrap large dependency lists on column 80 (with \), and
3612
# we should not choose a depcomp mode which is confused by this.
3614
# We need to recreate these files for each test, as the compiler may
3615
# overwrite some of them when testing with obscure command lines.
3616
# This happens at least with the AIX C compiler.
3618
for i in 1 2 3 4 5 6; do
3619
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3620
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3621
# Solaris 8's {/usr,}/bin/sh.
3622
touch sub/conftst$i.h
3624
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3626
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3627
# mode. It turns out that the SunPro C++ compiler does not properly
3628
# handle `-M -o', and we need to detect this. Also, some Intel
3629
# versions had trouble with output in subdirs
3630
am__obj=sub/conftest.${OBJEXT-o}
3631
am__minus_obj="-o $am__obj"
3634
# This depmode causes a compiler race in universal mode.
3635
test "$am__universal" = false || continue
3638
# after this tag, mechanisms are not by side-effect, so they'll
3639
# only be used when explicitly requested
3640
if test "x$enable_dependency_tracking" = xyes; then
3646
msvisualcpp | msvcmsys)
3647
# This compiler won't grok `-c -o', but also, the minuso test has
3648
# not run yet. These depmodes are late enough in the game, and
3649
# so weak that their functioning should not be impacted.
3650
am__obj=conftest.${OBJEXT-o}
3655
if depmode=$depmode \
3656
source=sub/conftest.c object=$am__obj \
3657
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3658
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3659
>/dev/null 2>conftest.err &&
3660
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3661
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3662
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3663
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3664
# icc doesn't choke on unknown options, it will just issue warnings
3665
# or remarks (even with -Werror). So we grep stderr for any message
3666
# that says an option was ignored or not supported.
3667
# When given -MP, icc 7.0 and 7.1 complain thusly:
3668
# icc: Command line warning: ignoring option '-M'; no argument required
3669
# The diagnosis changed in icc 8.0:
3670
# icc: Command line remark: option '-MP' not supported
3671
if (grep 'ignoring option' conftest.err ||
3672
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3673
am_cv_CC_dependencies_compiler_type=$depmode
3682
am_cv_CC_dependencies_compiler_type=none
3686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3687
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3688
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3691
test "x$enable_dependency_tracking" != xno \
3692
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3694
am__fastdepCC_FALSE='#'
3696
am__fastdepCC_TRUE='#'
3697
am__fastdepCC_FALSE=
3701
if test "x$CC" != xcc; then
3702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3703
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3705
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3706
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3708
set dummy $CC; ac_cc=`$as_echo "$2" |
3709
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3710
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3711
$as_echo_n "(cached) " >&6
3713
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714
/* end confdefs.h. */
3724
# Make sure it works both with $CC and with simple cc.
3725
# We do the test twice because some compilers refuse to overwrite an
3726
# existing .o file with -o, though they will create one.
3727
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3729
if { { case "(($ac_try" in
3730
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731
*) ac_try_echo=$ac_try;;
3733
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734
$as_echo "$ac_try_echo"; } >&5
3735
(eval "$ac_try") 2>&5
3737
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738
test $ac_status = 0; } &&
3739
test -f conftest2.$ac_objext && { { case "(($ac_try" in
3740
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741
*) ac_try_echo=$ac_try;;
3743
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744
$as_echo "$ac_try_echo"; } >&5
3745
(eval "$ac_try") 2>&5
3747
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748
test $ac_status = 0; };
3750
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3751
if test "x$CC" != xcc; then
3752
# Test first that cc exists at all.
3753
if { ac_try='cc -c conftest.$ac_ext >&5'
3754
{ { case "(($ac_try" in
3755
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756
*) ac_try_echo=$ac_try;;
3758
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759
$as_echo "$ac_try_echo"; } >&5
3760
(eval "$ac_try") 2>&5
3762
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763
test $ac_status = 0; }; }; then
3764
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3766
if { { case "(($ac_try" in
3767
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768
*) ac_try_echo=$ac_try;;
3770
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771
$as_echo "$ac_try_echo"; } >&5
3772
(eval "$ac_try") 2>&5
3774
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775
test $ac_status = 0; } &&
3776
test -f conftest2.$ac_objext && { { case "(($ac_try" in
3777
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778
*) ac_try_echo=$ac_try;;
3780
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781
$as_echo "$ac_try_echo"; } >&5
3782
(eval "$ac_try") 2>&5
3784
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785
test $ac_status = 0; };
3790
# cc exists but doesn't like -o.
3791
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3796
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3798
rm -f core conftest*
3801
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3803
$as_echo "yes" >&6; }
3805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806
$as_echo "no" >&6; }
3808
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3812
# FIXME: we rely on the cache variable name because
3813
# there is no other way.
3815
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3816
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3817
if test "$am_t" != yes; then
3818
# Losing compiler, so override with the script.
3819
# FIXME: It is wrong to rewrite CC.
3820
# But if we don't then we get into trouble of one sort or another.
3821
# A longer-term fix would be to have automake use am__CC in this case,
3822
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3823
CC="$am_aux_dir/compile $CC"
3829
ac_cpp='$CPP $CPPFLAGS'
3830
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3834
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3835
# On Suns, sometimes $CPP names a directory.
3836
if test -n "$CPP" && test -d "$CPP"; then
3839
if test -z "$CPP"; then
3840
if ${ac_cv_prog_CPP+:} false; then :
3841
$as_echo_n "(cached) " >&6
3843
# Double quotes because CPP needs to be expanded
3844
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3847
for ac_c_preproc_warn_flag in '' yes
3849
# Use a header file that comes with gcc, so configuring glibc
3850
# with a fresh cross-compiler works.
3851
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3852
# <limits.h> exists even on freestanding compilers.
3853
# On the NeXT, cc -E runs the code through the compiler's parser,
3854
# not just through cpp. "Syntax error" is here to catch this case.
3855
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856
/* end confdefs.h. */
3858
# include <limits.h>
3860
# include <assert.h>
3864
if ac_fn_c_try_cpp "$LINENO"; then :
3867
# Broken: fails on valid input.
3870
rm -f conftest.err conftest.i conftest.$ac_ext
3872
# OK, works on sane cases. Now check whether nonexistent headers
3873
# can be detected and how.
3874
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875
/* end confdefs.h. */
3876
#include <ac_nonexistent.h>
3878
if ac_fn_c_try_cpp "$LINENO"; then :
3879
# Broken: success on invalid input.
3882
# Passes both tests.
3886
rm -f conftest.err conftest.i conftest.$ac_ext
3889
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3890
rm -f conftest.i conftest.err conftest.$ac_ext
3891
if $ac_preproc_ok; then :
3903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3904
$as_echo "$CPP" >&6; }
3906
for ac_c_preproc_warn_flag in '' yes
3908
# Use a header file that comes with gcc, so configuring glibc
3909
# with a fresh cross-compiler works.
3910
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911
# <limits.h> exists even on freestanding compilers.
3912
# On the NeXT, cc -E runs the code through the compiler's parser,
3913
# not just through cpp. "Syntax error" is here to catch this case.
3914
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915
/* end confdefs.h. */
3917
# include <limits.h>
3919
# include <assert.h>
3923
if ac_fn_c_try_cpp "$LINENO"; then :
3926
# Broken: fails on valid input.
3929
rm -f conftest.err conftest.i conftest.$ac_ext
3931
# OK, works on sane cases. Now check whether nonexistent headers
3932
# can be detected and how.
3933
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934
/* end confdefs.h. */
3935
#include <ac_nonexistent.h>
3937
if ac_fn_c_try_cpp "$LINENO"; then :
3938
# Broken: success on invalid input.
3941
# Passes both tests.
3945
rm -f conftest.err conftest.i conftest.$ac_ext
3948
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3949
rm -f conftest.i conftest.err conftest.$ac_ext
3950
if $ac_preproc_ok; then :
3953
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3955
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3956
See \`config.log' for more details" "$LINENO" 5; }
3960
ac_cpp='$CPP $CPPFLAGS'
3961
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3967
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3968
if ${ac_cv_path_GREP+:} false; then :
3969
$as_echo_n "(cached) " >&6
3971
if test -z "$GREP"; then
3972
ac_path_GREP_found=false
3973
# Loop through the user's path and test for each of PROGNAME-LIST
3974
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978
test -z "$as_dir" && as_dir=.
3979
for ac_prog in grep ggrep; do
3980
for ac_exec_ext in '' $ac_executable_extensions; do
3981
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3982
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3983
# Check for GNU ac_path_GREP and select it if it is found.
3984
# Check for GNU $ac_path_GREP
3985
case `"$ac_path_GREP" --version 2>&1` in
3987
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3990
$as_echo_n 0123456789 >"conftest.in"
3993
cat "conftest.in" "conftest.in" >"conftest.tmp"
3994
mv "conftest.tmp" "conftest.in"
3995
cp "conftest.in" "conftest.nl"
3996
$as_echo 'GREP' >> "conftest.nl"
3997
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999
as_fn_arith $ac_count + 1 && ac_count=$as_val
4000
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4001
# Best one so far, save it but keep looking for a better one
4002
ac_cv_path_GREP="$ac_path_GREP"
4003
ac_path_GREP_max=$ac_count
4005
# 10*(2^10) chars as input seems more than enough
4006
test $ac_count -gt 10 && break
4008
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4011
$ac_path_GREP_found && break 3
4016
if test -z "$ac_cv_path_GREP"; then
4017
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4020
ac_cv_path_GREP=$GREP
4024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4025
$as_echo "$ac_cv_path_GREP" >&6; }
4026
GREP="$ac_cv_path_GREP"
4029
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4030
$as_echo_n "checking for egrep... " >&6; }
4031
if ${ac_cv_path_EGREP+:} false; then :
4032
$as_echo_n "(cached) " >&6
4034
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4035
then ac_cv_path_EGREP="$GREP -E"
4037
if test -z "$EGREP"; then
4038
ac_path_EGREP_found=false
4039
# Loop through the user's path and test for each of PROGNAME-LIST
4040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4044
test -z "$as_dir" && as_dir=.
4045
for ac_prog in egrep; do
4046
for ac_exec_ext in '' $ac_executable_extensions; do
4047
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4048
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4049
# Check for GNU ac_path_EGREP and select it if it is found.
4050
# Check for GNU $ac_path_EGREP
4051
case `"$ac_path_EGREP" --version 2>&1` in
4053
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4056
$as_echo_n 0123456789 >"conftest.in"
4059
cat "conftest.in" "conftest.in" >"conftest.tmp"
4060
mv "conftest.tmp" "conftest.in"
4061
cp "conftest.in" "conftest.nl"
4062
$as_echo 'EGREP' >> "conftest.nl"
4063
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4064
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4065
as_fn_arith $ac_count + 1 && ac_count=$as_val
4066
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4067
# Best one so far, save it but keep looking for a better one
4068
ac_cv_path_EGREP="$ac_path_EGREP"
4069
ac_path_EGREP_max=$ac_count
4071
# 10*(2^10) chars as input seems more than enough
4072
test $ac_count -gt 10 && break
4074
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077
$ac_path_EGREP_found && break 3
4082
if test -z "$ac_cv_path_EGREP"; then
4083
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4086
ac_cv_path_EGREP=$EGREP
4091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4092
$as_echo "$ac_cv_path_EGREP" >&6; }
4093
EGREP="$ac_cv_path_EGREP"
4096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4097
$as_echo_n "checking for ANSI C header files... " >&6; }
4098
if ${ac_cv_header_stdc+:} false; then :
4099
$as_echo_n "(cached) " >&6
4101
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102
/* end confdefs.h. */
4116
if ac_fn_c_try_compile "$LINENO"; then :
4117
ac_cv_header_stdc=yes
4119
ac_cv_header_stdc=no
4121
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123
if test $ac_cv_header_stdc = yes; then
4124
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4125
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126
/* end confdefs.h. */
4130
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4131
$EGREP "memchr" >/dev/null 2>&1; then :
4134
ac_cv_header_stdc=no
4140
if test $ac_cv_header_stdc = yes; then
4141
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4142
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143
/* end confdefs.h. */
4147
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4148
$EGREP "free" >/dev/null 2>&1; then :
4151
ac_cv_header_stdc=no
4157
if test $ac_cv_header_stdc = yes; then
4158
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4159
if test "$cross_compiling" = yes; then :
4162
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163
/* end confdefs.h. */
4166
#if ((' ' & 0x0FF) == 0x020)
4167
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4168
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4170
# define ISLOWER(c) \
4171
(('a' <= (c) && (c) <= 'i') \
4172
|| ('j' <= (c) && (c) <= 'r') \
4173
|| ('s' <= (c) && (c) <= 'z'))
4174
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4177
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4182
for (i = 0; i < 256; i++)
4183
if (XOR (islower (i), ISLOWER (i))
4184
|| toupper (i) != TOUPPER (i))
4189
if ac_fn_c_try_run "$LINENO"; then :
4192
ac_cv_header_stdc=no
4194
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4195
conftest.$ac_objext conftest.beam conftest.$ac_ext
4200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4201
$as_echo "$ac_cv_header_stdc" >&6; }
4202
if test $ac_cv_header_stdc = yes; then
4204
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4208
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4209
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4210
inttypes.h stdint.h unistd.h
4212
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4213
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4215
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4216
cat >>confdefs.h <<_ACEOF
4217
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4226
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4227
if test "x$ac_cv_header_minix_config_h" = xyes; then :
4234
if test "$MINIX" = yes; then
4236
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4239
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4242
$as_echo "#define _MINIX 1" >>confdefs.h
4247
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4248
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4249
if ${ac_cv_safe_to_define___extensions__+:} false; then :
4250
$as_echo_n "(cached) " >&6
4252
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253
/* end confdefs.h. */
4255
# define __EXTENSIONS__ 1
4256
$ac_includes_default
4265
if ac_fn_c_try_compile "$LINENO"; then :
4266
ac_cv_safe_to_define___extensions__=yes
4268
ac_cv_safe_to_define___extensions__=no
4270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4273
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4274
test $ac_cv_safe_to_define___extensions__ = yes &&
4275
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4277
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4279
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4281
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4283
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4287
# Extract the first word of "setcap", so it can be a program name with args.
4288
set dummy setcap; ac_word=$2
4289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4290
$as_echo_n "checking for $ac_word... " >&6; }
4291
if ${ac_cv_prog_SETCAP+:} false; then :
4292
$as_echo_n "(cached) " >&6
4294
if test -n "$SETCAP"; then
4295
ac_cv_prog_SETCAP="$SETCAP" # Let the user override the test.
4297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298
for as_dir in $PATH$PATH_SEPARATOR/sbin
4301
test -z "$as_dir" && as_dir=.
4302
for ac_exec_ext in '' $ac_executable_extensions; do
4303
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4304
ac_cv_prog_SETCAP="yes"
4305
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312
test -z "$ac_cv_prog_SETCAP" && ac_cv_prog_SETCAP="no"
4315
SETCAP=$ac_cv_prog_SETCAP
4316
if test -n "$SETCAP"; then
4317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETCAP" >&5
4318
$as_echo "$SETCAP" >&6; }
4320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321
$as_echo "no" >&6; }
4326
# Check whether --enable-rpath was given.
4327
if test "${enable_rpath+set}" = set; then :
4328
enableval=$enable_rpath;
4334
if test "x$enable_rpath" = "xyes"; then
4336
ENABLE_RPATH_FALSE='#'
4338
ENABLE_RPATH_TRUE='#'
4343
# Check whether --enable-doc was given.
4344
if test "${enable_doc+set}" = set; then :
4345
enableval=$enable_doc;
4351
if test "x$enable_doc" = "xyes" -o "x$enable_doc" = "xauto"; then
4352
# Extract the first word of "docbook2man", so it can be a program name with args.
4353
set dummy docbook2man; ac_word=$2
4354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355
$as_echo_n "checking for $ac_word... " >&6; }
4356
if ${ac_cv_prog_have_docbook+:} false; then :
4357
$as_echo_n "(cached) " >&6
4359
if test -n "$have_docbook"; then
4360
ac_cv_prog_have_docbook="$have_docbook" # Let the user override the test.
4362
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366
test -z "$as_dir" && as_dir=.
4367
for ac_exec_ext in '' $ac_executable_extensions; do
4368
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369
ac_cv_prog_have_docbook="yes"
4370
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377
test -z "$ac_cv_prog_have_docbook" && ac_cv_prog_have_docbook="no"
4380
have_docbook=$ac_cv_prog_have_docbook
4381
if test -n "$have_docbook"; then
4382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_docbook" >&5
4383
$as_echo "$have_docbook" >&6; }
4385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386
$as_echo "no" >&6; }
4391
test "x$have_docbook" = "xno" -a "x$enable_doc" = "xyes" && \
4392
as_fn_error $? "docbook2man required by man request, but not found" "$LINENO" 5
4395
if test "x$have_docbook" = "xyes"; then
4396
ENABLE_DOCBOOK_TRUE=
4397
ENABLE_DOCBOOK_FALSE='#'
4399
ENABLE_DOCBOOK_TRUE='#'
4400
ENABLE_DOCBOOK_FALSE=
4404
# Check whether --enable-examples was given.
4405
if test "${enable_examples+set}" = set; then :
4406
enableval=$enable_examples;
4412
if test "x$enable_examples" = "xyes"; then
4413
ENABLE_EXAMPLES_TRUE=
4414
ENABLE_EXAMPLES_FALSE='#'
4416
ENABLE_EXAMPLES_TRUE='#'
4417
ENABLE_EXAMPLES_FALSE=
4426
exec_prefix_save=$exec_prefix
4428
if test "x$prefix" = "xNONE"; then
4429
prefix="$ac_default_prefix"
4431
if test "x$exec_prefix" = "xNONE"; then
4435
full_var="$FROM_VAR"
4437
new_full_var="`eval echo $full_var`"
4438
if test "x$new_full_var" = "x$full_var"; then break; fi
4439
full_var=$new_full_var
4442
full_var=$new_full_var
4447
exec_prefix=$exec_prefix_save
4454
exec_prefix_save=$exec_prefix
4456
if test "x$prefix" = "xNONE"; then
4457
prefix="$ac_default_prefix"
4459
if test "x$exec_prefix" = "xNONE"; then
4463
full_var="$FROM_VAR"
4465
new_full_var="`eval echo $full_var`"
4466
if test "x$new_full_var" = "x$full_var"; then break; fi
4467
full_var=$new_full_var
4470
full_var=$new_full_var
4475
exec_prefix=$exec_prefix_save
4482
exec_prefix_save=$exec_prefix
4484
if test "x$prefix" = "xNONE"; then
4485
prefix="$ac_default_prefix"
4487
if test "x$exec_prefix" = "xNONE"; then
4491
full_var="$FROM_VAR"
4493
new_full_var="`eval echo $full_var`"
4494
if test "x$new_full_var" = "x$full_var"; then break; fi
4495
full_var=$new_full_var
4498
full_var=$new_full_var
4503
exec_prefix=$exec_prefix_save
4507
FROM_VAR=$includedir
4510
exec_prefix_save=$exec_prefix
4512
if test "x$prefix" = "xNONE"; then
4513
prefix="$ac_default_prefix"
4515
if test "x$exec_prefix" = "xNONE"; then
4519
full_var="$FROM_VAR"
4521
new_full_var="`eval echo $full_var`"
4522
if test "x$new_full_var" = "x$full_var"; then break; fi
4523
full_var=$new_full_var
4526
full_var=$new_full_var
4527
INCLUDEDIR="$full_var"
4531
exec_prefix=$exec_prefix_save
4535
FROM_VAR=$sysconfdir
4538
exec_prefix_save=$exec_prefix
4540
if test "x$prefix" = "xNONE"; then
4541
prefix="$ac_default_prefix"
4543
if test "x$exec_prefix" = "xNONE"; then
4547
full_var="$FROM_VAR"
4549
new_full_var="`eval echo $full_var`"
4550
if test "x$new_full_var" = "x$full_var"; then break; fi
4551
full_var=$new_full_var
4554
full_var=$new_full_var
4555
SYSCONFDIR="$full_var"
4559
exec_prefix=$exec_prefix_save
4566
exec_prefix_save=$exec_prefix
4568
if test "x$prefix" = "xNONE"; then
4569
prefix="$ac_default_prefix"
4571
if test "x$exec_prefix" = "xNONE"; then
4575
full_var="$FROM_VAR"
4577
new_full_var="`eval echo $full_var`"
4578
if test "x$new_full_var" = "x$full_var"; then break; fi
4579
full_var=$new_full_var
4582
full_var=$new_full_var
4587
exec_prefix=$exec_prefix_save
4590
EXP_VAR=LOCALSTATEDIR
4591
FROM_VAR=$localstatedir
4594
exec_prefix_save=$exec_prefix
4596
if test "x$prefix" = "xNONE"; then
4597
prefix="$ac_default_prefix"
4599
if test "x$exec_prefix" = "xNONE"; then
4603
full_var="$FROM_VAR"
4605
new_full_var="`eval echo $full_var`"
4606
if test "x$new_full_var" = "x$full_var"; then break; fi
4607
full_var=$new_full_var
4610
full_var=$new_full_var
4611
LOCALSTATEDIR="$full_var"
4615
exec_prefix=$exec_prefix_save
4622
exec_prefix_save=$exec_prefix
4624
if test "x$prefix" = "xNONE"; then
4625
prefix="$ac_default_prefix"
4627
if test "x$exec_prefix" = "xNONE"; then
4631
full_var="$FROM_VAR"
4633
new_full_var="`eval echo $full_var`"
4634
if test "x$new_full_var" = "x$full_var"; then break; fi
4635
full_var=$new_full_var
4638
full_var=$new_full_var
4643
exec_prefix=$exec_prefix_save
4647
# Check whether --with-config-path was given.
4648
if test "${with_config_path+set}" = set; then :
4649
withval=$with_config_path;
4651
with_config_path='${localstatedir}/lib/lxc'
4656
# Check whether --with-rootfs-path was given.
4657
if test "${with_rootfs_path+set}" = set; then :
4658
withval=$with_rootfs_path;
4660
with_rootfs_path='${libdir}/lxc/rootfs'
4665
EXP_VAR=LXC_GENERATE_DATE
4669
exec_prefix_save=$exec_prefix
4671
if test "x$prefix" = "xNONE"; then
4672
prefix="$ac_default_prefix"
4674
if test "x$exec_prefix" = "xNONE"; then
4678
full_var="$FROM_VAR"
4680
new_full_var="`eval echo $full_var`"
4681
if test "x$new_full_var" = "x$full_var"; then break; fi
4682
full_var=$new_full_var
4685
full_var=$new_full_var
4686
LXC_GENERATE_DATE="$full_var"
4690
exec_prefix=$exec_prefix_save
4693
LXCPATH="${with_config_path}"
4695
LXCROOTFSMOUNT="${with_rootfs_path}"
4697
LXCINITDIR='${libexecdir}/lxc'
4699
LXCTEMPLATEDIR='${libdir}/lxc/templates'
4702
for ac_header in linux/netlink.h linux/genetlink.h
4704
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4705
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/socket.h>
4708
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4709
cat >>confdefs.h <<_ACEOF
4710
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4714
as_fn_error $? "netlink headers not found. Please install the linux kernel headers." "$LINENO" 5
4720
for ac_header in sys/capability.h
4722
ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "#include <sys/types.h>
4723
#include <sys/capability.h>
4725
if test "x$ac_cv_header_sys_capability_h" = xyes; then :
4726
cat >>confdefs.h <<_ACEOF
4727
#define HAVE_SYS_CAPABILITY_H 1
4731
as_fn_error $? "please install libcap-devel." "$LINENO" 5
4736
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
4737
$as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
4738
if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
4739
$as_echo_n "(cached) " >&6
4741
ac_check_lib_save_LIBS=$LIBS
4743
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744
/* end confdefs.h. */
4746
/* Override any GCC internal prototype to avoid an error.
4747
Use char because int might match the return type of a GCC
4748
builtin and then its argument prototype would still apply. */
4752
char cap_set_proc ();
4756
return cap_set_proc ();
4761
if ac_fn_c_try_link "$LINENO"; then :
4762
ac_cv_lib_cap_cap_set_proc=yes
4764
ac_cv_lib_cap_cap_set_proc=no
4766
rm -f core conftest.err conftest.$ac_objext \
4767
conftest$ac_exeext conftest.$ac_ext
4768
LIBS=$ac_check_lib_save_LIBS
4770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
4771
$as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
4772
if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
4778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linux capabilities" >&5
4779
$as_echo_n "checking linux capabilities... " >&6; }
4780
if test "x$caplib" = "xyes" ; then
4782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAP_LIBS" >&5
4783
$as_echo "$CAP_LIBS" >&6; }
4785
as_fn_error $? "not found" "$LINENO" 5
4789
# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
4790
ac_fn_c_check_decl "$LINENO" "PR_CAPBSET_DROP" "ac_cv_have_decl_PR_CAPBSET_DROP" "#include <sys/prctl.h>
4792
if test "x$ac_cv_have_decl_PR_CAPBSET_DROP" = xyes; then :
4798
cat >>confdefs.h <<_ACEOF
4799
#define HAVE_DECL_PR_CAPBSET_DROP $ac_have_decl
4803
for ac_header in sys/signalfd.h
4805
ac_fn_c_check_header_mongrel "$LINENO" "sys/signalfd.h" "ac_cv_header_sys_signalfd_h" "$ac_includes_default"
4806
if test "x$ac_cv_header_sys_signalfd_h" = xyes; then :
4807
cat >>confdefs.h <<_ACEOF
4808
#define HAVE_SYS_SIGNALFD_H 1
4816
if test $ac_cv_c_compiler_gnu = yes; then
4817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4818
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4819
if ${ac_cv_prog_gcc_traditional+:} false; then :
4820
$as_echo_n "(cached) " >&6
4822
ac_pattern="Autoconf.*'x'"
4823
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824
/* end confdefs.h. */
4828
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4829
$EGREP "$ac_pattern" >/dev/null 2>&1; then :
4830
ac_cv_prog_gcc_traditional=yes
4832
ac_cv_prog_gcc_traditional=no
4837
if test $ac_cv_prog_gcc_traditional = no; then
4838
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839
/* end confdefs.h. */
4843
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4844
$EGREP "$ac_pattern" >/dev/null 2>&1; then :
4845
ac_cv_prog_gcc_traditional=yes
4851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4852
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4853
if test $ac_cv_prog_gcc_traditional = yes; then
4854
CC="$CC -traditional"
4862
# Check whether --with-linuxdir was given.
4863
if test "${with_linuxdir+set}" = set; then :
4864
withval=$with_linuxdir; LINUX_DIR="${withval}"
4870
if test "${LINUX_DIR}" != "default" ; then
4871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux in ${LINUX_DIR}" >&5
4872
$as_echo_n "checking for Linux in ${LINUX_DIR}... " >&6; }
4874
if test -f "${LINUX_DIR}/Makefile" ; then
4879
as_fn_error $? "Linux dir not found" "$LINENO" 5
4882
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
4883
$as_echo "$result" >&6; }
4887
if test "${LINUX_DIR}" = "default" ; then
4888
dir="/lib/modules/$LINUX_KERNEL_RELEASE/build";
4889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux in ${dir}" >&5
4890
$as_echo_n "checking for Linux in ${dir}... " >&6; }
4892
if test -f "${dir}/Makefile" ; then
4900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
4901
$as_echo "$result" >&6; }
4905
if test "${LINUX_DIR}" = "default" ; then
4906
dir="/usr/src/linux-$LINUX_KERNEL_RELEASE";
4907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux in ${dir}" >&5
4908
$as_echo_n "checking for Linux in ${dir}... " >&6; }
4910
if test -f "${dir}/Makefile" ; then
4918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
4919
$as_echo "$result" >&6; }
4923
if test "${LINUX_DIR}" = "default" ; then
4924
dir="/usr/src/linux";
4925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux in ${dir}" >&5
4926
$as_echo_n "checking for Linux in ${dir}... " >&6; }
4928
if test -f "${dir}/Makefile" ; then
4936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
4937
$as_echo "$result" >&6; }
4941
if test "${LINUX_DIR}" = "default" ; then
4942
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linux source directory not found" >&5
4943
$as_echo "$as_me: WARNING: Linux source directory not found" >&2;}
4949
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linux SRCARCH" >&5
4950
$as_echo_n "checking for linux SRCARCH... " >&6; }
4953
i[3456]86-*) LINUX_SRCARCH=x86;;
4954
x86_64-*) LINUX_SRCARCH=x86;;
4955
powerpc*-*) LINUX_SRCARCH=powerpc;;
4956
s390*-*) LINUX_SRCARCH=s390;;
4957
arm*-*) LINUX_SRCARCH=arm;;
4958
mips*-*) LINUX_SRCARCH=mips;;
4959
sparc*-*) LINUX_SRCARCH=sparc;;
4960
*) as_fn_error $? "architecture ${host} not supported" "$LINENO" 5;;
4963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINUX_SRCARCH}" >&5
4964
$as_echo "${LINUX_SRCARCH}" >&6; }
4969
if test "x$GCC" = "xyes"; then
4970
CFLAGS="$CFLAGS -Wall"
4973
ac_config_files="$ac_config_files Makefile lxc.pc lxc.spec config/Makefile doc/Makefile doc/lxc-create.sgml doc/lxc-destroy.sgml doc/lxc-execute.sgml doc/lxc-start.sgml doc/lxc-checkpoint.sgml doc/lxc-restart.sgml doc/lxc-stop.sgml doc/lxc-console.sgml doc/lxc-freeze.sgml doc/lxc-unfreeze.sgml doc/lxc-monitor.sgml doc/lxc-wait.sgml doc/lxc-ls.sgml doc/lxc-ps.sgml doc/lxc-cgroup.sgml doc/lxc-kill.sgml doc/lxc-attach.sgml doc/lxc.conf.sgml doc/lxc.sgml doc/common_options.sgml doc/see_also.sgml doc/rootfs/Makefile doc/examples/Makefile doc/examples/lxc-macvlan.conf doc/examples/lxc-vlan.conf doc/examples/lxc-no-netns.conf doc/examples/lxc-empty-netns.conf doc/examples/lxc-phys.conf doc/examples/lxc-veth.conf doc/examples/lxc-complex.conf templates/Makefile templates/lxc-lenny templates/lxc-debian templates/lxc-ubuntu templates/lxc-ubuntu-cloud templates/lxc-opensuse templates/lxc-busybox templates/lxc-fedora templates/lxc-altlinux templates/lxc-sshd templates/lxc-archlinux src/Makefile src/lxc/Makefile src/lxc/lxc-ps src/lxc/lxc-ls src/lxc/lxc-netstat src/lxc/lxc-checkconfig src/lxc/lxc-setcap src/lxc/lxc-setuid src/lxc/lxc-version src/lxc/lxc-create src/lxc/lxc-clone src/lxc/lxc-destroy"
4975
ac_config_commands="$ac_config_commands default"
4977
cat >confcache <<\_ACEOF
4978
# This file is a shell script that caches the results of configure
4979
# tests run on this system so they can be shared between configure
4980
# scripts and configure runs, see configure's option --config-cache.
4981
# It is not useful on other systems. If it contains results you don't
4982
# want to keep, you may remove or edit it.
4984
# config.status only pays attention to the cache file if you give it
4985
# the --recheck option to rerun configure.
4987
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4988
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4993
# The following way of writing the cache mishandles newlines in values,
4994
# but we know of no workaround that is simple, portable, and efficient.
4995
# So, we kill variables containing newlines.
4996
# Ultrix sh set writes to stderr and can't be redirected directly,
4997
# and sets the high bit in the cache file unless we assign to the vars.
4999
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5000
eval ac_val=\$$ac_var
5004
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5005
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5008
_ | IFS | as_nl) ;; #(
5009
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5010
*) { eval $ac_var=; unset $ac_var;} ;;
5016
case $as_nl`(ac_space=' '; set) 2>&1` in #(
5017
*${as_nl}ac_space=\ *)
5018
# `set' does not quote correctly, so add quotes: double-quote
5019
# substitution turns \\\\ into \\, and sed turns \\ into \.
5022
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5025
# `set' quotes correctly as required by POSIX, so do not add quotes.
5026
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5035
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5037
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5039
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5040
if test -w "$cache_file"; then
5041
if test "x$cache_file" != "x/dev/null"; then
5042
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5043
$as_echo "$as_me: updating cache $cache_file" >&6;}
5044
if test ! -f "$cache_file" || test -h "$cache_file"; then
5045
cat confcache >"$cache_file"
5047
case $cache_file in #(
5049
mv -f confcache "$cache_file"$$ &&
5050
mv -f "$cache_file"$$ "$cache_file" ;; #(
5052
mv -f confcache "$cache_file" ;;
5057
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5058
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5063
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5064
# Let make expand exec_prefix.
5065
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5067
DEFS=-DHAVE_CONFIG_H
5072
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5073
# 1. Remove the extension, and $U if already installed.
5074
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5075
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5076
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5077
# will be set to the directory where LIBOBJS objects are built.
5078
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5079
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5083
LTLIBOBJS=$ac_ltlibobjs
5086
if test -n "$EXEEXT"; then
5088
am__EXEEXT_FALSE='#'
5094
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5095
as_fn_error $? "conditional \"AMDEP\" was never defined.
5096
Usually this means the macro was only invoked conditionally." "$LINENO" 5
5098
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5099
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5100
Usually this means the macro was only invoked conditionally." "$LINENO" 5
5102
if test -z "${ENABLE_RPATH_TRUE}" && test -z "${ENABLE_RPATH_FALSE}"; then
5103
as_fn_error $? "conditional \"ENABLE_RPATH\" was never defined.
5104
Usually this means the macro was only invoked conditionally." "$LINENO" 5
5106
if test -z "${ENABLE_DOCBOOK_TRUE}" && test -z "${ENABLE_DOCBOOK_FALSE}"; then
5107
as_fn_error $? "conditional \"ENABLE_DOCBOOK\" was never defined.
5108
Usually this means the macro was only invoked conditionally." "$LINENO" 5
5110
if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
5111
as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
5112
Usually this means the macro was only invoked conditionally." "$LINENO" 5
5115
: "${CONFIG_STATUS=./config.status}"
5117
ac_clean_files_save=$ac_clean_files
5118
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5119
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5120
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5122
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5124
# Generated by $as_me.
5125
# Run this file to recreate the current configuration.
5126
# Compiler output produced by configure, useful for debugging
5127
# configure, is in config.log if it exists.
5133
SHELL=\${CONFIG_SHELL-$SHELL}
5136
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5137
## -------------------- ##
5138
## M4sh Initialization. ##
5139
## -------------------- ##
5141
# Be more Bourne compatible
5142
DUALCASE=1; export DUALCASE # for MKS sh
5143
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5146
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5147
# is contrary to our usage. Disable this feature.
5148
alias -g '${1+"$@"}'='"$@"'
5149
setopt NO_GLOB_SUBST
5151
case `(set -o) 2>/dev/null` in #(
5163
# Printing a long string crashes Solaris 7 /usr/bin/printf.
5164
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5165
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5166
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5167
# Prefer a ksh shell builtin over an external printf program on Solaris,
5168
# but without wasting forks for bash or zsh.
5169
if test -z "$BASH_VERSION$ZSH_VERSION" \
5170
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5171
as_echo='print -r --'
5172
as_echo_n='print -rn --'
5173
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5174
as_echo='printf %s\n'
5175
as_echo_n='printf %s'
5177
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5178
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5179
as_echo_n='/usr/ucb/echo -n'
5181
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5182
as_echo_n_body='eval
5186
expr "X$arg" : "X\\(.*\\)$as_nl";
5187
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5189
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5191
export as_echo_n_body
5192
as_echo_n='sh -c $as_echo_n_body as_echo'
5195
as_echo='sh -c $as_echo_body as_echo'
5198
# The user is always right.
5199
if test "${PATH_SEPARATOR+set}" != set; then
5201
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5202
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5209
# We need space, tab and new line, in precisely that order. Quoting is
5210
# there to prevent editors from complaining about space-tab.
5211
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5212
# splitting by setting IFS to empty value.)
5215
# Find who we are. Look in the path if we contain no directory separator.
5218
*[\\/]* ) as_myself=$0 ;;
5219
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223
test -z "$as_dir" && as_dir=.
5224
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5230
# We did not find ourselves, most probably we were run as `sh COMMAND'
5231
# in which case we are not to be found in the path.
5232
if test "x$as_myself" = x; then
5235
if test ! -f "$as_myself"; then
5236
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5240
# Unset variables that we do not need and which cause bugs (e.g. in
5241
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5242
# suppresses any "Segmentation fault" message there. '((' could
5243
# trigger a bug in pdksh 5.2.14.
5244
for as_var in BASH_ENV ENV MAIL MAILPATH
5245
do eval test x\${$as_var+set} = xset \
5246
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5259
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5262
# as_fn_error STATUS ERROR [LINENO LOG_FD]
5263
# ----------------------------------------
5264
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5265
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5266
# script with STATUS, using 1 if that was 0.
5269
as_status=$1; test $as_status -eq 0 && as_status=1
5271
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5272
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5274
$as_echo "$as_me: error: $2" >&2
5275
as_fn_exit $as_status
5279
# as_fn_set_status STATUS
5280
# -----------------------
5281
# Set $? to STATUS, without forking.
5285
} # as_fn_set_status
5289
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5299
# Portably unset VAR.
5302
{ eval $1=; unset $1;}
5304
as_unset=as_fn_unset
5305
# as_fn_append VAR VALUE
5306
# ----------------------
5307
# Append the text in VALUE to the end of the definition contained in VAR. Take
5308
# advantage of any shell optimizations that allow amortized linear growth over
5309
# repeated appends, instead of the typical quadratic growth present in naive
5311
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5312
eval 'as_fn_append ()
5323
# as_fn_arith ARG...
5324
# ------------------
5325
# Perform arithmetic evaluation on the ARGs, and store the result in the
5326
# global $as_val. Take advantage of shells that can avoid forks. The arguments
5327
# must be portable across $(()) and expr.
5328
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5329
eval 'as_fn_arith ()
5336
as_val=`expr "$@" || test $? -eq 1`
5341
if expr a : '\(a\)' >/dev/null 2>&1 &&
5342
test "X`expr 00001 : '.*\(...\)'`" = X001; then
5348
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5349
as_basename=basename
5354
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5360
as_me=`$as_basename -- "$0" ||
5361
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5362
X"$0" : 'X\(//\)$' \| \
5363
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5365
sed '/^.*\/\([^/][^/]*\)\/*$/{
5379
# Avoid depending upon Character Ranges.
5380
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5381
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5382
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5383
as_cr_digits='0123456789'
5384
as_cr_alnum=$as_cr_Letters$as_cr_digits
5386
ECHO_C= ECHO_N= ECHO_T=
5387
case `echo -n x` in #(((((
5389
case `echo 'xy\c'` in
5390
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
5392
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5399
rm -f conf$$ conf$$.exe conf$$.file
5400
if test -d conf$$.dir; then
5401
rm -f conf$$.dir/conf$$.file
5404
mkdir conf$$.dir 2>/dev/null
5406
if (echo >conf$$.file) 2>/dev/null; then
5407
if ln -s conf$$.file conf$$ 2>/dev/null; then
5409
# ... but there are two gotchas:
5410
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5411
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5412
# In both cases, we have to default to `cp -p'.
5413
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5415
elif ln conf$$.file conf$$ 2>/dev/null; then
5423
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5424
rmdir conf$$.dir 2>/dev/null
5429
# Create "$as_dir" as a directory, including parents if necessary.
5434
-*) as_dir=./$as_dir;;
5436
test -d "$as_dir" || eval $as_mkdir_p || {
5440
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5441
*) as_qdir=$as_dir;;
5443
as_dirs="'$as_qdir' $as_dirs"
5444
as_dir=`$as_dirname -- "$as_dir" ||
5445
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5446
X"$as_dir" : 'X\(//\)[^/]' \| \
5447
X"$as_dir" : 'X\(//\)$' \| \
5448
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5449
$as_echo X"$as_dir" |
5450
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5467
test -d "$as_dir" && break
5469
test -z "$as_dirs" || eval "mkdir $as_dirs"
5470
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5474
if mkdir -p . 2>/dev/null; then
5475
as_mkdir_p='mkdir -p "$as_dir"'
5477
test -d ./-p && rmdir ./-p
5481
if test -x / >/dev/null 2>&1; then
5484
if ls -dL / >/dev/null 2>&1; then
5491
if test -d "$1"; then
5497
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5498
???[sx]*):;;*)false;;esac;fi
5502
as_executable_p=$as_test_x
5504
# Sed expression to map a string onto a valid CPP name.
5505
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5507
# Sed expression to map a string onto a valid variable name.
5508
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5512
## ----------------------------------- ##
5513
## Main body of $CONFIG_STATUS script. ##
5514
## ----------------------------------- ##
5516
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5518
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5519
# Save the log message, to keep $0 and so on meaningful, and to
5520
# report actual input values of CONFIG_FILES etc. instead of their
5521
# values after options handling.
5523
This file was extended by lxc $as_me 0.8.0-rc1, which was
5524
generated by GNU Autoconf 2.68. Invocation command line was
5526
CONFIG_FILES = $CONFIG_FILES
5527
CONFIG_HEADERS = $CONFIG_HEADERS
5528
CONFIG_LINKS = $CONFIG_LINKS
5529
CONFIG_COMMANDS = $CONFIG_COMMANDS
5532
on `(hostname || uname -n) 2>/dev/null | sed 1q`
5537
case $ac_config_files in *"
5538
"*) set x $ac_config_files; shift; ac_config_files=$*;;
5541
case $ac_config_headers in *"
5542
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5546
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5547
# Files that config.status was made for.
5548
config_files="$ac_config_files"
5549
config_headers="$ac_config_headers"
5550
config_commands="$ac_config_commands"
5554
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5556
\`$as_me' instantiates files and other configuration actions
5557
from templates according to the current configuration. Unless the files
5558
and actions are specified as TAGs, all are instantiated by default.
5560
Usage: $0 [OPTION]... [TAG]...
5562
-h, --help print this help, then exit
5563
-V, --version print version number and configuration settings, then exit
5564
--config print configuration, then exit
5565
-q, --quiet, --silent
5566
do not print progress messages
5567
-d, --debug don't remove temporary files
5568
--recheck update $as_me by reconfiguring in the same conditions
5569
--file=FILE[:TEMPLATE]
5570
instantiate the configuration file FILE
5571
--header=FILE[:TEMPLATE]
5572
instantiate the configuration header FILE
5574
Configuration files:
5577
Configuration headers:
5580
Configuration commands:
5583
Report bugs to the package provider."
5586
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5587
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5589
lxc config.status 0.8.0-rc1
5590
configured by $0, generated by GNU Autoconf 2.68,
5591
with options \\"\$ac_cs_config\\"
5593
Copyright (C) 2010 Free Software Foundation, Inc.
5594
This config.status script is free software; the Free Software Foundation
5595
gives unlimited permission to copy, distribute and modify it."
5602
test -n "\$AWK" || AWK=awk
5605
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5606
# The default lists apply if the user does not specify any file.
5612
ac_option=`expr "X$1" : 'X\([^=]*\)='`
5613
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5617
ac_option=`expr "X$1" : 'X\([^=]*\)='`
5629
# Handling of the options.
5630
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5632
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5633
$as_echo "$ac_cs_version"; exit ;;
5634
--config | --confi | --conf | --con | --co | --c )
5635
$as_echo "$ac_cs_config"; exit ;;
5636
--debug | --debu | --deb | --de | --d | -d )
5638
--file | --fil | --fi | --f )
5641
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5642
'') as_fn_error $? "missing file argument" ;;
5644
as_fn_append CONFIG_FILES " '$ac_optarg'"
5645
ac_need_defaults=false;;
5646
--header | --heade | --head | --hea )
5649
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5651
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5652
ac_need_defaults=false;;
5654
# Conflict between --help and --header
5655
as_fn_error $? "ambiguous option: \`$1'
5656
Try \`$0 --help' for more information.";;
5657
--help | --hel | -h )
5658
$as_echo "$ac_cs_usage"; exit ;;
5659
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
5660
| -silent | --silent | --silen | --sile | --sil | --si | --s)
5664
-*) as_fn_error $? "unrecognized option: \`$1'
5665
Try \`$0 --help' for more information." ;;
5667
*) as_fn_append ac_config_targets " $1"
5668
ac_need_defaults=false ;;
5674
ac_configure_extra_args=
5676
if $ac_cs_silent; then
5678
ac_configure_extra_args="$ac_configure_extra_args --silent"
5682
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5683
if \$ac_cs_recheck; then
5684
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5686
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5687
CONFIG_SHELL='$SHELL'
5693
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5697
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5698
## Running $as_me. ##
5704
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5708
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5713
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5715
# Handling of arguments.
5716
for ac_config_target in $ac_config_targets
5718
case $ac_config_target in
5719
"src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
5720
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5721
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5722
"lxc.pc") CONFIG_FILES="$CONFIG_FILES lxc.pc" ;;
5723
"lxc.spec") CONFIG_FILES="$CONFIG_FILES lxc.spec" ;;
5724
"config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
5725
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5726
"doc/lxc-create.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-create.sgml" ;;
5727
"doc/lxc-destroy.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-destroy.sgml" ;;
5728
"doc/lxc-execute.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-execute.sgml" ;;
5729
"doc/lxc-start.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-start.sgml" ;;
5730
"doc/lxc-checkpoint.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-checkpoint.sgml" ;;
5731
"doc/lxc-restart.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-restart.sgml" ;;
5732
"doc/lxc-stop.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-stop.sgml" ;;
5733
"doc/lxc-console.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-console.sgml" ;;
5734
"doc/lxc-freeze.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-freeze.sgml" ;;
5735
"doc/lxc-unfreeze.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-unfreeze.sgml" ;;
5736
"doc/lxc-monitor.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-monitor.sgml" ;;
5737
"doc/lxc-wait.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-wait.sgml" ;;
5738
"doc/lxc-ls.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-ls.sgml" ;;
5739
"doc/lxc-ps.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-ps.sgml" ;;
5740
"doc/lxc-cgroup.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-cgroup.sgml" ;;
5741
"doc/lxc-kill.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-kill.sgml" ;;
5742
"doc/lxc-attach.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-attach.sgml" ;;
5743
"doc/lxc.conf.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc.conf.sgml" ;;
5744
"doc/lxc.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc.sgml" ;;
5745
"doc/common_options.sgml") CONFIG_FILES="$CONFIG_FILES doc/common_options.sgml" ;;
5746
"doc/see_also.sgml") CONFIG_FILES="$CONFIG_FILES doc/see_also.sgml" ;;
5747
"doc/rootfs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/rootfs/Makefile" ;;
5748
"doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
5749
"doc/examples/lxc-macvlan.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-macvlan.conf" ;;
5750
"doc/examples/lxc-vlan.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-vlan.conf" ;;
5751
"doc/examples/lxc-no-netns.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-no-netns.conf" ;;
5752
"doc/examples/lxc-empty-netns.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-empty-netns.conf" ;;
5753
"doc/examples/lxc-phys.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-phys.conf" ;;
5754
"doc/examples/lxc-veth.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-veth.conf" ;;
5755
"doc/examples/lxc-complex.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-complex.conf" ;;
5756
"templates/Makefile") CONFIG_FILES="$CONFIG_FILES templates/Makefile" ;;
5757
"templates/lxc-lenny") CONFIG_FILES="$CONFIG_FILES templates/lxc-lenny" ;;
5758
"templates/lxc-debian") CONFIG_FILES="$CONFIG_FILES templates/lxc-debian" ;;
5759
"templates/lxc-ubuntu") CONFIG_FILES="$CONFIG_FILES templates/lxc-ubuntu" ;;
5760
"templates/lxc-ubuntu-cloud") CONFIG_FILES="$CONFIG_FILES templates/lxc-ubuntu-cloud" ;;
5761
"templates/lxc-opensuse") CONFIG_FILES="$CONFIG_FILES templates/lxc-opensuse" ;;
5762
"templates/lxc-busybox") CONFIG_FILES="$CONFIG_FILES templates/lxc-busybox" ;;
5763
"templates/lxc-fedora") CONFIG_FILES="$CONFIG_FILES templates/lxc-fedora" ;;
5764
"templates/lxc-altlinux") CONFIG_FILES="$CONFIG_FILES templates/lxc-altlinux" ;;
5765
"templates/lxc-sshd") CONFIG_FILES="$CONFIG_FILES templates/lxc-sshd" ;;
5766
"templates/lxc-archlinux") CONFIG_FILES="$CONFIG_FILES templates/lxc-archlinux" ;;
5767
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5768
"src/lxc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lxc/Makefile" ;;
5769
"src/lxc/lxc-ps") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-ps" ;;
5770
"src/lxc/lxc-ls") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-ls" ;;
5771
"src/lxc/lxc-netstat") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-netstat" ;;
5772
"src/lxc/lxc-checkconfig") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-checkconfig" ;;
5773
"src/lxc/lxc-setcap") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-setcap" ;;
5774
"src/lxc/lxc-setuid") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-setuid" ;;
5775
"src/lxc/lxc-version") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-version" ;;
5776
"src/lxc/lxc-create") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-create" ;;
5777
"src/lxc/lxc-clone") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-clone" ;;
5778
"src/lxc/lxc-destroy") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-destroy" ;;
5779
"default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5781
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5786
# If the user did not use the arguments to specify the items to instantiate,
5787
# then the envvar interface is used. Set only those that are not.
5788
# We use the long form for the default assignment because of an extremely
5789
# bizarre bug on SunOS 4.1.3.
5790
if $ac_need_defaults; then
5791
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5792
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5793
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5796
# Have a temporary directory for convenience. Make it in the build tree
5797
# simply because there is no reason against having it here, and in addition,
5798
# creating and moving files from /tmp can sometimes cause problems.
5799
# Hook for its removal unless debugging.
5800
# Note that there is a small window in which the directory will not be cleaned:
5801
# after its creation but before its name has been assigned to `$tmp'.
5805
trap 'exit_status=$?
5807
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5809
trap 'as_fn_exit 1' 1 2 13 15
5811
# Create a (secure) tmp directory for tmp files.
5814
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5818
tmp=./conf$$-$RANDOM
5819
(umask 077 && mkdir "$tmp")
5820
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5823
# Set up the scripts for CONFIG_FILES section.
5824
# No need to generate them if there are no CONFIG_FILES.
5825
# This happens for instance with `./config.status config.h'.
5826
if test -n "$CONFIG_FILES"; then
5829
ac_cr=`echo X | tr X '\015'`
5830
# On cygwin, bash can eat \r inside `` if the user requested igncr.
5831
# But we know of no other shell where ac_cr would be empty at this
5832
# point, so we can use a bashism as a fallback.
5833
if test "x$ac_cr" = x; then
5834
eval ac_cr=\$\'\\r\'
5836
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5837
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5843
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5848
echo "cat >conf$$subs.awk <<_ACEOF" &&
5849
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5852
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5853
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5855
for ac_last_try in false false false false false :; do
5856
. ./conf$$subs.sh ||
5857
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5859
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5860
if test $ac_delim_n = $ac_delim_num; then
5862
elif $ac_last_try; then
5863
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5865
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5870
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5871
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5875
s/^/S["/; s/!.*/"]=/
5885
s/\(.\{148\}\)..*/\1/
5887
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5892
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5899
s/\(.\{148\}\)..*/\1/
5901
s/["\\]/\\&/g; s/^/"/; s/$/"/
5905
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5910
' <conf$$subs.awk | sed '
5915
' >>$CONFIG_STATUS || ac_write_fail=1
5916
rm -f conf$$subs.awk
5917
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5919
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5920
for (key in S) S_is_set[key] = 1
5926
nfields = split(line, field, "@")
5928
len = length(field[1])
5929
for (i = 2; i < nfields; i++) {
5931
keylen = length(key)
5932
if (S_is_set[key]) {
5934
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5935
len += length(value) + length(field[++i])
5946
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5947
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5948
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5951
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5952
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5955
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5956
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5957
# trailing colons and then remove the whole line if VPATH becomes empty
5958
# (actually we leave an empty line to preserve line numbers).
5959
if test "x$srcdir" = x.; then
5960
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5978
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5979
fi # test -n "$CONFIG_FILES"
5981
# Set up the scripts for CONFIG_HEADERS section.
5982
# No need to generate them if there are no CONFIG_HEADERS.
5983
# This happens for instance with `./config.status Makefile'.
5984
if test -n "$CONFIG_HEADERS"; then
5985
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5989
# Transform confdefs.h into an awk script `defines.awk', embedded as
5990
# here-document in config.status, that substitutes the proper values into
5991
# config.h.in to produce config.h.
5993
# Create a delimiter string that does not exist in confdefs.h, to ease
5994
# handling of long lines.
5996
for ac_last_try in false false :; do
5997
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5998
if test -z "$ac_tt"; then
6000
elif $ac_last_try; then
6001
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6003
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6007
# For the awk script, D is an array of macro values keyed by name,
6008
# likewise P contains macro parameters if any. Preserve backslash
6009
# newline sequences.
6011
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6013
s/.\{148\}/&'"$ac_delim"'/g
6016
s/^[ ]*#[ ]*define[ ][ ]*/ /
6023
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6025
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6029
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6030
D["\1"]=" \3\\\\\\n"\\/p
6032
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6037
s/.\{148\}/&'"$ac_delim"'/g
6042
s/["\\]/\\&/g; s/^/"/; s/$/"/p
6045
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6047
' <confdefs.h | sed '
6048
s/'"$ac_delim"'/"\\\
6049
"/g' >>$CONFIG_STATUS || ac_write_fail=1
6051
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6052
for (key in D) D_is_set[key] = 1
6055
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6057
split(line, arg, " ")
6058
if (arg[1] == "#") {
6062
defundef = substr(arg[1], 2)
6065
split(mac1, mac2, "(") #)
6067
prefix = substr(line, 1, index(line, defundef) - 1)
6068
if (D_is_set[macro]) {
6069
# Preserve the white space surrounding the "#".
6070
print prefix "define", macro P[macro] D[macro]
6073
# Replace #undef with comments. This is necessary, for example,
6074
# in the case of _POSIX_SOURCE, which is predefined and required
6075
# on some systems where configure will not decide to define it.
6076
if (defundef == "undef") {
6077
print "/*", prefix defundef, macro, "*/"
6085
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6086
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6087
fi # test -n "$CONFIG_HEADERS"
6090
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6095
:[FHLC]) ac_mode=$ac_tag; continue;;
6097
case $ac_mode$ac_tag in
6099
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6100
:[FH]-) ac_tag=-:-;;
6101
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6118
-) ac_f="$ac_tmp/stdin";;
6119
*) # Look for the file first in the build tree, then in the source tree
6120
# (if the path is not absolute). The absolute path cannot be DOS-style,
6121
# because $ac_f cannot contain `:'.
6125
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6127
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6129
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6130
as_fn_append ac_file_inputs " '$ac_f'"
6133
# Let's still pretend it is `configure' which instantiates (i.e., don't
6134
# use $as_me), people would be surprised to read:
6135
# /* config.h. Generated by config.status. */
6136
configure_input='Generated from '`
6137
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6139
if test x"$ac_file" != x-; then
6140
configure_input="$ac_file. $configure_input"
6141
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6142
$as_echo "$as_me: creating $ac_file" >&6;}
6144
# Neutralize special characters interpreted by sed in replacement strings.
6145
case $configure_input in #(
6146
*\&* | *\|* | *\\* )
6147
ac_sed_conf_input=`$as_echo "$configure_input" |
6148
sed 's/[\\\\&|]/\\\\&/g'`;; #(
6149
*) ac_sed_conf_input=$configure_input;;
6153
*:-:* | *:-) cat >"$ac_tmp/stdin" \
6154
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6159
ac_dir=`$as_dirname -- "$ac_file" ||
6160
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6161
X"$ac_file" : 'X\(//\)[^/]' \| \
6162
X"$ac_file" : 'X\(//\)$' \| \
6163
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6164
$as_echo X"$ac_file" |
6165
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6182
as_dir="$ac_dir"; as_fn_mkdir_p
6186
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6188
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6189
# A ".." for each directory in $ac_dir_suffix.
6190
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6191
case $ac_top_builddir_sub in
6192
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6193
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6196
ac_abs_top_builddir=$ac_pwd
6197
ac_abs_builddir=$ac_pwd$ac_dir_suffix
6198
# for backward compatibility:
6199
ac_top_builddir=$ac_top_build_prefix
6202
.) # We are building in place.
6204
ac_top_srcdir=$ac_top_builddir_sub
6205
ac_abs_top_srcdir=$ac_pwd ;;
6206
[\\/]* | ?:[\\/]* ) # Absolute name.
6207
ac_srcdir=$srcdir$ac_dir_suffix;
6208
ac_top_srcdir=$srcdir
6209
ac_abs_top_srcdir=$srcdir ;;
6211
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6212
ac_top_srcdir=$ac_top_build_prefix$srcdir
6213
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6215
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6225
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6226
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6230
[\\/$]* | ?:[\\/]* ) ;;
6231
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6235
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6236
# If the template does not know about datarootdir, expand it.
6237
# FIXME: This hack should be removed a few years after 2.60.
6238
ac_datarootdir_hack=; ac_datarootdir_seen=
6249
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6250
*datarootdir*) ac_datarootdir_seen=yes;;
6251
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6252
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6253
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6255
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6256
ac_datarootdir_hack='
6257
s&@datadir@&$datadir&g
6258
s&@docdir@&$docdir&g
6259
s&@infodir@&$infodir&g
6260
s&@localedir@&$localedir&g
6261
s&@mandir@&$mandir&g
6262
s&\\\${datarootdir}&$datarootdir&g' ;;
6266
# Neutralize VPATH when `$srcdir' = `.'.
6267
# Shell code in configure.ac might set extrasub.
6268
# FIXME: do we really want to maintain this feature?
6269
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6270
ac_sed_extra="$ac_vpsub
6273
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6275
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6276
s|@configure_input@|$ac_sed_conf_input|;t t
6277
s&@top_builddir@&$ac_top_builddir_sub&;t t
6278
s&@top_build_prefix@&$ac_top_build_prefix&;t t
6279
s&@srcdir@&$ac_srcdir&;t t
6280
s&@abs_srcdir@&$ac_abs_srcdir&;t t
6281
s&@top_srcdir@&$ac_top_srcdir&;t t
6282
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6283
s&@builddir@&$ac_builddir&;t t
6284
s&@abs_builddir@&$ac_abs_builddir&;t t
6285
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6286
s&@INSTALL@&$ac_INSTALL&;t t
6287
s&@MKDIR_P@&$ac_MKDIR_P&;t t
6288
$ac_datarootdir_hack
6290
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6291
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6293
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6294
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6295
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6296
"$ac_tmp/out"`; test -z "$ac_out"; } &&
6297
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6298
which seems to be undefined. Please make sure it is defined" >&5
6299
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6300
which seems to be undefined. Please make sure it is defined" >&2;}
6302
rm -f "$ac_tmp/stdin"
6304
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6305
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6307
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6313
if test x"$ac_file" != x-; then
6315
$as_echo "/* $configure_input */" \
6316
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6317
} >"$ac_tmp/config.h" \
6318
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6319
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6320
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6321
$as_echo "$as_me: $ac_file is unchanged" >&6;}
6324
mv "$ac_tmp/config.h" "$ac_file" \
6325
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6328
$as_echo "/* $configure_input */" \
6329
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6330
|| as_fn_error $? "could not create -" "$LINENO" 5
6332
# Compute "$ac_file"'s index in $config_headers.
6335
for _am_header in $config_headers :; do
6337
$_am_arg | $_am_arg:* )
6340
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
6343
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6344
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6345
X"$_am_arg" : 'X\(//\)[^/]' \| \
6346
X"$_am_arg" : 'X\(//\)$' \| \
6347
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6348
$as_echo X"$_am_arg" |
6349
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6365
s/.*/./; q'`/stamp-h$_am_stamp_count
6368
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6369
$as_echo "$as_me: executing $ac_file commands" >&6;}
6374
case $ac_file$ac_mode in
6375
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6376
# Autoconf 2.62 quotes --file arguments for eval, but not when files
6377
# are listed without --file. Let's play safe and only enable the eval
6378
# if we detect the quoting.
6379
case $CONFIG_FILES in
6380
*\'*) eval set x "$CONFIG_FILES" ;;
6381
*) set x $CONFIG_FILES ;;
6386
# Strip MF so we end up with the name of the file.
6387
mf=`echo "$mf" | sed -e 's/:.*$//'`
6388
# Check whether this is an Automake generated Makefile or not.
6389
# We used to match only the files named `Makefile.in', but
6390
# some people rename them; so instead we look at the file content.
6391
# Grep'ing the first line is not enough: some people post-process
6392
# each Makefile.in and add a new line on top of each file to say so.
6393
# Grep'ing the whole file is not good either: AIX grep has a line
6394
# limit of 2048, but all sed's we know have understand at least 4000.
6395
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6396
dirpart=`$as_dirname -- "$mf" ||
6397
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6398
X"$mf" : 'X\(//\)[^/]' \| \
6399
X"$mf" : 'X\(//\)$' \| \
6400
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6402
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6422
# Extract the definition of DEPDIR, am__include, and am__quote
6423
# from the Makefile without running `make'.
6424
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6425
test -z "$DEPDIR" && continue
6426
am__include=`sed -n 's/^am__include = //p' < "$mf"`
6427
test -z "am__include" && continue
6428
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6429
# When using ansi2knr, U may be empty or an underscore; expand it
6430
U=`sed -n 's/^U = //p' < "$mf"`
6431
# Find all dependency output files, they are included files with
6432
# $(DEPDIR) in their names. We invoke sed twice because it is the
6433
# simplest approach to changing $(DEPDIR) to its actual value in the
6435
for file in `sed -n "
6436
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6437
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6438
# Make sure the directory exists.
6439
test -f "$dirpart/$file" && continue
6440
fdir=`$as_dirname -- "$file" ||
6441
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6442
X"$file" : 'X\(//\)[^/]' \| \
6443
X"$file" : 'X\(//\)$' \| \
6444
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6446
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6463
as_dir=$dirpart/$fdir; as_fn_mkdir_p
6464
# echo "creating $dirpart/$file"
6465
echo '# dummy' > "$dirpart/$file"
6478
ac_clean_files=$ac_clean_files_save
6480
test $ac_write_fail = 0 ||
6481
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6484
# configure is writing to config.log, and then calls config.status.
6485
# config.status does its own redirection, appending to config.log.
6486
# Unfortunately, on DOS this fails, as config.log is still kept open
6487
# by configure, so config.status won't be able to write to it; its
6488
# output is simply discarded. So we exec the FD to /dev/null,
6489
# effectively closing config.log, so it can be properly (re)opened and
6490
# appended to by config.status. When coming back to configure, we
6491
# need to make the FD available again.
6492
if test "$no_create" != yes; then
6494
ac_config_status_args=
6495
test "$silent" = yes &&
6496
ac_config_status_args="$ac_config_status_args --quiet"
6498
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6500
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
6501
# would make configure fail if this is the last instruction.
6502
$ac_cs_success || as_fn_exit 1
6504
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6505
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6506
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6510
if test "x$SETCAP" = "xno"; then
6511
{ $as_echo "$as_me:${as_lineno-$LINENO}:
6516
The setcap binary was not found. This means the tools to set the
6517
privilege for the lxc commands are not available, that's ok, but you
6518
will need to run these commands as root or install libcap-2.
6526
The setcap binary was not found. This means the tools to set the
6527
privilege for the lxc commands are not available, that's ok, but you
6528
will need to run these commands as root or install libcap-2.
6534
{ $as_echo "$as_me:${as_lineno-$LINENO}:
6539
If you wish to have a non root user to use the lxc tools,
6540
you can add the needed capabilities to the tools by invoking
6541
the 'lxc-setcap' script. To remove the capabilities, use
6549
If you wish to have a non root user to use the lxc tools,
6550
you can add the needed capabilities to the tools by invoking
6551
the 'lxc-setcap' script. To remove the capabilities, use