Merge lp:~ubuntu-branches/ubuntu/oneiric/lxc/oneiric-201108112013 into lp:ubuntu/oneiric/lxc

Proposed by Ubuntu Package Importer
Status: Rejected
Rejected by: Martin Pitt
Proposed branch: lp:~ubuntu-branches/ubuntu/oneiric/lxc/oneiric-201108112013
Merge into: lp:ubuntu/oneiric/lxc
Diff against target: 11197 lines (+11072/-0) (has conflicts)
18 files modified
.pc/.quilt_patches (+1/-0)
.pc/.quilt_series (+1/-0)
.pc/0015-monitor-support-quit.patch/src/lxc/arguments.h (+89/-0)
.pc/0015-monitor-support-quit.patch/src/lxc/lxc_monitor.c (+109/-0)
.pc/01-libdir.patch/configure (+6620/-0)
.pc/01-libdir.patch/configure.ac (+190/-0)
.pc/01-libdir.patch/src/lxc/Makefile.am (+134/-0)
.pc/01-libdir.patch/src/lxc/Makefile.in (+1345/-0)
.pc/02-distclean.patch/config/Makefile.am (+2/-0)
.pc/02-distclean.patch/config/Makefile.in (+343/-0)
.pc/03-module-init-tools.patch/templates/lxc-debian.in (+319/-0)
.pc/04-configuration-path.patch/src/lxc/lxc-create.in (+186/-0)
.pc/06-debian.patch/templates/lxc-debian.in (+320/-0)
.pc/07-debian2.patch/templates/lxc-debian.in (+332/-0)
.pc/applied-patches (+7/-0)
src/lxc/lxc-clone.in (+208/-0)
templates/lxc-opensuse.in (+368/-0)
templates/lxc-ubuntu.in (+498/-0)
Conflict adding file .pc/0015-monitor-support-quit.patch.  Moved existing file to .pc/0015-monitor-support-quit.patch.moved.
Conflict adding file .pc/01-libdir.patch.  Moved existing file to .pc/01-libdir.patch.moved.
Conflict adding file .pc/02-distclean.patch.  Moved existing file to .pc/02-distclean.patch.moved.
Conflict adding file .pc/03-module-init-tools.patch.  Moved existing file to .pc/03-module-init-tools.patch.moved.
Conflict adding file .pc/04-configuration-path.patch.  Moved existing file to .pc/04-configuration-path.patch.moved.
Conflict adding file .pc/06-debian.patch.  Moved existing file to .pc/06-debian.patch.moved.
Conflict adding file .pc/07-debian2.patch.  Moved existing file to .pc/07-debian2.patch.moved.
Conflict adding file .pc/applied-patches.  Moved existing file to .pc/applied-patches.moved.
Conflict adding file src/lxc/lxc-clone.in.  Moved existing file to src/lxc/lxc-clone.in.moved.
Conflict adding file templates/lxc-opensuse.in.  Moved existing file to templates/lxc-opensuse.in.moved.
Conflict adding file templates/lxc-ubuntu.in.  Moved existing file to templates/lxc-ubuntu.in.moved.
To merge this branch: bzr merge lp:~ubuntu-branches/ubuntu/oneiric/lxc/oneiric-201108112013
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Disapprove
Ubuntu branches Pending
Review via email: mp+73921@code.launchpad.net

Description of the change

The package importer has detected a possible inconsistency between the package history in the archve and the history in bzr. As the archive is authoritative the importer has made lp:ubuntu/oneiric/lxc reflect what is in the archive and the old bzr branch has been pushed to lp:~ubuntu-branches/ubuntu/oneiric/lxc/oneiric-201108112013. This merge proposal was created so that an Ubuntu developer can review the situations and perform a merge/upload if necessary. There are three typical cases where this can happen.
  1. Where someone pushes a change to bzr and someone else uploads the package without that change. This is the reason that this check is done by the importer. If this appears to be the case then a merge/upload should be done if the changes that were in bzr are still desirable.
  2. The importer incorrectly detected the above situation when someone made a change in bzr and then uploaded it.
  3. The importer incorrectly detected the above situation when someone just uploaded a package and didn't touch bzr.

If this case doesn't appear to be the first situation then set the status of the merge proposal to "Rejected" and help avoid the problem in future by filing a bug at https://bugs.launchpad.net/udd linking to this merge proposal.

(this is an automatically generated message)

To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

tradition format 3 (quilt) conflict

review: Disapprove

Unmerged revisions

36. By Stéphane Graber

Remove files that shouldn't exist anymore

35. By Stéphane Graber

Remove all patches that aren't applied anymore

34. By Stéphane Graber

Merge branch from Serge Hallyn

33. By Stéphane Graber

Update changelog

32. By Stéphane Graber

Re-apply all patches

31. By Stéphane Graber

Merge 0.7.5

30. By Stéphane Graber

Unapply all patches

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file '.pc/.quilt_patches'
--- .pc/.quilt_patches 1970-01-01 00:00:00 +0000
+++ .pc/.quilt_patches 2011-09-02 23:10:35 +0000
@@ -0,0 +1,1 @@
1debian/patches
02
=== added file '.pc/.quilt_series'
--- .pc/.quilt_series 1970-01-01 00:00:00 +0000
+++ .pc/.quilt_series 2011-09-02 23:10:35 +0000
@@ -0,0 +1,1 @@
1series
02
=== added directory '.pc/0015-monitor-support-quit.patch'
=== renamed directory '.pc/0015-monitor-support-quit.patch' => '.pc/0015-monitor-support-quit.patch.moved'
=== added file '.pc/0015-monitor-support-quit.patch/.timestamp'
=== added directory '.pc/0015-monitor-support-quit.patch/src'
=== added directory '.pc/0015-monitor-support-quit.patch/src/lxc'
=== added file '.pc/0015-monitor-support-quit.patch/src/lxc/arguments.h'
--- .pc/0015-monitor-support-quit.patch/src/lxc/arguments.h 1970-01-01 00:00:00 +0000
+++ .pc/0015-monitor-support-quit.patch/src/lxc/arguments.h 2011-09-02 23:10:35 +0000
@@ -0,0 +1,89 @@
1/*
2 * lxc: linux Container library
3 *
4 * (C) Copyright IBM Corp. 2007, 2008
5 *
6 * Authors:
7 * Daniel Lezcano <dlezcano at fr.ibm.com>
8 * Michel Normand <normand at fr.ibm.com>
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24#ifndef __arguments_h
25#define __arguments_h
26
27#include <getopt.h>
28
29struct lxc_arguments;
30
31typedef int (*lxc_arguments_parser_t) (struct lxc_arguments *, int, char*);
32typedef int (*lxc_arguments_checker_t) (const struct lxc_arguments *);
33
34struct lxc_arguments {
35 const char *help;
36 const char *progname;
37 const struct option* options;
38 lxc_arguments_parser_t parser;
39 lxc_arguments_checker_t checker;
40
41 const char *name;
42 char *log_file;
43 char *log_priority;
44 int quiet;
45 int daemonize;
46 const char *rcfile;
47 const char *console;
48
49 /* for lxc-checkpoint/restart */
50 const char *statefile;
51 int statefd;
52 int flags;
53
54 /* for lxc-console */
55 int ttynum;
56 char escape;
57
58 /* for lxc-wait */
59 char *states;
60
61 /* remaining arguments */
62 char *const *argv;
63 int argc;
64};
65
66#define LXC_COMMON_OPTIONS \
67 {"name", required_argument, 0, 'n'}, \
68 {"help", no_argument, 0, 'h'}, \
69 {"usage", no_argument, 0, OPT_USAGE}, \
70 {"quiet", no_argument, 0, 'q'}, \
71 {"logfile", required_argument, 0, 'o'}, \
72 {"logpriority", required_argument, 0, 'l'}, \
73 {0, 0, 0, 0}
74
75/* option keys for long only options */
76#define OPT_USAGE 0x1000
77
78extern int lxc_arguments_parse(struct lxc_arguments *args,
79 int argc, char *const argv[]);
80
81extern char **lxc_arguments_dup(const char *file, struct lxc_arguments *args);
82extern int lxc_arguments_str_to_int(struct lxc_arguments *args, const char *str);
83
84extern const char *lxc_strerror(int errnum);
85
86#define lxc_error(arg, fmt, args...) if (!(arg)->quiet) \
87 fprintf(stderr, "%s: " fmt "\n", (arg)->progname, ## args)
88
89#endif
090
=== added file '.pc/0015-monitor-support-quit.patch/src/lxc/lxc_monitor.c'
--- .pc/0015-monitor-support-quit.patch/src/lxc/lxc_monitor.c 1970-01-01 00:00:00 +0000
+++ .pc/0015-monitor-support-quit.patch/src/lxc/lxc_monitor.c 2011-09-02 23:10:35 +0000
@@ -0,0 +1,109 @@
1/*
2 * lxc: linux Container library
3 *
4 * (C) Copyright IBM Corp. 2007, 2008
5 *
6 * Authors:
7 * Daniel Lezcano <dlezcano at fr.ibm.com>
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */
23#include <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26#include <libgen.h>
27#include <unistd.h>
28#include <regex.h>
29#include <sys/types.h>
30
31#include <lxc/lxc.h>
32#include <lxc/log.h>
33#include <lxc/monitor.h>
34#include "arguments.h"
35
36lxc_log_define(lxc_monitor_ui, lxc_monitor);
37
38static const struct option my_longopts[] = {
39 LXC_COMMON_OPTIONS
40};
41
42static struct lxc_arguments my_args = {
43 .progname = "lxc-monitor",
44 .help = "\
45--name=NAME\n\
46\n\
47lxc-monitor monitors the state of the NAME container\n\
48\n\
49Options :\n\
50 -n, --name=NAME NAME for name of the container\n\
51 NAME may be a regular expression",
52 .options = my_longopts,
53 .parser = NULL,
54 .checker = NULL,
55};
56
57int main(int argc, char *argv[])
58{
59 char *regexp;
60 struct lxc_msg msg;
61 regex_t preg;
62 int fd;
63
64 if (lxc_arguments_parse(&my_args, argc, argv))
65 return -1;
66
67 if (lxc_log_init(my_args.log_file, my_args.log_priority,
68 my_args.progname, my_args.quiet))
69 return -1;
70
71 regexp = malloc(strlen(my_args.name) + 3);
72 if (!regexp) {
73 ERROR("failed to allocate memory");
74 return -1;
75 }
76 sprintf(regexp, "^%s$", my_args.name);
77
78 if (regcomp(&preg, regexp, REG_NOSUB|REG_EXTENDED)) {
79 ERROR("failed to compile the regex '%s'", my_args.name);
80 return -1;
81 }
82
83 fd = lxc_monitor_open();
84 if (fd < 0)
85 return -1;
86
87 for (;;) {
88 if (lxc_monitor_read(fd, &msg) < 0)
89 return -1;
90
91 if (regexec(&preg, msg.name, 0, NULL, 0))
92 continue;
93
94 switch (msg.type) {
95 case lxc_msg_state:
96 printf("'%s' changed state to [%s]\n",
97 msg.name, lxc_state2str(msg.value));
98 break;
99 default:
100 /* ignore garbage */
101 break;
102 }
103 }
104
105 regfree(&preg);
106
107 return 0;
108}
109
0110
=== added directory '.pc/01-libdir.patch'
=== renamed directory '.pc/01-libdir.patch' => '.pc/01-libdir.patch.moved'
=== added file '.pc/01-libdir.patch/.timestamp'
=== added file '.pc/01-libdir.patch/configure'
--- .pc/01-libdir.patch/configure 1970-01-01 00:00:00 +0000
+++ .pc/01-libdir.patch/configure 2011-09-02 23:10:35 +0000
@@ -0,0 +1,6620 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67 for lxc 0.7.5.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
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## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
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+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
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'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ----------------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with STATUS, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378else
379 as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384else
385 as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486else
487 as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
531
532# Name of the host.
533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
548
549# Identity of this package.
550PACKAGE_NAME='lxc'
551PACKAGE_TARNAME='lxc'
552PACKAGE_VERSION='0.7.5'
553PACKAGE_STRING='lxc 0.7.5'
554PACKAGE_BUGREPORT=''
555PACKAGE_URL=''
556
557ac_unique_file="configure.ac"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
561#ifdef HAVE_SYS_TYPES_H
562# include <sys/types.h>
563#endif
564#ifdef HAVE_SYS_STAT_H
565# include <sys/stat.h>
566#endif
567#ifdef STDC_HEADERS
568# include <stdlib.h>
569# include <stddef.h>
570#else
571# ifdef HAVE_STDLIB_H
572# include <stdlib.h>
573# endif
574#endif
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
581#ifdef HAVE_STRINGS_H
582# include <strings.h>
583#endif
584#ifdef HAVE_INTTYPES_H
585# include <inttypes.h>
586#endif
587#ifdef HAVE_STDINT_H
588# include <stdint.h>
589#endif
590#ifdef HAVE_UNISTD_H
591# include <unistd.h>
592#endif"
593
594ac_subst_vars='am__EXEEXT_FALSE
595am__EXEEXT_TRUE
596LTLIBOBJS
597LIBOBJS
598LINUX_SRCARCH
599LINUX_DIR
600CAP_LIBS
601LXCTEMPLATEDIR
602LXCINITDIR
603LXCROOTFSMOUNT
604LXCPATH
605LXC_GENERATE_DATE
606DOCDIR
607LOCALSTATEDIR
608DATADIR
609SYSCONFDIR
610INCLUDEDIR
611BINDIR
612LIBDIR
613PREFIX
614ENABLE_EXAMPLES_FALSE
615ENABLE_EXAMPLES_TRUE
616ENABLE_DOCBOOK_FALSE
617ENABLE_DOCBOOK_TRUE
618have_docbook
619SETCAP
620EGREP
621GREP
622CPP
623am__fastdepCC_FALSE
624am__fastdepCC_TRUE
625CCDEPMODE
626AMDEPBACKSLASH
627AMDEP_FALSE
628AMDEP_TRUE
629am__quote
630am__include
631DEPDIR
632OBJEXT
633EXEEXT
634ac_ct_CC
635CPPFLAGS
636LDFLAGS
637CFLAGS
638CC
639host_os
640host_vendor
641host_cpu
642host
643build_os
644build_vendor
645build_cpu
646build
647am__untar
648am__tar
649AMTAR
650am__leading_dot
651SET_MAKE
652AWK
653mkdir_p
654MKDIR_P
655INSTALL_STRIP_PROGRAM
656STRIP
657install_sh
658MAKEINFO
659AUTOHEADER
660AUTOMAKE
661AUTOCONF
662ACLOCAL
663VERSION
664PACKAGE
665CYGPATH_W
666am__isrc
667INSTALL_DATA
668INSTALL_SCRIPT
669INSTALL_PROGRAM
670target_alias
671host_alias
672build_alias
673LIBS
674ECHO_T
675ECHO_N
676ECHO_C
677DEFS
678mandir
679localedir
680libdir
681psdir
682pdfdir
683dvidir
684htmldir
685infodir
686docdir
687oldincludedir
688includedir
689localstatedir
690sharedstatedir
691sysconfdir
692datadir
693datarootdir
694libexecdir
695sbindir
696bindir
697program_transform_name
698prefix
699exec_prefix
700PACKAGE_URL
701PACKAGE_BUGREPORT
702PACKAGE_STRING
703PACKAGE_VERSION
704PACKAGE_TARNAME
705PACKAGE_NAME
706PATH_SEPARATOR
707SHELL'
708ac_subst_files=''
709ac_user_opts='
710enable_option_checking
711enable_dependency_tracking
712enable_doc
713enable_examples
714with_config_path
715with_rootfs_path
716with_linuxdir
717'
718 ac_precious_vars='build_alias
719host_alias
720target_alias
721CC
722CFLAGS
723LDFLAGS
724LIBS
725CPPFLAGS
726CPP'
727
728
729# Initialize some variables set by options.
730ac_init_help=
731ac_init_version=false
732ac_unrecognized_opts=
733ac_unrecognized_sep=
734# The variables have the same names as the options, with
735# dashes changed to underlines.
736cache_file=/dev/null
737exec_prefix=NONE
738no_create=
739no_recursion=
740prefix=NONE
741program_prefix=NONE
742program_suffix=NONE
743program_transform_name=s,x,x,
744silent=
745site=
746srcdir=
747verbose=
748x_includes=NONE
749x_libraries=NONE
750
751# Installation directory options.
752# These are left unexpanded so users can "make install exec_prefix=/foo"
753# and all the variables that are supposed to be based on exec_prefix
754# by default will actually change.
755# Use braces instead of parens because sh, perl, etc. also accept them.
756# (The list follows the same order as the GNU Coding Standards.)
757bindir='${exec_prefix}/bin'
758sbindir='${exec_prefix}/sbin'
759libexecdir='${exec_prefix}/libexec'
760datarootdir='${prefix}/share'
761datadir='${datarootdir}'
762sysconfdir='${prefix}/etc'
763sharedstatedir='${prefix}/com'
764localstatedir='${prefix}/var'
765includedir='${prefix}/include'
766oldincludedir='/usr/include'
767docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
768infodir='${datarootdir}/info'
769htmldir='${docdir}'
770dvidir='${docdir}'
771pdfdir='${docdir}'
772psdir='${docdir}'
773libdir='${exec_prefix}/lib'
774localedir='${datarootdir}/locale'
775mandir='${datarootdir}/man'
776
777ac_prev=
778ac_dashdash=
779for ac_option
780do
781 # If the previous option needs an argument, assign it.
782 if test -n "$ac_prev"; then
783 eval $ac_prev=\$ac_option
784 ac_prev=
785 continue
786 fi
787
788 case $ac_option in
789 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790 *=) ac_optarg= ;;
791 *) ac_optarg=yes ;;
792 esac
793
794 # Accept the important Cygnus configure options, so we can diagnose typos.
795
796 case $ac_dashdash$ac_option in
797 --)
798 ac_dashdash=yes ;;
799
800 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 ac_prev=bindir ;;
802 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803 bindir=$ac_optarg ;;
804
805 -build | --build | --buil | --bui | --bu)
806 ac_prev=build_alias ;;
807 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
808 build_alias=$ac_optarg ;;
809
810 -cache-file | --cache-file | --cache-fil | --cache-fi \
811 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
812 ac_prev=cache_file ;;
813 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
814 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
815 cache_file=$ac_optarg ;;
816
817 --config-cache | -C)
818 cache_file=config.cache ;;
819
820 -datadir | --datadir | --datadi | --datad)
821 ac_prev=datadir ;;
822 -datadir=* | --datadir=* | --datadi=* | --datad=*)
823 datadir=$ac_optarg ;;
824
825 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
826 | --dataroo | --dataro | --datar)
827 ac_prev=datarootdir ;;
828 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
829 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
830 datarootdir=$ac_optarg ;;
831
832 -disable-* | --disable-*)
833 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836 as_fn_error $? "invalid feature name: $ac_useropt"
837 ac_useropt_orig=$ac_useropt
838 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839 case $ac_user_opts in
840 *"
841"enable_$ac_useropt"
842"*) ;;
843 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
844 ac_unrecognized_sep=', ';;
845 esac
846 eval enable_$ac_useropt=no ;;
847
848 -docdir | --docdir | --docdi | --doc | --do)
849 ac_prev=docdir ;;
850 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
851 docdir=$ac_optarg ;;
852
853 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
854 ac_prev=dvidir ;;
855 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
856 dvidir=$ac_optarg ;;
857
858 -enable-* | --enable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error $? "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
866 *"
867"enable_$ac_useropt"
868"*) ;;
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
871 esac
872 eval enable_$ac_useropt=\$ac_optarg ;;
873
874 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
875 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
876 | --exec | --exe | --ex)
877 ac_prev=exec_prefix ;;
878 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
879 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
880 | --exec=* | --exe=* | --ex=*)
881 exec_prefix=$ac_optarg ;;
882
883 -gas | --gas | --ga | --g)
884 # Obsolete; use --with-gas.
885 with_gas=yes ;;
886
887 -help | --help | --hel | --he | -h)
888 ac_init_help=long ;;
889 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
890 ac_init_help=recursive ;;
891 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
892 ac_init_help=short ;;
893
894 -host | --host | --hos | --ho)
895 ac_prev=host_alias ;;
896 -host=* | --host=* | --hos=* | --ho=*)
897 host_alias=$ac_optarg ;;
898
899 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
900 ac_prev=htmldir ;;
901 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
902 | --ht=*)
903 htmldir=$ac_optarg ;;
904
905 -includedir | --includedir | --includedi | --included | --include \
906 | --includ | --inclu | --incl | --inc)
907 ac_prev=includedir ;;
908 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
909 | --includ=* | --inclu=* | --incl=* | --inc=*)
910 includedir=$ac_optarg ;;
911
912 -infodir | --infodir | --infodi | --infod | --info | --inf)
913 ac_prev=infodir ;;
914 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
915 infodir=$ac_optarg ;;
916
917 -libdir | --libdir | --libdi | --libd)
918 ac_prev=libdir ;;
919 -libdir=* | --libdir=* | --libdi=* | --libd=*)
920 libdir=$ac_optarg ;;
921
922 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
923 | --libexe | --libex | --libe)
924 ac_prev=libexecdir ;;
925 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
926 | --libexe=* | --libex=* | --libe=*)
927 libexecdir=$ac_optarg ;;
928
929 -localedir | --localedir | --localedi | --localed | --locale)
930 ac_prev=localedir ;;
931 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
932 localedir=$ac_optarg ;;
933
934 -localstatedir | --localstatedir | --localstatedi | --localstated \
935 | --localstate | --localstat | --localsta | --localst | --locals)
936 ac_prev=localstatedir ;;
937 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
938 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
939 localstatedir=$ac_optarg ;;
940
941 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
942 ac_prev=mandir ;;
943 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
944 mandir=$ac_optarg ;;
945
946 -nfp | --nfp | --nf)
947 # Obsolete; use --without-fp.
948 with_fp=no ;;
949
950 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
951 | --no-cr | --no-c | -n)
952 no_create=yes ;;
953
954 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
955 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
956 no_recursion=yes ;;
957
958 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
959 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
960 | --oldin | --oldi | --old | --ol | --o)
961 ac_prev=oldincludedir ;;
962 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
963 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
964 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
965 oldincludedir=$ac_optarg ;;
966
967 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
968 ac_prev=prefix ;;
969 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
970 prefix=$ac_optarg ;;
971
972 -program-prefix | --program-prefix | --program-prefi | --program-pref \
973 | --program-pre | --program-pr | --program-p)
974 ac_prev=program_prefix ;;
975 -program-prefix=* | --program-prefix=* | --program-prefi=* \
976 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
977 program_prefix=$ac_optarg ;;
978
979 -program-suffix | --program-suffix | --program-suffi | --program-suff \
980 | --program-suf | --program-su | --program-s)
981 ac_prev=program_suffix ;;
982 -program-suffix=* | --program-suffix=* | --program-suffi=* \
983 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
984 program_suffix=$ac_optarg ;;
985
986 -program-transform-name | --program-transform-name \
987 | --program-transform-nam | --program-transform-na \
988 | --program-transform-n | --program-transform- \
989 | --program-transform | --program-transfor \
990 | --program-transfo | --program-transf \
991 | --program-trans | --program-tran \
992 | --progr-tra | --program-tr | --program-t)
993 ac_prev=program_transform_name ;;
994 -program-transform-name=* | --program-transform-name=* \
995 | --program-transform-nam=* | --program-transform-na=* \
996 | --program-transform-n=* | --program-transform-=* \
997 | --program-transform=* | --program-transfor=* \
998 | --program-transfo=* | --program-transf=* \
999 | --program-trans=* | --program-tran=* \
1000 | --progr-tra=* | --program-tr=* | --program-t=*)
1001 program_transform_name=$ac_optarg ;;
1002
1003 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1004 ac_prev=pdfdir ;;
1005 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1006 pdfdir=$ac_optarg ;;
1007
1008 -psdir | --psdir | --psdi | --psd | --ps)
1009 ac_prev=psdir ;;
1010 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1011 psdir=$ac_optarg ;;
1012
1013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1015 silent=yes ;;
1016
1017 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1018 ac_prev=sbindir ;;
1019 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1020 | --sbi=* | --sb=*)
1021 sbindir=$ac_optarg ;;
1022
1023 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1024 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1025 | --sharedst | --shareds | --shared | --share | --shar \
1026 | --sha | --sh)
1027 ac_prev=sharedstatedir ;;
1028 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1029 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1030 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1031 | --sha=* | --sh=*)
1032 sharedstatedir=$ac_optarg ;;
1033
1034 -site | --site | --sit)
1035 ac_prev=site ;;
1036 -site=* | --site=* | --sit=*)
1037 site=$ac_optarg ;;
1038
1039 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1040 ac_prev=srcdir ;;
1041 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1042 srcdir=$ac_optarg ;;
1043
1044 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1045 | --syscon | --sysco | --sysc | --sys | --sy)
1046 ac_prev=sysconfdir ;;
1047 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1048 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1049 sysconfdir=$ac_optarg ;;
1050
1051 -target | --target | --targe | --targ | --tar | --ta | --t)
1052 ac_prev=target_alias ;;
1053 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1054 target_alias=$ac_optarg ;;
1055
1056 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1057 verbose=yes ;;
1058
1059 -version | --version | --versio | --versi | --vers | -V)
1060 ac_init_version=: ;;
1061
1062 -with-* | --with-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid package name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1070 *"
1071"with_$ac_useropt"
1072"*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval with_$ac_useropt=\$ac_optarg ;;
1077
1078 -without-* | --without-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid package name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1086 *"
1087"with_$ac_useropt"
1088"*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval with_$ac_useropt=no ;;
1093
1094 --x)
1095 # Obsolete; use --with-x.
1096 with_x=yes ;;
1097
1098 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1099 | --x-incl | --x-inc | --x-in | --x-i)
1100 ac_prev=x_includes ;;
1101 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1102 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1103 x_includes=$ac_optarg ;;
1104
1105 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1106 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1107 ac_prev=x_libraries ;;
1108 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1109 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1110 x_libraries=$ac_optarg ;;
1111
1112 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1113Try \`$0 --help' for more information"
1114 ;;
1115
1116 *=*)
1117 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 case $ac_envvar in #(
1120 '' | [0-9]* | *[!_$as_cr_alnum]* )
1121 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1122 esac
1123 eval $ac_envvar=\$ac_optarg
1124 export $ac_envvar ;;
1125
1126 *)
1127 # FIXME: should be removed in autoconf 3.0.
1128 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1129 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1131 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1132 ;;
1133
1134 esac
1135done
1136
1137if test -n "$ac_prev"; then
1138 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1139 as_fn_error $? "missing argument to $ac_option"
1140fi
1141
1142if test -n "$ac_unrecognized_opts"; then
1143 case $enable_option_checking in
1144 no) ;;
1145 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1146 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1147 esac
1148fi
1149
1150# Check all directory arguments for consistency.
1151for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1152 datadir sysconfdir sharedstatedir localstatedir includedir \
1153 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1154 libdir localedir mandir
1155do
1156 eval ac_val=\$$ac_var
1157 # Remove trailing slashes.
1158 case $ac_val in
1159 */ )
1160 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1161 eval $ac_var=\$ac_val;;
1162 esac
1163 # Be sure to have absolute directory names.
1164 case $ac_val in
1165 [\\/$]* | ?:[\\/]* ) continue;;
1166 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1167 esac
1168 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1169done
1170
1171# There might be people who depend on the old broken behavior: `$host'
1172# used to hold the argument of --host etc.
1173# FIXME: To remove some day.
1174build=$build_alias
1175host=$host_alias
1176target=$target_alias
1177
1178# FIXME: To remove some day.
1179if test "x$host_alias" != x; then
1180 if test "x$build_alias" = x; then
1181 cross_compiling=maybe
1182 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1183 If a cross compiler is detected then cross compile mode will be used" >&2
1184 elif test "x$build_alias" != "x$host_alias"; then
1185 cross_compiling=yes
1186 fi
1187fi
1188
1189ac_tool_prefix=
1190test -n "$host_alias" && ac_tool_prefix=$host_alias-
1191
1192test "$silent" = yes && exec 6>/dev/null
1193
1194
1195ac_pwd=`pwd` && test -n "$ac_pwd" &&
1196ac_ls_di=`ls -di .` &&
1197ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1198 as_fn_error $? "working directory cannot be determined"
1199test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1200 as_fn_error $? "pwd does not report name of working directory"
1201
1202
1203# Find the source files, if location was not specified.
1204if test -z "$srcdir"; then
1205 ac_srcdir_defaulted=yes
1206 # Try the directory containing this script, then the parent directory.
1207 ac_confdir=`$as_dirname -- "$as_myself" ||
1208$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1209 X"$as_myself" : 'X\(//\)[^/]' \| \
1210 X"$as_myself" : 'X\(//\)$' \| \
1211 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1212$as_echo X"$as_myself" |
1213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1214 s//\1/
1215 q
1216 }
1217 /^X\(\/\/\)[^/].*/{
1218 s//\1/
1219 q
1220 }
1221 /^X\(\/\/\)$/{
1222 s//\1/
1223 q
1224 }
1225 /^X\(\/\).*/{
1226 s//\1/
1227 q
1228 }
1229 s/.*/./; q'`
1230 srcdir=$ac_confdir
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232 srcdir=..
1233 fi
1234else
1235 ac_srcdir_defaulted=no
1236fi
1237if test ! -r "$srcdir/$ac_unique_file"; then
1238 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1239 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1240fi
1241ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1242ac_abs_confdir=`(
1243 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1244 pwd)`
1245# When building in place, set srcdir=.
1246if test "$ac_abs_confdir" = "$ac_pwd"; then
1247 srcdir=.
1248fi
1249# Remove unnecessary trailing slashes from srcdir.
1250# Double slashes in file names in object file debugging info
1251# mess up M-x gdb in Emacs.
1252case $srcdir in
1253*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1254esac
1255for ac_var in $ac_precious_vars; do
1256 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1257 eval ac_env_${ac_var}_value=\$${ac_var}
1258 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1259 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1260done
1261
1262#
1263# Report the --help message.
1264#
1265if test "$ac_init_help" = "long"; then
1266 # Omit some internal or obsolete options to make the list less imposing.
1267 # This message is too long to be a string in the A/UX 3.1 sh.
1268 cat <<_ACEOF
1269\`configure' configures lxc 0.7.5 to adapt to many kinds of systems.
1270
1271Usage: $0 [OPTION]... [VAR=VALUE]...
1272
1273To assign environment variables (e.g., CC, CFLAGS...), specify them as
1274VAR=VALUE. See below for descriptions of some of the useful variables.
1275
1276Defaults for the options are specified in brackets.
1277
1278Configuration:
1279 -h, --help display this help and exit
1280 --help=short display options specific to this package
1281 --help=recursive display the short help of all the included packages
1282 -V, --version display version information and exit
1283 -q, --quiet, --silent do not print \`checking ...' messages
1284 --cache-file=FILE cache test results in FILE [disabled]
1285 -C, --config-cache alias for \`--cache-file=config.cache'
1286 -n, --no-create do not create output files
1287 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1288
1289Installation directories:
1290 --prefix=PREFIX install architecture-independent files in PREFIX
1291 [$ac_default_prefix]
1292 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1293 [PREFIX]
1294
1295By default, \`make install' will install all the files in
1296\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1297an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1298for instance \`--prefix=\$HOME'.
1299
1300For better control, use the options below.
1301
1302Fine tuning of the installation directories:
1303 --bindir=DIR user executables [EPREFIX/bin]
1304 --sbindir=DIR system admin executables [EPREFIX/sbin]
1305 --libexecdir=DIR program executables [EPREFIX/libexec]
1306 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1307 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1308 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1309 --libdir=DIR object code libraries [EPREFIX/lib]
1310 --includedir=DIR C header files [PREFIX/include]
1311 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1312 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1313 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1314 --infodir=DIR info documentation [DATAROOTDIR/info]
1315 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1316 --mandir=DIR man documentation [DATAROOTDIR/man]
1317 --docdir=DIR documentation root [DATAROOTDIR/doc/lxc]
1318 --htmldir=DIR html documentation [DOCDIR]
1319 --dvidir=DIR dvi documentation [DOCDIR]
1320 --pdfdir=DIR pdf documentation [DOCDIR]
1321 --psdir=DIR ps documentation [DOCDIR]
1322_ACEOF
1323
1324 cat <<\_ACEOF
1325
1326Program names:
1327 --program-prefix=PREFIX prepend PREFIX to installed program names
1328 --program-suffix=SUFFIX append SUFFIX to installed program names
1329 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1330
1331System types:
1332 --build=BUILD configure for building on BUILD [guessed]
1333 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1334_ACEOF
1335fi
1336
1337if test -n "$ac_init_help"; then
1338 case $ac_init_help in
1339 short | recursive ) echo "Configuration of lxc 0.7.5:";;
1340 esac
1341 cat <<\_ACEOF
1342
1343Optional Features:
1344 --disable-option-checking ignore unrecognized --enable/--with options
1345 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1346 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1347 --disable-dependency-tracking speeds up one-time build
1348 --enable-dependency-tracking do not reject slow dependency extractors
1349 --enable-doc make mans (require docbook2man installed)
1350 [default=auto]
1351 --disable-examples do not install configuration examples
1352
1353Optional Packages:
1354 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1355 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1356 --with-config-path=dir lxc configuration repository path
1357 --with-rootfs-path=dir lxc rootfs mount point
1358 --with-linuxdir=DIR specify path to Linux source directory
1359
1360Some influential environment variables:
1361 CC C compiler command
1362 CFLAGS C compiler flags
1363 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1364 nonstandard directory <lib dir>
1365 LIBS libraries to pass to the linker, e.g. -l<library>
1366 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1367 you have headers in a nonstandard directory <include dir>
1368 CPP C preprocessor
1369
1370Use these variables to override the choices made by `configure' or to help
1371it to find libraries and programs with nonstandard names/locations.
1372
1373Report bugs to the package provider.
1374_ACEOF
1375ac_status=$?
1376fi
1377
1378if test "$ac_init_help" = "recursive"; then
1379 # If there are subdirs, report their specific --help.
1380 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1381 test -d "$ac_dir" ||
1382 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1383 continue
1384 ac_builddir=.
1385
1386case "$ac_dir" in
1387.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388*)
1389 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1395 esac ;;
1396esac
1397ac_abs_top_builddir=$ac_pwd
1398ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399# for backward compatibility:
1400ac_top_builddir=$ac_top_build_prefix
1401
1402case $srcdir in
1403 .) # We are building in place.
1404 ac_srcdir=.
1405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
1408 ac_srcdir=$srcdir$ac_dir_suffix;
1409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1411 *) # Relative name.
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415esac
1416ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417
1418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1421 echo &&
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1424 echo &&
1425 $SHELL "$ac_srcdir/configure" --help=recursive
1426 else
1427 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 fi || ac_status=$?
1429 cd "$ac_pwd" || { ac_status=$?; break; }
1430 done
1431fi
1432
1433test -n "$ac_init_help" && exit $ac_status
1434if $ac_init_version; then
1435 cat <<\_ACEOF
1436lxc configure 0.7.5
1437generated by GNU Autoconf 2.67
1438
1439Copyright (C) 2010 Free Software Foundation, Inc.
1440This configure script is free software; the Free Software Foundation
1441gives unlimited permission to copy, distribute and modify it.
1442_ACEOF
1443 exit
1444fi
1445
1446## ------------------------ ##
1447## Autoconf initialization. ##
1448## ------------------------ ##
1449
1450# ac_fn_c_try_compile LINENO
1451# --------------------------
1452# Try to compile conftest.$ac_ext, and return whether this succeeded.
1453ac_fn_c_try_compile ()
1454{
1455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1456 rm -f conftest.$ac_objext
1457 if { { ac_try="$ac_compile"
1458case "(($ac_try" in
1459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1460 *) ac_try_echo=$ac_try;;
1461esac
1462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1463$as_echo "$ac_try_echo"; } >&5
1464 (eval "$ac_compile") 2>conftest.err
1465 ac_status=$?
1466 if test -s conftest.err; then
1467 grep -v '^ *+' conftest.err >conftest.er1
1468 cat conftest.er1 >&5
1469 mv -f conftest.er1 conftest.err
1470 fi
1471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1472 test $ac_status = 0; } && {
1473 test -z "$ac_c_werror_flag" ||
1474 test ! -s conftest.err
1475 } && test -s conftest.$ac_objext; then :
1476 ac_retval=0
1477else
1478 $as_echo "$as_me: failed program was:" >&5
1479sed 's/^/| /' conftest.$ac_ext >&5
1480
1481 ac_retval=1
1482fi
1483 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1484 as_fn_set_status $ac_retval
1485
1486} # ac_fn_c_try_compile
1487
1488# ac_fn_c_try_cpp LINENO
1489# ----------------------
1490# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1491ac_fn_c_try_cpp ()
1492{
1493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494 if { { ac_try="$ac_cpp conftest.$ac_ext"
1495case "(($ac_try" in
1496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497 *) ac_try_echo=$ac_try;;
1498esac
1499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500$as_echo "$ac_try_echo"; } >&5
1501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1502 ac_status=$?
1503 if test -s conftest.err; then
1504 grep -v '^ *+' conftest.err >conftest.er1
1505 cat conftest.er1 >&5
1506 mv -f conftest.er1 conftest.err
1507 fi
1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509 test $ac_status = 0; } > conftest.i && {
1510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1511 test ! -s conftest.err
1512 }; then :
1513 ac_retval=0
1514else
1515 $as_echo "$as_me: failed program was:" >&5
1516sed 's/^/| /' conftest.$ac_ext >&5
1517
1518 ac_retval=1
1519fi
1520 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1521 as_fn_set_status $ac_retval
1522
1523} # ac_fn_c_try_cpp
1524
1525# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1526# -------------------------------------------------------
1527# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1528# the include files in INCLUDES and setting the cache variable VAR
1529# accordingly.
1530ac_fn_c_check_header_mongrel ()
1531{
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 if eval "test \"\${$3+set}\"" = set; then :
1534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1535$as_echo_n "checking for $2... " >&6; }
1536if eval "test \"\${$3+set}\"" = set; then :
1537 $as_echo_n "(cached) " >&6
1538fi
1539eval ac_res=\$$3
1540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1541$as_echo "$ac_res" >&6; }
1542else
1543 # Is the header compilable?
1544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1545$as_echo_n "checking $2 usability... " >&6; }
1546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1547/* end confdefs.h. */
1548$4
1549#include <$2>
1550_ACEOF
1551if ac_fn_c_try_compile "$LINENO"; then :
1552 ac_header_compiler=yes
1553else
1554 ac_header_compiler=no
1555fi
1556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1558$as_echo "$ac_header_compiler" >&6; }
1559
1560# Is the header present?
1561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1562$as_echo_n "checking $2 presence... " >&6; }
1563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1564/* end confdefs.h. */
1565#include <$2>
1566_ACEOF
1567if ac_fn_c_try_cpp "$LINENO"; then :
1568 ac_header_preproc=yes
1569else
1570 ac_header_preproc=no
1571fi
1572rm -f conftest.err conftest.i conftest.$ac_ext
1573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1574$as_echo "$ac_header_preproc" >&6; }
1575
1576# So? What about this header?
1577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1578 yes:no: )
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1580$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1582$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1583 ;;
1584 no:yes:* )
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1586$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1588$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1590$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1592$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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;}
1595 ;;
1596esac
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1598$as_echo_n "checking for $2... " >&6; }
1599if eval "test \"\${$3+set}\"" = set; then :
1600 $as_echo_n "(cached) " >&6
1601else
1602 eval "$3=\$ac_header_compiler"
1603fi
1604eval ac_res=\$$3
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1606$as_echo "$ac_res" >&6; }
1607fi
1608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609
1610} # ac_fn_c_check_header_mongrel
1611
1612# ac_fn_c_try_run LINENO
1613# ----------------------
1614# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1615# that executables *can* be run.
1616ac_fn_c_try_run ()
1617{
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 if { { ac_try="$ac_link"
1620case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>&5
1627 ac_status=$?
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1630 { { case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_try") 2>&5
1637 ac_status=$?
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; }; }; then :
1640 ac_retval=0
1641else
1642 $as_echo "$as_me: program exited with status $ac_status" >&5
1643 $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=$ac_status
1647fi
1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 as_fn_set_status $ac_retval
1651
1652} # ac_fn_c_try_run
1653
1654# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655# -------------------------------------------------------
1656# Tests whether HEADER exists and can be compiled using the include files in
1657# INCLUDES, setting the cache variable VAR accordingly.
1658ac_fn_c_check_header_compile ()
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662$as_echo_n "checking for $2... " >&6; }
1663if eval "test \"\${$3+set}\"" = set; then :
1664 $as_echo_n "(cached) " >&6
1665else
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h. */
1668$4
1669#include <$2>
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"; then :
1672 eval "$3=yes"
1673else
1674 eval "$3=no"
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677fi
1678eval ac_res=\$$3
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680$as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682
1683} # ac_fn_c_check_header_compile
1684
1685# ac_fn_c_try_link LINENO
1686# -----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_link ()
1689{
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext conftest$ac_exeext
1692 if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1705 fi
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest$ac_exeext && {
1711 test "$cross_compiling" = yes ||
1712 $as_test_x conftest$ac_exeext
1713 }; then :
1714 ac_retval=0
1715else
1716 $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720fi
1721 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723 # interfere with the next link command; also delete a directory that is
1724 # left behind by Apple's compiler. We do this before executing the actions.
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_link
1730
1731# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1732# ---------------------------------------------
1733# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1734# accordingly.
1735ac_fn_c_check_decl ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 as_decl_name=`echo $2|sed 's/ *(.*//'`
1739 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1741$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1742if eval "test \"\${$3+set}\"" = set; then :
1743 $as_echo_n "(cached) " >&6
1744else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h. */
1747$4
1748int
1749main ()
1750{
1751#ifndef $as_decl_name
1752#ifdef __cplusplus
1753 (void) $as_decl_use;
1754#else
1755 (void) $as_decl_name;
1756#endif
1757#endif
1758
1759 ;
1760 return 0;
1761}
1762_ACEOF
1763if ac_fn_c_try_compile "$LINENO"; then :
1764 eval "$3=yes"
1765else
1766 eval "$3=no"
1767fi
1768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769fi
1770eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772$as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774
1775} # ac_fn_c_check_decl
1776cat >config.log <<_ACEOF
1777This file contains any messages produced by compilers while
1778running configure, to aid debugging if configure makes a mistake.
1779
1780It was created by lxc $as_me 0.7.5, which was
1781generated by GNU Autoconf 2.67. Invocation command line was
1782
1783 $ $0 $@
1784
1785_ACEOF
1786exec 5>>config.log
1787{
1788cat <<_ASUNAME
1789## --------- ##
1790## Platform. ##
1791## --------- ##
1792
1793hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1794uname -m = `(uname -m) 2>/dev/null || echo unknown`
1795uname -r = `(uname -r) 2>/dev/null || echo unknown`
1796uname -s = `(uname -s) 2>/dev/null || echo unknown`
1797uname -v = `(uname -v) 2>/dev/null || echo unknown`
1798
1799/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1800/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1801
1802/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1803/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1804/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1805/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1806/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1807/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1808/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1809
1810_ASUNAME
1811
1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813for as_dir in $PATH
1814do
1815 IFS=$as_save_IFS
1816 test -z "$as_dir" && as_dir=.
1817 $as_echo "PATH: $as_dir"
1818 done
1819IFS=$as_save_IFS
1820
1821} >&5
1822
1823cat >&5 <<_ACEOF
1824
1825
1826## ----------- ##
1827## Core tests. ##
1828## ----------- ##
1829
1830_ACEOF
1831
1832
1833# Keep a trace of the command line.
1834# Strip out --no-create and --no-recursion so they do not pile up.
1835# Strip out --silent because we don't want to record it for future runs.
1836# Also quote any args containing shell meta-characters.
1837# Make two passes to allow for proper duplicate-argument suppression.
1838ac_configure_args=
1839ac_configure_args0=
1840ac_configure_args1=
1841ac_must_keep_next=false
1842for ac_pass in 1 2
1843do
1844 for ac_arg
1845 do
1846 case $ac_arg in
1847 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1849 | -silent | --silent | --silen | --sile | --sil)
1850 continue ;;
1851 *\'*)
1852 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1853 esac
1854 case $ac_pass in
1855 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1856 2)
1857 as_fn_append ac_configure_args1 " '$ac_arg'"
1858 if test $ac_must_keep_next = true; then
1859 ac_must_keep_next=false # Got value, back to normal.
1860 else
1861 case $ac_arg in
1862 *=* | --config-cache | -C | -disable-* | --disable-* \
1863 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1864 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1865 | -with-* | --with-* | -without-* | --without-* | --x)
1866 case "$ac_configure_args0 " in
1867 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1868 esac
1869 ;;
1870 -* ) ac_must_keep_next=true ;;
1871 esac
1872 fi
1873 as_fn_append ac_configure_args " '$ac_arg'"
1874 ;;
1875 esac
1876 done
1877done
1878{ ac_configure_args0=; unset ac_configure_args0;}
1879{ ac_configure_args1=; unset ac_configure_args1;}
1880
1881# When interrupted or exit'd, cleanup temporary files, and complete
1882# config.log. We remove comments because anyway the quotes in there
1883# would cause problems or look ugly.
1884# WARNING: Use '\'' to represent an apostrophe within the trap.
1885# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1886trap 'exit_status=$?
1887 # Save into config.log some information that might help in debugging.
1888 {
1889 echo
1890
1891 $as_echo "## ---------------- ##
1892## Cache variables. ##
1893## ---------------- ##"
1894 echo
1895 # The following way of writing the cache mishandles newlines in values,
1896(
1897 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1898 eval ac_val=\$$ac_var
1899 case $ac_val in #(
1900 *${as_nl}*)
1901 case $ac_var in #(
1902 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1903$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1904 esac
1905 case $ac_var in #(
1906 _ | IFS | as_nl) ;; #(
1907 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1908 *) { eval $ac_var=; unset $ac_var;} ;;
1909 esac ;;
1910 esac
1911 done
1912 (set) 2>&1 |
1913 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1914 *${as_nl}ac_space=\ *)
1915 sed -n \
1916 "s/'\''/'\''\\\\'\'''\''/g;
1917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1918 ;; #(
1919 *)
1920 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1921 ;;
1922 esac |
1923 sort
1924)
1925 echo
1926
1927 $as_echo "## ----------------- ##
1928## Output variables. ##
1929## ----------------- ##"
1930 echo
1931 for ac_var in $ac_subst_vars
1932 do
1933 eval ac_val=\$$ac_var
1934 case $ac_val in
1935 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1936 esac
1937 $as_echo "$ac_var='\''$ac_val'\''"
1938 done | sort
1939 echo
1940
1941 if test -n "$ac_subst_files"; then
1942 $as_echo "## ------------------- ##
1943## File substitutions. ##
1944## ------------------- ##"
1945 echo
1946 for ac_var in $ac_subst_files
1947 do
1948 eval ac_val=\$$ac_var
1949 case $ac_val in
1950 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1951 esac
1952 $as_echo "$ac_var='\''$ac_val'\''"
1953 done | sort
1954 echo
1955 fi
1956
1957 if test -s confdefs.h; then
1958 $as_echo "## ----------- ##
1959## confdefs.h. ##
1960## ----------- ##"
1961 echo
1962 cat confdefs.h
1963 echo
1964 fi
1965 test "$ac_signal" != 0 &&
1966 $as_echo "$as_me: caught signal $ac_signal"
1967 $as_echo "$as_me: exit $exit_status"
1968 } >&5
1969 rm -f core *.core core.conftest.* &&
1970 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1971 exit $exit_status
1972' 0
1973for ac_signal in 1 2 13 15; do
1974 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1975done
1976ac_signal=0
1977
1978# confdefs.h avoids OS command line length limits that DEFS can exceed.
1979rm -f -r conftest* confdefs.h
1980
1981$as_echo "/* confdefs.h */" > confdefs.h
1982
1983# Predefined preprocessor variables.
1984
1985cat >>confdefs.h <<_ACEOF
1986#define PACKAGE_NAME "$PACKAGE_NAME"
1987_ACEOF
1988
1989cat >>confdefs.h <<_ACEOF
1990#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1991_ACEOF
1992
1993cat >>confdefs.h <<_ACEOF
1994#define PACKAGE_VERSION "$PACKAGE_VERSION"
1995_ACEOF
1996
1997cat >>confdefs.h <<_ACEOF
1998#define PACKAGE_STRING "$PACKAGE_STRING"
1999_ACEOF
2000
2001cat >>confdefs.h <<_ACEOF
2002#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2003_ACEOF
2004
2005cat >>confdefs.h <<_ACEOF
2006#define PACKAGE_URL "$PACKAGE_URL"
2007_ACEOF
2008
2009
2010# Let the site file select an alternate cache file if it wants to.
2011# Prefer an explicitly selected file to automatically selected ones.
2012ac_site_file1=NONE
2013ac_site_file2=NONE
2014if test -n "$CONFIG_SITE"; then
2015 # We do not want a PATH search for config.site.
2016 case $CONFIG_SITE in #((
2017 -*) ac_site_file1=./$CONFIG_SITE;;
2018 */*) ac_site_file1=$CONFIG_SITE;;
2019 *) ac_site_file1=./$CONFIG_SITE;;
2020 esac
2021elif test "x$prefix" != xNONE; then
2022 ac_site_file1=$prefix/share/config.site
2023 ac_site_file2=$prefix/etc/config.site
2024else
2025 ac_site_file1=$ac_default_prefix/share/config.site
2026 ac_site_file2=$ac_default_prefix/etc/config.site
2027fi
2028for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2029do
2030 test "x$ac_site_file" = xNONE && continue
2031 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2033$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2034 sed 's/^/| /' "$ac_site_file" >&5
2035 . "$ac_site_file" \
2036 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2038as_fn_error $? "failed to load site script $ac_site_file
2039See \`config.log' for more details" "$LINENO" 5 ; }
2040 fi
2041done
2042
2043if test -r "$cache_file"; then
2044 # Some versions of bash will fail to source /dev/null (special files
2045 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2046 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2048$as_echo "$as_me: loading cache $cache_file" >&6;}
2049 case $cache_file in
2050 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2051 *) . "./$cache_file";;
2052 esac
2053 fi
2054else
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2056$as_echo "$as_me: creating cache $cache_file" >&6;}
2057 >$cache_file
2058fi
2059
2060# Check that the precious variables saved in the cache have kept the same
2061# value.
2062ac_cache_corrupted=false
2063for ac_var in $ac_precious_vars; do
2064 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2065 eval ac_new_set=\$ac_env_${ac_var}_set
2066 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2067 eval ac_new_val=\$ac_env_${ac_var}_value
2068 case $ac_old_set,$ac_new_set in
2069 set,)
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2071$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2072 ac_cache_corrupted=: ;;
2073 ,set)
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2075$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2076 ac_cache_corrupted=: ;;
2077 ,);;
2078 *)
2079 if test "x$ac_old_val" != "x$ac_new_val"; then
2080 # differences in whitespace do not lead to failure.
2081 ac_old_val_w=`echo x $ac_old_val`
2082 ac_new_val_w=`echo x $ac_new_val`
2083 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2085$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2086 ac_cache_corrupted=:
2087 else
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2089$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2090 eval $ac_var=\$ac_old_val
2091 fi
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2093$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2095$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2096 fi;;
2097 esac
2098 # Pass precious variables to config.status.
2099 if test "$ac_new_set" = set; then
2100 case $ac_new_val in
2101 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2102 *) ac_arg=$ac_var=$ac_new_val ;;
2103 esac
2104 case " $ac_configure_args " in
2105 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2106 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2107 esac
2108 fi
2109done
2110if $ac_cache_corrupted; then
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2114$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2115 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2116fi
2117## -------------------- ##
2118## Main body of script. ##
2119## -------------------- ##
2120
2121ac_ext=c
2122ac_cpp='$CPP $CPPFLAGS'
2123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125ac_compiler_gnu=$ac_cv_c_compiler_gnu
2126
2127
2128
2129
2130ac_aux_dir=
2131for ac_dir in config "$srcdir"/config; do
2132 if test -f "$ac_dir/install-sh"; then
2133 ac_aux_dir=$ac_dir
2134 ac_install_sh="$ac_aux_dir/install-sh -c"
2135 break
2136 elif test -f "$ac_dir/install.sh"; then
2137 ac_aux_dir=$ac_dir
2138 ac_install_sh="$ac_aux_dir/install.sh -c"
2139 break
2140 elif test -f "$ac_dir/shtool"; then
2141 ac_aux_dir=$ac_dir
2142 ac_install_sh="$ac_aux_dir/shtool install -c"
2143 break
2144 fi
2145done
2146if test -z "$ac_aux_dir"; then
2147 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2148fi
2149
2150# These three variables are undocumented and unsupported,
2151# and are intended to be withdrawn in a future Autoconf release.
2152# They can cause serious problems if a builder's source tree is in a directory
2153# whose full name contains unusual characters.
2154ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2155ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2156ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2157
2158
2159ac_config_headers="$ac_config_headers src/config.h"
2160
2161am__api_version='1.11'
2162
2163# Find a good install program. We prefer a C program (faster),
2164# so one script is as good as another. But avoid the broken or
2165# incompatible versions:
2166# SysV /etc/install, /usr/sbin/install
2167# SunOS /usr/etc/install
2168# IRIX /sbin/install
2169# AIX /bin/install
2170# AmigaOS /C/install, which installs bootblocks on floppy discs
2171# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2172# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2173# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2174# OS/2's system install, which has a completely different semantic
2175# ./install, which can be erroneously created by make from ./install.sh.
2176# Reject install programs that cannot install multiple files.
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2178$as_echo_n "checking for a BSD-compatible install... " >&6; }
2179if test -z "$INSTALL"; then
2180if test "${ac_cv_path_install+set}" = set; then :
2181 $as_echo_n "(cached) " >&6
2182else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 # Account for people who put trailing slashes in PATH elements.
2189case $as_dir/ in #((
2190 ./ | .// | /[cC]/* | \
2191 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2192 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2193 /usr/ucb/* ) ;;
2194 *)
2195 # OSF1 and SCO ODT 3.0 have their own names for install.
2196 # Don't use installbsd from OSF since it installs stuff as root
2197 # by default.
2198 for ac_prog in ginstall scoinst install; do
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2201 if test $ac_prog = install &&
2202 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2203 # AIX install. It has an incompatible calling convention.
2204 :
2205 elif test $ac_prog = install &&
2206 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2207 # program-specific install script used by HP pwplus--don't use.
2208 :
2209 else
2210 rm -rf conftest.one conftest.two conftest.dir
2211 echo one > conftest.one
2212 echo two > conftest.two
2213 mkdir conftest.dir
2214 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2215 test -s conftest.one && test -s conftest.two &&
2216 test -s conftest.dir/conftest.one &&
2217 test -s conftest.dir/conftest.two
2218 then
2219 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2220 break 3
2221 fi
2222 fi
2223 fi
2224 done
2225 done
2226 ;;
2227esac
2228
2229 done
2230IFS=$as_save_IFS
2231
2232rm -rf conftest.one conftest.two conftest.dir
2233
2234fi
2235 if test "${ac_cv_path_install+set}" = set; then
2236 INSTALL=$ac_cv_path_install
2237 else
2238 # As a last resort, use the slow shell script. Don't cache a
2239 # value for INSTALL within a source directory, because that will
2240 # break other packages using the cache if that directory is
2241 # removed, or if the value is a relative name.
2242 INSTALL=$ac_install_sh
2243 fi
2244fi
2245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2246$as_echo "$INSTALL" >&6; }
2247
2248# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2249# It thinks the first close brace ends the variable substitution.
2250test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2251
2252test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2253
2254test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2255
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2257$as_echo_n "checking whether build environment is sane... " >&6; }
2258# Just in case
2259sleep 1
2260echo timestamp > conftest.file
2261# Reject unsafe characters in $srcdir or the absolute working directory
2262# name. Accept space and tab only in the latter.
2263am_lf='
2264'
2265case `pwd` in
2266 *[\\\"\#\$\&\'\`$am_lf]*)
2267 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2268esac
2269case $srcdir in
2270 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2271 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2272esac
2273
2274# Do `set' in a subshell so we don't clobber the current shell's
2275# arguments. Must try -L first in case configure is actually a
2276# symlink; some systems play weird games with the mod time of symlinks
2277# (eg FreeBSD returns the mod time of the symlink's containing
2278# directory).
2279if (
2280 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2281 if test "$*" = "X"; then
2282 # -L didn't work.
2283 set X `ls -t "$srcdir/configure" conftest.file`
2284 fi
2285 rm -f conftest.file
2286 if test "$*" != "X $srcdir/configure conftest.file" \
2287 && test "$*" != "X conftest.file $srcdir/configure"; then
2288
2289 # If neither matched, then we have a broken ls. This can happen
2290 # if, for instance, CONFIG_SHELL is bash and it inherits a
2291 # broken ls alias from the environment. This has actually
2292 # happened. Such a system could not be considered "sane".
2293 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2294alias in your environment" "$LINENO" 5
2295 fi
2296
2297 test "$2" = conftest.file
2298 )
2299then
2300 # Ok.
2301 :
2302else
2303 as_fn_error $? "newly created file is older than distributed files!
2304Check your system clock" "$LINENO" 5
2305fi
2306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2307$as_echo "yes" >&6; }
2308test "$program_prefix" != NONE &&
2309 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2310# Use a double $ so make ignores it.
2311test "$program_suffix" != NONE &&
2312 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2313# Double any \ or $.
2314# By default was `s,x,x', remove it if useless.
2315ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2316program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2317
2318# expand $ac_aux_dir to an absolute path
2319am_aux_dir=`cd $ac_aux_dir && pwd`
2320
2321if test x"${MISSING+set}" != xset; then
2322 case $am_aux_dir in
2323 *\ * | *\ *)
2324 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2325 *)
2326 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2327 esac
2328fi
2329# Use eval to expand $SHELL
2330if eval "$MISSING --run true"; then
2331 am_missing_run="$MISSING --run "
2332else
2333 am_missing_run=
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2335$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2336fi
2337
2338if test x"${install_sh}" != xset; then
2339 case $am_aux_dir in
2340 *\ * | *\ *)
2341 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2342 *)
2343 install_sh="\${SHELL} $am_aux_dir/install-sh"
2344 esac
2345fi
2346
2347# Installed binaries are usually stripped using `strip' when the user
2348# run `make install-strip'. However `strip' might not be the right
2349# tool to use in cross-compilation environments, therefore Automake
2350# will honor the `STRIP' environment variable to overrule this program.
2351if test "$cross_compiling" != no; then
2352 if test -n "$ac_tool_prefix"; then
2353 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2354set dummy ${ac_tool_prefix}strip; ac_word=$2
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2356$as_echo_n "checking for $ac_word... " >&6; }
2357if test "${ac_cv_prog_STRIP+set}" = set; then :
2358 $as_echo_n "(cached) " >&6
2359else
2360 if test -n "$STRIP"; then
2361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2362else
2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364for as_dir in $PATH
2365do
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2373 fi
2374done
2375 done
2376IFS=$as_save_IFS
2377
2378fi
2379fi
2380STRIP=$ac_cv_prog_STRIP
2381if test -n "$STRIP"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2383$as_echo "$STRIP" >&6; }
2384else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2386$as_echo "no" >&6; }
2387fi
2388
2389
2390fi
2391if test -z "$ac_cv_prog_STRIP"; then
2392 ac_ct_STRIP=$STRIP
2393 # Extract the first word of "strip", so it can be a program name with args.
2394set dummy strip; ac_word=$2
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2396$as_echo_n "checking for $ac_word... " >&6; }
2397if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2398 $as_echo_n "(cached) " >&6
2399else
2400 if test -n "$ac_ct_STRIP"; then
2401 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2402else
2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_ac_ct_STRIP="strip"
2411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 break 2
2413 fi
2414done
2415 done
2416IFS=$as_save_IFS
2417
2418fi
2419fi
2420ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2421if test -n "$ac_ct_STRIP"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2423$as_echo "$ac_ct_STRIP" >&6; }
2424else
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2426$as_echo "no" >&6; }
2427fi
2428
2429 if test "x$ac_ct_STRIP" = x; then
2430 STRIP=":"
2431 else
2432 case $cross_compiling:$ac_tool_warned in
2433yes:)
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2436ac_tool_warned=yes ;;
2437esac
2438 STRIP=$ac_ct_STRIP
2439 fi
2440else
2441 STRIP="$ac_cv_prog_STRIP"
2442fi
2443
2444fi
2445INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2446
2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2448$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2449if test -z "$MKDIR_P"; then
2450 if test "${ac_cv_path_mkdir+set}" = set; then :
2451 $as_echo_n "(cached) " >&6
2452else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2455do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_prog in mkdir gmkdir; do
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2461 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2462 'mkdir (GNU coreutils) '* | \
2463 'mkdir (coreutils) '* | \
2464 'mkdir (fileutils) '4.1*)
2465 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2466 break 3;;
2467 esac
2468 done
2469 done
2470 done
2471IFS=$as_save_IFS
2472
2473fi
2474
2475 test -d ./--version && rmdir ./--version
2476 if test "${ac_cv_path_mkdir+set}" = set; then
2477 MKDIR_P="$ac_cv_path_mkdir -p"
2478 else
2479 # As a last resort, use the slow shell script. Don't cache a
2480 # value for MKDIR_P within a source directory, because that will
2481 # break other packages using the cache if that directory is
2482 # removed, or if the value is a relative name.
2483 MKDIR_P="$ac_install_sh -d"
2484 fi
2485fi
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2487$as_echo "$MKDIR_P" >&6; }
2488
2489mkdir_p="$MKDIR_P"
2490case $mkdir_p in
2491 [\\/$]* | ?:[\\/]*) ;;
2492 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2493esac
2494
2495for ac_prog in gawk mawk nawk awk
2496do
2497 # Extract the first word of "$ac_prog", so it can be a program name with args.
2498set dummy $ac_prog; ac_word=$2
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500$as_echo_n "checking for $ac_word... " >&6; }
2501if test "${ac_cv_prog_AWK+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
2503else
2504 if test -n "$AWK"; then
2505 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2506else
2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_AWK="$ac_prog"
2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518done
2519 done
2520IFS=$as_save_IFS
2521
2522fi
2523fi
2524AWK=$ac_cv_prog_AWK
2525if test -n "$AWK"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2527$as_echo "$AWK" >&6; }
2528else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530$as_echo "no" >&6; }
2531fi
2532
2533
2534 test -n "$AWK" && break
2535done
2536
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2538$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2539set x ${MAKE-make}
2540ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2541if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2542 $as_echo_n "(cached) " >&6
2543else
2544 cat >conftest.make <<\_ACEOF
2545SHELL = /bin/sh
2546all:
2547 @echo '@@@%%%=$(MAKE)=@@@%%%'
2548_ACEOF
2549# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2550case `${MAKE-make} -f conftest.make 2>/dev/null` in
2551 *@@@%%%=?*=@@@%%%*)
2552 eval ac_cv_prog_make_${ac_make}_set=yes;;
2553 *)
2554 eval ac_cv_prog_make_${ac_make}_set=no;;
2555esac
2556rm -f conftest.make
2557fi
2558if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2560$as_echo "yes" >&6; }
2561 SET_MAKE=
2562else
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564$as_echo "no" >&6; }
2565 SET_MAKE="MAKE=${MAKE-make}"
2566fi
2567
2568rm -rf .tst 2>/dev/null
2569mkdir .tst 2>/dev/null
2570if test -d .tst; then
2571 am__leading_dot=.
2572else
2573 am__leading_dot=_
2574fi
2575rmdir .tst 2>/dev/null
2576
2577if test "`cd $srcdir && pwd`" != "`pwd`"; then
2578 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2579 # is not polluted with repeated "-I."
2580 am__isrc=' -I$(srcdir)'
2581 # test to see if srcdir already configured
2582 if test -f $srcdir/config.status; then
2583 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2584 fi
2585fi
2586
2587# test whether we have cygpath
2588if test -z "$CYGPATH_W"; then
2589 if (cygpath --version) >/dev/null 2>/dev/null; then
2590 CYGPATH_W='cygpath -w'
2591 else
2592 CYGPATH_W=echo
2593 fi
2594fi
2595
2596
2597# Define the identity of the package.
2598 PACKAGE='lxc'
2599 VERSION='0.7.5'
2600
2601
2602cat >>confdefs.h <<_ACEOF
2603#define PACKAGE "$PACKAGE"
2604_ACEOF
2605
2606
2607cat >>confdefs.h <<_ACEOF
2608#define VERSION "$VERSION"
2609_ACEOF
2610
2611# Some tools Automake needs.
2612
2613ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2614
2615
2616AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2617
2618
2619AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2620
2621
2622AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2623
2624
2625MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2626
2627# We need awk for the "check" target. The system "awk" is bad on
2628# some platforms.
2629# Always define AMTAR for backward compatibility.
2630
2631AMTAR=${AMTAR-"${am_missing_run}tar"}
2632
2633am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2634
2635
2636
2637
2638
2639# Make sure we can run config.sub.
2640$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2641 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2642
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2644$as_echo_n "checking build system type... " >&6; }
2645if test "${ac_cv_build+set}" = set; then :
2646 $as_echo_n "(cached) " >&6
2647else
2648 ac_build_alias=$build_alias
2649test "x$ac_build_alias" = x &&
2650 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2651test "x$ac_build_alias" = x &&
2652 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2653ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2654 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2655
2656fi
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2658$as_echo "$ac_cv_build" >&6; }
2659case $ac_cv_build in
2660*-*-*) ;;
2661*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2662esac
2663build=$ac_cv_build
2664ac_save_IFS=$IFS; IFS='-'
2665set x $ac_cv_build
2666shift
2667build_cpu=$1
2668build_vendor=$2
2669shift; shift
2670# Remember, the first character of IFS is used to create $*,
2671# except with old shells:
2672build_os=$*
2673IFS=$ac_save_IFS
2674case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2675
2676
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2678$as_echo_n "checking host system type... " >&6; }
2679if test "${ac_cv_host+set}" = set; then :
2680 $as_echo_n "(cached) " >&6
2681else
2682 if test "x$host_alias" = x; then
2683 ac_cv_host=$ac_cv_build
2684else
2685 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2686 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2687fi
2688
2689fi
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2691$as_echo "$ac_cv_host" >&6; }
2692case $ac_cv_host in
2693*-*-*) ;;
2694*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2695esac
2696host=$ac_cv_host
2697ac_save_IFS=$IFS; IFS='-'
2698set x $ac_cv_host
2699shift
2700host_cpu=$1
2701host_vendor=$2
2702shift; shift
2703# Remember, the first character of IFS is used to create $*,
2704# except with old shells:
2705host_os=$*
2706IFS=$ac_save_IFS
2707case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2708
2709
2710DEPDIR="${am__leading_dot}deps"
2711
2712ac_config_commands="$ac_config_commands depfiles"
2713
2714
2715am_make=${MAKE-make}
2716cat > confinc << 'END'
2717am__doit:
2718 @echo this is the am__doit target
2719.PHONY: am__doit
2720END
2721# If we don't find an include directive, just comment out the code.
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2723$as_echo_n "checking for style of include used by $am_make... " >&6; }
2724am__include="#"
2725am__quote=
2726_am_result=none
2727# First try GNU make style include.
2728echo "include confinc" > confmf
2729# Ignore all kinds of additional output from `make'.
2730case `$am_make -s -f confmf 2> /dev/null` in #(
2731*the\ am__doit\ target*)
2732 am__include=include
2733 am__quote=
2734 _am_result=GNU
2735 ;;
2736esac
2737# Now try BSD make style include.
2738if test "$am__include" = "#"; then
2739 echo '.include "confinc"' > confmf
2740 case `$am_make -s -f confmf 2> /dev/null` in #(
2741 *the\ am__doit\ target*)
2742 am__include=.include
2743 am__quote="\""
2744 _am_result=BSD
2745 ;;
2746 esac
2747fi
2748
2749
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2751$as_echo "$_am_result" >&6; }
2752rm -f confinc confmf
2753
2754# Check whether --enable-dependency-tracking was given.
2755if test "${enable_dependency_tracking+set}" = set; then :
2756 enableval=$enable_dependency_tracking;
2757fi
2758
2759if test "x$enable_dependency_tracking" != xno; then
2760 am_depcomp="$ac_aux_dir/depcomp"
2761 AMDEPBACKSLASH='\'
2762fi
2763 if test "x$enable_dependency_tracking" != xno; then
2764 AMDEP_TRUE=
2765 AMDEP_FALSE='#'
2766else
2767 AMDEP_TRUE='#'
2768 AMDEP_FALSE=
2769fi
2770
2771
2772ac_ext=c
2773ac_cpp='$CPP $CPPFLAGS'
2774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2779set dummy ${ac_tool_prefix}gcc; ac_word=$2
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781$as_echo_n "checking for $ac_word... " >&6; }
2782if test "${ac_cv_prog_CC+set}" = set; then :
2783 $as_echo_n "(cached) " >&6
2784else
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799done
2800 done
2801IFS=$as_save_IFS
2802
2803fi
2804fi
2805CC=$ac_cv_prog_CC
2806if test -n "$CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2808$as_echo "$CC" >&6; }
2809else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811$as_echo "no" >&6; }
2812fi
2813
2814
2815fi
2816if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
2818 # Extract the first word of "gcc", so it can be a program name with args.
2819set dummy gcc; ac_word=$2
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
2822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2823 $as_echo_n "(cached) " >&6
2824else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_ac_ct_CC="gcc"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839done
2840 done
2841IFS=$as_save_IFS
2842
2843fi
2844fi
2845ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846if test -n "$ac_ct_CC"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2848$as_echo "$ac_ct_CC" >&6; }
2849else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851$as_echo "no" >&6; }
2852fi
2853
2854 if test "x$ac_ct_CC" = x; then
2855 CC=""
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858yes:)
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861ac_tool_warned=yes ;;
2862esac
2863 CC=$ac_ct_CC
2864 fi
2865else
2866 CC="$ac_cv_prog_CC"
2867fi
2868
2869if test -z "$CC"; then
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2872set dummy ${ac_tool_prefix}cc; ac_word=$2
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874$as_echo_n "checking for $ac_word... " >&6; }
2875if test "${ac_cv_prog_CC+set}" = set; then :
2876 $as_echo_n "(cached) " >&6
2877else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888 ac_cv_prog_CC="${ac_tool_prefix}cc"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892done
2893 done
2894IFS=$as_save_IFS
2895
2896fi
2897fi
2898CC=$ac_cv_prog_CC
2899if test -n "$CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901$as_echo "$CC" >&6; }
2902else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904$as_echo "no" >&6; }
2905fi
2906
2907
2908 fi
2909fi
2910if test -z "$CC"; then
2911 # Extract the first word of "cc", so it can be a program name with args.
2912set dummy cc; ac_word=$2
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914$as_echo_n "checking for $ac_word... " >&6; }
2915if test "${ac_cv_prog_CC+set}" = set; then :
2916 $as_echo_n "(cached) " >&6
2917else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920else
2921 ac_prog_rejected=no
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2930 ac_prog_rejected=yes
2931 continue
2932 fi
2933 ac_cv_prog_CC="cc"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937done
2938 done
2939IFS=$as_save_IFS
2940
2941if test $ac_prog_rejected = yes; then
2942 # We found a bogon in the path, so make sure we never use it.
2943 set dummy $ac_cv_prog_CC
2944 shift
2945 if test $# != 0; then
2946 # We chose a different compiler from the bogus one.
2947 # However, it has the same basename, so the bogon will be chosen
2948 # first if we set CC to just the basename; use the full file name.
2949 shift
2950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2951 fi
2952fi
2953fi
2954fi
2955CC=$ac_cv_prog_CC
2956if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958$as_echo "$CC" >&6; }
2959else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
2964
2965fi
2966if test -z "$CC"; then
2967 if test -n "$ac_tool_prefix"; then
2968 for ac_prog in cl.exe
2969 do
2970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973$as_echo_n "checking for $ac_word... " >&6; }
2974if test "${ac_cv_prog_CC+set}" = set; then :
2975 $as_echo_n "(cached) " >&6
2976else
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2990 fi
2991done
2992 done
2993IFS=$as_save_IFS
2994
2995fi
2996fi
2997CC=$ac_cv_prog_CC
2998if test -n "$CC"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3000$as_echo "$CC" >&6; }
3001else
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003$as_echo "no" >&6; }
3004fi
3005
3006
3007 test -n "$CC" && break
3008 done
3009fi
3010if test -z "$CC"; then
3011 ac_ct_CC=$CC
3012 for ac_prog in cl.exe
3013do
3014 # Extract the first word of "$ac_prog", so it can be a program name with args.
3015set dummy $ac_prog; ac_word=$2
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017$as_echo_n "checking for $ac_word... " >&6; }
3018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3019 $as_echo_n "(cached) " >&6
3020else
3021 if test -n "$ac_ct_CC"; then
3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3023else
3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025for as_dir in $PATH
3026do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 ac_cv_prog_ac_ct_CC="$ac_prog"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3034 fi
3035done
3036 done
3037IFS=$as_save_IFS
3038
3039fi
3040fi
3041ac_ct_CC=$ac_cv_prog_ac_ct_CC
3042if test -n "$ac_ct_CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3044$as_echo "$ac_ct_CC" >&6; }
3045else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047$as_echo "no" >&6; }
3048fi
3049
3050
3051 test -n "$ac_ct_CC" && break
3052done
3053
3054 if test "x$ac_ct_CC" = x; then
3055 CC=""
3056 else
3057 case $cross_compiling:$ac_tool_warned in
3058yes:)
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3061ac_tool_warned=yes ;;
3062esac
3063 CC=$ac_ct_CC
3064 fi
3065fi
3066
3067fi
3068
3069
3070test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072as_fn_error $? "no acceptable C compiler found in \$PATH
3073See \`config.log' for more details" "$LINENO" 5 ; }
3074
3075# Provide some information about the compiler.
3076$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3077set X $ac_compile
3078ac_compiler=$2
3079for ac_option in --version -v -V -qversion; do
3080 { { ac_try="$ac_compiler $ac_option >&5"
3081case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086$as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3088 ac_status=$?
3089 if test -s conftest.err; then
3090 sed '10a\
3091... rest of stderr output deleted ...
3092 10q' conftest.err >conftest.er1
3093 cat conftest.er1 >&5
3094 fi
3095 rm -f conftest.er1 conftest.err
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }
3098done
3099
3100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101/* end confdefs.h. */
3102
3103int
3104main ()
3105{
3106
3107 ;
3108 return 0;
3109}
3110_ACEOF
3111ac_clean_files_save=$ac_clean_files
3112ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3113# Try to create an executable without -o first, disregard a.out.
3114# It will help us diagnose broken compilers, and finding out an intuition
3115# of exeext.
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3117$as_echo_n "checking whether the C compiler works... " >&6; }
3118ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3119
3120# The possible output files:
3121ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3122
3123ac_rmfiles=
3124for ac_file in $ac_files
3125do
3126 case $ac_file in
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3128 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3129 esac
3130done
3131rm -f $ac_rmfiles
3132
3133if { { ac_try="$ac_link_default"
3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139$as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_link_default") 2>&5
3141 ac_status=$?
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
3144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3145# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3146# in a Makefile. We should not override ac_cv_exeext if it was cached,
3147# so that the user can short-circuit this test for compilers unknown to
3148# Autoconf.
3149for ac_file in $ac_files ''
3150do
3151 test -f "$ac_file" || continue
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3154 ;;
3155 [ab].out )
3156 # We found the default executable, but exeext='' is most
3157 # certainly right.
3158 break;;
3159 *.* )
3160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3161 then :; else
3162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163 fi
3164 # We set ac_cv_exeext here because the later test for it is not
3165 # safe: cross compilers may not add the suffix if given an `-o'
3166 # argument, so we may need to know it at that point already.
3167 # Even if this section looks crufty: it has the advantage of
3168 # actually working.
3169 break;;
3170 * )
3171 break;;
3172 esac
3173done
3174test "$ac_cv_exeext" = no && ac_cv_exeext=
3175
3176else
3177 ac_file=''
3178fi
3179if test -z "$ac_file"; then :
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181$as_echo "no" >&6; }
3182$as_echo "$as_me: failed program was:" >&5
3183sed 's/^/| /' conftest.$ac_ext >&5
3184
3185{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187as_fn_error 77 "C compiler cannot create executables
3188See \`config.log' for more details" "$LINENO" 5 ; }
3189else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191$as_echo "yes" >&6; }
3192fi
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3194$as_echo_n "checking for C compiler default output file name... " >&6; }
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3196$as_echo "$ac_file" >&6; }
3197ac_exeext=$ac_cv_exeext
3198
3199rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3200ac_clean_files=$ac_clean_files_save
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3202$as_echo_n "checking for suffix of executables... " >&6; }
3203if { { ac_try="$ac_link"
3204case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209$as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link") 2>&5
3211 ac_status=$?
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3215# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3216# work properly (i.e., refer to `conftest.exe'), while it won't with
3217# `rm'.
3218for ac_file in conftest.exe conftest conftest.*; do
3219 test -f "$ac_file" || continue
3220 case $ac_file in
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3222 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 break;;
3224 * ) break;;
3225 esac
3226done
3227else
3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3231See \`config.log' for more details" "$LINENO" 5 ; }
3232fi
3233rm -f conftest conftest$ac_cv_exeext
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3235$as_echo "$ac_cv_exeext" >&6; }
3236
3237rm -f conftest.$ac_ext
3238EXEEXT=$ac_cv_exeext
3239ac_exeext=$EXEEXT
3240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241/* end confdefs.h. */
3242#include <stdio.h>
3243int
3244main ()
3245{
3246FILE *f = fopen ("conftest.out", "w");
3247 return ferror (f) || fclose (f) != 0;
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253ac_clean_files="$ac_clean_files conftest.out"
3254# Check that the compiler produces executables we can run. If not, either
3255# the compiler is broken, or we cross compile.
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3257$as_echo_n "checking whether we are cross compiling... " >&6; }
3258if test "$cross_compiling" != yes; then
3259 { { ac_try="$ac_link"
3260case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263esac
3264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265$as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }
3270 if { ac_try='./conftest$ac_cv_exeext'
3271 { { case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274esac
3275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276$as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_try") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; }; then
3281 cross_compiling=no
3282 else
3283 if test "$cross_compiling" = maybe; then
3284 cross_compiling=yes
3285 else
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288as_fn_error $? "cannot run C compiled programs.
3289If you meant to cross compile, use \`--host'.
3290See \`config.log' for more details" "$LINENO" 5 ; }
3291 fi
3292 fi
3293fi
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3295$as_echo "$cross_compiling" >&6; }
3296
3297rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3298ac_clean_files=$ac_clean_files_save
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3300$as_echo_n "checking for suffix of object files... " >&6; }
3301if test "${ac_cv_objext+set}" = set; then :
3302 $as_echo_n "(cached) " >&6
3303else
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h. */
3306
3307int
3308main ()
3309{
3310
3311 ;
3312 return 0;
3313}
3314_ACEOF
3315rm -f conftest.o conftest.obj
3316if { { ac_try="$ac_compile"
3317case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_compile") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 for ac_file in conftest.o conftest.obj conftest.*; do
3328 test -f "$ac_file" || continue;
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3332 break;;
3333 esac
3334done
3335else
3336 $as_echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341as_fn_error $? "cannot compute suffix of object files: cannot compile
3342See \`config.log' for more details" "$LINENO" 5 ; }
3343fi
3344rm -f conftest.$ac_cv_objext conftest.$ac_ext
3345fi
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3347$as_echo "$ac_cv_objext" >&6; }
3348OBJEXT=$ac_cv_objext
3349ac_objext=$OBJEXT
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3351$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3352if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3353 $as_echo_n "(cached) " >&6
3354else
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h. */
3357
3358int
3359main ()
3360{
3361#ifndef __GNUC__
3362 choke me
3363#endif
3364
3365 ;
3366 return 0;
3367}
3368_ACEOF
3369if ac_fn_c_try_compile "$LINENO"; then :
3370 ac_compiler_gnu=yes
3371else
3372 ac_compiler_gnu=no
3373fi
3374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375ac_cv_c_compiler_gnu=$ac_compiler_gnu
3376
3377fi
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3379$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3380if test $ac_compiler_gnu = yes; then
3381 GCC=yes
3382else
3383 GCC=
3384fi
3385ac_test_CFLAGS=${CFLAGS+set}
3386ac_save_CFLAGS=$CFLAGS
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3388$as_echo_n "checking whether $CC accepts -g... " >&6; }
3389if test "${ac_cv_prog_cc_g+set}" = set; then :
3390 $as_echo_n "(cached) " >&6
3391else
3392 ac_save_c_werror_flag=$ac_c_werror_flag
3393 ac_c_werror_flag=yes
3394 ac_cv_prog_cc_g=no
3395 CFLAGS="-g"
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397/* end confdefs.h. */
3398
3399int
3400main ()
3401{
3402
3403 ;
3404 return 0;
3405}
3406_ACEOF
3407if ac_fn_c_try_compile "$LINENO"; then :
3408 ac_cv_prog_cc_g=yes
3409else
3410 CFLAGS=""
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h. */
3413
3414int
3415main ()
3416{
3417
3418 ;
3419 return 0;
3420}
3421_ACEOF
3422if ac_fn_c_try_compile "$LINENO"; then :
3423
3424else
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3426 CFLAGS="-g"
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428/* end confdefs.h. */
3429
3430int
3431main ()
3432{
3433
3434 ;
3435 return 0;
3436}
3437_ACEOF
3438if ac_fn_c_try_compile "$LINENO"; then :
3439 ac_cv_prog_cc_g=yes
3440fi
3441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442fi
3443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444fi
3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_c_werror_flag=$ac_save_c_werror_flag
3447fi
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3449$as_echo "$ac_cv_prog_cc_g" >&6; }
3450if test "$ac_test_CFLAGS" = set; then
3451 CFLAGS=$ac_save_CFLAGS
3452elif test $ac_cv_prog_cc_g = yes; then
3453 if test "$GCC" = yes; then
3454 CFLAGS="-g -O2"
3455 else
3456 CFLAGS="-g"
3457 fi
3458else
3459 if test "$GCC" = yes; then
3460 CFLAGS="-O2"
3461 else
3462 CFLAGS=
3463 fi
3464fi
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3466$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3467if test "${ac_cv_prog_cc_c89+set}" = set; then :
3468 $as_echo_n "(cached) " >&6
3469else
3470 ac_cv_prog_cc_c89=no
3471ac_save_CC=$CC
3472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h. */
3474#include <stdarg.h>
3475#include <stdio.h>
3476#include <sys/types.h>
3477#include <sys/stat.h>
3478/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3479struct buf { int x; };
3480FILE * (*rcsopen) (struct buf *, struct stat *, int);
3481static char *e (p, i)
3482 char **p;
3483 int i;
3484{
3485 return p[i];
3486}
3487static char *f (char * (*g) (char **, int), char **p, ...)
3488{
3489 char *s;
3490 va_list v;
3491 va_start (v,p);
3492 s = g (p, va_arg (v,int));
3493 va_end (v);
3494 return s;
3495}
3496
3497/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3498 function prototypes and stuff, but not '\xHH' hex character constants.
3499 These don't provoke an error unfortunately, instead are silently treated
3500 as 'x'. The following induces an error, until -std is added to get
3501 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3502 array size at least. It's necessary to write '\x00'==0 to get something
3503 that's true only with -std. */
3504int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3505
3506/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3507 inside strings and character constants. */
3508#define FOO(x) 'x'
3509int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3510
3511int test (int i, double x);
3512struct s1 {int (*f) (int a);};
3513struct s2 {int (*f) (double a);};
3514int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3515int argc;
3516char **argv;
3517int
3518main ()
3519{
3520return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3521 ;
3522 return 0;
3523}
3524_ACEOF
3525for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3526 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3527do
3528 CC="$ac_save_CC $ac_arg"
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_cv_prog_cc_c89=$ac_arg
3531fi
3532rm -f core conftest.err conftest.$ac_objext
3533 test "x$ac_cv_prog_cc_c89" != "xno" && break
3534done
3535rm -f conftest.$ac_ext
3536CC=$ac_save_CC
3537
3538fi
3539# AC_CACHE_VAL
3540case "x$ac_cv_prog_cc_c89" in
3541 x)
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3543$as_echo "none needed" >&6; } ;;
3544 xno)
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3546$as_echo "unsupported" >&6; } ;;
3547 *)
3548 CC="$CC $ac_cv_prog_cc_c89"
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3550$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3551esac
3552if test "x$ac_cv_prog_cc_c89" != xno; then :
3553
3554fi
3555
3556ac_ext=c
3557ac_cpp='$CPP $CPPFLAGS'
3558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561
3562depcc="$CC" am_compiler_list=
3563
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3565$as_echo_n "checking dependency style of $depcc... " >&6; }
3566if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
3568else
3569 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3570 # We make a subdir and do the tests there. Otherwise we can end up
3571 # making bogus files that we don't know about and never remove. For
3572 # instance it was reported that on HP-UX the gcc test will end up
3573 # making a dummy file named `D' -- because `-MD' means `put the output
3574 # in D'.
3575 mkdir conftest.dir
3576 # Copy depcomp to subdir because otherwise we won't find it if we're
3577 # using a relative directory.
3578 cp "$am_depcomp" conftest.dir
3579 cd conftest.dir
3580 # We will build objects and dependencies in a subdirectory because
3581 # it helps to detect inapplicable dependency modes. For instance
3582 # both Tru64's cc and ICC support -MD to output dependencies as a
3583 # side effect of compilation, but ICC will put the dependencies in
3584 # the current directory while Tru64 will put them in the object
3585 # directory.
3586 mkdir sub
3587
3588 am_cv_CC_dependencies_compiler_type=none
3589 if test "$am_compiler_list" = ""; then
3590 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3591 fi
3592 am__universal=false
3593 case " $depcc " in #(
3594 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3595 esac
3596
3597 for depmode in $am_compiler_list; do
3598 # Setup a source with many dependencies, because some compilers
3599 # like to wrap large dependency lists on column 80 (with \), and
3600 # we should not choose a depcomp mode which is confused by this.
3601 #
3602 # We need to recreate these files for each test, as the compiler may
3603 # overwrite some of them when testing with obscure command lines.
3604 # This happens at least with the AIX C compiler.
3605 : > sub/conftest.c
3606 for i in 1 2 3 4 5 6; do
3607 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3608 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3609 # Solaris 8's {/usr,}/bin/sh.
3610 touch sub/conftst$i.h
3611 done
3612 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3613
3614 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3615 # mode. It turns out that the SunPro C++ compiler does not properly
3616 # handle `-M -o', and we need to detect this. Also, some Intel
3617 # versions had trouble with output in subdirs
3618 am__obj=sub/conftest.${OBJEXT-o}
3619 am__minus_obj="-o $am__obj"
3620 case $depmode in
3621 gcc)
3622 # This depmode causes a compiler race in universal mode.
3623 test "$am__universal" = false || continue
3624 ;;
3625 nosideeffect)
3626 # after this tag, mechanisms are not by side-effect, so they'll
3627 # only be used when explicitly requested
3628 if test "x$enable_dependency_tracking" = xyes; then
3629 continue
3630 else
3631 break
3632 fi
3633 ;;
3634 msvisualcpp | msvcmsys)
3635 # This compiler won't grok `-c -o', but also, the minuso test has
3636 # not run yet. These depmodes are late enough in the game, and
3637 # so weak that their functioning should not be impacted.
3638 am__obj=conftest.${OBJEXT-o}
3639 am__minus_obj=
3640 ;;
3641 none) break ;;
3642 esac
3643 if depmode=$depmode \
3644 source=sub/conftest.c object=$am__obj \
3645 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3646 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3647 >/dev/null 2>conftest.err &&
3648 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3649 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3650 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3651 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3652 # icc doesn't choke on unknown options, it will just issue warnings
3653 # or remarks (even with -Werror). So we grep stderr for any message
3654 # that says an option was ignored or not supported.
3655 # When given -MP, icc 7.0 and 7.1 complain thusly:
3656 # icc: Command line warning: ignoring option '-M'; no argument required
3657 # The diagnosis changed in icc 8.0:
3658 # icc: Command line remark: option '-MP' not supported
3659 if (grep 'ignoring option' conftest.err ||
3660 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3661 am_cv_CC_dependencies_compiler_type=$depmode
3662 break
3663 fi
3664 fi
3665 done
3666
3667 cd ..
3668 rm -rf conftest.dir
3669else
3670 am_cv_CC_dependencies_compiler_type=none
3671fi
3672
3673fi
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3675$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3676CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3677
3678 if
3679 test "x$enable_dependency_tracking" != xno \
3680 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3681 am__fastdepCC_TRUE=
3682 am__fastdepCC_FALSE='#'
3683else
3684 am__fastdepCC_TRUE='#'
3685 am__fastdepCC_FALSE=
3686fi
3687
3688
3689if test "x$CC" != xcc; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3691$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3692else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3694$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3695fi
3696set dummy $CC; ac_cc=`$as_echo "$2" |
3697 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3698if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
3699 $as_echo_n "(cached) " >&6
3700else
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h. */
3703
3704int
3705main ()
3706{
3707
3708 ;
3709 return 0;
3710}
3711_ACEOF
3712# Make sure it works both with $CC and with simple cc.
3713# We do the test twice because some compilers refuse to overwrite an
3714# existing .o file with -o, though they will create one.
3715ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3716rm -f conftest2.*
3717if { { case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720esac
3721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722$as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_try") 2>&5
3724 ac_status=$?
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; } &&
3727 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730esac
3731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732$as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_try") 2>&5
3734 ac_status=$?
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; };
3737then
3738 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3739 if test "x$CC" != xcc; then
3740 # Test first that cc exists at all.
3741 if { ac_try='cc -c conftest.$ac_ext >&5'
3742 { { case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745esac
3746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747$as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_try") 2>&5
3749 ac_status=$?
3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751 test $ac_status = 0; }; }; then
3752 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3753 rm -f conftest2.*
3754 if { { case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757esac
3758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759$as_echo "$ac_try_echo"; } >&5
3760 (eval "$ac_try") 2>&5
3761 ac_status=$?
3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; } &&
3764 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767esac
3768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769$as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_try") 2>&5
3771 ac_status=$?
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; };
3774 then
3775 # cc works too.
3776 :
3777 else
3778 # cc exists but doesn't like -o.
3779 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3780 fi
3781 fi
3782 fi
3783else
3784 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3785fi
3786rm -f core conftest*
3787
3788fi
3789if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3791$as_echo "yes" >&6; }
3792else
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794$as_echo "no" >&6; }
3795
3796$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3797
3798fi
3799
3800# FIXME: we rely on the cache variable name because
3801# there is no other way.
3802set dummy $CC
3803am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3804eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3805if test "$am_t" != yes; then
3806 # Losing compiler, so override with the script.
3807 # FIXME: It is wrong to rewrite CC.
3808 # But if we don't then we get into trouble of one sort or another.
3809 # A longer-term fix would be to have automake use am__CC in this case,
3810 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3811 CC="$am_aux_dir/compile $CC"
3812fi
3813
3814
3815
3816ac_ext=c
3817ac_cpp='$CPP $CPPFLAGS'
3818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3822$as_echo_n "checking how to run the C preprocessor... " >&6; }
3823# On Suns, sometimes $CPP names a directory.
3824if test -n "$CPP" && test -d "$CPP"; then
3825 CPP=
3826fi
3827if test -z "$CPP"; then
3828 if test "${ac_cv_prog_CPP+set}" = set; then :
3829 $as_echo_n "(cached) " >&6
3830else
3831 # Double quotes because CPP needs to be expanded
3832 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3833 do
3834 ac_preproc_ok=false
3835for ac_c_preproc_warn_flag in '' yes
3836do
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844/* end confdefs.h. */
3845#ifdef __STDC__
3846# include <limits.h>
3847#else
3848# include <assert.h>
3849#endif
3850 Syntax error
3851_ACEOF
3852if ac_fn_c_try_cpp "$LINENO"; then :
3853
3854else
3855 # Broken: fails on valid input.
3856continue
3857fi
3858rm -f conftest.err conftest.i conftest.$ac_ext
3859
3860 # OK, works on sane cases. Now check whether nonexistent headers
3861 # can be detected and how.
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863/* end confdefs.h. */
3864#include <ac_nonexistent.h>
3865_ACEOF
3866if ac_fn_c_try_cpp "$LINENO"; then :
3867 # Broken: success on invalid input.
3868continue
3869else
3870 # Passes both tests.
3871ac_preproc_ok=:
3872break
3873fi
3874rm -f conftest.err conftest.i conftest.$ac_ext
3875
3876done
3877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878rm -f conftest.i conftest.err conftest.$ac_ext
3879if $ac_preproc_ok; then :
3880 break
3881fi
3882
3883 done
3884 ac_cv_prog_CPP=$CPP
3885
3886fi
3887 CPP=$ac_cv_prog_CPP
3888else
3889 ac_cv_prog_CPP=$CPP
3890fi
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3892$as_echo "$CPP" >&6; }
3893ac_preproc_ok=false
3894for ac_c_preproc_warn_flag in '' yes
3895do
3896 # Use a header file that comes with gcc, so configuring glibc
3897 # with a fresh cross-compiler works.
3898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3899 # <limits.h> exists even on freestanding compilers.
3900 # On the NeXT, cc -E runs the code through the compiler's parser,
3901 # not just through cpp. "Syntax error" is here to catch this case.
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903/* end confdefs.h. */
3904#ifdef __STDC__
3905# include <limits.h>
3906#else
3907# include <assert.h>
3908#endif
3909 Syntax error
3910_ACEOF
3911if ac_fn_c_try_cpp "$LINENO"; then :
3912
3913else
3914 # Broken: fails on valid input.
3915continue
3916fi
3917rm -f conftest.err conftest.i conftest.$ac_ext
3918
3919 # OK, works on sane cases. Now check whether nonexistent headers
3920 # can be detected and how.
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922/* end confdefs.h. */
3923#include <ac_nonexistent.h>
3924_ACEOF
3925if ac_fn_c_try_cpp "$LINENO"; then :
3926 # Broken: success on invalid input.
3927continue
3928else
3929 # Passes both tests.
3930ac_preproc_ok=:
3931break
3932fi
3933rm -f conftest.err conftest.i conftest.$ac_ext
3934
3935done
3936# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3937rm -f conftest.i conftest.err conftest.$ac_ext
3938if $ac_preproc_ok; then :
3939
3940else
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3944See \`config.log' for more details" "$LINENO" 5 ; }
3945fi
3946
3947ac_ext=c
3948ac_cpp='$CPP $CPPFLAGS'
3949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3955$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3956if test "${ac_cv_path_GREP+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3958else
3959 if test -z "$GREP"; then
3960 ac_path_GREP_found=false
3961 # Loop through the user's path and test for each of PROGNAME-LIST
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3964do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_prog in grep ggrep; do
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3970 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3971# Check for GNU ac_path_GREP and select it if it is found.
3972 # Check for GNU $ac_path_GREP
3973case `"$ac_path_GREP" --version 2>&1` in
3974*GNU*)
3975 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3976*)
3977 ac_count=0
3978 $as_echo_n 0123456789 >"conftest.in"
3979 while :
3980 do
3981 cat "conftest.in" "conftest.in" >"conftest.tmp"
3982 mv "conftest.tmp" "conftest.in"
3983 cp "conftest.in" "conftest.nl"
3984 $as_echo 'GREP' >> "conftest.nl"
3985 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3987 as_fn_arith $ac_count + 1 && ac_count=$as_val
3988 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3989 # Best one so far, save it but keep looking for a better one
3990 ac_cv_path_GREP="$ac_path_GREP"
3991 ac_path_GREP_max=$ac_count
3992 fi
3993 # 10*(2^10) chars as input seems more than enough
3994 test $ac_count -gt 10 && break
3995 done
3996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3997esac
3998
3999 $ac_path_GREP_found && break 3
4000 done
4001 done
4002 done
4003IFS=$as_save_IFS
4004 if test -z "$ac_cv_path_GREP"; then
4005 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4006 fi
4007else
4008 ac_cv_path_GREP=$GREP
4009fi
4010
4011fi
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4013$as_echo "$ac_cv_path_GREP" >&6; }
4014 GREP="$ac_cv_path_GREP"
4015
4016
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4018$as_echo_n "checking for egrep... " >&6; }
4019if test "${ac_cv_path_EGREP+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4021else
4022 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4023 then ac_cv_path_EGREP="$GREP -E"
4024 else
4025 if test -z "$EGREP"; then
4026 ac_path_EGREP_found=false
4027 # Loop through the user's path and test for each of PROGNAME-LIST
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4030do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_prog in egrep; do
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4036 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4037# Check for GNU ac_path_EGREP and select it if it is found.
4038 # Check for GNU $ac_path_EGREP
4039case `"$ac_path_EGREP" --version 2>&1` in
4040*GNU*)
4041 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4042*)
4043 ac_count=0
4044 $as_echo_n 0123456789 >"conftest.in"
4045 while :
4046 do
4047 cat "conftest.in" "conftest.in" >"conftest.tmp"
4048 mv "conftest.tmp" "conftest.in"
4049 cp "conftest.in" "conftest.nl"
4050 $as_echo 'EGREP' >> "conftest.nl"
4051 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4053 as_fn_arith $ac_count + 1 && ac_count=$as_val
4054 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4055 # Best one so far, save it but keep looking for a better one
4056 ac_cv_path_EGREP="$ac_path_EGREP"
4057 ac_path_EGREP_max=$ac_count
4058 fi
4059 # 10*(2^10) chars as input seems more than enough
4060 test $ac_count -gt 10 && break
4061 done
4062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4063esac
4064
4065 $ac_path_EGREP_found && break 3
4066 done
4067 done
4068 done
4069IFS=$as_save_IFS
4070 if test -z "$ac_cv_path_EGREP"; then
4071 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4072 fi
4073else
4074 ac_cv_path_EGREP=$EGREP
4075fi
4076
4077 fi
4078fi
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4080$as_echo "$ac_cv_path_EGREP" >&6; }
4081 EGREP="$ac_cv_path_EGREP"
4082
4083
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4085$as_echo_n "checking for ANSI C header files... " >&6; }
4086if test "${ac_cv_header_stdc+set}" = set; then :
4087 $as_echo_n "(cached) " >&6
4088else
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090/* end confdefs.h. */
4091#include <stdlib.h>
4092#include <stdarg.h>
4093#include <string.h>
4094#include <float.h>
4095
4096int
4097main ()
4098{
4099
4100 ;
4101 return 0;
4102}
4103_ACEOF
4104if ac_fn_c_try_compile "$LINENO"; then :
4105 ac_cv_header_stdc=yes
4106else
4107 ac_cv_header_stdc=no
4108fi
4109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110
4111if test $ac_cv_header_stdc = yes; then
4112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114/* end confdefs.h. */
4115#include <string.h>
4116
4117_ACEOF
4118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4119 $EGREP "memchr" >/dev/null 2>&1; then :
4120
4121else
4122 ac_cv_header_stdc=no
4123fi
4124rm -f conftest*
4125
4126fi
4127
4128if test $ac_cv_header_stdc = yes; then
4129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131/* end confdefs.h. */
4132#include <stdlib.h>
4133
4134_ACEOF
4135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136 $EGREP "free" >/dev/null 2>&1; then :
4137
4138else
4139 ac_cv_header_stdc=no
4140fi
4141rm -f conftest*
4142
4143fi
4144
4145if test $ac_cv_header_stdc = yes; then
4146 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4147 if test "$cross_compiling" = yes; then :
4148 :
4149else
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151/* end confdefs.h. */
4152#include <ctype.h>
4153#include <stdlib.h>
4154#if ((' ' & 0x0FF) == 0x020)
4155# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4156# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4157#else
4158# define ISLOWER(c) \
4159 (('a' <= (c) && (c) <= 'i') \
4160 || ('j' <= (c) && (c) <= 'r') \
4161 || ('s' <= (c) && (c) <= 'z'))
4162# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4163#endif
4164
4165#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4166int
4167main ()
4168{
4169 int i;
4170 for (i = 0; i < 256; i++)
4171 if (XOR (islower (i), ISLOWER (i))
4172 || toupper (i) != TOUPPER (i))
4173 return 2;
4174 return 0;
4175}
4176_ACEOF
4177if ac_fn_c_try_run "$LINENO"; then :
4178
4179else
4180 ac_cv_header_stdc=no
4181fi
4182rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4183 conftest.$ac_objext conftest.beam conftest.$ac_ext
4184fi
4185
4186fi
4187fi
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4189$as_echo "$ac_cv_header_stdc" >&6; }
4190if test $ac_cv_header_stdc = yes; then
4191
4192$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4193
4194fi
4195
4196# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4197for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4198 inttypes.h stdint.h unistd.h
4199do :
4200 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4201ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4202"
4203if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4204 cat >>confdefs.h <<_ACEOF
4205#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4206_ACEOF
4207
4208fi
4209
4210done
4211
4212
4213
4214 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4215if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4216 MINIX=yes
4217else
4218 MINIX=
4219fi
4220
4221
4222 if test "$MINIX" = yes; then
4223
4224$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4225
4226
4227$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4228
4229
4230$as_echo "#define _MINIX 1" >>confdefs.h
4231
4232 fi
4233
4234
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4236$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4237if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4239else
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h. */
4242
4243# define __EXTENSIONS__ 1
4244 $ac_includes_default
4245int
4246main ()
4247{
4248
4249 ;
4250 return 0;
4251}
4252_ACEOF
4253if ac_fn_c_try_compile "$LINENO"; then :
4254 ac_cv_safe_to_define___extensions__=yes
4255else
4256 ac_cv_safe_to_define___extensions__=no
4257fi
4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259fi
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4261$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4262 test $ac_cv_safe_to_define___extensions__ = yes &&
4263 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4264
4265 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4266
4267 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4268
4269 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4270
4271 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4272
4273
4274
4275# Extract the first word of "setcap", so it can be a program name with args.
4276set dummy setcap; ac_word=$2
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278$as_echo_n "checking for $ac_word... " >&6; }
4279if test "${ac_cv_prog_SETCAP+set}" = set; then :
4280 $as_echo_n "(cached) " >&6
4281else
4282 if test -n "$SETCAP"; then
4283 ac_cv_prog_SETCAP="$SETCAP" # Let the user override the test.
4284else
4285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286for as_dir in $PATH$PATH_SEPARATOR/sbin
4287do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292 ac_cv_prog_SETCAP="yes"
4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 break 2
4295 fi
4296done
4297 done
4298IFS=$as_save_IFS
4299
4300 test -z "$ac_cv_prog_SETCAP" && ac_cv_prog_SETCAP="no"
4301fi
4302fi
4303SETCAP=$ac_cv_prog_SETCAP
4304if test -n "$SETCAP"; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETCAP" >&5
4306$as_echo "$SETCAP" >&6; }
4307else
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309$as_echo "no" >&6; }
4310fi
4311
4312
4313
4314# Check whether --enable-doc was given.
4315if test "${enable_doc+set}" = set; then :
4316 enableval=$enable_doc;
4317else
4318 enable_doc=auto
4319fi
4320
4321
4322if test "x$enable_doc" = "xyes" -o "x$enable_doc" = "xauto"; then
4323 # Extract the first word of "docbook2man", so it can be a program name with args.
4324set dummy docbook2man; ac_word=$2
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326$as_echo_n "checking for $ac_word... " >&6; }
4327if test "${ac_cv_prog_have_docbook+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4329else
4330 if test -n "$have_docbook"; then
4331 ac_cv_prog_have_docbook="$have_docbook" # Let the user override the test.
4332else
4333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334for as_dir in $PATH
4335do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_prog_have_docbook="yes"
4341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 break 2
4343 fi
4344done
4345 done
4346IFS=$as_save_IFS
4347
4348 test -z "$ac_cv_prog_have_docbook" && ac_cv_prog_have_docbook="no"
4349fi
4350fi
4351have_docbook=$ac_cv_prog_have_docbook
4352if test -n "$have_docbook"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_docbook" >&5
4354$as_echo "$have_docbook" >&6; }
4355else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357$as_echo "no" >&6; }
4358fi
4359
4360
4361
4362 test "x$have_docbook" = "xno" -a "x$enable_doc" = "xyes" && \
4363 as_fn_error $? "docbook2man required by man request, but not found" "$LINENO" 5
4364fi
4365
4366 if test "x$have_docbook" = "xyes"; then
4367 ENABLE_DOCBOOK_TRUE=
4368 ENABLE_DOCBOOK_FALSE='#'
4369else
4370 ENABLE_DOCBOOK_TRUE='#'
4371 ENABLE_DOCBOOK_FALSE=
4372fi
4373
4374
4375# Check whether --enable-examples was given.
4376if test "${enable_examples+set}" = set; then :
4377 enableval=$enable_examples;
4378else
4379 enable_examples=yes
4380fi
4381
4382
4383 if test "x$enable_examples" = "xyes"; then
4384 ENABLE_EXAMPLES_TRUE=
4385 ENABLE_EXAMPLES_FALSE='#'
4386else
4387 ENABLE_EXAMPLES_TRUE='#'
4388 ENABLE_EXAMPLES_FALSE=
4389fi
4390
4391
4392
4393 EXP_VAR=PREFIX
4394 FROM_VAR=$prefix
4395
4396 prefix_save=$prefix
4397 exec_prefix_save=$exec_prefix
4398
4399 if test "x$prefix" = "xNONE"; then
4400 prefix="$ac_default_prefix"
4401 fi
4402 if test "x$exec_prefix" = "xNONE"; then
4403 exec_prefix=$prefix
4404 fi
4405
4406 full_var="$FROM_VAR"
4407 while true; do
4408 new_full_var="`eval echo $full_var`"
4409 if test "x$new_full_var" = "x$full_var"; then break; fi
4410 full_var=$new_full_var
4411 done
4412
4413 full_var=$new_full_var
4414 PREFIX="$full_var"
4415
4416
4417 prefix=$prefix_save
4418 exec_prefix=$exec_prefix_save
4419
4420
4421 EXP_VAR=LIBDIR
4422 FROM_VAR=$libdir
4423
4424 prefix_save=$prefix
4425 exec_prefix_save=$exec_prefix
4426
4427 if test "x$prefix" = "xNONE"; then
4428 prefix="$ac_default_prefix"
4429 fi
4430 if test "x$exec_prefix" = "xNONE"; then
4431 exec_prefix=$prefix
4432 fi
4433
4434 full_var="$FROM_VAR"
4435 while true; do
4436 new_full_var="`eval echo $full_var`"
4437 if test "x$new_full_var" = "x$full_var"; then break; fi
4438 full_var=$new_full_var
4439 done
4440
4441 full_var=$new_full_var
4442 LIBDIR="$full_var"
4443
4444
4445 prefix=$prefix_save
4446 exec_prefix=$exec_prefix_save
4447
4448
4449 EXP_VAR=BINDIR
4450 FROM_VAR=$bindir
4451
4452 prefix_save=$prefix
4453 exec_prefix_save=$exec_prefix
4454
4455 if test "x$prefix" = "xNONE"; then
4456 prefix="$ac_default_prefix"
4457 fi
4458 if test "x$exec_prefix" = "xNONE"; then
4459 exec_prefix=$prefix
4460 fi
4461
4462 full_var="$FROM_VAR"
4463 while true; do
4464 new_full_var="`eval echo $full_var`"
4465 if test "x$new_full_var" = "x$full_var"; then break; fi
4466 full_var=$new_full_var
4467 done
4468
4469 full_var=$new_full_var
4470 BINDIR="$full_var"
4471
4472
4473 prefix=$prefix_save
4474 exec_prefix=$exec_prefix_save
4475
4476
4477 EXP_VAR=INCLUDEDIR
4478 FROM_VAR=$includedir
4479
4480 prefix_save=$prefix
4481 exec_prefix_save=$exec_prefix
4482
4483 if test "x$prefix" = "xNONE"; then
4484 prefix="$ac_default_prefix"
4485 fi
4486 if test "x$exec_prefix" = "xNONE"; then
4487 exec_prefix=$prefix
4488 fi
4489
4490 full_var="$FROM_VAR"
4491 while true; do
4492 new_full_var="`eval echo $full_var`"
4493 if test "x$new_full_var" = "x$full_var"; then break; fi
4494 full_var=$new_full_var
4495 done
4496
4497 full_var=$new_full_var
4498 INCLUDEDIR="$full_var"
4499
4500
4501 prefix=$prefix_save
4502 exec_prefix=$exec_prefix_save
4503
4504
4505 EXP_VAR=SYSCONFDIR
4506 FROM_VAR=$sysconfdir
4507
4508 prefix_save=$prefix
4509 exec_prefix_save=$exec_prefix
4510
4511 if test "x$prefix" = "xNONE"; then
4512 prefix="$ac_default_prefix"
4513 fi
4514 if test "x$exec_prefix" = "xNONE"; then
4515 exec_prefix=$prefix
4516 fi
4517
4518 full_var="$FROM_VAR"
4519 while true; do
4520 new_full_var="`eval echo $full_var`"
4521 if test "x$new_full_var" = "x$full_var"; then break; fi
4522 full_var=$new_full_var
4523 done
4524
4525 full_var=$new_full_var
4526 SYSCONFDIR="$full_var"
4527
4528
4529 prefix=$prefix_save
4530 exec_prefix=$exec_prefix_save
4531
4532
4533 EXP_VAR=DATADIR
4534 FROM_VAR=$datadir
4535
4536 prefix_save=$prefix
4537 exec_prefix_save=$exec_prefix
4538
4539 if test "x$prefix" = "xNONE"; then
4540 prefix="$ac_default_prefix"
4541 fi
4542 if test "x$exec_prefix" = "xNONE"; then
4543 exec_prefix=$prefix
4544 fi
4545
4546 full_var="$FROM_VAR"
4547 while true; do
4548 new_full_var="`eval echo $full_var`"
4549 if test "x$new_full_var" = "x$full_var"; then break; fi
4550 full_var=$new_full_var
4551 done
4552
4553 full_var=$new_full_var
4554 DATADIR="$full_var"
4555
4556
4557 prefix=$prefix_save
4558 exec_prefix=$exec_prefix_save
4559
4560
4561 EXP_VAR=LOCALSTATEDIR
4562 FROM_VAR=$localstatedir
4563
4564 prefix_save=$prefix
4565 exec_prefix_save=$exec_prefix
4566
4567 if test "x$prefix" = "xNONE"; then
4568 prefix="$ac_default_prefix"
4569 fi
4570 if test "x$exec_prefix" = "xNONE"; then
4571 exec_prefix=$prefix
4572 fi
4573
4574 full_var="$FROM_VAR"
4575 while true; do
4576 new_full_var="`eval echo $full_var`"
4577 if test "x$new_full_var" = "x$full_var"; then break; fi
4578 full_var=$new_full_var
4579 done
4580
4581 full_var=$new_full_var
4582 LOCALSTATEDIR="$full_var"
4583
4584
4585 prefix=$prefix_save
4586 exec_prefix=$exec_prefix_save
4587
4588
4589 EXP_VAR=DOCDIR
4590 FROM_VAR=$docdir
4591
4592 prefix_save=$prefix
4593 exec_prefix_save=$exec_prefix
4594
4595 if test "x$prefix" = "xNONE"; then
4596 prefix="$ac_default_prefix"
4597 fi
4598 if test "x$exec_prefix" = "xNONE"; then
4599 exec_prefix=$prefix
4600 fi
4601
4602 full_var="$FROM_VAR"
4603 while true; do
4604 new_full_var="`eval echo $full_var`"
4605 if test "x$new_full_var" = "x$full_var"; then break; fi
4606 full_var=$new_full_var
4607 done
4608
4609 full_var=$new_full_var
4610 DOCDIR="$full_var"
4611
4612
4613 prefix=$prefix_save
4614 exec_prefix=$exec_prefix_save
4615
4616
4617
4618# Check whether --with-config-path was given.
4619if test "${with_config_path+set}" = set; then :
4620 withval=$with_config_path;
4621else
4622 with_config_path="${localstatedir}/lib/lxc"
4623fi
4624
4625
4626
4627# Check whether --with-rootfs-path was given.
4628if test "${with_rootfs_path+set}" = set; then :
4629 withval=$with_rootfs_path;
4630else
4631 with_rootfs_path="${libdir}/lxc/rootfs"
4632fi
4633
4634
4635
4636 EXP_VAR=LXC_GENERATE_DATE
4637 FROM_VAR="$(date)"
4638
4639 prefix_save=$prefix
4640 exec_prefix_save=$exec_prefix
4641
4642 if test "x$prefix" = "xNONE"; then
4643 prefix="$ac_default_prefix"
4644 fi
4645 if test "x$exec_prefix" = "xNONE"; then
4646 exec_prefix=$prefix
4647 fi
4648
4649 full_var="$FROM_VAR"
4650 while true; do
4651 new_full_var="`eval echo $full_var`"
4652 if test "x$new_full_var" = "x$full_var"; then break; fi
4653 full_var=$new_full_var
4654 done
4655
4656 full_var=$new_full_var
4657 LXC_GENERATE_DATE="$full_var"
4658
4659
4660 prefix=$prefix_save
4661 exec_prefix=$exec_prefix_save
4662
4663
4664
4665 EXP_VAR=LXCPATH
4666 FROM_VAR="${with_config_path}"
4667
4668 prefix_save=$prefix
4669 exec_prefix_save=$exec_prefix
4670
4671 if test "x$prefix" = "xNONE"; then
4672 prefix="$ac_default_prefix"
4673 fi
4674 if test "x$exec_prefix" = "xNONE"; then
4675 exec_prefix=$prefix
4676 fi
4677
4678 full_var="$FROM_VAR"
4679 while true; do
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
4683 done
4684
4685 full_var=$new_full_var
4686 LXCPATH="$full_var"
4687
4688
4689 prefix=$prefix_save
4690 exec_prefix=$exec_prefix_save
4691
4692
4693 EXP_VAR=LXCROOTFSMOUNT
4694 FROM_VAR="${with_rootfs_path}"
4695
4696 prefix_save=$prefix
4697 exec_prefix_save=$exec_prefix
4698
4699 if test "x$prefix" = "xNONE"; then
4700 prefix="$ac_default_prefix"
4701 fi
4702 if test "x$exec_prefix" = "xNONE"; then
4703 exec_prefix=$prefix
4704 fi
4705
4706 full_var="$FROM_VAR"
4707 while true; do
4708 new_full_var="`eval echo $full_var`"
4709 if test "x$new_full_var" = "x$full_var"; then break; fi
4710 full_var=$new_full_var
4711 done
4712
4713 full_var=$new_full_var
4714 LXCROOTFSMOUNT="$full_var"
4715
4716
4717 prefix=$prefix_save
4718 exec_prefix=$exec_prefix_save
4719
4720
4721 EXP_VAR=LXCINITDIR
4722 FROM_VAR=$libdir/lxc
4723
4724 prefix_save=$prefix
4725 exec_prefix_save=$exec_prefix
4726
4727 if test "x$prefix" = "xNONE"; then
4728 prefix="$ac_default_prefix"
4729 fi
4730 if test "x$exec_prefix" = "xNONE"; then
4731 exec_prefix=$prefix
4732 fi
4733
4734 full_var="$FROM_VAR"
4735 while true; do
4736 new_full_var="`eval echo $full_var`"
4737 if test "x$new_full_var" = "x$full_var"; then break; fi
4738 full_var=$new_full_var
4739 done
4740
4741 full_var=$new_full_var
4742 LXCINITDIR="$full_var"
4743
4744
4745 prefix=$prefix_save
4746 exec_prefix=$exec_prefix_save
4747
4748
4749 EXP_VAR=LXCTEMPLATEDIR
4750 FROM_VAR=$libdir/lxc/templates
4751
4752 prefix_save=$prefix
4753 exec_prefix_save=$exec_prefix
4754
4755 if test "x$prefix" = "xNONE"; then
4756 prefix="$ac_default_prefix"
4757 fi
4758 if test "x$exec_prefix" = "xNONE"; then
4759 exec_prefix=$prefix
4760 fi
4761
4762 full_var="$FROM_VAR"
4763 while true; do
4764 new_full_var="`eval echo $full_var`"
4765 if test "x$new_full_var" = "x$full_var"; then break; fi
4766 full_var=$new_full_var
4767 done
4768
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: