~ubuntu-branches/ubuntu/quantal/lxc/quantal-201205292108

« back to all changes in this revision

Viewing changes to .pc/01-lxc-directories.patch/configure

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2012-04-26 15:18:35 UTC
  • mfrom: (3.1.41 sid)
  • Revision ID: package-import@ubuntu.com-20120426151835-3vz6kb4m90gb26js
Tags: 0.8.0~rc1-4ubuntu1
* Merge from unstable.  Remaining changes:
  - control:
    - update maintainer
    - Build-Depends: add dh-apparmor and libapparmor-dev
    - lxc Depends: add bridge-utils, dnsmasq-base, iptables, rsync
    - lxc Recommends: add cgroup-lite | cgroup-bin, openssl
    - lxc Suggests: add btrfs-tools, lvm2, qemu-user-static
    - lxc Conflicts: remove (cgroup-bin)
  - Add lxc-start-ephemeral and lxc-wait to debian/local
  - apparmor:
    - add lxc.apparmor, lxc-containers.apparmor,
      lxc-default.apparmor, and new lxc.apparmor.in
  - add debian/lxc.conf (default container creation config file)
  - debian/lxc.install.in:
    * add lxc-start-ephemeral
    * add debian/lxc.conf
    * skip lxc-debconf*
    * skip lxc-ls (Use upstream's)
  - debian/lxc*.install.in: use '*', not @DEB_HOST_MULTIARCH@
  - Use our own completely different lxc.postinst and lxc.postrm
  - remove lxc.templates
  - debian/rules:
    * add DEB_DH_INSTALLINIT_ARGS = --upstart-only
    * don't do debconf stuff
    * add debian/*.apparmor.in to files processed under
      override_dh_auto_clean
    * don't comment out ubuntu or busybox templates
    * do apparmor stuff and install our own lxc-wait under override_dh_install
    * install our upstart scripts in override_dh_installinit
  - add lxc.default, lxc.lxc-net.upstart, lxc.upstart under
    debian/

* patches kept:
  - 0013-lxc-create-use-default-config.patch (needed manual rebase)
  - 0030-ubuntu-template-fail.patch
  - 0031-ubuntu-template-resolvconf.patch
  - 0044-lxc-destroy-rm-autos
  - debian/patches/0045-fix-other-templates
  - debian/patches/0046-lxc-clone-change-hwaddr
  - debian/patches/0047-bindhome-check-shell
  - debian/patches/0049-ubuntu-template-sudo-and-cleanup
  - debian/patches/0050-clone-lvm-sizes
  - debian/patches/0052-ubuntu-bind-user-conflict
  - debian/patches/0053-lxc-start-pin-rootfs
  - debian/patches/0054-ubuntu-debug
  - debian/patches/0055-ubuntu-handle-badgrp
  - debian/patches/0056-dont-watch-utmp
  - debian/patches/0057-update-manpages
  - debian/patches/0058-fixup-ubuntu-cloud
  - debian/patches/0059-reenable-daily-cloudimg
  - debian/patches/0060-lxc-shutdown
  - debian/patches/0061-lxc-start-apparmor
  - debian/patches/0062-templates-relative-paths
  - debian/patches/0063-check-apparmor-enabled
  - debian/patches/0064-apparmor-mount-proc
  - debian/patches/0065-fix-bindhome-relpath
  - debian/patches/0066-confile-typo
  - debian/patches/0067-templates-lxc-profile
  - debian/patches/0068-fix-lxc-config-layout 
  - debian/patches/0069-ubuntu-cloud-fix
  - debian/patches/0070-templates-rmdir-dev-shm
  - debian/patches/0071-ubuntu-cloud-fix-image-extraction
  - debian/patches/0072-lxc-shutdown-help
  - debian/patches/0073-lxc-destroy-waits-before-destroy
  - mark all patches which have been forwarded as such, refresh all
* 0074-lxc-execute-find-init: lxc-init had moved.  Introduce a function in
  lxc-execute to go find it.  Otherwise lxc-execute for any older releases
  will fail.
* 0075-lxc-ls-bash: lxc-ls needs bash, not sh
* add debian/lxc.apparmor.in so DEB_HOST_MULTIARCH can be expanded
* 0076-fix-sprintfs:  - check return values for all sprintfs and snprintfs
  which could overflow (LP: #988918)
* 0077-execute-without-rootfs: let lxc-execute succeed with no rootfs
  (LP: #981955)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.68 for lxc 0.8.0-rc1.
 
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
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if 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
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (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'
 
52
else
 
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'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if 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
  }
 
81
fi
 
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.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
as_myself=
 
93
case $0 in #((
 
94
  *[\\/]* ) as_myself=$0 ;;
 
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
96
for as_dir in $PATH
 
97
do
 
98
  IFS=$as_save_IFS
 
99
  test -z "$as_dir" && as_dir=.
 
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
101
  done
 
102
IFS=$as_save_IFS
 
103
 
 
104
     ;;
 
105
esac
 
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
107
# in which case we are not to be found in the path.
 
108
if test "x$as_myself" = x; then
 
109
  as_myself=$0
 
110
fi
 
111
if test ! -f "$as_myself"; then
 
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
113
  exit 1
 
114
fi
 
115
 
 
116
# Unset variables that we do not need and which cause bugs (e.g. in
 
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
118
# suppresses any "Segmentation fault" message there.  '((' could
 
119
# trigger a bug in pdksh 5.2.14.
 
120
for as_var in BASH_ENV ENV MAIL MAILPATH
 
121
do eval test x\${$as_var+set} = xset \
 
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# CDPATH.
 
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
136
 
 
137
if test "x$CONFIG_SHELL" = x; then
 
138
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
139
  emulate sh
 
140
  NULLCMD=:
 
141
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
142
  # is contrary to our usage.  Disable this feature.
 
143
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
144
  setopt NO_GLOB_SUBST
 
145
else
 
146
  case \`(set -o) 2>/dev/null\` in #(
 
147
  *posix*) :
 
148
    set -o posix ;; #(
 
149
  *) :
 
150
     ;;
 
151
esac
 
152
fi
 
153
"
 
154
  as_required="as_fn_return () { (exit \$1); }
 
155
as_fn_success () { as_fn_return 0; }
 
156
as_fn_failure () { as_fn_return 1; }
 
157
as_fn_ret_success () { return 0; }
 
158
as_fn_ret_failure () { return 1; }
 
159
 
 
160
exitcode=0
 
161
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
162
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
163
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
164
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
165
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
166
 
 
167
else
 
168
  exitcode=1; echo positional parameters were not saved.
 
169
fi
 
170
test x\$exitcode = x0 || exit 1"
 
171
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
172
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
173
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
174
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
175
test \$(( 1 + 1 )) = 2 || exit 1"
 
176
  if (eval "$as_required") 2>/dev/null; then :
 
177
  as_have_required=yes
 
178
else
 
179
  as_have_required=no
 
180
fi
 
181
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
182
 
 
183
else
 
184
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
185
as_found=false
 
186
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
187
do
 
188
  IFS=$as_save_IFS
 
189
  test -z "$as_dir" && as_dir=.
 
190
  as_found=:
 
191
  case $as_dir in #(
 
192
         /*)
 
193
           for as_base in sh bash ksh sh5; do
 
194
             # Try only shells that exist, to save several forks.
 
195
             as_shell=$as_dir/$as_base
 
196
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
197
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
198
  CONFIG_SHELL=$as_shell as_have_required=yes
 
199
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
200
  break 2
 
201
fi
 
202
fi
 
203
           done;;
 
204
       esac
 
205
  as_found=false
 
206
done
 
207
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
208
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
209
  CONFIG_SHELL=$SHELL as_have_required=yes
 
210
fi; }
 
211
IFS=$as_save_IFS
 
212
 
 
213
 
 
214
      if test "x$CONFIG_SHELL" != x; then :
 
215
  # We cannot yet assume a decent shell, so we have to provide a
 
216
        # neutralization value for shells without unset; and this also
 
217
        # works around shells that cannot unset nonexistent variables.
 
218
        # Preserve -v and -x to the replacement shell.
 
219
        BASH_ENV=/dev/null
 
220
        ENV=/dev/null
 
221
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
222
        export CONFIG_SHELL
 
223
        case $- in # ((((
 
224
          *v*x* | *x*v* ) as_opts=-vx ;;
 
225
          *v* ) as_opts=-v ;;
 
226
          *x* ) as_opts=-x ;;
 
227
          * ) as_opts= ;;
 
228
        esac
 
229
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
 
230
fi
 
231
 
 
232
    if test x$as_have_required = xno; then :
 
233
  $as_echo "$0: This script requires a shell more modern than all"
 
234
  $as_echo "$0: the shells that I found on your system."
 
235
  if test x${ZSH_VERSION+set} = xset ; then
 
236
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
237
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
238
  else
 
239
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
 
240
$0: including any error possibly output before this
 
241
$0: message. Then install a modern shell, or manually run
 
242
$0: the script under such a shell if you do have one."
 
243
  fi
 
244
  exit 1
 
245
fi
 
246
fi
 
247
fi
 
248
SHELL=${CONFIG_SHELL-/bin/sh}
 
249
export SHELL
 
250
# Unset more variables known to interfere with behavior of common tools.
 
251
CLICOLOR_FORCE= GREP_OPTIONS=
 
252
unset CLICOLOR_FORCE GREP_OPTIONS
 
253
 
 
254
## --------------------- ##
 
255
## M4sh Shell Functions. ##
 
256
## --------------------- ##
 
257
# as_fn_unset VAR
 
258
# ---------------
 
259
# Portably unset VAR.
 
260
as_fn_unset ()
 
261
{
 
262
  { eval $1=; unset $1;}
 
263
}
 
264
as_unset=as_fn_unset
 
265
 
 
266
# as_fn_set_status STATUS
 
267
# -----------------------
 
268
# Set $? to STATUS, without forking.
 
269
as_fn_set_status ()
 
270
{
 
271
  return $1
 
272
} # as_fn_set_status
 
273
 
 
274
# as_fn_exit STATUS
 
275
# -----------------
 
276
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
277
as_fn_exit ()
 
278
{
 
279
  set +e
 
280
  as_fn_set_status $1
 
281
  exit $1
 
282
} # as_fn_exit
 
283
 
 
284
# as_fn_mkdir_p
 
285
# -------------
 
286
# Create "$as_dir" as a directory, including parents if necessary.
 
287
as_fn_mkdir_p ()
 
288
{
 
289
 
 
290
  case $as_dir in #(
 
291
  -*) as_dir=./$as_dir;;
 
292
  esac
 
293
  test -d "$as_dir" || eval $as_mkdir_p || {
 
294
    as_dirs=
 
295
    while :; do
 
296
      case $as_dir in #(
 
297
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
298
      *) as_qdir=$as_dir;;
 
299
      esac
 
300
      as_dirs="'$as_qdir' $as_dirs"
 
301
      as_dir=`$as_dirname -- "$as_dir" ||
 
302
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
303
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
304
         X"$as_dir" : 'X\(//\)$' \| \
 
305
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
306
$as_echo X"$as_dir" |
 
307
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
308
            s//\1/
 
309
            q
 
310
          }
 
311
          /^X\(\/\/\)[^/].*/{
 
312
            s//\1/
 
313
            q
 
314
          }
 
315
          /^X\(\/\/\)$/{
 
316
            s//\1/
 
317
            q
 
318
          }
 
319
          /^X\(\/\).*/{
 
320
            s//\1/
 
321
            q
 
322
          }
 
323
          s/.*/./; q'`
 
324
      test -d "$as_dir" && break
 
325
    done
 
326
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
327
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
328
 
 
329
 
 
330
} # as_fn_mkdir_p
 
331
# as_fn_append VAR VALUE
 
332
# ----------------------
 
333
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
334
# advantage of any shell optimizations that allow amortized linear growth over
 
335
# repeated appends, instead of the typical quadratic growth present in naive
 
336
# implementations.
 
337
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
338
  eval 'as_fn_append ()
 
339
  {
 
340
    eval $1+=\$2
 
341
  }'
 
342
else
 
343
  as_fn_append ()
 
344
  {
 
345
    eval $1=\$$1\$2
 
346
  }
 
347
fi # as_fn_append
 
348
 
 
349
# as_fn_arith ARG...
 
350
# ------------------
 
351
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
352
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
353
# must be portable across $(()) and expr.
 
354
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
355
  eval 'as_fn_arith ()
 
356
  {
 
357
    as_val=$(( $* ))
 
358
  }'
 
359
else
 
360
  as_fn_arith ()
 
361
  {
 
362
    as_val=`expr "$@" || test $? -eq 1`
 
363
  }
 
364
fi # as_fn_arith
 
365
 
 
366
 
 
367
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
368
# ----------------------------------------
 
369
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
370
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
371
# script with STATUS, using 1 if that was 0.
 
372
as_fn_error ()
 
373
{
 
374
  as_status=$1; test $as_status -eq 0 && as_status=1
 
375
  if test "$4"; then
 
376
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
377
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
378
  fi
 
379
  $as_echo "$as_me: error: $2" >&2
 
380
  as_fn_exit $as_status
 
381
} # as_fn_error
 
382
 
 
383
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
384
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
385
  as_expr=expr
 
386
else
 
387
  as_expr=false
 
388
fi
 
389
 
 
390
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
391
  as_basename=basename
 
392
else
 
393
  as_basename=false
 
394
fi
 
395
 
 
396
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
397
  as_dirname=dirname
 
398
else
 
399
  as_dirname=false
 
400
fi
 
401
 
 
402
as_me=`$as_basename -- "$0" ||
 
403
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
404
         X"$0" : 'X\(//\)$' \| \
 
405
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
406
$as_echo X/"$0" |
 
407
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
408
            s//\1/
 
409
            q
 
410
          }
 
411
          /^X\/\(\/\/\)$/{
 
412
            s//\1/
 
413
            q
 
414
          }
 
415
          /^X\/\(\/\).*/{
 
416
            s//\1/
 
417
            q
 
418
          }
 
419
          s/.*/./; q'`
 
420
 
 
421
# Avoid depending upon Character Ranges.
 
422
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
423
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
424
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
425
as_cr_digits='0123456789'
 
426
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
427
 
 
428
 
 
429
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
430
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
431
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
432
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
433
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
434
  sed -n '
 
435
    p
 
436
    /[$]LINENO/=
 
437
  ' <$as_myself |
 
438
    sed '
 
439
      s/[$]LINENO.*/&-/
 
440
      t lineno
 
441
      b
 
442
      :lineno
 
443
      N
 
444
      :loop
 
445
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
446
      t loop
 
447
      s/-\n.*//
 
448
    ' >$as_me.lineno &&
 
449
  chmod +x "$as_me.lineno" ||
 
450
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
451
 
 
452
  # Don't try to exec as it changes $[0], causing all sort of problems
 
453
  # (the dirname of $[0] is not the place where we might find the
 
454
  # original and so on.  Autoconf is especially sensitive to this).
 
455
  . "./$as_me.lineno"
 
456
  # Exit status is that of the last command.
 
457
  exit
 
458
}
 
459
 
 
460
ECHO_C= ECHO_N= ECHO_T=
 
461
case `echo -n x` in #(((((
 
462
-n*)
 
463
  case `echo 'xy\c'` in
 
464
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
465
  xy)  ECHO_C='\c';;
 
466
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
467
       ECHO_T=' ';;
 
468
  esac;;
 
469
*)
 
470
  ECHO_N='-n';;
 
471
esac
 
472
 
 
473
rm -f conf$$ conf$$.exe conf$$.file
 
474
if test -d conf$$.dir; then
 
475
  rm -f conf$$.dir/conf$$.file
 
476
else
 
477
  rm -f conf$$.dir
 
478
  mkdir conf$$.dir 2>/dev/null
 
479
fi
 
480
if (echo >conf$$.file) 2>/dev/null; then
 
481
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
482
    as_ln_s='ln -s'
 
483
    # ... but there are two gotchas:
 
484
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
485
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
486
    # In both cases, we have to default to `cp -p'.
 
487
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
488
      as_ln_s='cp -p'
 
489
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
490
    as_ln_s=ln
 
491
  else
 
492
    as_ln_s='cp -p'
 
493
  fi
 
494
else
 
495
  as_ln_s='cp -p'
 
496
fi
 
497
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
498
rmdir conf$$.dir 2>/dev/null
 
499
 
 
500
if mkdir -p . 2>/dev/null; then
 
501
  as_mkdir_p='mkdir -p "$as_dir"'
 
502
else
 
503
  test -d ./-p && rmdir ./-p
 
504
  as_mkdir_p=false
 
505
fi
 
506
 
 
507
if test -x / >/dev/null 2>&1; then
 
508
  as_test_x='test -x'
 
509
else
 
510
  if ls -dL / >/dev/null 2>&1; then
 
511
    as_ls_L_option=L
 
512
  else
 
513
    as_ls_L_option=
 
514
  fi
 
515
  as_test_x='
 
516
    eval sh -c '\''
 
517
      if test -d "$1"; then
 
518
        test -d "$1/.";
 
519
      else
 
520
        case $1 in #(
 
521
        -*)set "./$1";;
 
522
        esac;
 
523
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
524
        ???[sx]*):;;*)false;;esac;fi
 
525
    '\'' sh
 
526
  '
 
527
fi
 
528
as_executable_p=$as_test_x
 
529
 
 
530
# Sed expression to map a string onto a valid CPP name.
 
531
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
532
 
 
533
# Sed expression to map a string onto a valid variable name.
 
534
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
535
 
 
536
 
 
537
test -n "$DJDIR" || exec 7<&0 </dev/null
 
538
exec 6>&1
 
539
 
 
540
# Name of the host.
 
541
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
542
# so uname gets run too.
 
543
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
544
 
 
545
#
 
546
# Initializations.
 
547
#
 
548
ac_default_prefix=/usr/local
 
549
ac_clean_files=
 
550
ac_config_libobj_dir=.
 
551
LIBOBJS=
 
552
cross_compiling=no
 
553
subdirs=
 
554
MFLAGS=
 
555
MAKEFLAGS=
 
556
 
 
557
# Identity of this package.
 
558
PACKAGE_NAME='lxc'
 
559
PACKAGE_TARNAME='lxc'
 
560
PACKAGE_VERSION='0.8.0-rc1'
 
561
PACKAGE_STRING='lxc 0.8.0-rc1'
 
562
PACKAGE_BUGREPORT=''
 
563
PACKAGE_URL=''
 
564
 
 
565
ac_unique_file="configure.ac"
 
566
# Factoring default headers for most tests.
 
567
ac_includes_default="\
 
568
#include <stdio.h>
 
569
#ifdef HAVE_SYS_TYPES_H
 
570
# include <sys/types.h>
 
571
#endif
 
572
#ifdef HAVE_SYS_STAT_H
 
573
# include <sys/stat.h>
 
574
#endif
 
575
#ifdef STDC_HEADERS
 
576
# include <stdlib.h>
 
577
# include <stddef.h>
 
578
#else
 
579
# ifdef HAVE_STDLIB_H
 
580
#  include <stdlib.h>
 
581
# endif
 
582
#endif
 
583
#ifdef HAVE_STRING_H
 
584
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
585
#  include <memory.h>
 
586
# endif
 
587
# include <string.h>
 
588
#endif
 
589
#ifdef HAVE_STRINGS_H
 
590
# include <strings.h>
 
591
#endif
 
592
#ifdef HAVE_INTTYPES_H
 
593
# include <inttypes.h>
 
594
#endif
 
595
#ifdef HAVE_STDINT_H
 
596
# include <stdint.h>
 
597
#endif
 
598
#ifdef HAVE_UNISTD_H
 
599
# include <unistd.h>
 
600
#endif"
 
601
 
 
602
ac_subst_vars='am__EXEEXT_FALSE
 
603
am__EXEEXT_TRUE
 
604
LTLIBOBJS
 
605
LIBOBJS
 
606
LINUX_SRCARCH
 
607
LINUX_DIR
 
608
CAP_LIBS
 
609
LXCTEMPLATEDIR
 
610
LXCINITDIR
 
611
LXCROOTFSMOUNT
 
612
LXCPATH
 
613
LXC_GENERATE_DATE
 
614
DOCDIR
 
615
LOCALSTATEDIR
 
616
DATADIR
 
617
SYSCONFDIR
 
618
INCLUDEDIR
 
619
BINDIR
 
620
LIBDIR
 
621
PREFIX
 
622
ENABLE_EXAMPLES_FALSE
 
623
ENABLE_EXAMPLES_TRUE
 
624
ENABLE_DOCBOOK_FALSE
 
625
ENABLE_DOCBOOK_TRUE
 
626
have_docbook
 
627
ENABLE_RPATH_FALSE
 
628
ENABLE_RPATH_TRUE
 
629
SETCAP
 
630
EGREP
 
631
GREP
 
632
CPP
 
633
am__fastdepCC_FALSE
 
634
am__fastdepCC_TRUE
 
635
CCDEPMODE
 
636
AMDEPBACKSLASH
 
637
AMDEP_FALSE
 
638
AMDEP_TRUE
 
639
am__quote
 
640
am__include
 
641
DEPDIR
 
642
OBJEXT
 
643
EXEEXT
 
644
ac_ct_CC
 
645
CPPFLAGS
 
646
LDFLAGS
 
647
CFLAGS
 
648
CC
 
649
host_os
 
650
host_vendor
 
651
host_cpu
 
652
host
 
653
build_os
 
654
build_vendor
 
655
build_cpu
 
656
build
 
657
am__untar
 
658
am__tar
 
659
AMTAR
 
660
am__leading_dot
 
661
SET_MAKE
 
662
AWK
 
663
mkdir_p
 
664
MKDIR_P
 
665
INSTALL_STRIP_PROGRAM
 
666
STRIP
 
667
install_sh
 
668
MAKEINFO
 
669
AUTOHEADER
 
670
AUTOMAKE
 
671
AUTOCONF
 
672
ACLOCAL
 
673
VERSION
 
674
PACKAGE
 
675
CYGPATH_W
 
676
am__isrc
 
677
INSTALL_DATA
 
678
INSTALL_SCRIPT
 
679
INSTALL_PROGRAM
 
680
target_alias
 
681
host_alias
 
682
build_alias
 
683
LIBS
 
684
ECHO_T
 
685
ECHO_N
 
686
ECHO_C
 
687
DEFS
 
688
mandir
 
689
localedir
 
690
libdir
 
691
psdir
 
692
pdfdir
 
693
dvidir
 
694
htmldir
 
695
infodir
 
696
docdir
 
697
oldincludedir
 
698
includedir
 
699
localstatedir
 
700
sharedstatedir
 
701
sysconfdir
 
702
datadir
 
703
datarootdir
 
704
libexecdir
 
705
sbindir
 
706
bindir
 
707
program_transform_name
 
708
prefix
 
709
exec_prefix
 
710
PACKAGE_URL
 
711
PACKAGE_BUGREPORT
 
712
PACKAGE_STRING
 
713
PACKAGE_VERSION
 
714
PACKAGE_TARNAME
 
715
PACKAGE_NAME
 
716
PATH_SEPARATOR
 
717
SHELL'
 
718
ac_subst_files=''
 
719
ac_user_opts='
 
720
enable_option_checking
 
721
enable_dependency_tracking
 
722
enable_rpath
 
723
enable_doc
 
724
enable_examples
 
725
with_config_path
 
726
with_rootfs_path
 
727
with_linuxdir
 
728
'
 
729
      ac_precious_vars='build_alias
 
730
host_alias
 
731
target_alias
 
732
CC
 
733
CFLAGS
 
734
LDFLAGS
 
735
LIBS
 
736
CPPFLAGS
 
737
CPP'
 
738
 
 
739
 
 
740
# Initialize some variables set by options.
 
741
ac_init_help=
 
742
ac_init_version=false
 
743
ac_unrecognized_opts=
 
744
ac_unrecognized_sep=
 
745
# The variables have the same names as the options, with
 
746
# dashes changed to underlines.
 
747
cache_file=/dev/null
 
748
exec_prefix=NONE
 
749
no_create=
 
750
no_recursion=
 
751
prefix=NONE
 
752
program_prefix=NONE
 
753
program_suffix=NONE
 
754
program_transform_name=s,x,x,
 
755
silent=
 
756
site=
 
757
srcdir=
 
758
verbose=
 
759
x_includes=NONE
 
760
x_libraries=NONE
 
761
 
 
762
# Installation directory options.
 
763
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
764
# and all the variables that are supposed to be based on exec_prefix
 
765
# by default will actually change.
 
766
# Use braces instead of parens because sh, perl, etc. also accept them.
 
767
# (The list follows the same order as the GNU Coding Standards.)
 
768
bindir='${exec_prefix}/bin'
 
769
sbindir='${exec_prefix}/sbin'
 
770
libexecdir='${exec_prefix}/libexec'
 
771
datarootdir='${prefix}/share'
 
772
datadir='${datarootdir}'
 
773
sysconfdir='${prefix}/etc'
 
774
sharedstatedir='${prefix}/com'
 
775
localstatedir='${prefix}/var'
 
776
includedir='${prefix}/include'
 
777
oldincludedir='/usr/include'
 
778
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
779
infodir='${datarootdir}/info'
 
780
htmldir='${docdir}'
 
781
dvidir='${docdir}'
 
782
pdfdir='${docdir}'
 
783
psdir='${docdir}'
 
784
libdir='${exec_prefix}/lib'
 
785
localedir='${datarootdir}/locale'
 
786
mandir='${datarootdir}/man'
 
787
 
 
788
ac_prev=
 
789
ac_dashdash=
 
790
for ac_option
 
791
do
 
792
  # If the previous option needs an argument, assign it.
 
793
  if test -n "$ac_prev"; then
 
794
    eval $ac_prev=\$ac_option
 
795
    ac_prev=
 
796
    continue
 
797
  fi
 
798
 
 
799
  case $ac_option in
 
800
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
801
  *=)   ac_optarg= ;;
 
802
  *)    ac_optarg=yes ;;
 
803
  esac
 
804
 
 
805
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
806
 
 
807
  case $ac_dashdash$ac_option in
 
808
  --)
 
809
    ac_dashdash=yes ;;
 
810
 
 
811
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
812
    ac_prev=bindir ;;
 
813
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
814
    bindir=$ac_optarg ;;
 
815
 
 
816
  -build | --build | --buil | --bui | --bu)
 
817
    ac_prev=build_alias ;;
 
818
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
819
    build_alias=$ac_optarg ;;
 
820
 
 
821
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
822
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
823
    ac_prev=cache_file ;;
 
824
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
825
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
826
    cache_file=$ac_optarg ;;
 
827
 
 
828
  --config-cache | -C)
 
829
    cache_file=config.cache ;;
 
830
 
 
831
  -datadir | --datadir | --datadi | --datad)
 
832
    ac_prev=datadir ;;
 
833
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
834
    datadir=$ac_optarg ;;
 
835
 
 
836
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
837
  | --dataroo | --dataro | --datar)
 
838
    ac_prev=datarootdir ;;
 
839
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
840
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
841
    datarootdir=$ac_optarg ;;
 
842
 
 
843
  -disable-* | --disable-*)
 
844
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
845
    # Reject names that are not valid shell variable names.
 
846
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
847
      as_fn_error $? "invalid feature name: $ac_useropt"
 
848
    ac_useropt_orig=$ac_useropt
 
849
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
850
    case $ac_user_opts in
 
851
      *"
 
852
"enable_$ac_useropt"
 
853
"*) ;;
 
854
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
855
         ac_unrecognized_sep=', ';;
 
856
    esac
 
857
    eval enable_$ac_useropt=no ;;
 
858
 
 
859
  -docdir | --docdir | --docdi | --doc | --do)
 
860
    ac_prev=docdir ;;
 
861
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
862
    docdir=$ac_optarg ;;
 
863
 
 
864
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
865
    ac_prev=dvidir ;;
 
866
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
867
    dvidir=$ac_optarg ;;
 
868
 
 
869
  -enable-* | --enable-*)
 
870
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
871
    # Reject names that are not valid shell variable names.
 
872
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
873
      as_fn_error $? "invalid feature name: $ac_useropt"
 
874
    ac_useropt_orig=$ac_useropt
 
875
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
876
    case $ac_user_opts in
 
877
      *"
 
878
"enable_$ac_useropt"
 
879
"*) ;;
 
880
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
881
         ac_unrecognized_sep=', ';;
 
882
    esac
 
883
    eval enable_$ac_useropt=\$ac_optarg ;;
 
884
 
 
885
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
886
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
887
  | --exec | --exe | --ex)
 
888
    ac_prev=exec_prefix ;;
 
889
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
890
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
891
  | --exec=* | --exe=* | --ex=*)
 
892
    exec_prefix=$ac_optarg ;;
 
893
 
 
894
  -gas | --gas | --ga | --g)
 
895
    # Obsolete; use --with-gas.
 
896
    with_gas=yes ;;
 
897
 
 
898
  -help | --help | --hel | --he | -h)
 
899
    ac_init_help=long ;;
 
900
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
901
    ac_init_help=recursive ;;
 
902
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
903
    ac_init_help=short ;;
 
904
 
 
905
  -host | --host | --hos | --ho)
 
906
    ac_prev=host_alias ;;
 
907
  -host=* | --host=* | --hos=* | --ho=*)
 
908
    host_alias=$ac_optarg ;;
 
909
 
 
910
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
911
    ac_prev=htmldir ;;
 
912
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
913
  | --ht=*)
 
914
    htmldir=$ac_optarg ;;
 
915
 
 
916
  -includedir | --includedir | --includedi | --included | --include \
 
917
  | --includ | --inclu | --incl | --inc)
 
918
    ac_prev=includedir ;;
 
919
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
920
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
921
    includedir=$ac_optarg ;;
 
922
 
 
923
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
924
    ac_prev=infodir ;;
 
925
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
926
    infodir=$ac_optarg ;;
 
927
 
 
928
  -libdir | --libdir | --libdi | --libd)
 
929
    ac_prev=libdir ;;
 
930
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
931
    libdir=$ac_optarg ;;
 
932
 
 
933
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
934
  | --libexe | --libex | --libe)
 
935
    ac_prev=libexecdir ;;
 
936
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
937
  | --libexe=* | --libex=* | --libe=*)
 
938
    libexecdir=$ac_optarg ;;
 
939
 
 
940
  -localedir | --localedir | --localedi | --localed | --locale)
 
941
    ac_prev=localedir ;;
 
942
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
943
    localedir=$ac_optarg ;;
 
944
 
 
945
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
946
  | --localstate | --localstat | --localsta | --localst | --locals)
 
947
    ac_prev=localstatedir ;;
 
948
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
949
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
950
    localstatedir=$ac_optarg ;;
 
951
 
 
952
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
953
    ac_prev=mandir ;;
 
954
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
955
    mandir=$ac_optarg ;;
 
956
 
 
957
  -nfp | --nfp | --nf)
 
958
    # Obsolete; use --without-fp.
 
959
    with_fp=no ;;
 
960
 
 
961
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
962
  | --no-cr | --no-c | -n)
 
963
    no_create=yes ;;
 
964
 
 
965
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
966
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
967
    no_recursion=yes ;;
 
968
 
 
969
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
970
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
971
  | --oldin | --oldi | --old | --ol | --o)
 
972
    ac_prev=oldincludedir ;;
 
973
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
974
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
975
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
976
    oldincludedir=$ac_optarg ;;
 
977
 
 
978
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
979
    ac_prev=prefix ;;
 
980
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
981
    prefix=$ac_optarg ;;
 
982
 
 
983
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
984
  | --program-pre | --program-pr | --program-p)
 
985
    ac_prev=program_prefix ;;
 
986
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
987
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
988
    program_prefix=$ac_optarg ;;
 
989
 
 
990
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
991
  | --program-suf | --program-su | --program-s)
 
992
    ac_prev=program_suffix ;;
 
993
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
994
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
995
    program_suffix=$ac_optarg ;;
 
996
 
 
997
  -program-transform-name | --program-transform-name \
 
998
  | --program-transform-nam | --program-transform-na \
 
999
  | --program-transform-n | --program-transform- \
 
1000
  | --program-transform | --program-transfor \
 
1001
  | --program-transfo | --program-transf \
 
1002
  | --program-trans | --program-tran \
 
1003
  | --progr-tra | --program-tr | --program-t)
 
1004
    ac_prev=program_transform_name ;;
 
1005
  -program-transform-name=* | --program-transform-name=* \
 
1006
  | --program-transform-nam=* | --program-transform-na=* \
 
1007
  | --program-transform-n=* | --program-transform-=* \
 
1008
  | --program-transform=* | --program-transfor=* \
 
1009
  | --program-transfo=* | --program-transf=* \
 
1010
  | --program-trans=* | --program-tran=* \
 
1011
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1012
    program_transform_name=$ac_optarg ;;
 
1013
 
 
1014
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1015
    ac_prev=pdfdir ;;
 
1016
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1017
    pdfdir=$ac_optarg ;;
 
1018
 
 
1019
  -psdir | --psdir | --psdi | --psd | --ps)
 
1020
    ac_prev=psdir ;;
 
1021
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1022
    psdir=$ac_optarg ;;
 
1023
 
 
1024
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1025
  | -silent | --silent | --silen | --sile | --sil)
 
1026
    silent=yes ;;
 
1027
 
 
1028
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1029
    ac_prev=sbindir ;;
 
1030
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1031
  | --sbi=* | --sb=*)
 
1032
    sbindir=$ac_optarg ;;
 
1033
 
 
1034
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1035
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1036
  | --sharedst | --shareds | --shared | --share | --shar \
 
1037
  | --sha | --sh)
 
1038
    ac_prev=sharedstatedir ;;
 
1039
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1040
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1041
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1042
  | --sha=* | --sh=*)
 
1043
    sharedstatedir=$ac_optarg ;;
 
1044
 
 
1045
  -site | --site | --sit)
 
1046
    ac_prev=site ;;
 
1047
  -site=* | --site=* | --sit=*)
 
1048
    site=$ac_optarg ;;
 
1049
 
 
1050
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1051
    ac_prev=srcdir ;;
 
1052
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1053
    srcdir=$ac_optarg ;;
 
1054
 
 
1055
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1056
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1057
    ac_prev=sysconfdir ;;
 
1058
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1059
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1060
    sysconfdir=$ac_optarg ;;
 
1061
 
 
1062
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1063
    ac_prev=target_alias ;;
 
1064
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1065
    target_alias=$ac_optarg ;;
 
1066
 
 
1067
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1068
    verbose=yes ;;
 
1069
 
 
1070
  -version | --version | --versio | --versi | --vers | -V)
 
1071
    ac_init_version=: ;;
 
1072
 
 
1073
  -with-* | --with-*)
 
1074
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1075
    # Reject names that are not valid shell variable names.
 
1076
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1077
      as_fn_error $? "invalid package name: $ac_useropt"
 
1078
    ac_useropt_orig=$ac_useropt
 
1079
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1080
    case $ac_user_opts in
 
1081
      *"
 
1082
"with_$ac_useropt"
 
1083
"*) ;;
 
1084
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1085
         ac_unrecognized_sep=', ';;
 
1086
    esac
 
1087
    eval with_$ac_useropt=\$ac_optarg ;;
 
1088
 
 
1089
  -without-* | --without-*)
 
1090
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1091
    # Reject names that are not valid shell variable names.
 
1092
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1093
      as_fn_error $? "invalid package name: $ac_useropt"
 
1094
    ac_useropt_orig=$ac_useropt
 
1095
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1096
    case $ac_user_opts in
 
1097
      *"
 
1098
"with_$ac_useropt"
 
1099
"*) ;;
 
1100
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1101
         ac_unrecognized_sep=', ';;
 
1102
    esac
 
1103
    eval with_$ac_useropt=no ;;
 
1104
 
 
1105
  --x)
 
1106
    # Obsolete; use --with-x.
 
1107
    with_x=yes ;;
 
1108
 
 
1109
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1110
  | --x-incl | --x-inc | --x-in | --x-i)
 
1111
    ac_prev=x_includes ;;
 
1112
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1113
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1114
    x_includes=$ac_optarg ;;
 
1115
 
 
1116
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1117
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1118
    ac_prev=x_libraries ;;
 
1119
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1120
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1121
    x_libraries=$ac_optarg ;;
 
1122
 
 
1123
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1124
Try \`$0 --help' for more information"
 
1125
    ;;
 
1126
 
 
1127
  *=*)
 
1128
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1129
    # Reject names that are not valid shell variable names.
 
1130
    case $ac_envvar in #(
 
1131
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1132
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1133
    esac
 
1134
    eval $ac_envvar=\$ac_optarg
 
1135
    export $ac_envvar ;;
 
1136
 
 
1137
  *)
 
1138
    # FIXME: should be removed in autoconf 3.0.
 
1139
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1140
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1141
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1142
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1143
    ;;
 
1144
 
 
1145
  esac
 
1146
done
 
1147
 
 
1148
if test -n "$ac_prev"; then
 
1149
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1150
  as_fn_error $? "missing argument to $ac_option"
 
1151
fi
 
1152
 
 
1153
if test -n "$ac_unrecognized_opts"; then
 
1154
  case $enable_option_checking in
 
1155
    no) ;;
 
1156
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1157
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1158
  esac
 
1159
fi
 
1160
 
 
1161
# Check all directory arguments for consistency.
 
1162
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1163
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1164
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1165
                libdir localedir mandir
 
1166
do
 
1167
  eval ac_val=\$$ac_var
 
1168
  # Remove trailing slashes.
 
1169
  case $ac_val in
 
1170
    */ )
 
1171
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1172
      eval $ac_var=\$ac_val;;
 
1173
  esac
 
1174
  # Be sure to have absolute directory names.
 
1175
  case $ac_val in
 
1176
    [\\/$]* | ?:[\\/]* )  continue;;
 
1177
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1178
  esac
 
1179
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1180
done
 
1181
 
 
1182
# There might be people who depend on the old broken behavior: `$host'
 
1183
# used to hold the argument of --host etc.
 
1184
# FIXME: To remove some day.
 
1185
build=$build_alias
 
1186
host=$host_alias
 
1187
target=$target_alias
 
1188
 
 
1189
# FIXME: To remove some day.
 
1190
if test "x$host_alias" != x; then
 
1191
  if test "x$build_alias" = x; then
 
1192
    cross_compiling=maybe
 
1193
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1194
    If a cross compiler is detected then cross compile mode will be used" >&2
 
1195
  elif test "x$build_alias" != "x$host_alias"; then
 
1196
    cross_compiling=yes
 
1197
  fi
 
1198
fi
 
1199
 
 
1200
ac_tool_prefix=
 
1201
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1202
 
 
1203
test "$silent" = yes && exec 6>/dev/null
 
1204
 
 
1205
 
 
1206
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1207
ac_ls_di=`ls -di .` &&
 
1208
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1209
  as_fn_error $? "working directory cannot be determined"
 
1210
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1211
  as_fn_error $? "pwd does not report name of working directory"
 
1212
 
 
1213
 
 
1214
# Find the source files, if location was not specified.
 
1215
if test -z "$srcdir"; then
 
1216
  ac_srcdir_defaulted=yes
 
1217
  # Try the directory containing this script, then the parent directory.
 
1218
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1219
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1220
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1221
         X"$as_myself" : 'X\(//\)$' \| \
 
1222
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1223
$as_echo X"$as_myself" |
 
1224
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1225
            s//\1/
 
1226
            q
 
1227
          }
 
1228
          /^X\(\/\/\)[^/].*/{
 
1229
            s//\1/
 
1230
            q
 
1231
          }
 
1232
          /^X\(\/\/\)$/{
 
1233
            s//\1/
 
1234
            q
 
1235
          }
 
1236
          /^X\(\/\).*/{
 
1237
            s//\1/
 
1238
            q
 
1239
          }
 
1240
          s/.*/./; q'`
 
1241
  srcdir=$ac_confdir
 
1242
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1243
    srcdir=..
 
1244
  fi
 
1245
else
 
1246
  ac_srcdir_defaulted=no
 
1247
fi
 
1248
if test ! -r "$srcdir/$ac_unique_file"; then
 
1249
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1250
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1251
fi
 
1252
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1253
ac_abs_confdir=`(
 
1254
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1255
        pwd)`
 
1256
# When building in place, set srcdir=.
 
1257
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1258
  srcdir=.
 
1259
fi
 
1260
# Remove unnecessary trailing slashes from srcdir.
 
1261
# Double slashes in file names in object file debugging info
 
1262
# mess up M-x gdb in Emacs.
 
1263
case $srcdir in
 
1264
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1265
esac
 
1266
for ac_var in $ac_precious_vars; do
 
1267
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1268
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1269
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1270
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1271
done
 
1272
 
 
1273
#
 
1274
# Report the --help message.
 
1275
#
 
1276
if test "$ac_init_help" = "long"; then
 
1277
  # Omit some internal or obsolete options to make the list less imposing.
 
1278
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1279
  cat <<_ACEOF
 
1280
\`configure' configures lxc 0.8.0-rc1 to adapt to many kinds of systems.
 
1281
 
 
1282
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1283
 
 
1284
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1285
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1286
 
 
1287
Defaults for the options are specified in brackets.
 
1288
 
 
1289
Configuration:
 
1290
  -h, --help              display this help and exit
 
1291
      --help=short        display options specific to this package
 
1292
      --help=recursive    display the short help of all the included packages
 
1293
  -V, --version           display version information and exit
 
1294
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1295
      --cache-file=FILE   cache test results in FILE [disabled]
 
1296
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1297
  -n, --no-create         do not create output files
 
1298
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1299
 
 
1300
Installation directories:
 
1301
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1302
                          [$ac_default_prefix]
 
1303
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1304
                          [PREFIX]
 
1305
 
 
1306
By default, \`make install' will install all the files in
 
1307
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1308
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1309
for instance \`--prefix=\$HOME'.
 
1310
 
 
1311
For better control, use the options below.
 
1312
 
 
1313
Fine tuning of the installation directories:
 
1314
  --bindir=DIR            user executables [EPREFIX/bin]
 
1315
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1316
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1317
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1318
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1319
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1320
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1321
  --includedir=DIR        C header files [PREFIX/include]
 
1322
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1323
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1324
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1325
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1326
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1327
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1328
  --docdir=DIR            documentation root [DATAROOTDIR/doc/lxc]
 
1329
  --htmldir=DIR           html documentation [DOCDIR]
 
1330
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1331
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1332
  --psdir=DIR             ps documentation [DOCDIR]
 
1333
_ACEOF
 
1334
 
 
1335
  cat <<\_ACEOF
 
1336
 
 
1337
Program names:
 
1338
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1339
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1340
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1341
 
 
1342
System types:
 
1343
  --build=BUILD     configure for building on BUILD [guessed]
 
1344
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1345
_ACEOF
 
1346
fi
 
1347
 
 
1348
if test -n "$ac_init_help"; then
 
1349
  case $ac_init_help in
 
1350
     short | recursive ) echo "Configuration of lxc 0.8.0-rc1:";;
 
1351
   esac
 
1352
  cat <<\_ACEOF
 
1353
 
 
1354
Optional Features:
 
1355
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1356
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1357
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1358
  --disable-dependency-tracking  speeds up one-time build
 
1359
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1360
  --disable-rpath         do not set rpath in executables
 
1361
  --enable-doc            make mans (require docbook2man installed)
 
1362
                          [default=auto]
 
1363
  --disable-examples      do not install configuration examples
 
1364
 
 
1365
Optional Packages:
 
1366
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1367
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1368
  --with-config-path=dir  lxc configuration repository path
 
1369
  --with-rootfs-path=dir  lxc rootfs mount point
 
1370
  --with-linuxdir=DIR     specify path to Linux source directory
 
1371
 
 
1372
Some influential environment variables:
 
1373
  CC          C compiler command
 
1374
  CFLAGS      C compiler flags
 
1375
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1376
              nonstandard directory <lib dir>
 
1377
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1378
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1379
              you have headers in a nonstandard directory <include dir>
 
1380
  CPP         C preprocessor
 
1381
 
 
1382
Use these variables to override the choices made by `configure' or to help
 
1383
it to find libraries and programs with nonstandard names/locations.
 
1384
 
 
1385
Report bugs to the package provider.
 
1386
_ACEOF
 
1387
ac_status=$?
 
1388
fi
 
1389
 
 
1390
if test "$ac_init_help" = "recursive"; then
 
1391
  # If there are subdirs, report their specific --help.
 
1392
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1393
    test -d "$ac_dir" ||
 
1394
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1395
      continue
 
1396
    ac_builddir=.
 
1397
 
 
1398
case "$ac_dir" in
 
1399
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1400
*)
 
1401
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1402
  # A ".." for each directory in $ac_dir_suffix.
 
1403
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1404
  case $ac_top_builddir_sub in
 
1405
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1406
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1407
  esac ;;
 
1408
esac
 
1409
ac_abs_top_builddir=$ac_pwd
 
1410
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1411
# for backward compatibility:
 
1412
ac_top_builddir=$ac_top_build_prefix
 
1413
 
 
1414
case $srcdir in
 
1415
  .)  # We are building in place.
 
1416
    ac_srcdir=.
 
1417
    ac_top_srcdir=$ac_top_builddir_sub
 
1418
    ac_abs_top_srcdir=$ac_pwd ;;
 
1419
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1420
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1421
    ac_top_srcdir=$srcdir
 
1422
    ac_abs_top_srcdir=$srcdir ;;
 
1423
  *) # Relative name.
 
1424
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1425
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1426
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1427
esac
 
1428
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1429
 
 
1430
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1431
    # Check for guested configure.
 
1432
    if test -f "$ac_srcdir/configure.gnu"; then
 
1433
      echo &&
 
1434
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1435
    elif test -f "$ac_srcdir/configure"; then
 
1436
      echo &&
 
1437
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1438
    else
 
1439
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1440
    fi || ac_status=$?
 
1441
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1442
  done
 
1443
fi
 
1444
 
 
1445
test -n "$ac_init_help" && exit $ac_status
 
1446
if $ac_init_version; then
 
1447
  cat <<\_ACEOF
 
1448
lxc configure 0.8.0-rc1
 
1449
generated by GNU Autoconf 2.68
 
1450
 
 
1451
Copyright (C) 2010 Free Software Foundation, Inc.
 
1452
This configure script is free software; the Free Software Foundation
 
1453
gives unlimited permission to copy, distribute and modify it.
 
1454
_ACEOF
 
1455
  exit
 
1456
fi
 
1457
 
 
1458
## ------------------------ ##
 
1459
## Autoconf initialization. ##
 
1460
## ------------------------ ##
 
1461
 
 
1462
# ac_fn_c_try_compile LINENO
 
1463
# --------------------------
 
1464
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1465
ac_fn_c_try_compile ()
 
1466
{
 
1467
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1468
  rm -f conftest.$ac_objext
 
1469
  if { { ac_try="$ac_compile"
 
1470
case "(($ac_try" in
 
1471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1472
  *) ac_try_echo=$ac_try;;
 
1473
esac
 
1474
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1475
$as_echo "$ac_try_echo"; } >&5
 
1476
  (eval "$ac_compile") 2>conftest.err
 
1477
  ac_status=$?
 
1478
  if test -s conftest.err; then
 
1479
    grep -v '^ *+' conftest.err >conftest.er1
 
1480
    cat conftest.er1 >&5
 
1481
    mv -f conftest.er1 conftest.err
 
1482
  fi
 
1483
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1484
  test $ac_status = 0; } && {
 
1485
         test -z "$ac_c_werror_flag" ||
 
1486
         test ! -s conftest.err
 
1487
       } && test -s conftest.$ac_objext; then :
 
1488
  ac_retval=0
 
1489
else
 
1490
  $as_echo "$as_me: failed program was:" >&5
 
1491
sed 's/^/| /' conftest.$ac_ext >&5
 
1492
 
 
1493
        ac_retval=1
 
1494
fi
 
1495
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1496
  as_fn_set_status $ac_retval
 
1497
 
 
1498
} # ac_fn_c_try_compile
 
1499
 
 
1500
# ac_fn_c_try_cpp LINENO
 
1501
# ----------------------
 
1502
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1503
ac_fn_c_try_cpp ()
 
1504
{
 
1505
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1506
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1507
case "(($ac_try" in
 
1508
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1509
  *) ac_try_echo=$ac_try;;
 
1510
esac
 
1511
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1512
$as_echo "$ac_try_echo"; } >&5
 
1513
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1514
  ac_status=$?
 
1515
  if test -s conftest.err; then
 
1516
    grep -v '^ *+' conftest.err >conftest.er1
 
1517
    cat conftest.er1 >&5
 
1518
    mv -f conftest.er1 conftest.err
 
1519
  fi
 
1520
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1521
  test $ac_status = 0; } > conftest.i && {
 
1522
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1523
         test ! -s conftest.err
 
1524
       }; then :
 
1525
  ac_retval=0
 
1526
else
 
1527
  $as_echo "$as_me: failed program was:" >&5
 
1528
sed 's/^/| /' conftest.$ac_ext >&5
 
1529
 
 
1530
    ac_retval=1
 
1531
fi
 
1532
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1533
  as_fn_set_status $ac_retval
 
1534
 
 
1535
} # ac_fn_c_try_cpp
 
1536
 
 
1537
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1538
# -------------------------------------------------------
 
1539
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1540
# the include files in INCLUDES and setting the cache variable VAR
 
1541
# accordingly.
 
1542
ac_fn_c_check_header_mongrel ()
 
1543
{
 
1544
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1545
  if eval \${$3+:} false; then :
 
1546
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1547
$as_echo_n "checking for $2... " >&6; }
 
1548
if eval \${$3+:} false; then :
 
1549
  $as_echo_n "(cached) " >&6
 
1550
fi
 
1551
eval ac_res=\$$3
 
1552
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1553
$as_echo "$ac_res" >&6; }
 
1554
else
 
1555
  # Is the header compilable?
 
1556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1557
$as_echo_n "checking $2 usability... " >&6; }
 
1558
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1559
/* end confdefs.h.  */
 
1560
$4
 
1561
#include <$2>
 
1562
_ACEOF
 
1563
if ac_fn_c_try_compile "$LINENO"; then :
 
1564
  ac_header_compiler=yes
 
1565
else
 
1566
  ac_header_compiler=no
 
1567
fi
 
1568
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1570
$as_echo "$ac_header_compiler" >&6; }
 
1571
 
 
1572
# Is the header present?
 
1573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1574
$as_echo_n "checking $2 presence... " >&6; }
 
1575
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1576
/* end confdefs.h.  */
 
1577
#include <$2>
 
1578
_ACEOF
 
1579
if ac_fn_c_try_cpp "$LINENO"; then :
 
1580
  ac_header_preproc=yes
 
1581
else
 
1582
  ac_header_preproc=no
 
1583
fi
 
1584
rm -f conftest.err conftest.i conftest.$ac_ext
 
1585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1586
$as_echo "$ac_header_preproc" >&6; }
 
1587
 
 
1588
# So?  What about this header?
 
1589
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1590
  yes:no: )
 
1591
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1592
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1593
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1594
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1595
    ;;
 
1596
  no:yes:* )
 
1597
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1598
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1599
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1600
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1601
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1602
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1603
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1604
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1605
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1606
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1607
    ;;
 
1608
esac
 
1609
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1610
$as_echo_n "checking for $2... " >&6; }
 
1611
if eval \${$3+:} false; then :
 
1612
  $as_echo_n "(cached) " >&6
 
1613
else
 
1614
  eval "$3=\$ac_header_compiler"
 
1615
fi
 
1616
eval ac_res=\$$3
 
1617
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1618
$as_echo "$ac_res" >&6; }
 
1619
fi
 
1620
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1621
 
 
1622
} # ac_fn_c_check_header_mongrel
 
1623
 
 
1624
# ac_fn_c_try_run LINENO
 
1625
# ----------------------
 
1626
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1627
# that executables *can* be run.
 
1628
ac_fn_c_try_run ()
 
1629
{
 
1630
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1631
  if { { ac_try="$ac_link"
 
1632
case "(($ac_try" in
 
1633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1634
  *) ac_try_echo=$ac_try;;
 
1635
esac
 
1636
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1637
$as_echo "$ac_try_echo"; } >&5
 
1638
  (eval "$ac_link") 2>&5
 
1639
  ac_status=$?
 
1640
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1641
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1642
  { { case "(($ac_try" in
 
1643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1644
  *) ac_try_echo=$ac_try;;
 
1645
esac
 
1646
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1647
$as_echo "$ac_try_echo"; } >&5
 
1648
  (eval "$ac_try") 2>&5
 
1649
  ac_status=$?
 
1650
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1651
  test $ac_status = 0; }; }; then :
 
1652
  ac_retval=0
 
1653
else
 
1654
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1655
       $as_echo "$as_me: failed program was:" >&5
 
1656
sed 's/^/| /' conftest.$ac_ext >&5
 
1657
 
 
1658
       ac_retval=$ac_status
 
1659
fi
 
1660
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1661
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1662
  as_fn_set_status $ac_retval
 
1663
 
 
1664
} # ac_fn_c_try_run
 
1665
 
 
1666
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1667
# -------------------------------------------------------
 
1668
# Tests whether HEADER exists and can be compiled using the include files in
 
1669
# INCLUDES, setting the cache variable VAR accordingly.
 
1670
ac_fn_c_check_header_compile ()
 
1671
{
 
1672
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1673
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1674
$as_echo_n "checking for $2... " >&6; }
 
1675
if eval \${$3+:} false; then :
 
1676
  $as_echo_n "(cached) " >&6
 
1677
else
 
1678
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1679
/* end confdefs.h.  */
 
1680
$4
 
1681
#include <$2>
 
1682
_ACEOF
 
1683
if ac_fn_c_try_compile "$LINENO"; then :
 
1684
  eval "$3=yes"
 
1685
else
 
1686
  eval "$3=no"
 
1687
fi
 
1688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1689
fi
 
1690
eval ac_res=\$$3
 
1691
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1692
$as_echo "$ac_res" >&6; }
 
1693
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1694
 
 
1695
} # ac_fn_c_check_header_compile
 
1696
 
 
1697
# ac_fn_c_try_link LINENO
 
1698
# -----------------------
 
1699
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1700
ac_fn_c_try_link ()
 
1701
{
 
1702
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1703
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1704
  if { { ac_try="$ac_link"
 
1705
case "(($ac_try" in
 
1706
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1707
  *) ac_try_echo=$ac_try;;
 
1708
esac
 
1709
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1710
$as_echo "$ac_try_echo"; } >&5
 
1711
  (eval "$ac_link") 2>conftest.err
 
1712
  ac_status=$?
 
1713
  if test -s conftest.err; then
 
1714
    grep -v '^ *+' conftest.err >conftest.er1
 
1715
    cat conftest.er1 >&5
 
1716
    mv -f conftest.er1 conftest.err
 
1717
  fi
 
1718
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1719
  test $ac_status = 0; } && {
 
1720
         test -z "$ac_c_werror_flag" ||
 
1721
         test ! -s conftest.err
 
1722
       } && test -s conftest$ac_exeext && {
 
1723
         test "$cross_compiling" = yes ||
 
1724
         $as_test_x conftest$ac_exeext
 
1725
       }; then :
 
1726
  ac_retval=0
 
1727
else
 
1728
  $as_echo "$as_me: failed program was:" >&5
 
1729
sed 's/^/| /' conftest.$ac_ext >&5
 
1730
 
 
1731
        ac_retval=1
 
1732
fi
 
1733
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1734
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1735
  # interfere with the next link command; also delete a directory that is
 
1736
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1737
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1738
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1739
  as_fn_set_status $ac_retval
 
1740
 
 
1741
} # ac_fn_c_try_link
 
1742
 
 
1743
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 
1744
# ---------------------------------------------
 
1745
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 
1746
# accordingly.
 
1747
ac_fn_c_check_decl ()
 
1748
{
 
1749
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1750
  as_decl_name=`echo $2|sed 's/ *(.*//'`
 
1751
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 
1752
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 
1753
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 
1754
if eval \${$3+:} false; then :
 
1755
  $as_echo_n "(cached) " >&6
 
1756
else
 
1757
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1758
/* end confdefs.h.  */
 
1759
$4
 
1760
int
 
1761
main ()
 
1762
{
 
1763
#ifndef $as_decl_name
 
1764
#ifdef __cplusplus
 
1765
  (void) $as_decl_use;
 
1766
#else
 
1767
  (void) $as_decl_name;
 
1768
#endif
 
1769
#endif
 
1770
 
 
1771
  ;
 
1772
  return 0;
 
1773
}
 
1774
_ACEOF
 
1775
if ac_fn_c_try_compile "$LINENO"; then :
 
1776
  eval "$3=yes"
 
1777
else
 
1778
  eval "$3=no"
 
1779
fi
 
1780
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1781
fi
 
1782
eval ac_res=\$$3
 
1783
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1784
$as_echo "$ac_res" >&6; }
 
1785
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1786
 
 
1787
} # ac_fn_c_check_decl
 
1788
cat >config.log <<_ACEOF
 
1789
This file contains any messages produced by compilers while
 
1790
running configure, to aid debugging if configure makes a mistake.
 
1791
 
 
1792
It was created by lxc $as_me 0.8.0-rc1, which was
 
1793
generated by GNU Autoconf 2.68.  Invocation command line was
 
1794
 
 
1795
  $ $0 $@
 
1796
 
 
1797
_ACEOF
 
1798
exec 5>>config.log
 
1799
{
 
1800
cat <<_ASUNAME
 
1801
## --------- ##
 
1802
## Platform. ##
 
1803
## --------- ##
 
1804
 
 
1805
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1806
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1807
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1808
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1809
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1810
 
 
1811
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1812
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1813
 
 
1814
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1815
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1816
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1817
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1818
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1819
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1820
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1821
 
 
1822
_ASUNAME
 
1823
 
 
1824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1825
for as_dir in $PATH
 
1826
do
 
1827
  IFS=$as_save_IFS
 
1828
  test -z "$as_dir" && as_dir=.
 
1829
    $as_echo "PATH: $as_dir"
 
1830
  done
 
1831
IFS=$as_save_IFS
 
1832
 
 
1833
} >&5
 
1834
 
 
1835
cat >&5 <<_ACEOF
 
1836
 
 
1837
 
 
1838
## ----------- ##
 
1839
## Core tests. ##
 
1840
## ----------- ##
 
1841
 
 
1842
_ACEOF
 
1843
 
 
1844
 
 
1845
# Keep a trace of the command line.
 
1846
# Strip out --no-create and --no-recursion so they do not pile up.
 
1847
# Strip out --silent because we don't want to record it for future runs.
 
1848
# Also quote any args containing shell meta-characters.
 
1849
# Make two passes to allow for proper duplicate-argument suppression.
 
1850
ac_configure_args=
 
1851
ac_configure_args0=
 
1852
ac_configure_args1=
 
1853
ac_must_keep_next=false
 
1854
for ac_pass in 1 2
 
1855
do
 
1856
  for ac_arg
 
1857
  do
 
1858
    case $ac_arg in
 
1859
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1860
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1861
    | -silent | --silent | --silen | --sile | --sil)
 
1862
      continue ;;
 
1863
    *\'*)
 
1864
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1865
    esac
 
1866
    case $ac_pass in
 
1867
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1868
    2)
 
1869
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1870
      if test $ac_must_keep_next = true; then
 
1871
        ac_must_keep_next=false # Got value, back to normal.
 
1872
      else
 
1873
        case $ac_arg in
 
1874
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1875
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1876
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1877
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1878
            case "$ac_configure_args0 " in
 
1879
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1880
            esac
 
1881
            ;;
 
1882
          -* ) ac_must_keep_next=true ;;
 
1883
        esac
 
1884
      fi
 
1885
      as_fn_append ac_configure_args " '$ac_arg'"
 
1886
      ;;
 
1887
    esac
 
1888
  done
 
1889
done
 
1890
{ ac_configure_args0=; unset ac_configure_args0;}
 
1891
{ ac_configure_args1=; unset ac_configure_args1;}
 
1892
 
 
1893
# When interrupted or exit'd, cleanup temporary files, and complete
 
1894
# config.log.  We remove comments because anyway the quotes in there
 
1895
# would cause problems or look ugly.
 
1896
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1897
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1898
trap 'exit_status=$?
 
1899
  # Save into config.log some information that might help in debugging.
 
1900
  {
 
1901
    echo
 
1902
 
 
1903
    $as_echo "## ---------------- ##
 
1904
## Cache variables. ##
 
1905
## ---------------- ##"
 
1906
    echo
 
1907
    # The following way of writing the cache mishandles newlines in values,
 
1908
(
 
1909
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1910
    eval ac_val=\$$ac_var
 
1911
    case $ac_val in #(
 
1912
    *${as_nl}*)
 
1913
      case $ac_var in #(
 
1914
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
1915
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1916
      esac
 
1917
      case $ac_var in #(
 
1918
      _ | IFS | as_nl) ;; #(
 
1919
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1920
      *) { eval $ac_var=; unset $ac_var;} ;;
 
1921
      esac ;;
 
1922
    esac
 
1923
  done
 
1924
  (set) 2>&1 |
 
1925
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1926
    *${as_nl}ac_space=\ *)
 
1927
      sed -n \
 
1928
        "s/'\''/'\''\\\\'\'''\''/g;
 
1929
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1930
      ;; #(
 
1931
    *)
 
1932
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1933
      ;;
 
1934
    esac |
 
1935
    sort
 
1936
)
 
1937
    echo
 
1938
 
 
1939
    $as_echo "## ----------------- ##
 
1940
## Output variables. ##
 
1941
## ----------------- ##"
 
1942
    echo
 
1943
    for ac_var in $ac_subst_vars
 
1944
    do
 
1945
      eval ac_val=\$$ac_var
 
1946
      case $ac_val in
 
1947
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1948
      esac
 
1949
      $as_echo "$ac_var='\''$ac_val'\''"
 
1950
    done | sort
 
1951
    echo
 
1952
 
 
1953
    if test -n "$ac_subst_files"; then
 
1954
      $as_echo "## ------------------- ##
 
1955
## File substitutions. ##
 
1956
## ------------------- ##"
 
1957
      echo
 
1958
      for ac_var in $ac_subst_files
 
1959
      do
 
1960
        eval ac_val=\$$ac_var
 
1961
        case $ac_val in
 
1962
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1963
        esac
 
1964
        $as_echo "$ac_var='\''$ac_val'\''"
 
1965
      done | sort
 
1966
      echo
 
1967
    fi
 
1968
 
 
1969
    if test -s confdefs.h; then
 
1970
      $as_echo "## ----------- ##
 
1971
## confdefs.h. ##
 
1972
## ----------- ##"
 
1973
      echo
 
1974
      cat confdefs.h
 
1975
      echo
 
1976
    fi
 
1977
    test "$ac_signal" != 0 &&
 
1978
      $as_echo "$as_me: caught signal $ac_signal"
 
1979
    $as_echo "$as_me: exit $exit_status"
 
1980
  } >&5
 
1981
  rm -f core *.core core.conftest.* &&
 
1982
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1983
    exit $exit_status
 
1984
' 0
 
1985
for ac_signal in 1 2 13 15; do
 
1986
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
1987
done
 
1988
ac_signal=0
 
1989
 
 
1990
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1991
rm -f -r conftest* confdefs.h
 
1992
 
 
1993
$as_echo "/* confdefs.h */" > confdefs.h
 
1994
 
 
1995
# Predefined preprocessor variables.
 
1996
 
 
1997
cat >>confdefs.h <<_ACEOF
 
1998
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1999
_ACEOF
 
2000
 
 
2001
cat >>confdefs.h <<_ACEOF
 
2002
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2003
_ACEOF
 
2004
 
 
2005
cat >>confdefs.h <<_ACEOF
 
2006
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2007
_ACEOF
 
2008
 
 
2009
cat >>confdefs.h <<_ACEOF
 
2010
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2011
_ACEOF
 
2012
 
 
2013
cat >>confdefs.h <<_ACEOF
 
2014
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2015
_ACEOF
 
2016
 
 
2017
cat >>confdefs.h <<_ACEOF
 
2018
#define PACKAGE_URL "$PACKAGE_URL"
 
2019
_ACEOF
 
2020
 
 
2021
 
 
2022
# Let the site file select an alternate cache file if it wants to.
 
2023
# Prefer an explicitly selected file to automatically selected ones.
 
2024
ac_site_file1=NONE
 
2025
ac_site_file2=NONE
 
2026
if test -n "$CONFIG_SITE"; then
 
2027
  # We do not want a PATH search for config.site.
 
2028
  case $CONFIG_SITE in #((
 
2029
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2030
    */*) ac_site_file1=$CONFIG_SITE;;
 
2031
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2032
  esac
 
2033
elif test "x$prefix" != xNONE; then
 
2034
  ac_site_file1=$prefix/share/config.site
 
2035
  ac_site_file2=$prefix/etc/config.site
 
2036
else
 
2037
  ac_site_file1=$ac_default_prefix/share/config.site
 
2038
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2039
fi
 
2040
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2041
do
 
2042
  test "x$ac_site_file" = xNONE && continue
 
2043
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2044
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2045
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2046
    sed 's/^/| /' "$ac_site_file" >&5
 
2047
    . "$ac_site_file" \
 
2048
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2049
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2050
as_fn_error $? "failed to load site script $ac_site_file
 
2051
See \`config.log' for more details" "$LINENO" 5; }
 
2052
  fi
 
2053
done
 
2054
 
 
2055
if test -r "$cache_file"; then
 
2056
  # Some versions of bash will fail to source /dev/null (special files
 
2057
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2058
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2059
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2060
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2061
    case $cache_file in
 
2062
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2063
      *)                      . "./$cache_file";;
 
2064
    esac
 
2065
  fi
 
2066
else
 
2067
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2068
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2069
  >$cache_file
 
2070
fi
 
2071
 
 
2072
# Check that the precious variables saved in the cache have kept the same
 
2073
# value.
 
2074
ac_cache_corrupted=false
 
2075
for ac_var in $ac_precious_vars; do
 
2076
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2077
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2078
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2079
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2080
  case $ac_old_set,$ac_new_set in
 
2081
    set,)
 
2082
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2083
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2084
      ac_cache_corrupted=: ;;
 
2085
    ,set)
 
2086
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2087
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2088
      ac_cache_corrupted=: ;;
 
2089
    ,);;
 
2090
    *)
 
2091
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2092
        # differences in whitespace do not lead to failure.
 
2093
        ac_old_val_w=`echo x $ac_old_val`
 
2094
        ac_new_val_w=`echo x $ac_new_val`
 
2095
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2096
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2097
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2098
          ac_cache_corrupted=:
 
2099
        else
 
2100
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2101
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2102
          eval $ac_var=\$ac_old_val
 
2103
        fi
 
2104
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2105
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2106
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2107
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2108
      fi;;
 
2109
  esac
 
2110
  # Pass precious variables to config.status.
 
2111
  if test "$ac_new_set" = set; then
 
2112
    case $ac_new_val in
 
2113
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2114
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2115
    esac
 
2116
    case " $ac_configure_args " in
 
2117
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2118
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2119
    esac
 
2120
  fi
 
2121
done
 
2122
if $ac_cache_corrupted; then
 
2123
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2124
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2125
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2126
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2127
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2128
fi
 
2129
## -------------------- ##
 
2130
## Main body of script. ##
 
2131
## -------------------- ##
 
2132
 
 
2133
ac_ext=c
 
2134
ac_cpp='$CPP $CPPFLAGS'
 
2135
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2136
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2137
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2138
 
 
2139
 
 
2140
 
 
2141
 
 
2142
ac_aux_dir=
 
2143
for ac_dir in config "$srcdir"/config; do
 
2144
  if test -f "$ac_dir/install-sh"; then
 
2145
    ac_aux_dir=$ac_dir
 
2146
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2147
    break
 
2148
  elif test -f "$ac_dir/install.sh"; then
 
2149
    ac_aux_dir=$ac_dir
 
2150
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2151
    break
 
2152
  elif test -f "$ac_dir/shtool"; then
 
2153
    ac_aux_dir=$ac_dir
 
2154
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2155
    break
 
2156
  fi
 
2157
done
 
2158
if test -z "$ac_aux_dir"; then
 
2159
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
 
2160
fi
 
2161
 
 
2162
# These three variables are undocumented and unsupported,
 
2163
# and are intended to be withdrawn in a future Autoconf release.
 
2164
# They can cause serious problems if a builder's source tree is in a directory
 
2165
# whose full name contains unusual characters.
 
2166
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2167
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2168
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2169
 
 
2170
 
 
2171
ac_config_headers="$ac_config_headers src/config.h"
 
2172
 
 
2173
am__api_version='1.11'
 
2174
 
 
2175
# Find a good install program.  We prefer a C program (faster),
 
2176
# so one script is as good as another.  But avoid the broken or
 
2177
# incompatible versions:
 
2178
# SysV /etc/install, /usr/sbin/install
 
2179
# SunOS /usr/etc/install
 
2180
# IRIX /sbin/install
 
2181
# AIX /bin/install
 
2182
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2183
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2184
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2185
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2186
# OS/2's system install, which has a completely different semantic
 
2187
# ./install, which can be erroneously created by make from ./install.sh.
 
2188
# Reject install programs that cannot install multiple files.
 
2189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2190
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2191
if test -z "$INSTALL"; then
 
2192
if ${ac_cv_path_install+:} false; then :
 
2193
  $as_echo_n "(cached) " >&6
 
2194
else
 
2195
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2196
for as_dir in $PATH
 
2197
do
 
2198
  IFS=$as_save_IFS
 
2199
  test -z "$as_dir" && as_dir=.
 
2200
    # Account for people who put trailing slashes in PATH elements.
 
2201
case $as_dir/ in #((
 
2202
  ./ | .// | /[cC]/* | \
 
2203
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2204
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2205
  /usr/ucb/* ) ;;
 
2206
  *)
 
2207
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2208
    # Don't use installbsd from OSF since it installs stuff as root
 
2209
    # by default.
 
2210
    for ac_prog in ginstall scoinst install; do
 
2211
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2212
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2213
          if test $ac_prog = install &&
 
2214
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2215
            # AIX install.  It has an incompatible calling convention.
 
2216
            :
 
2217
          elif test $ac_prog = install &&
 
2218
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2219
            # program-specific install script used by HP pwplus--don't use.
 
2220
            :
 
2221
          else
 
2222
            rm -rf conftest.one conftest.two conftest.dir
 
2223
            echo one > conftest.one
 
2224
            echo two > conftest.two
 
2225
            mkdir conftest.dir
 
2226
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2227
              test -s conftest.one && test -s conftest.two &&
 
2228
              test -s conftest.dir/conftest.one &&
 
2229
              test -s conftest.dir/conftest.two
 
2230
            then
 
2231
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2232
              break 3
 
2233
            fi
 
2234
          fi
 
2235
        fi
 
2236
      done
 
2237
    done
 
2238
    ;;
 
2239
esac
 
2240
 
 
2241
  done
 
2242
IFS=$as_save_IFS
 
2243
 
 
2244
rm -rf conftest.one conftest.two conftest.dir
 
2245
 
 
2246
fi
 
2247
  if test "${ac_cv_path_install+set}" = set; then
 
2248
    INSTALL=$ac_cv_path_install
 
2249
  else
 
2250
    # As a last resort, use the slow shell script.  Don't cache a
 
2251
    # value for INSTALL within a source directory, because that will
 
2252
    # break other packages using the cache if that directory is
 
2253
    # removed, or if the value is a relative name.
 
2254
    INSTALL=$ac_install_sh
 
2255
  fi
 
2256
fi
 
2257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2258
$as_echo "$INSTALL" >&6; }
 
2259
 
 
2260
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2261
# It thinks the first close brace ends the variable substitution.
 
2262
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2263
 
 
2264
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2265
 
 
2266
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2267
 
 
2268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2269
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2270
# Just in case
 
2271
sleep 1
 
2272
echo timestamp > conftest.file
 
2273
# Reject unsafe characters in $srcdir or the absolute working directory
 
2274
# name.  Accept space and tab only in the latter.
 
2275
am_lf='
 
2276
'
 
2277
case `pwd` in
 
2278
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2279
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2280
esac
 
2281
case $srcdir in
 
2282
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2283
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2284
esac
 
2285
 
 
2286
# Do `set' in a subshell so we don't clobber the current shell's
 
2287
# arguments.  Must try -L first in case configure is actually a
 
2288
# symlink; some systems play weird games with the mod time of symlinks
 
2289
# (eg FreeBSD returns the mod time of the symlink's containing
 
2290
# directory).
 
2291
if (
 
2292
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2293
   if test "$*" = "X"; then
 
2294
      # -L didn't work.
 
2295
      set X `ls -t "$srcdir/configure" conftest.file`
 
2296
   fi
 
2297
   rm -f conftest.file
 
2298
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2299
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2300
 
 
2301
      # If neither matched, then we have a broken ls.  This can happen
 
2302
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2303
      # broken ls alias from the environment.  This has actually
 
2304
      # happened.  Such a system could not be considered "sane".
 
2305
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2306
alias in your environment" "$LINENO" 5
 
2307
   fi
 
2308
 
 
2309
   test "$2" = conftest.file
 
2310
   )
 
2311
then
 
2312
   # Ok.
 
2313
   :
 
2314
else
 
2315
   as_fn_error $? "newly created file is older than distributed files!
 
2316
Check your system clock" "$LINENO" 5
 
2317
fi
 
2318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2319
$as_echo "yes" >&6; }
 
2320
test "$program_prefix" != NONE &&
 
2321
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2322
# Use a double $ so make ignores it.
 
2323
test "$program_suffix" != NONE &&
 
2324
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2325
# Double any \ or $.
 
2326
# By default was `s,x,x', remove it if useless.
 
2327
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2328
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2329
 
 
2330
# expand $ac_aux_dir to an absolute path
 
2331
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2332
 
 
2333
if test x"${MISSING+set}" != xset; then
 
2334
  case $am_aux_dir in
 
2335
  *\ * | *\     *)
 
2336
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2337
  *)
 
2338
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2339
  esac
 
2340
fi
 
2341
# Use eval to expand $SHELL
 
2342
if eval "$MISSING --run true"; then
 
2343
  am_missing_run="$MISSING --run "
 
2344
else
 
2345
  am_missing_run=
 
2346
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2347
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2348
fi
 
2349
 
 
2350
if test x"${install_sh}" != xset; then
 
2351
  case $am_aux_dir in
 
2352
  *\ * | *\     *)
 
2353
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2354
  *)
 
2355
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2356
  esac
 
2357
fi
 
2358
 
 
2359
# Installed binaries are usually stripped using `strip' when the user
 
2360
# run `make install-strip'.  However `strip' might not be the right
 
2361
# tool to use in cross-compilation environments, therefore Automake
 
2362
# will honor the `STRIP' environment variable to overrule this program.
 
2363
if test "$cross_compiling" != no; then
 
2364
  if test -n "$ac_tool_prefix"; then
 
2365
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2366
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2368
$as_echo_n "checking for $ac_word... " >&6; }
 
2369
if ${ac_cv_prog_STRIP+:} false; then :
 
2370
  $as_echo_n "(cached) " >&6
 
2371
else
 
2372
  if test -n "$STRIP"; then
 
2373
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2374
else
 
2375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2376
for as_dir in $PATH
 
2377
do
 
2378
  IFS=$as_save_IFS
 
2379
  test -z "$as_dir" && as_dir=.
 
2380
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2381
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2382
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2383
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2384
    break 2
 
2385
  fi
 
2386
done
 
2387
  done
 
2388
IFS=$as_save_IFS
 
2389
 
 
2390
fi
 
2391
fi
 
2392
STRIP=$ac_cv_prog_STRIP
 
2393
if test -n "$STRIP"; then
 
2394
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2395
$as_echo "$STRIP" >&6; }
 
2396
else
 
2397
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2398
$as_echo "no" >&6; }
 
2399
fi
 
2400
 
 
2401
 
 
2402
fi
 
2403
if test -z "$ac_cv_prog_STRIP"; then
 
2404
  ac_ct_STRIP=$STRIP
 
2405
  # Extract the first word of "strip", so it can be a program name with args.
 
2406
set dummy strip; ac_word=$2
 
2407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2408
$as_echo_n "checking for $ac_word... " >&6; }
 
2409
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2410
  $as_echo_n "(cached) " >&6
 
2411
else
 
2412
  if test -n "$ac_ct_STRIP"; then
 
2413
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2414
else
 
2415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2416
for as_dir in $PATH
 
2417
do
 
2418
  IFS=$as_save_IFS
 
2419
  test -z "$as_dir" && as_dir=.
 
2420
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2421
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2422
    ac_cv_prog_ac_ct_STRIP="strip"
 
2423
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2424
    break 2
 
2425
  fi
 
2426
done
 
2427
  done
 
2428
IFS=$as_save_IFS
 
2429
 
 
2430
fi
 
2431
fi
 
2432
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2433
if test -n "$ac_ct_STRIP"; then
 
2434
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2435
$as_echo "$ac_ct_STRIP" >&6; }
 
2436
else
 
2437
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2438
$as_echo "no" >&6; }
 
2439
fi
 
2440
 
 
2441
  if test "x$ac_ct_STRIP" = x; then
 
2442
    STRIP=":"
 
2443
  else
 
2444
    case $cross_compiling:$ac_tool_warned in
 
2445
yes:)
 
2446
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2447
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2448
ac_tool_warned=yes ;;
 
2449
esac
 
2450
    STRIP=$ac_ct_STRIP
 
2451
  fi
 
2452
else
 
2453
  STRIP="$ac_cv_prog_STRIP"
 
2454
fi
 
2455
 
 
2456
fi
 
2457
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2458
 
 
2459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2460
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2461
if test -z "$MKDIR_P"; then
 
2462
  if ${ac_cv_path_mkdir+:} false; then :
 
2463
  $as_echo_n "(cached) " >&6
 
2464
else
 
2465
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2466
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2467
do
 
2468
  IFS=$as_save_IFS
 
2469
  test -z "$as_dir" && as_dir=.
 
2470
    for ac_prog in mkdir gmkdir; do
 
2471
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2472
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2473
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2474
             'mkdir (GNU coreutils) '* | \
 
2475
             'mkdir (coreutils) '* | \
 
2476
             'mkdir (fileutils) '4.1*)
 
2477
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2478
               break 3;;
 
2479
           esac
 
2480
         done
 
2481
       done
 
2482
  done
 
2483
IFS=$as_save_IFS
 
2484
 
 
2485
fi
 
2486
 
 
2487
  test -d ./--version && rmdir ./--version
 
2488
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2489
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2490
  else
 
2491
    # As a last resort, use the slow shell script.  Don't cache a
 
2492
    # value for MKDIR_P within a source directory, because that will
 
2493
    # break other packages using the cache if that directory is
 
2494
    # removed, or if the value is a relative name.
 
2495
    MKDIR_P="$ac_install_sh -d"
 
2496
  fi
 
2497
fi
 
2498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2499
$as_echo "$MKDIR_P" >&6; }
 
2500
 
 
2501
mkdir_p="$MKDIR_P"
 
2502
case $mkdir_p in
 
2503
  [\\/$]* | ?:[\\/]*) ;;
 
2504
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2505
esac
 
2506
 
 
2507
for ac_prog in gawk mawk nawk awk
 
2508
do
 
2509
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2510
set dummy $ac_prog; ac_word=$2
 
2511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2512
$as_echo_n "checking for $ac_word... " >&6; }
 
2513
if ${ac_cv_prog_AWK+:} false; then :
 
2514
  $as_echo_n "(cached) " >&6
 
2515
else
 
2516
  if test -n "$AWK"; then
 
2517
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2518
else
 
2519
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2520
for as_dir in $PATH
 
2521
do
 
2522
  IFS=$as_save_IFS
 
2523
  test -z "$as_dir" && as_dir=.
 
2524
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2525
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2526
    ac_cv_prog_AWK="$ac_prog"
 
2527
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2528
    break 2
 
2529
  fi
 
2530
done
 
2531
  done
 
2532
IFS=$as_save_IFS
 
2533
 
 
2534
fi
 
2535
fi
 
2536
AWK=$ac_cv_prog_AWK
 
2537
if test -n "$AWK"; then
 
2538
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2539
$as_echo "$AWK" >&6; }
 
2540
else
 
2541
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2542
$as_echo "no" >&6; }
 
2543
fi
 
2544
 
 
2545
 
 
2546
  test -n "$AWK" && break
 
2547
done
 
2548
 
 
2549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2550
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2551
set x ${MAKE-make}
 
2552
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2553
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2554
  $as_echo_n "(cached) " >&6
 
2555
else
 
2556
  cat >conftest.make <<\_ACEOF
 
2557
SHELL = /bin/sh
 
2558
all:
 
2559
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2560
_ACEOF
 
2561
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2562
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2563
  *@@@%%%=?*=@@@%%%*)
 
2564
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2565
  *)
 
2566
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2567
esac
 
2568
rm -f conftest.make
 
2569
fi
 
2570
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2571
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2572
$as_echo "yes" >&6; }
 
2573
  SET_MAKE=
 
2574
else
 
2575
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2576
$as_echo "no" >&6; }
 
2577
  SET_MAKE="MAKE=${MAKE-make}"
 
2578
fi
 
2579
 
 
2580
rm -rf .tst 2>/dev/null
 
2581
mkdir .tst 2>/dev/null
 
2582
if test -d .tst; then
 
2583
  am__leading_dot=.
 
2584
else
 
2585
  am__leading_dot=_
 
2586
fi
 
2587
rmdir .tst 2>/dev/null
 
2588
 
 
2589
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2590
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2591
  # is not polluted with repeated "-I."
 
2592
  am__isrc=' -I$(srcdir)'
 
2593
  # test to see if srcdir already configured
 
2594
  if test -f $srcdir/config.status; then
 
2595
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2596
  fi
 
2597
fi
 
2598
 
 
2599
# test whether we have cygpath
 
2600
if test -z "$CYGPATH_W"; then
 
2601
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2602
    CYGPATH_W='cygpath -w'
 
2603
  else
 
2604
    CYGPATH_W=echo
 
2605
  fi
 
2606
fi
 
2607
 
 
2608
 
 
2609
# Define the identity of the package.
 
2610
 PACKAGE='lxc'
 
2611
 VERSION='0.8.0-rc1'
 
2612
 
 
2613
 
 
2614
cat >>confdefs.h <<_ACEOF
 
2615
#define PACKAGE "$PACKAGE"
 
2616
_ACEOF
 
2617
 
 
2618
 
 
2619
cat >>confdefs.h <<_ACEOF
 
2620
#define VERSION "$VERSION"
 
2621
_ACEOF
 
2622
 
 
2623
# Some tools Automake needs.
 
2624
 
 
2625
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2626
 
 
2627
 
 
2628
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2629
 
 
2630
 
 
2631
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2632
 
 
2633
 
 
2634
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2635
 
 
2636
 
 
2637
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2638
 
 
2639
# We need awk for the "check" target.  The system "awk" is bad on
 
2640
# some platforms.
 
2641
# Always define AMTAR for backward compatibility.
 
2642
 
 
2643
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2644
 
 
2645
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2646
 
 
2647
 
 
2648
 
 
2649
 
 
2650
 
 
2651
# Make sure we can run config.sub.
 
2652
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2653
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2654
 
 
2655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2656
$as_echo_n "checking build system type... " >&6; }
 
2657
if ${ac_cv_build+:} false; then :
 
2658
  $as_echo_n "(cached) " >&6
 
2659
else
 
2660
  ac_build_alias=$build_alias
 
2661
test "x$ac_build_alias" = x &&
 
2662
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2663
test "x$ac_build_alias" = x &&
 
2664
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
2665
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2666
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2667
 
 
2668
fi
 
2669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2670
$as_echo "$ac_cv_build" >&6; }
 
2671
case $ac_cv_build in
 
2672
*-*-*) ;;
 
2673
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
2674
esac
 
2675
build=$ac_cv_build
 
2676
ac_save_IFS=$IFS; IFS='-'
 
2677
set x $ac_cv_build
 
2678
shift
 
2679
build_cpu=$1
 
2680
build_vendor=$2
 
2681
shift; shift
 
2682
# Remember, the first character of IFS is used to create $*,
 
2683
# except with old shells:
 
2684
build_os=$*
 
2685
IFS=$ac_save_IFS
 
2686
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2687
 
 
2688
 
 
2689
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2690
$as_echo_n "checking host system type... " >&6; }
 
2691
if ${ac_cv_host+:} false; then :
 
2692
  $as_echo_n "(cached) " >&6
 
2693
else
 
2694
  if test "x$host_alias" = x; then
 
2695
  ac_cv_host=$ac_cv_build
 
2696
else
 
2697
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2698
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2699
fi
 
2700
 
 
2701
fi
 
2702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2703
$as_echo "$ac_cv_host" >&6; }
 
2704
case $ac_cv_host in
 
2705
*-*-*) ;;
 
2706
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
2707
esac
 
2708
host=$ac_cv_host
 
2709
ac_save_IFS=$IFS; IFS='-'
 
2710
set x $ac_cv_host
 
2711
shift
 
2712
host_cpu=$1
 
2713
host_vendor=$2
 
2714
shift; shift
 
2715
# Remember, the first character of IFS is used to create $*,
 
2716
# except with old shells:
 
2717
host_os=$*
 
2718
IFS=$ac_save_IFS
 
2719
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2720
 
 
2721
 
 
2722
DEPDIR="${am__leading_dot}deps"
 
2723
 
 
2724
ac_config_commands="$ac_config_commands depfiles"
 
2725
 
 
2726
 
 
2727
am_make=${MAKE-make}
 
2728
cat > confinc << 'END'
 
2729
am__doit:
 
2730
        @echo this is the am__doit target
 
2731
.PHONY: am__doit
 
2732
END
 
2733
# If we don't find an include directive, just comment out the code.
 
2734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
2735
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
2736
am__include="#"
 
2737
am__quote=
 
2738
_am_result=none
 
2739
# First try GNU make style include.
 
2740
echo "include confinc" > confmf
 
2741
# Ignore all kinds of additional output from `make'.
 
2742
case `$am_make -s -f confmf 2> /dev/null` in #(
 
2743
*the\ am__doit\ target*)
 
2744
  am__include=include
 
2745
  am__quote=
 
2746
  _am_result=GNU
 
2747
  ;;
 
2748
esac
 
2749
# Now try BSD make style include.
 
2750
if test "$am__include" = "#"; then
 
2751
   echo '.include "confinc"' > confmf
 
2752
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
2753
   *the\ am__doit\ target*)
 
2754
     am__include=.include
 
2755
     am__quote="\""
 
2756
     _am_result=BSD
 
2757
     ;;
 
2758
   esac
 
2759
fi
 
2760
 
 
2761
 
 
2762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
2763
$as_echo "$_am_result" >&6; }
 
2764
rm -f confinc confmf
 
2765
 
 
2766
# Check whether --enable-dependency-tracking was given.
 
2767
if test "${enable_dependency_tracking+set}" = set; then :
 
2768
  enableval=$enable_dependency_tracking;
 
2769
fi
 
2770
 
 
2771
if test "x$enable_dependency_tracking" != xno; then
 
2772
  am_depcomp="$ac_aux_dir/depcomp"
 
2773
  AMDEPBACKSLASH='\'
 
2774
fi
 
2775
 if test "x$enable_dependency_tracking" != xno; then
 
2776
  AMDEP_TRUE=
 
2777
  AMDEP_FALSE='#'
 
2778
else
 
2779
  AMDEP_TRUE='#'
 
2780
  AMDEP_FALSE=
 
2781
fi
 
2782
 
 
2783
 
 
2784
ac_ext=c
 
2785
ac_cpp='$CPP $CPPFLAGS'
 
2786
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2787
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2788
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2789
if test -n "$ac_tool_prefix"; then
 
2790
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2791
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2792
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2793
$as_echo_n "checking for $ac_word... " >&6; }
 
2794
if ${ac_cv_prog_CC+:} false; then :
 
2795
  $as_echo_n "(cached) " >&6
 
2796
else
 
2797
  if test -n "$CC"; then
 
2798
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2799
else
 
2800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2801
for as_dir in $PATH
 
2802
do
 
2803
  IFS=$as_save_IFS
 
2804
  test -z "$as_dir" && as_dir=.
 
2805
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2806
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2807
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2808
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2809
    break 2
 
2810
  fi
 
2811
done
 
2812
  done
 
2813
IFS=$as_save_IFS
 
2814
 
 
2815
fi
 
2816
fi
 
2817
CC=$ac_cv_prog_CC
 
2818
if test -n "$CC"; then
 
2819
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2820
$as_echo "$CC" >&6; }
 
2821
else
 
2822
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2823
$as_echo "no" >&6; }
 
2824
fi
 
2825
 
 
2826
 
 
2827
fi
 
2828
if test -z "$ac_cv_prog_CC"; then
 
2829
  ac_ct_CC=$CC
 
2830
  # Extract the first word of "gcc", so it can be a program name with args.
 
2831
set dummy gcc; ac_word=$2
 
2832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2833
$as_echo_n "checking for $ac_word... " >&6; }
 
2834
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
2835
  $as_echo_n "(cached) " >&6
 
2836
else
 
2837
  if test -n "$ac_ct_CC"; then
 
2838
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2839
else
 
2840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2841
for as_dir in $PATH
 
2842
do
 
2843
  IFS=$as_save_IFS
 
2844
  test -z "$as_dir" && as_dir=.
 
2845
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2846
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2847
    ac_cv_prog_ac_ct_CC="gcc"
 
2848
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2849
    break 2
 
2850
  fi
 
2851
done
 
2852
  done
 
2853
IFS=$as_save_IFS
 
2854
 
 
2855
fi
 
2856
fi
 
2857
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2858
if test -n "$ac_ct_CC"; then
 
2859
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2860
$as_echo "$ac_ct_CC" >&6; }
 
2861
else
 
2862
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2863
$as_echo "no" >&6; }
 
2864
fi
 
2865
 
 
2866
  if test "x$ac_ct_CC" = x; then
 
2867
    CC=""
 
2868
  else
 
2869
    case $cross_compiling:$ac_tool_warned in
 
2870
yes:)
 
2871
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2872
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2873
ac_tool_warned=yes ;;
 
2874
esac
 
2875
    CC=$ac_ct_CC
 
2876
  fi
 
2877
else
 
2878
  CC="$ac_cv_prog_CC"
 
2879
fi
 
2880
 
 
2881
if test -z "$CC"; then
 
2882
          if test -n "$ac_tool_prefix"; then
 
2883
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2884
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2886
$as_echo_n "checking for $ac_word... " >&6; }
 
2887
if ${ac_cv_prog_CC+:} false; then :
 
2888
  $as_echo_n "(cached) " >&6
 
2889
else
 
2890
  if test -n "$CC"; then
 
2891
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2892
else
 
2893
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2894
for as_dir in $PATH
 
2895
do
 
2896
  IFS=$as_save_IFS
 
2897
  test -z "$as_dir" && as_dir=.
 
2898
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2899
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2900
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2901
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2902
    break 2
 
2903
  fi
 
2904
done
 
2905
  done
 
2906
IFS=$as_save_IFS
 
2907
 
 
2908
fi
 
2909
fi
 
2910
CC=$ac_cv_prog_CC
 
2911
if test -n "$CC"; then
 
2912
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2913
$as_echo "$CC" >&6; }
 
2914
else
 
2915
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2916
$as_echo "no" >&6; }
 
2917
fi
 
2918
 
 
2919
 
 
2920
  fi
 
2921
fi
 
2922
if test -z "$CC"; then
 
2923
  # Extract the first word of "cc", so it can be a program name with args.
 
2924
set dummy cc; ac_word=$2
 
2925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2926
$as_echo_n "checking for $ac_word... " >&6; }
 
2927
if ${ac_cv_prog_CC+:} false; then :
 
2928
  $as_echo_n "(cached) " >&6
 
2929
else
 
2930
  if test -n "$CC"; then
 
2931
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2932
else
 
2933
  ac_prog_rejected=no
 
2934
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2935
for as_dir in $PATH
 
2936
do
 
2937
  IFS=$as_save_IFS
 
2938
  test -z "$as_dir" && as_dir=.
 
2939
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2940
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2941
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2942
       ac_prog_rejected=yes
 
2943
       continue
 
2944
     fi
 
2945
    ac_cv_prog_CC="cc"
 
2946
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2947
    break 2
 
2948
  fi
 
2949
done
 
2950
  done
 
2951
IFS=$as_save_IFS
 
2952
 
 
2953
if test $ac_prog_rejected = yes; then
 
2954
  # We found a bogon in the path, so make sure we never use it.
 
2955
  set dummy $ac_cv_prog_CC
 
2956
  shift
 
2957
  if test $# != 0; then
 
2958
    # We chose a different compiler from the bogus one.
 
2959
    # However, it has the same basename, so the bogon will be chosen
 
2960
    # first if we set CC to just the basename; use the full file name.
 
2961
    shift
 
2962
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2963
  fi
 
2964
fi
 
2965
fi
 
2966
fi
 
2967
CC=$ac_cv_prog_CC
 
2968
if test -n "$CC"; then
 
2969
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2970
$as_echo "$CC" >&6; }
 
2971
else
 
2972
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2973
$as_echo "no" >&6; }
 
2974
fi
 
2975
 
 
2976
 
 
2977
fi
 
2978
if test -z "$CC"; then
 
2979
  if test -n "$ac_tool_prefix"; then
 
2980
  for ac_prog in cl.exe
 
2981
  do
 
2982
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2983
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2985
$as_echo_n "checking for $ac_word... " >&6; }
 
2986
if ${ac_cv_prog_CC+:} false; then :
 
2987
  $as_echo_n "(cached) " >&6
 
2988
else
 
2989
  if test -n "$CC"; then
 
2990
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2991
else
 
2992
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2993
for as_dir in $PATH
 
2994
do
 
2995
  IFS=$as_save_IFS
 
2996
  test -z "$as_dir" && as_dir=.
 
2997
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2998
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2999
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3000
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3001
    break 2
 
3002
  fi
 
3003
done
 
3004
  done
 
3005
IFS=$as_save_IFS
 
3006
 
 
3007
fi
 
3008
fi
 
3009
CC=$ac_cv_prog_CC
 
3010
if test -n "$CC"; then
 
3011
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3012
$as_echo "$CC" >&6; }
 
3013
else
 
3014
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3015
$as_echo "no" >&6; }
 
3016
fi
 
3017
 
 
3018
 
 
3019
    test -n "$CC" && break
 
3020
  done
 
3021
fi
 
3022
if test -z "$CC"; then
 
3023
  ac_ct_CC=$CC
 
3024
  for ac_prog in cl.exe
 
3025
do
 
3026
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3027
set dummy $ac_prog; ac_word=$2
 
3028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3029
$as_echo_n "checking for $ac_word... " >&6; }
 
3030
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3031
  $as_echo_n "(cached) " >&6
 
3032
else
 
3033
  if test -n "$ac_ct_CC"; then
 
3034
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3035
else
 
3036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3037
for as_dir in $PATH
 
3038
do
 
3039
  IFS=$as_save_IFS
 
3040
  test -z "$as_dir" && as_dir=.
 
3041
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3042
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3043
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3044
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3045
    break 2
 
3046
  fi
 
3047
done
 
3048
  done
 
3049
IFS=$as_save_IFS
 
3050
 
 
3051
fi
 
3052
fi
 
3053
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3054
if test -n "$ac_ct_CC"; then
 
3055
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3056
$as_echo "$ac_ct_CC" >&6; }
 
3057
else
 
3058
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3059
$as_echo "no" >&6; }
 
3060
fi
 
3061
 
 
3062
 
 
3063
  test -n "$ac_ct_CC" && break
 
3064
done
 
3065
 
 
3066
  if test "x$ac_ct_CC" = x; then
 
3067
    CC=""
 
3068
  else
 
3069
    case $cross_compiling:$ac_tool_warned in
 
3070
yes:)
 
3071
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3072
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3073
ac_tool_warned=yes ;;
 
3074
esac
 
3075
    CC=$ac_ct_CC
 
3076
  fi
 
3077
fi
 
3078
 
 
3079
fi
 
3080
 
 
3081
 
 
3082
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3083
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3084
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3085
See \`config.log' for more details" "$LINENO" 5; }
 
3086
 
 
3087
# Provide some information about the compiler.
 
3088
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3089
set X $ac_compile
 
3090
ac_compiler=$2
 
3091
for ac_option in --version -v -V -qversion; do
 
3092
  { { ac_try="$ac_compiler $ac_option >&5"
 
3093
case "(($ac_try" in
 
3094
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3095
  *) ac_try_echo=$ac_try;;
 
3096
esac
 
3097
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3098
$as_echo "$ac_try_echo"; } >&5
 
3099
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3100
  ac_status=$?
 
3101
  if test -s conftest.err; then
 
3102
    sed '10a\
 
3103
... rest of stderr output deleted ...
 
3104
         10q' conftest.err >conftest.er1
 
3105
    cat conftest.er1 >&5
 
3106
  fi
 
3107
  rm -f conftest.er1 conftest.err
 
3108
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3109
  test $ac_status = 0; }
 
3110
done
 
3111
 
 
3112
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3113
/* end confdefs.h.  */
 
3114
 
 
3115
int
 
3116
main ()
 
3117
{
 
3118
 
 
3119
  ;
 
3120
  return 0;
 
3121
}
 
3122
_ACEOF
 
3123
ac_clean_files_save=$ac_clean_files
 
3124
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3125
# Try to create an executable without -o first, disregard a.out.
 
3126
# It will help us diagnose broken compilers, and finding out an intuition
 
3127
# of exeext.
 
3128
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3129
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3130
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3131
 
 
3132
# The possible output files:
 
3133
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3134
 
 
3135
ac_rmfiles=
 
3136
for ac_file in $ac_files
 
3137
do
 
3138
  case $ac_file in
 
3139
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3140
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3141
  esac
 
3142
done
 
3143
rm -f $ac_rmfiles
 
3144
 
 
3145
if { { ac_try="$ac_link_default"
 
3146
case "(($ac_try" in
 
3147
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3148
  *) ac_try_echo=$ac_try;;
 
3149
esac
 
3150
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3151
$as_echo "$ac_try_echo"; } >&5
 
3152
  (eval "$ac_link_default") 2>&5
 
3153
  ac_status=$?
 
3154
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3155
  test $ac_status = 0; }; then :
 
3156
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3157
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3158
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3159
# so that the user can short-circuit this test for compilers unknown to
 
3160
# Autoconf.
 
3161
for ac_file in $ac_files ''
 
3162
do
 
3163
  test -f "$ac_file" || continue
 
3164
  case $ac_file in
 
3165
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3166
        ;;
 
3167
    [ab].out )
 
3168
        # We found the default executable, but exeext='' is most
 
3169
        # certainly right.
 
3170
        break;;
 
3171
    *.* )
 
3172
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3173
        then :; else
 
3174
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3175
        fi
 
3176
        # We set ac_cv_exeext here because the later test for it is not
 
3177
        # safe: cross compilers may not add the suffix if given an `-o'
 
3178
        # argument, so we may need to know it at that point already.
 
3179
        # Even if this section looks crufty: it has the advantage of
 
3180
        # actually working.
 
3181
        break;;
 
3182
    * )
 
3183
        break;;
 
3184
  esac
 
3185
done
 
3186
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3187
 
 
3188
else
 
3189
  ac_file=''
 
3190
fi
 
3191
if test -z "$ac_file"; then :
 
3192
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3193
$as_echo "no" >&6; }
 
3194
$as_echo "$as_me: failed program was:" >&5
 
3195
sed 's/^/| /' conftest.$ac_ext >&5
 
3196
 
 
3197
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3198
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3199
as_fn_error 77 "C compiler cannot create executables
 
3200
See \`config.log' for more details" "$LINENO" 5; }
 
3201
else
 
3202
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3203
$as_echo "yes" >&6; }
 
3204
fi
 
3205
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3206
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3208
$as_echo "$ac_file" >&6; }
 
3209
ac_exeext=$ac_cv_exeext
 
3210
 
 
3211
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3212
ac_clean_files=$ac_clean_files_save
 
3213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3214
$as_echo_n "checking for suffix of executables... " >&6; }
 
3215
if { { ac_try="$ac_link"
 
3216
case "(($ac_try" in
 
3217
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3218
  *) ac_try_echo=$ac_try;;
 
3219
esac
 
3220
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3221
$as_echo "$ac_try_echo"; } >&5
 
3222
  (eval "$ac_link") 2>&5
 
3223
  ac_status=$?
 
3224
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3225
  test $ac_status = 0; }; then :
 
3226
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3227
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3228
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3229
# `rm'.
 
3230
for ac_file in conftest.exe conftest conftest.*; do
 
3231
  test -f "$ac_file" || continue
 
3232
  case $ac_file in
 
3233
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3234
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3235
          break;;
 
3236
    * ) break;;
 
3237
  esac
 
3238
done
 
3239
else
 
3240
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3241
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3242
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3243
See \`config.log' for more details" "$LINENO" 5; }
 
3244
fi
 
3245
rm -f conftest conftest$ac_cv_exeext
 
3246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3247
$as_echo "$ac_cv_exeext" >&6; }
 
3248
 
 
3249
rm -f conftest.$ac_ext
 
3250
EXEEXT=$ac_cv_exeext
 
3251
ac_exeext=$EXEEXT
 
3252
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3253
/* end confdefs.h.  */
 
3254
#include <stdio.h>
 
3255
int
 
3256
main ()
 
3257
{
 
3258
FILE *f = fopen ("conftest.out", "w");
 
3259
 return ferror (f) || fclose (f) != 0;
 
3260
 
 
3261
  ;
 
3262
  return 0;
 
3263
}
 
3264
_ACEOF
 
3265
ac_clean_files="$ac_clean_files conftest.out"
 
3266
# Check that the compiler produces executables we can run.  If not, either
 
3267
# the compiler is broken, or we cross compile.
 
3268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3269
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3270
if test "$cross_compiling" != yes; then
 
3271
  { { ac_try="$ac_link"
 
3272
case "(($ac_try" in
 
3273
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3274
  *) ac_try_echo=$ac_try;;
 
3275
esac
 
3276
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3277
$as_echo "$ac_try_echo"; } >&5
 
3278
  (eval "$ac_link") 2>&5
 
3279
  ac_status=$?
 
3280
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3281
  test $ac_status = 0; }
 
3282
  if { ac_try='./conftest$ac_cv_exeext'
 
3283
  { { case "(($ac_try" in
 
3284
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3285
  *) ac_try_echo=$ac_try;;
 
3286
esac
 
3287
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3288
$as_echo "$ac_try_echo"; } >&5
 
3289
  (eval "$ac_try") 2>&5
 
3290
  ac_status=$?
 
3291
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3292
  test $ac_status = 0; }; }; then
 
3293
    cross_compiling=no
 
3294
  else
 
3295
    if test "$cross_compiling" = maybe; then
 
3296
        cross_compiling=yes
 
3297
    else
 
3298
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3299
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3300
as_fn_error $? "cannot run C compiled programs.
 
3301
If you meant to cross compile, use \`--host'.
 
3302
See \`config.log' for more details" "$LINENO" 5; }
 
3303
    fi
 
3304
  fi
 
3305
fi
 
3306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3307
$as_echo "$cross_compiling" >&6; }
 
3308
 
 
3309
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3310
ac_clean_files=$ac_clean_files_save
 
3311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3312
$as_echo_n "checking for suffix of object files... " >&6; }
 
3313
if ${ac_cv_objext+:} false; then :
 
3314
  $as_echo_n "(cached) " >&6
 
3315
else
 
3316
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3317
/* end confdefs.h.  */
 
3318
 
 
3319
int
 
3320
main ()
 
3321
{
 
3322
 
 
3323
  ;
 
3324
  return 0;
 
3325
}
 
3326
_ACEOF
 
3327
rm -f conftest.o conftest.obj
 
3328
if { { ac_try="$ac_compile"
 
3329
case "(($ac_try" in
 
3330
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3331
  *) ac_try_echo=$ac_try;;
 
3332
esac
 
3333
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3334
$as_echo "$ac_try_echo"; } >&5
 
3335
  (eval "$ac_compile") 2>&5
 
3336
  ac_status=$?
 
3337
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3338
  test $ac_status = 0; }; then :
 
3339
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3340
  test -f "$ac_file" || continue;
 
3341
  case $ac_file in
 
3342
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3343
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3344
       break;;
 
3345
  esac
 
3346
done
 
3347
else
 
3348
  $as_echo "$as_me: failed program was:" >&5
 
3349
sed 's/^/| /' conftest.$ac_ext >&5
 
3350
 
 
3351
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3352
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3353
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3354
See \`config.log' for more details" "$LINENO" 5; }
 
3355
fi
 
3356
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3357
fi
 
3358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3359
$as_echo "$ac_cv_objext" >&6; }
 
3360
OBJEXT=$ac_cv_objext
 
3361
ac_objext=$OBJEXT
 
3362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3363
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3364
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3365
  $as_echo_n "(cached) " >&6
 
3366
else
 
3367
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3368
/* end confdefs.h.  */
 
3369
 
 
3370
int
 
3371
main ()
 
3372
{
 
3373
#ifndef __GNUC__
 
3374
       choke me
 
3375
#endif
 
3376
 
 
3377
  ;
 
3378
  return 0;
 
3379
}
 
3380
_ACEOF
 
3381
if ac_fn_c_try_compile "$LINENO"; then :
 
3382
  ac_compiler_gnu=yes
 
3383
else
 
3384
  ac_compiler_gnu=no
 
3385
fi
 
3386
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3387
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3388
 
 
3389
fi
 
3390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3391
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3392
if test $ac_compiler_gnu = yes; then
 
3393
  GCC=yes
 
3394
else
 
3395
  GCC=
 
3396
fi
 
3397
ac_test_CFLAGS=${CFLAGS+set}
 
3398
ac_save_CFLAGS=$CFLAGS
 
3399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3400
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3401
if ${ac_cv_prog_cc_g+:} false; then :
 
3402
  $as_echo_n "(cached) " >&6
 
3403
else
 
3404
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3405
   ac_c_werror_flag=yes
 
3406
   ac_cv_prog_cc_g=no
 
3407
   CFLAGS="-g"
 
3408
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3409
/* end confdefs.h.  */
 
3410
 
 
3411
int
 
3412
main ()
 
3413
{
 
3414
 
 
3415
  ;
 
3416
  return 0;
 
3417
}
 
3418
_ACEOF
 
3419
if ac_fn_c_try_compile "$LINENO"; then :
 
3420
  ac_cv_prog_cc_g=yes
 
3421
else
 
3422
  CFLAGS=""
 
3423
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3424
/* end confdefs.h.  */
 
3425
 
 
3426
int
 
3427
main ()
 
3428
{
 
3429
 
 
3430
  ;
 
3431
  return 0;
 
3432
}
 
3433
_ACEOF
 
3434
if ac_fn_c_try_compile "$LINENO"; then :
 
3435
 
 
3436
else
 
3437
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3438
         CFLAGS="-g"
 
3439
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3440
/* end confdefs.h.  */
 
3441
 
 
3442
int
 
3443
main ()
 
3444
{
 
3445
 
 
3446
  ;
 
3447
  return 0;
 
3448
}
 
3449
_ACEOF
 
3450
if ac_fn_c_try_compile "$LINENO"; then :
 
3451
  ac_cv_prog_cc_g=yes
 
3452
fi
 
3453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3454
fi
 
3455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3456
fi
 
3457
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3458
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3459
fi
 
3460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3461
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3462
if test "$ac_test_CFLAGS" = set; then
 
3463
  CFLAGS=$ac_save_CFLAGS
 
3464
elif test $ac_cv_prog_cc_g = yes; then
 
3465
  if test "$GCC" = yes; then
 
3466
    CFLAGS="-g -O2"
 
3467
  else
 
3468
    CFLAGS="-g"
 
3469
  fi
 
3470
else
 
3471
  if test "$GCC" = yes; then
 
3472
    CFLAGS="-O2"
 
3473
  else
 
3474
    CFLAGS=
 
3475
  fi
 
3476
fi
 
3477
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3478
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3479
if ${ac_cv_prog_cc_c89+:} false; then :
 
3480
  $as_echo_n "(cached) " >&6
 
3481
else
 
3482
  ac_cv_prog_cc_c89=no
 
3483
ac_save_CC=$CC
 
3484
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3485
/* end confdefs.h.  */
 
3486
#include <stdarg.h>
 
3487
#include <stdio.h>
 
3488
#include <sys/types.h>
 
3489
#include <sys/stat.h>
 
3490
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3491
struct buf { int x; };
 
3492
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3493
static char *e (p, i)
 
3494
     char **p;
 
3495
     int i;
 
3496
{
 
3497
  return p[i];
 
3498
}
 
3499
static char *f (char * (*g) (char **, int), char **p, ...)
 
3500
{
 
3501
  char *s;
 
3502
  va_list v;
 
3503
  va_start (v,p);
 
3504
  s = g (p, va_arg (v,int));
 
3505
  va_end (v);
 
3506
  return s;
 
3507
}
 
3508
 
 
3509
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3510
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3511
   These don't provoke an error unfortunately, instead are silently treated
 
3512
   as 'x'.  The following induces an error, until -std is added to get
 
3513
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3514
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3515
   that's true only with -std.  */
 
3516
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3517
 
 
3518
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3519
   inside strings and character constants.  */
 
3520
#define FOO(x) 'x'
 
3521
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3522
 
 
3523
int test (int i, double x);
 
3524
struct s1 {int (*f) (int a);};
 
3525
struct s2 {int (*f) (double a);};
 
3526
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3527
int argc;
 
3528
char **argv;
 
3529
int
 
3530
main ()
 
3531
{
 
3532
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3533
  ;
 
3534
  return 0;
 
3535
}
 
3536
_ACEOF
 
3537
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3538
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3539
do
 
3540
  CC="$ac_save_CC $ac_arg"
 
3541
  if ac_fn_c_try_compile "$LINENO"; then :
 
3542
  ac_cv_prog_cc_c89=$ac_arg
 
3543
fi
 
3544
rm -f core conftest.err conftest.$ac_objext
 
3545
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3546
done
 
3547
rm -f conftest.$ac_ext
 
3548
CC=$ac_save_CC
 
3549
 
 
3550
fi
 
3551
# AC_CACHE_VAL
 
3552
case "x$ac_cv_prog_cc_c89" in
 
3553
  x)
 
3554
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3555
$as_echo "none needed" >&6; } ;;
 
3556
  xno)
 
3557
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3558
$as_echo "unsupported" >&6; } ;;
 
3559
  *)
 
3560
    CC="$CC $ac_cv_prog_cc_c89"
 
3561
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3562
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3563
esac
 
3564
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3565
 
 
3566
fi
 
3567
 
 
3568
ac_ext=c
 
3569
ac_cpp='$CPP $CPPFLAGS'
 
3570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3573
 
 
3574
depcc="$CC"   am_compiler_list=
 
3575
 
 
3576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3577
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3578
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
3579
  $as_echo_n "(cached) " >&6
 
3580
else
 
3581
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3582
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3583
  # making bogus files that we don't know about and never remove.  For
 
3584
  # instance it was reported that on HP-UX the gcc test will end up
 
3585
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3586
  # in D'.
 
3587
  mkdir conftest.dir
 
3588
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3589
  # using a relative directory.
 
3590
  cp "$am_depcomp" conftest.dir
 
3591
  cd conftest.dir
 
3592
  # We will build objects and dependencies in a subdirectory because
 
3593
  # it helps to detect inapplicable dependency modes.  For instance
 
3594
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3595
  # side effect of compilation, but ICC will put the dependencies in
 
3596
  # the current directory while Tru64 will put them in the object
 
3597
  # directory.
 
3598
  mkdir sub
 
3599
 
 
3600
  am_cv_CC_dependencies_compiler_type=none
 
3601
  if test "$am_compiler_list" = ""; then
 
3602
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3603
  fi
 
3604
  am__universal=false
 
3605
  case " $depcc " in #(
 
3606
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3607
     esac
 
3608
 
 
3609
  for depmode in $am_compiler_list; do
 
3610
    # Setup a source with many dependencies, because some compilers
 
3611
    # like to wrap large dependency lists on column 80 (with \), and
 
3612
    # we should not choose a depcomp mode which is confused by this.
 
3613
    #
 
3614
    # We need to recreate these files for each test, as the compiler may
 
3615
    # overwrite some of them when testing with obscure command lines.
 
3616
    # This happens at least with the AIX C compiler.
 
3617
    : > sub/conftest.c
 
3618
    for i in 1 2 3 4 5 6; do
 
3619
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3620
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3621
      # Solaris 8's {/usr,}/bin/sh.
 
3622
      touch sub/conftst$i.h
 
3623
    done
 
3624
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3625
 
 
3626
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3627
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3628
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3629
    # versions had trouble with output in subdirs
 
3630
    am__obj=sub/conftest.${OBJEXT-o}
 
3631
    am__minus_obj="-o $am__obj"
 
3632
    case $depmode in
 
3633
    gcc)
 
3634
      # This depmode causes a compiler race in universal mode.
 
3635
      test "$am__universal" = false || continue
 
3636
      ;;
 
3637
    nosideeffect)
 
3638
      # after this tag, mechanisms are not by side-effect, so they'll
 
3639
      # only be used when explicitly requested
 
3640
      if test "x$enable_dependency_tracking" = xyes; then
 
3641
        continue
 
3642
      else
 
3643
        break
 
3644
      fi
 
3645
      ;;
 
3646
    msvisualcpp | msvcmsys)
 
3647
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3648
      # not run yet.  These depmodes are late enough in the game, and
 
3649
      # so weak that their functioning should not be impacted.
 
3650
      am__obj=conftest.${OBJEXT-o}
 
3651
      am__minus_obj=
 
3652
      ;;
 
3653
    none) break ;;
 
3654
    esac
 
3655
    if depmode=$depmode \
 
3656
       source=sub/conftest.c object=$am__obj \
 
3657
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3658
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3659
         >/dev/null 2>conftest.err &&
 
3660
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3661
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3662
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3663
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3664
      # icc doesn't choke on unknown options, it will just issue warnings
 
3665
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3666
      # that says an option was ignored or not supported.
 
3667
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3668
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3669
      # The diagnosis changed in icc 8.0:
 
3670
      #   icc: Command line remark: option '-MP' not supported
 
3671
      if (grep 'ignoring option' conftest.err ||
 
3672
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3673
        am_cv_CC_dependencies_compiler_type=$depmode
 
3674
        break
 
3675
      fi
 
3676
    fi
 
3677
  done
 
3678
 
 
3679
  cd ..
 
3680
  rm -rf conftest.dir
 
3681
else
 
3682
  am_cv_CC_dependencies_compiler_type=none
 
3683
fi
 
3684
 
 
3685
fi
 
3686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3687
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3688
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3689
 
 
3690
 if
 
3691
  test "x$enable_dependency_tracking" != xno \
 
3692
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3693
  am__fastdepCC_TRUE=
 
3694
  am__fastdepCC_FALSE='#'
 
3695
else
 
3696
  am__fastdepCC_TRUE='#'
 
3697
  am__fastdepCC_FALSE=
 
3698
fi
 
3699
 
 
3700
 
 
3701
if test "x$CC" != xcc; then
 
3702
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 
3703
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
3704
else
 
3705
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 
3706
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
3707
fi
 
3708
set dummy $CC; ac_cc=`$as_echo "$2" |
 
3709
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3710
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
 
3711
  $as_echo_n "(cached) " >&6
 
3712
else
 
3713
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3714
/* end confdefs.h.  */
 
3715
 
 
3716
int
 
3717
main ()
 
3718
{
 
3719
 
 
3720
  ;
 
3721
  return 0;
 
3722
}
 
3723
_ACEOF
 
3724
# Make sure it works both with $CC and with simple cc.
 
3725
# We do the test twice because some compilers refuse to overwrite an
 
3726
# existing .o file with -o, though they will create one.
 
3727
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
3728
rm -f conftest2.*
 
3729
if { { case "(($ac_try" in
 
3730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3731
  *) ac_try_echo=$ac_try;;
 
3732
esac
 
3733
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3734
$as_echo "$ac_try_echo"; } >&5
 
3735
  (eval "$ac_try") 2>&5
 
3736
  ac_status=$?
 
3737
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3738
  test $ac_status = 0; } &&
 
3739
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
3740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3741
  *) ac_try_echo=$ac_try;;
 
3742
esac
 
3743
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3744
$as_echo "$ac_try_echo"; } >&5
 
3745
  (eval "$ac_try") 2>&5
 
3746
  ac_status=$?
 
3747
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3748
  test $ac_status = 0; };
 
3749
then
 
3750
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
3751
  if test "x$CC" != xcc; then
 
3752
    # Test first that cc exists at all.
 
3753
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
3754
  { { case "(($ac_try" in
 
3755
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3756
  *) ac_try_echo=$ac_try;;
 
3757
esac
 
3758
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3759
$as_echo "$ac_try_echo"; } >&5
 
3760
  (eval "$ac_try") 2>&5
 
3761
  ac_status=$?
 
3762
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3763
  test $ac_status = 0; }; }; then
 
3764
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
3765
      rm -f conftest2.*
 
3766
      if { { case "(($ac_try" in
 
3767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3768
  *) ac_try_echo=$ac_try;;
 
3769
esac
 
3770
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3771
$as_echo "$ac_try_echo"; } >&5
 
3772
  (eval "$ac_try") 2>&5
 
3773
  ac_status=$?
 
3774
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3775
  test $ac_status = 0; } &&
 
3776
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
3777
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3778
  *) ac_try_echo=$ac_try;;
 
3779
esac
 
3780
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3781
$as_echo "$ac_try_echo"; } >&5
 
3782
  (eval "$ac_try") 2>&5
 
3783
  ac_status=$?
 
3784
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3785
  test $ac_status = 0; };
 
3786
      then
 
3787
        # cc works too.
 
3788
        :
 
3789
      else
 
3790
        # cc exists but doesn't like -o.
 
3791
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3792
      fi
 
3793
    fi
 
3794
  fi
 
3795
else
 
3796
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3797
fi
 
3798
rm -f core conftest*
 
3799
 
 
3800
fi
 
3801
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
3802
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3803
$as_echo "yes" >&6; }
 
3804
else
 
3805
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3806
$as_echo "no" >&6; }
 
3807
 
 
3808
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
 
3809
 
 
3810
fi
 
3811
 
 
3812
# FIXME: we rely on the cache variable name because
 
3813
# there is no other way.
 
3814
set dummy $CC
 
3815
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3816
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
3817
if test "$am_t" != yes; then
 
3818
   # Losing compiler, so override with the script.
 
3819
   # FIXME: It is wrong to rewrite CC.
 
3820
   # But if we don't then we get into trouble of one sort or another.
 
3821
   # A longer-term fix would be to have automake use am__CC in this case,
 
3822
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
3823
   CC="$am_aux_dir/compile $CC"
 
3824
fi
 
3825
 
 
3826
 
 
3827
 
 
3828
ac_ext=c
 
3829
ac_cpp='$CPP $CPPFLAGS'
 
3830
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3831
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3832
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
3834
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
3835
# On Suns, sometimes $CPP names a directory.
 
3836
if test -n "$CPP" && test -d "$CPP"; then
 
3837
  CPP=
 
3838
fi
 
3839
if test -z "$CPP"; then
 
3840
  if ${ac_cv_prog_CPP+:} false; then :
 
3841
  $as_echo_n "(cached) " >&6
 
3842
else
 
3843
      # Double quotes because CPP needs to be expanded
 
3844
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3845
    do
 
3846
      ac_preproc_ok=false
 
3847
for ac_c_preproc_warn_flag in '' yes
 
3848
do
 
3849
  # Use a header file that comes with gcc, so configuring glibc
 
3850
  # with a fresh cross-compiler works.
 
3851
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3852
  # <limits.h> exists even on freestanding compilers.
 
3853
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3854
  # not just through cpp. "Syntax error" is here to catch this case.
 
3855
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3856
/* end confdefs.h.  */
 
3857
#ifdef __STDC__
 
3858
# include <limits.h>
 
3859
#else
 
3860
# include <assert.h>
 
3861
#endif
 
3862
                     Syntax error
 
3863
_ACEOF
 
3864
if ac_fn_c_try_cpp "$LINENO"; then :
 
3865
 
 
3866
else
 
3867
  # Broken: fails on valid input.
 
3868
continue
 
3869
fi
 
3870
rm -f conftest.err conftest.i conftest.$ac_ext
 
3871
 
 
3872
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3873
  # can be detected and how.
 
3874
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3875
/* end confdefs.h.  */
 
3876
#include <ac_nonexistent.h>
 
3877
_ACEOF
 
3878
if ac_fn_c_try_cpp "$LINENO"; then :
 
3879
  # Broken: success on invalid input.
 
3880
continue
 
3881
else
 
3882
  # Passes both tests.
 
3883
ac_preproc_ok=:
 
3884
break
 
3885
fi
 
3886
rm -f conftest.err conftest.i conftest.$ac_ext
 
3887
 
 
3888
done
 
3889
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3890
rm -f conftest.i conftest.err conftest.$ac_ext
 
3891
if $ac_preproc_ok; then :
 
3892
  break
 
3893
fi
 
3894
 
 
3895
    done
 
3896
    ac_cv_prog_CPP=$CPP
 
3897
 
 
3898
fi
 
3899
  CPP=$ac_cv_prog_CPP
 
3900
else
 
3901
  ac_cv_prog_CPP=$CPP
 
3902
fi
 
3903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
3904
$as_echo "$CPP" >&6; }
 
3905
ac_preproc_ok=false
 
3906
for ac_c_preproc_warn_flag in '' yes
 
3907
do
 
3908
  # Use a header file that comes with gcc, so configuring glibc
 
3909
  # with a fresh cross-compiler works.
 
3910
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3911
  # <limits.h> exists even on freestanding compilers.
 
3912
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3913
  # not just through cpp. "Syntax error" is here to catch this case.
 
3914
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3915
/* end confdefs.h.  */
 
3916
#ifdef __STDC__
 
3917
# include <limits.h>
 
3918
#else
 
3919
# include <assert.h>
 
3920
#endif
 
3921
                     Syntax error
 
3922
_ACEOF
 
3923
if ac_fn_c_try_cpp "$LINENO"; then :
 
3924
 
 
3925
else
 
3926
  # Broken: fails on valid input.
 
3927
continue
 
3928
fi
 
3929
rm -f conftest.err conftest.i conftest.$ac_ext
 
3930
 
 
3931
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3932
  # can be detected and how.
 
3933
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3934
/* end confdefs.h.  */
 
3935
#include <ac_nonexistent.h>
 
3936
_ACEOF
 
3937
if ac_fn_c_try_cpp "$LINENO"; then :
 
3938
  # Broken: success on invalid input.
 
3939
continue
 
3940
else
 
3941
  # Passes both tests.
 
3942
ac_preproc_ok=:
 
3943
break
 
3944
fi
 
3945
rm -f conftest.err conftest.i conftest.$ac_ext
 
3946
 
 
3947
done
 
3948
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3949
rm -f conftest.i conftest.err conftest.$ac_ext
 
3950
if $ac_preproc_ok; then :
 
3951
 
 
3952
else
 
3953
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3954
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3955
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
3956
See \`config.log' for more details" "$LINENO" 5; }
 
3957
fi
 
3958
 
 
3959
ac_ext=c
 
3960
ac_cpp='$CPP $CPPFLAGS'
 
3961
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3962
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3963
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3964
 
 
3965
 
 
3966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
3967
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3968
if ${ac_cv_path_GREP+:} false; then :
 
3969
  $as_echo_n "(cached) " >&6
 
3970
else
 
3971
  if test -z "$GREP"; then
 
3972
  ac_path_GREP_found=false
 
3973
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3974
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3975
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3976
do
 
3977
  IFS=$as_save_IFS
 
3978
  test -z "$as_dir" && as_dir=.
 
3979
    for ac_prog in grep ggrep; do
 
3980
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3981
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3982
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3983
# Check for GNU ac_path_GREP and select it if it is found.
 
3984
  # Check for GNU $ac_path_GREP
 
3985
case `"$ac_path_GREP" --version 2>&1` in
 
3986
*GNU*)
 
3987
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3988
*)
 
3989
  ac_count=0
 
3990
  $as_echo_n 0123456789 >"conftest.in"
 
3991
  while :
 
3992
  do
 
3993
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3994
    mv "conftest.tmp" "conftest.in"
 
3995
    cp "conftest.in" "conftest.nl"
 
3996
    $as_echo 'GREP' >> "conftest.nl"
 
3997
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3998
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3999
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4000
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4001
      # Best one so far, save it but keep looking for a better one
 
4002
      ac_cv_path_GREP="$ac_path_GREP"
 
4003
      ac_path_GREP_max=$ac_count
 
4004
    fi
 
4005
    # 10*(2^10) chars as input seems more than enough
 
4006
    test $ac_count -gt 10 && break
 
4007
  done
 
4008
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4009
esac
 
4010
 
 
4011
      $ac_path_GREP_found && break 3
 
4012
    done
 
4013
  done
 
4014
  done
 
4015
IFS=$as_save_IFS
 
4016
  if test -z "$ac_cv_path_GREP"; then
 
4017
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4018
  fi
 
4019
else
 
4020
  ac_cv_path_GREP=$GREP
 
4021
fi
 
4022
 
 
4023
fi
 
4024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4025
$as_echo "$ac_cv_path_GREP" >&6; }
 
4026
 GREP="$ac_cv_path_GREP"
 
4027
 
 
4028
 
 
4029
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4030
$as_echo_n "checking for egrep... " >&6; }
 
4031
if ${ac_cv_path_EGREP+:} false; then :
 
4032
  $as_echo_n "(cached) " >&6
 
4033
else
 
4034
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4035
   then ac_cv_path_EGREP="$GREP -E"
 
4036
   else
 
4037
     if test -z "$EGREP"; then
 
4038
  ac_path_EGREP_found=false
 
4039
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4040
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4041
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4042
do
 
4043
  IFS=$as_save_IFS
 
4044
  test -z "$as_dir" && as_dir=.
 
4045
    for ac_prog in egrep; do
 
4046
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4047
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4048
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4049
# Check for GNU ac_path_EGREP and select it if it is found.
 
4050
  # Check for GNU $ac_path_EGREP
 
4051
case `"$ac_path_EGREP" --version 2>&1` in
 
4052
*GNU*)
 
4053
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4054
*)
 
4055
  ac_count=0
 
4056
  $as_echo_n 0123456789 >"conftest.in"
 
4057
  while :
 
4058
  do
 
4059
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4060
    mv "conftest.tmp" "conftest.in"
 
4061
    cp "conftest.in" "conftest.nl"
 
4062
    $as_echo 'EGREP' >> "conftest.nl"
 
4063
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4064
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4065
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4066
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4067
      # Best one so far, save it but keep looking for a better one
 
4068
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4069
      ac_path_EGREP_max=$ac_count
 
4070
    fi
 
4071
    # 10*(2^10) chars as input seems more than enough
 
4072
    test $ac_count -gt 10 && break
 
4073
  done
 
4074
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4075
esac
 
4076
 
 
4077
      $ac_path_EGREP_found && break 3
 
4078
    done
 
4079
  done
 
4080
  done
 
4081
IFS=$as_save_IFS
 
4082
  if test -z "$ac_cv_path_EGREP"; then
 
4083
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4084
  fi
 
4085
else
 
4086
  ac_cv_path_EGREP=$EGREP
 
4087
fi
 
4088
 
 
4089
   fi
 
4090
fi
 
4091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4092
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4093
 EGREP="$ac_cv_path_EGREP"
 
4094
 
 
4095
 
 
4096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4097
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4098
if ${ac_cv_header_stdc+:} false; then :
 
4099
  $as_echo_n "(cached) " >&6
 
4100
else
 
4101
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4102
/* end confdefs.h.  */
 
4103
#include <stdlib.h>
 
4104
#include <stdarg.h>
 
4105
#include <string.h>
 
4106
#include <float.h>
 
4107
 
 
4108
int
 
4109
main ()
 
4110
{
 
4111
 
 
4112
  ;
 
4113
  return 0;
 
4114
}
 
4115
_ACEOF
 
4116
if ac_fn_c_try_compile "$LINENO"; then :
 
4117
  ac_cv_header_stdc=yes
 
4118
else
 
4119
  ac_cv_header_stdc=no
 
4120
fi
 
4121
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4122
 
 
4123
if test $ac_cv_header_stdc = yes; then
 
4124
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4125
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4126
/* end confdefs.h.  */
 
4127
#include <string.h>
 
4128
 
 
4129
_ACEOF
 
4130
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4131
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4132
 
 
4133
else
 
4134
  ac_cv_header_stdc=no
 
4135
fi
 
4136
rm -f conftest*
 
4137
 
 
4138
fi
 
4139
 
 
4140
if test $ac_cv_header_stdc = yes; then
 
4141
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4142
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4143
/* end confdefs.h.  */
 
4144
#include <stdlib.h>
 
4145
 
 
4146
_ACEOF
 
4147
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4148
  $EGREP "free" >/dev/null 2>&1; then :
 
4149
 
 
4150
else
 
4151
  ac_cv_header_stdc=no
 
4152
fi
 
4153
rm -f conftest*
 
4154
 
 
4155
fi
 
4156
 
 
4157
if test $ac_cv_header_stdc = yes; then
 
4158
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4159
  if test "$cross_compiling" = yes; then :
 
4160
  :
 
4161
else
 
4162
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4163
/* end confdefs.h.  */
 
4164
#include <ctype.h>
 
4165
#include <stdlib.h>
 
4166
#if ((' ' & 0x0FF) == 0x020)
 
4167
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4168
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4169
#else
 
4170
# define ISLOWER(c) \
 
4171
                   (('a' <= (c) && (c) <= 'i') \
 
4172
                     || ('j' <= (c) && (c) <= 'r') \
 
4173
                     || ('s' <= (c) && (c) <= 'z'))
 
4174
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4175
#endif
 
4176
 
 
4177
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4178
int
 
4179
main ()
 
4180
{
 
4181
  int i;
 
4182
  for (i = 0; i < 256; i++)
 
4183
    if (XOR (islower (i), ISLOWER (i))
 
4184
        || toupper (i) != TOUPPER (i))
 
4185
      return 2;
 
4186
  return 0;
 
4187
}
 
4188
_ACEOF
 
4189
if ac_fn_c_try_run "$LINENO"; then :
 
4190
 
 
4191
else
 
4192
  ac_cv_header_stdc=no
 
4193
fi
 
4194
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4195
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4196
fi
 
4197
 
 
4198
fi
 
4199
fi
 
4200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4201
$as_echo "$ac_cv_header_stdc" >&6; }
 
4202
if test $ac_cv_header_stdc = yes; then
 
4203
 
 
4204
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
4205
 
 
4206
fi
 
4207
 
 
4208
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4209
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4210
                  inttypes.h stdint.h unistd.h
 
4211
do :
 
4212
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4213
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4214
"
 
4215
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
4216
  cat >>confdefs.h <<_ACEOF
 
4217
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4218
_ACEOF
 
4219
 
 
4220
fi
 
4221
 
 
4222
done
 
4223
 
 
4224
 
 
4225
 
 
4226
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
4227
if test "x$ac_cv_header_minix_config_h" = xyes; then :
 
4228
  MINIX=yes
 
4229
else
 
4230
  MINIX=
 
4231
fi
 
4232
 
 
4233
 
 
4234
  if test "$MINIX" = yes; then
 
4235
 
 
4236
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 
4237
 
 
4238
 
 
4239
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 
4240
 
 
4241
 
 
4242
$as_echo "#define _MINIX 1" >>confdefs.h
 
4243
 
 
4244
  fi
 
4245
 
 
4246
 
 
4247
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 
4248
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
4249
if ${ac_cv_safe_to_define___extensions__+:} false; then :
 
4250
  $as_echo_n "(cached) " >&6
 
4251
else
 
4252
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4253
/* end confdefs.h.  */
 
4254
 
 
4255
#         define __EXTENSIONS__ 1
 
4256
          $ac_includes_default
 
4257
int
 
4258
main ()
 
4259
{
 
4260
 
 
4261
  ;
 
4262
  return 0;
 
4263
}
 
4264
_ACEOF
 
4265
if ac_fn_c_try_compile "$LINENO"; then :
 
4266
  ac_cv_safe_to_define___extensions__=yes
 
4267
else
 
4268
  ac_cv_safe_to_define___extensions__=no
 
4269
fi
 
4270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4271
fi
 
4272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 
4273
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
4274
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
4275
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 
4276
 
 
4277
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 
4278
 
 
4279
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 
4280
 
 
4281
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
4282
 
 
4283
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 
4284
 
 
4285
 
 
4286
 
 
4287
# Extract the first word of "setcap", so it can be a program name with args.
 
4288
set dummy setcap; ac_word=$2
 
4289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4290
$as_echo_n "checking for $ac_word... " >&6; }
 
4291
if ${ac_cv_prog_SETCAP+:} false; then :
 
4292
  $as_echo_n "(cached) " >&6
 
4293
else
 
4294
  if test -n "$SETCAP"; then
 
4295
  ac_cv_prog_SETCAP="$SETCAP" # Let the user override the test.
 
4296
else
 
4297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4298
for as_dir in $PATH$PATH_SEPARATOR/sbin
 
4299
do
 
4300
  IFS=$as_save_IFS
 
4301
  test -z "$as_dir" && as_dir=.
 
4302
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4303
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4304
    ac_cv_prog_SETCAP="yes"
 
4305
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4306
    break 2
 
4307
  fi
 
4308
done
 
4309
  done
 
4310
IFS=$as_save_IFS
 
4311
 
 
4312
  test -z "$ac_cv_prog_SETCAP" && ac_cv_prog_SETCAP="no"
 
4313
fi
 
4314
fi
 
4315
SETCAP=$ac_cv_prog_SETCAP
 
4316
if test -n "$SETCAP"; then
 
4317
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETCAP" >&5
 
4318
$as_echo "$SETCAP" >&6; }
 
4319
else
 
4320
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4321
$as_echo "no" >&6; }
 
4322
fi
 
4323
 
 
4324
 
 
4325
 
 
4326
# Check whether --enable-rpath was given.
 
4327
if test "${enable_rpath+set}" = set; then :
 
4328
  enableval=$enable_rpath;
 
4329
else
 
4330
  enable_rpath=yes
 
4331
fi
 
4332
 
 
4333
 
 
4334
 if test "x$enable_rpath" = "xyes"; then
 
4335
  ENABLE_RPATH_TRUE=
 
4336
  ENABLE_RPATH_FALSE='#'
 
4337
else
 
4338
  ENABLE_RPATH_TRUE='#'
 
4339
  ENABLE_RPATH_FALSE=
 
4340
fi
 
4341
 
 
4342
 
 
4343
# Check whether --enable-doc was given.
 
4344
if test "${enable_doc+set}" = set; then :
 
4345
  enableval=$enable_doc;
 
4346
else
 
4347
  enable_doc=auto
 
4348
fi
 
4349
 
 
4350
 
 
4351
if test "x$enable_doc" = "xyes" -o "x$enable_doc" = "xauto"; then
 
4352
        # Extract the first word of "docbook2man", so it can be a program name with args.
 
4353
set dummy docbook2man; ac_word=$2
 
4354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4355
$as_echo_n "checking for $ac_word... " >&6; }
 
4356
if ${ac_cv_prog_have_docbook+:} false; then :
 
4357
  $as_echo_n "(cached) " >&6
 
4358
else
 
4359
  if test -n "$have_docbook"; then
 
4360
  ac_cv_prog_have_docbook="$have_docbook" # Let the user override the test.
 
4361
else
 
4362
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4363
for as_dir in $PATH
 
4364
do
 
4365
  IFS=$as_save_IFS
 
4366
  test -z "$as_dir" && as_dir=.
 
4367
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4368
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4369
    ac_cv_prog_have_docbook="yes"
 
4370
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4371
    break 2
 
4372
  fi
 
4373
done
 
4374
  done
 
4375
IFS=$as_save_IFS
 
4376
 
 
4377
  test -z "$ac_cv_prog_have_docbook" && ac_cv_prog_have_docbook="no"
 
4378
fi
 
4379
fi
 
4380
have_docbook=$ac_cv_prog_have_docbook
 
4381
if test -n "$have_docbook"; then
 
4382
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_docbook" >&5
 
4383
$as_echo "$have_docbook" >&6; }
 
4384
else
 
4385
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4386
$as_echo "no" >&6; }
 
4387
fi
 
4388
 
 
4389
 
 
4390
 
 
4391
        test "x$have_docbook" = "xno" -a "x$enable_doc" = "xyes" && \
 
4392
                as_fn_error $? "docbook2man required by man request, but not found" "$LINENO" 5
 
4393
fi
 
4394
 
 
4395
 if test "x$have_docbook" = "xyes"; then
 
4396
  ENABLE_DOCBOOK_TRUE=
 
4397
  ENABLE_DOCBOOK_FALSE='#'
 
4398
else
 
4399
  ENABLE_DOCBOOK_TRUE='#'
 
4400
  ENABLE_DOCBOOK_FALSE=
 
4401
fi
 
4402
 
 
4403
 
 
4404
# Check whether --enable-examples was given.
 
4405
if test "${enable_examples+set}" = set; then :
 
4406
  enableval=$enable_examples;
 
4407
else
 
4408
  enable_examples=yes
 
4409
fi
 
4410
 
 
4411
 
 
4412
 if test "x$enable_examples" = "xyes"; then
 
4413
  ENABLE_EXAMPLES_TRUE=
 
4414
  ENABLE_EXAMPLES_FALSE='#'
 
4415
else
 
4416
  ENABLE_EXAMPLES_TRUE='#'
 
4417
  ENABLE_EXAMPLES_FALSE=
 
4418
fi
 
4419
 
 
4420
 
 
4421
 
 
4422
    EXP_VAR=PREFIX
 
4423
    FROM_VAR=$prefix
 
4424
 
 
4425
        prefix_save=$prefix
 
4426
    exec_prefix_save=$exec_prefix
 
4427
 
 
4428
        if test "x$prefix" = "xNONE"; then
 
4429
        prefix="$ac_default_prefix"
 
4430
    fi
 
4431
        if test "x$exec_prefix" = "xNONE"; then
 
4432
        exec_prefix=$prefix
 
4433
    fi
 
4434
 
 
4435
    full_var="$FROM_VAR"
 
4436
        while true; do
 
4437
        new_full_var="`eval echo $full_var`"
 
4438
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
4439
        full_var=$new_full_var
 
4440
    done
 
4441
 
 
4442
        full_var=$new_full_var
 
4443
    PREFIX="$full_var"
 
4444
 
 
4445
 
 
4446
        prefix=$prefix_save
 
4447
    exec_prefix=$exec_prefix_save
 
4448
 
 
4449
 
 
4450
    EXP_VAR=LIBDIR
 
4451
    FROM_VAR=$libdir
 
4452
 
 
4453
        prefix_save=$prefix
 
4454
    exec_prefix_save=$exec_prefix
 
4455
 
 
4456
        if test "x$prefix" = "xNONE"; then
 
4457
        prefix="$ac_default_prefix"
 
4458
    fi
 
4459
        if test "x$exec_prefix" = "xNONE"; then
 
4460
        exec_prefix=$prefix
 
4461
    fi
 
4462
 
 
4463
    full_var="$FROM_VAR"
 
4464
        while true; do
 
4465
        new_full_var="`eval echo $full_var`"
 
4466
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
4467
        full_var=$new_full_var
 
4468
    done
 
4469
 
 
4470
        full_var=$new_full_var
 
4471
    LIBDIR="$full_var"
 
4472
 
 
4473
 
 
4474
        prefix=$prefix_save
 
4475
    exec_prefix=$exec_prefix_save
 
4476
 
 
4477
 
 
4478
    EXP_VAR=BINDIR
 
4479
    FROM_VAR=$bindir
 
4480
 
 
4481
        prefix_save=$prefix
 
4482
    exec_prefix_save=$exec_prefix
 
4483
 
 
4484
        if test "x$prefix" = "xNONE"; then
 
4485
        prefix="$ac_default_prefix"
 
4486
    fi
 
4487
        if test "x$exec_prefix" = "xNONE"; then
 
4488
        exec_prefix=$prefix
 
4489
    fi
 
4490
 
 
4491
    full_var="$FROM_VAR"
 
4492
        while true; do
 
4493
        new_full_var="`eval echo $full_var`"
 
4494
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
4495
        full_var=$new_full_var
 
4496
    done
 
4497
 
 
4498
        full_var=$new_full_var
 
4499
    BINDIR="$full_var"
 
4500
 
 
4501
 
 
4502
        prefix=$prefix_save
 
4503
    exec_prefix=$exec_prefix_save
 
4504
 
 
4505
 
 
4506
    EXP_VAR=INCLUDEDIR
 
4507
    FROM_VAR=$includedir
 
4508
 
 
4509
        prefix_save=$prefix
 
4510
    exec_prefix_save=$exec_prefix
 
4511
 
 
4512
        if test "x$prefix" = "xNONE"; then
 
4513
        prefix="$ac_default_prefix"
 
4514
    fi
 
4515
        if test "x$exec_prefix" = "xNONE"; then
 
4516
        exec_prefix=$prefix
 
4517
    fi
 
4518
 
 
4519
    full_var="$FROM_VAR"
 
4520
        while true; do
 
4521
        new_full_var="`eval echo $full_var`"
 
4522
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
4523
        full_var=$new_full_var
 
4524
    done
 
4525
 
 
4526
        full_var=$new_full_var
 
4527
    INCLUDEDIR="$full_var"
 
4528
 
 
4529
 
 
4530
        prefix=$prefix_save
 
4531
    exec_prefix=$exec_prefix_save
 
4532
 
 
4533
 
 
4534
    EXP_VAR=SYSCONFDIR
 
4535
    FROM_VAR=$sysconfdir
 
4536
 
 
4537
        prefix_save=$prefix
 
4538
    exec_prefix_save=$exec_prefix
 
4539
 
 
4540
        if test "x$prefix" = "xNONE"; then
 
4541
        prefix="$ac_default_prefix"
 
4542
    fi
 
4543
        if test "x$exec_prefix" = "xNONE"; then
 
4544
        exec_prefix=$prefix
 
4545
    fi
 
4546
 
 
4547
    full_var="$FROM_VAR"
 
4548
        while true; do
 
4549
        new_full_var="`eval echo $full_var`"
 
4550
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
4551
        full_var=$new_full_var
 
4552
    done
 
4553
 
 
4554
        full_var=$new_full_var
 
4555
    SYSCONFDIR="$full_var"
 
4556
 
 
4557
 
 
4558
        prefix=$prefix_save
 
4559
    exec_prefix=$exec_prefix_save
 
4560
 
 
4561
 
 
4562
    EXP_VAR=DATADIR
 
4563
    FROM_VAR=$datadir
 
4564
 
 
4565
        prefix_save=$prefix
 
4566
    exec_prefix_save=$exec_prefix
 
4567
 
 
4568
        if test "x$prefix" = "xNONE"; then
 
4569
        prefix="$ac_default_prefix"
 
4570
    fi
 
4571
        if test "x$exec_prefix" = "xNONE"; then
 
4572
        exec_prefix=$prefix
 
4573
    fi
 
4574
 
 
4575
    full_var="$FROM_VAR"
 
4576
        while true; do
 
4577
        new_full_var="`eval echo $full_var`"
 
4578
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
4579
        full_var=$new_full_var
 
4580
    done
 
4581
 
 
4582
        full_var=$new_full_var
 
4583
    DATADIR="$full_var"
 
4584
 
 
4585
 
 
4586
        prefix=$prefix_save
 
4587
    exec_prefix=$exec_prefix_save
 
4588
 
 
4589
 
 
4590
    EXP_VAR=LOCALSTATEDIR
 
4591
    FROM_VAR=$localstatedir
 
4592
 
 
4593
        prefix_save=$prefix
 
4594
    exec_prefix_save=$exec_prefix
 
4595
 
 
4596
        if test "x$prefix" = "xNONE"; then
 
4597
        prefix="$ac_default_prefix"
 
4598
    fi
 
4599
        if test "x$exec_prefix" = "xNONE"; then
 
4600
        exec_prefix=$prefix
 
4601
    fi
 
4602
 
 
4603
    full_var="$FROM_VAR"
 
4604
        while true; do
 
4605
        new_full_var="`eval echo $full_var`"
 
4606
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
4607
        full_var=$new_full_var
 
4608
    done
 
4609
 
 
4610
        full_var=$new_full_var
 
4611
    LOCALSTATEDIR="$full_var"
 
4612
 
 
4613
 
 
4614
        prefix=$prefix_save
 
4615
    exec_prefix=$exec_prefix_save
 
4616
 
 
4617
 
 
4618
    EXP_VAR=DOCDIR
 
4619
    FROM_VAR=$docdir
 
4620
 
 
4621
        prefix_save=$prefix
 
4622
    exec_prefix_save=$exec_prefix
 
4623
 
 
4624
        if test "x$prefix" = "xNONE"; then
 
4625
        prefix="$ac_default_prefix"
 
4626
    fi
 
4627
        if test "x$exec_prefix" = "xNONE"; then
 
4628
        exec_prefix=$prefix
 
4629
    fi
 
4630
 
 
4631
    full_var="$FROM_VAR"
 
4632
        while true; do
 
4633
        new_full_var="`eval echo $full_var`"
 
4634
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
4635
        full_var=$new_full_var
 
4636
    done
 
4637
 
 
4638
        full_var=$new_full_var
 
4639
    DOCDIR="$full_var"
 
4640
 
 
4641
 
 
4642
        prefix=$prefix_save
 
4643
    exec_prefix=$exec_prefix_save
 
4644
 
 
4645
 
 
4646
 
 
4647
# Check whether --with-config-path was given.
 
4648
if test "${with_config_path+set}" = set; then :
 
4649
  withval=$with_config_path;
 
4650
else
 
4651
  with_config_path='${localstatedir}/lib/lxc'
 
4652
fi
 
4653
 
 
4654
 
 
4655
 
 
4656
# Check whether --with-rootfs-path was given.
 
4657
if test "${with_rootfs_path+set}" = set; then :
 
4658
  withval=$with_rootfs_path;
 
4659
else
 
4660
  with_rootfs_path='${libdir}/lxc/rootfs'
 
4661
fi
 
4662
 
 
4663
 
 
4664
 
 
4665
    EXP_VAR=LXC_GENERATE_DATE
 
4666
    FROM_VAR="$(date)"
 
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
    LXC_GENERATE_DATE="$full_var"
 
4687
 
 
4688
 
 
4689
        prefix=$prefix_save
 
4690
    exec_prefix=$exec_prefix_save
 
4691
 
 
4692
 
 
4693
LXCPATH="${with_config_path}"
 
4694
 
 
4695
LXCROOTFSMOUNT="${with_rootfs_path}"
 
4696
 
 
4697
LXCINITDIR='${libexecdir}/lxc'
 
4698
 
 
4699
LXCTEMPLATEDIR='${libdir}/lxc/templates'
 
4700
 
 
4701
 
 
4702
for ac_header in linux/netlink.h linux/genetlink.h
 
4703
do :
 
4704
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4705
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/socket.h>
 
4706
 
 
4707
"
 
4708
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
4709
  cat >>confdefs.h <<_ACEOF
 
4710
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4711
_ACEOF
 
4712
 
 
4713
else
 
4714
  as_fn_error $? "netlink headers not found. Please install the linux kernel headers." "$LINENO" 5
 
4715
fi
 
4716
 
 
4717
done
 
4718
 
 
4719
 
 
4720
for ac_header in sys/capability.h
 
4721
do :
 
4722
  ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "#include <sys/types.h>
 
4723
#include <sys/capability.h>
 
4724
"
 
4725
if test "x$ac_cv_header_sys_capability_h" = xyes; then :
 
4726
  cat >>confdefs.h <<_ACEOF
 
4727
#define HAVE_SYS_CAPABILITY_H 1
 
4728
_ACEOF
 
4729
 
 
4730
else
 
4731
  as_fn_error $? "please install libcap-devel." "$LINENO" 5
 
4732
fi
 
4733
 
 
4734
done
 
4735
 
 
4736
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
 
4737
$as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
 
4738
if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
 
4739
  $as_echo_n "(cached) " >&6
 
4740
else
 
4741
  ac_check_lib_save_LIBS=$LIBS
 
4742
LIBS="-lcap  $LIBS"
 
4743
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4744
/* end confdefs.h.  */
 
4745
 
 
4746
/* Override any GCC internal prototype to avoid an error.
 
4747
   Use char because int might match the return type of a GCC
 
4748
   builtin and then its argument prototype would still apply.  */
 
4749
#ifdef __cplusplus
 
4750
extern "C"
 
4751
#endif
 
4752
char cap_set_proc ();
 
4753
int
 
4754
main ()
 
4755
{
 
4756
return cap_set_proc ();
 
4757
  ;
 
4758
  return 0;
 
4759
}
 
4760
_ACEOF
 
4761
if ac_fn_c_try_link "$LINENO"; then :
 
4762
  ac_cv_lib_cap_cap_set_proc=yes
 
4763
else
 
4764
  ac_cv_lib_cap_cap_set_proc=no
 
4765
fi
 
4766
rm -f core conftest.err conftest.$ac_objext \
 
4767
    conftest$ac_exeext conftest.$ac_ext
 
4768
LIBS=$ac_check_lib_save_LIBS
 
4769
fi
 
4770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
 
4771
$as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
 
4772
if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
 
4773
  caplib=yes
 
4774
else
 
4775
  caplib=no
 
4776
fi
 
4777
 
 
4778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linux capabilities" >&5
 
4779
$as_echo_n "checking linux capabilities... " >&6; }
 
4780
if test "x$caplib" = "xyes" ; then
 
4781
   CAP_LIBS="-lcap"
 
4782
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAP_LIBS" >&5
 
4783
$as_echo "$CAP_LIBS" >&6; }
 
4784
else
 
4785
   as_fn_error $? "not found" "$LINENO" 5
 
4786
fi
 
4787
 
 
4788
 
 
4789
# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
 
4790
ac_fn_c_check_decl "$LINENO" "PR_CAPBSET_DROP" "ac_cv_have_decl_PR_CAPBSET_DROP" "#include <sys/prctl.h>
 
4791
"
 
4792
if test "x$ac_cv_have_decl_PR_CAPBSET_DROP" = xyes; then :
 
4793
  ac_have_decl=1
 
4794
else
 
4795
  ac_have_decl=0
 
4796
fi
 
4797
 
 
4798
cat >>confdefs.h <<_ACEOF
 
4799
#define HAVE_DECL_PR_CAPBSET_DROP $ac_have_decl
 
4800
_ACEOF
 
4801
 
 
4802
 
 
4803
for ac_header in sys/signalfd.h
 
4804
do :
 
4805
  ac_fn_c_check_header_mongrel "$LINENO" "sys/signalfd.h" "ac_cv_header_sys_signalfd_h" "$ac_includes_default"
 
4806
if test "x$ac_cv_header_sys_signalfd_h" = xyes; then :
 
4807
  cat >>confdefs.h <<_ACEOF
 
4808
#define HAVE_SYS_SIGNALFD_H 1
 
4809
_ACEOF
 
4810
 
 
4811
fi
 
4812
 
 
4813
done
 
4814
 
 
4815
 
 
4816
if test $ac_cv_c_compiler_gnu = yes; then
 
4817
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
 
4818
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
 
4819
if ${ac_cv_prog_gcc_traditional+:} false; then :
 
4820
  $as_echo_n "(cached) " >&6
 
4821
else
 
4822
    ac_pattern="Autoconf.*'x'"
 
4823
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4824
/* end confdefs.h.  */
 
4825
#include <sgtty.h>
 
4826
Autoconf TIOCGETP
 
4827
_ACEOF
 
4828
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4829
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
 
4830
  ac_cv_prog_gcc_traditional=yes
 
4831
else
 
4832
  ac_cv_prog_gcc_traditional=no
 
4833
fi
 
4834
rm -f conftest*
 
4835
 
 
4836
 
 
4837
  if test $ac_cv_prog_gcc_traditional = no; then
 
4838
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4839
/* end confdefs.h.  */
 
4840
#include <termio.h>
 
4841
Autoconf TCGETA
 
4842
_ACEOF
 
4843
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4844
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
 
4845
  ac_cv_prog_gcc_traditional=yes
 
4846
fi
 
4847
rm -f conftest*
 
4848
 
 
4849
  fi
 
4850
fi
 
4851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
 
4852
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
 
4853
  if test $ac_cv_prog_gcc_traditional = yes; then
 
4854
    CC="$CC -traditional"
 
4855
  fi
 
4856
fi
 
4857
 
 
4858
 
 
4859
 
 
4860
 
 
4861
 
 
4862
# Check whether --with-linuxdir was given.
 
4863
if test "${with_linuxdir+set}" = set; then :
 
4864
  withval=$with_linuxdir; LINUX_DIR="${withval}"
 
4865
else
 
4866
  LINUX_DIR=default
 
4867
fi
 
4868
 
 
4869
 
 
4870
                if test "${LINUX_DIR}" != "default" ; then
 
4871
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux in ${LINUX_DIR}" >&5
 
4872
$as_echo_n "checking for Linux in ${LINUX_DIR}... " >&6; }
 
4873
 
 
4874
        if test -f "${LINUX_DIR}/Makefile" ; then
 
4875
                result=yes
 
4876
 
 
4877
        else
 
4878
                result="not found"
 
4879
                as_fn_error $? "Linux dir not found" "$LINENO" 5
 
4880
        fi
 
4881
 
 
4882
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
 
4883
$as_echo "$result" >&6; }
 
4884
 
 
4885
        fi
 
4886
 
 
4887
                if test "${LINUX_DIR}" = "default" ; then
 
4888
                dir="/lib/modules/$LINUX_KERNEL_RELEASE/build";
 
4889
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux in ${dir}" >&5
 
4890
$as_echo_n "checking for Linux in ${dir}... " >&6; }
 
4891
 
 
4892
        if test -f "${dir}/Makefile" ; then
 
4893
                result=yes
 
4894
                LINUX_DIR=${dir}
 
4895
        else
 
4896
                result="not found"
 
4897
 
 
4898
        fi
 
4899
 
 
4900
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
 
4901
$as_echo "$result" >&6; }
 
4902
 
 
4903
        fi
 
4904
 
 
4905
                if test "${LINUX_DIR}" = "default" ; then
 
4906
                dir="/usr/src/linux-$LINUX_KERNEL_RELEASE";
 
4907
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux in ${dir}" >&5
 
4908
$as_echo_n "checking for Linux in ${dir}... " >&6; }
 
4909
 
 
4910
        if test -f "${dir}/Makefile" ; then
 
4911
                result=yes
 
4912
                LINUX_DIR=${dir}
 
4913
        else
 
4914
                result="not found"
 
4915
 
 
4916
        fi
 
4917
 
 
4918
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
 
4919
$as_echo "$result" >&6; }
 
4920
 
 
4921
        fi
 
4922
 
 
4923
                if test "${LINUX_DIR}" = "default" ; then
 
4924
                dir="/usr/src/linux";
 
4925
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux in ${dir}" >&5
 
4926
$as_echo_n "checking for Linux in ${dir}... " >&6; }
 
4927
 
 
4928
        if test -f "${dir}/Makefile" ; then
 
4929
                result=yes
 
4930
                LINUX_DIR=${dir}
 
4931
        else
 
4932
                result="not found"
 
4933
 
 
4934
        fi
 
4935
 
 
4936
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
 
4937
$as_echo "$result" >&6; }
 
4938
 
 
4939
        fi
 
4940
 
 
4941
                if test "${LINUX_DIR}" = "default" ; then
 
4942
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linux source directory not found" >&5
 
4943
$as_echo "$as_me: WARNING: Linux source directory not found" >&2;}
 
4944
        fi
 
4945
 
 
4946
 
 
4947
 
 
4948
 
 
4949
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linux SRCARCH" >&5
 
4950
$as_echo_n "checking for linux SRCARCH... " >&6; }
 
4951
 
 
4952
        case "${host}" in
 
4953
        i[3456]86-*) LINUX_SRCARCH=x86;;
 
4954
        x86_64-*) LINUX_SRCARCH=x86;;
 
4955
        powerpc*-*) LINUX_SRCARCH=powerpc;;
 
4956
        s390*-*) LINUX_SRCARCH=s390;;
 
4957
        arm*-*) LINUX_SRCARCH=arm;;
 
4958
        mips*-*) LINUX_SRCARCH=mips;;
 
4959
        sparc*-*) LINUX_SRCARCH=sparc;;
 
4960
        *) as_fn_error $? "architecture ${host} not supported" "$LINENO" 5;;
 
4961
        esac
 
4962
 
 
4963
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINUX_SRCARCH}" >&5
 
4964
$as_echo "${LINUX_SRCARCH}" >&6; }
 
4965
 
 
4966
 
 
4967
 
 
4968
 
 
4969
if test "x$GCC" = "xyes"; then
 
4970
  CFLAGS="$CFLAGS -Wall"
 
4971
fi
 
4972
 
 
4973
ac_config_files="$ac_config_files Makefile lxc.pc lxc.spec config/Makefile doc/Makefile doc/lxc-create.sgml doc/lxc-destroy.sgml doc/lxc-execute.sgml doc/lxc-start.sgml doc/lxc-checkpoint.sgml doc/lxc-restart.sgml doc/lxc-stop.sgml doc/lxc-console.sgml doc/lxc-freeze.sgml doc/lxc-unfreeze.sgml doc/lxc-monitor.sgml doc/lxc-wait.sgml doc/lxc-ls.sgml doc/lxc-ps.sgml doc/lxc-cgroup.sgml doc/lxc-kill.sgml doc/lxc-attach.sgml doc/lxc.conf.sgml doc/lxc.sgml doc/common_options.sgml doc/see_also.sgml doc/rootfs/Makefile doc/examples/Makefile doc/examples/lxc-macvlan.conf doc/examples/lxc-vlan.conf doc/examples/lxc-no-netns.conf doc/examples/lxc-empty-netns.conf doc/examples/lxc-phys.conf doc/examples/lxc-veth.conf doc/examples/lxc-complex.conf templates/Makefile templates/lxc-lenny templates/lxc-debian templates/lxc-ubuntu templates/lxc-ubuntu-cloud templates/lxc-opensuse templates/lxc-busybox templates/lxc-fedora templates/lxc-altlinux templates/lxc-sshd templates/lxc-archlinux src/Makefile src/lxc/Makefile src/lxc/lxc-ps src/lxc/lxc-ls src/lxc/lxc-netstat src/lxc/lxc-checkconfig src/lxc/lxc-setcap src/lxc/lxc-setuid src/lxc/lxc-version src/lxc/lxc-create src/lxc/lxc-clone src/lxc/lxc-destroy"
 
4974
 
 
4975
ac_config_commands="$ac_config_commands default"
 
4976
 
 
4977
cat >confcache <<\_ACEOF
 
4978
# This file is a shell script that caches the results of configure
 
4979
# tests run on this system so they can be shared between configure
 
4980
# scripts and configure runs, see configure's option --config-cache.
 
4981
# It is not useful on other systems.  If it contains results you don't
 
4982
# want to keep, you may remove or edit it.
 
4983
#
 
4984
# config.status only pays attention to the cache file if you give it
 
4985
# the --recheck option to rerun configure.
 
4986
#
 
4987
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
4988
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
4989
# following values.
 
4990
 
 
4991
_ACEOF
 
4992
 
 
4993
# The following way of writing the cache mishandles newlines in values,
 
4994
# but we know of no workaround that is simple, portable, and efficient.
 
4995
# So, we kill variables containing newlines.
 
4996
# Ultrix sh set writes to stderr and can't be redirected directly,
 
4997
# and sets the high bit in the cache file unless we assign to the vars.
 
4998
(
 
4999
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
5000
    eval ac_val=\$$ac_var
 
5001
    case $ac_val in #(
 
5002
    *${as_nl}*)
 
5003
      case $ac_var in #(
 
5004
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
5005
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
5006
      esac
 
5007
      case $ac_var in #(
 
5008
      _ | IFS | as_nl) ;; #(
 
5009
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
5010
      *) { eval $ac_var=; unset $ac_var;} ;;
 
5011
      esac ;;
 
5012
    esac
 
5013
  done
 
5014
 
 
5015
  (set) 2>&1 |
 
5016
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
5017
    *${as_nl}ac_space=\ *)
 
5018
      # `set' does not quote correctly, so add quotes: double-quote
 
5019
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
5020
      sed -n \
 
5021
        "s/'/'\\\\''/g;
 
5022
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
5023
      ;; #(
 
5024
    *)
 
5025
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
5026
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
5027
      ;;
 
5028
    esac |
 
5029
    sort
 
5030
) |
 
5031
  sed '
 
5032
     /^ac_cv_env_/b end
 
5033
     t clear
 
5034
     :clear
 
5035
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
5036
     t end
 
5037
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
5038
     :end' >>confcache
 
5039
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
5040
  if test -w "$cache_file"; then
 
5041
    if test "x$cache_file" != "x/dev/null"; then
 
5042
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
5043
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
5044
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
5045
        cat confcache >"$cache_file"
 
5046
      else
 
5047
        case $cache_file in #(
 
5048
        */* | ?:*)
 
5049
          mv -f confcache "$cache_file"$$ &&
 
5050
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
5051
        *)
 
5052
          mv -f confcache "$cache_file" ;;
 
5053
        esac
 
5054
      fi
 
5055
    fi
 
5056
  else
 
5057
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
5058
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
5059
  fi
 
5060
fi
 
5061
rm -f confcache
 
5062
 
 
5063
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
5064
# Let make expand exec_prefix.
 
5065
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
5066
 
 
5067
DEFS=-DHAVE_CONFIG_H
 
5068
 
 
5069
ac_libobjs=
 
5070
ac_ltlibobjs=
 
5071
U=
 
5072
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
5073
  # 1. Remove the extension, and $U if already installed.
 
5074
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
5075
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
5076
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
5077
  #    will be set to the directory where LIBOBJS objects are built.
 
5078
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
5079
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
5080
done
 
5081
LIBOBJS=$ac_libobjs
 
5082
 
 
5083
LTLIBOBJS=$ac_ltlibobjs
 
5084
 
 
5085
 
 
5086
 if test -n "$EXEEXT"; then
 
5087
  am__EXEEXT_TRUE=
 
5088
  am__EXEEXT_FALSE='#'
 
5089
else
 
5090
  am__EXEEXT_TRUE='#'
 
5091
  am__EXEEXT_FALSE=
 
5092
fi
 
5093
 
 
5094
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
5095
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
5096
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
5097
fi
 
5098
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
5099
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
5100
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
5101
fi
 
5102
if test -z "${ENABLE_RPATH_TRUE}" && test -z "${ENABLE_RPATH_FALSE}"; then
 
5103
  as_fn_error $? "conditional \"ENABLE_RPATH\" was never defined.
 
5104
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
5105
fi
 
5106
if test -z "${ENABLE_DOCBOOK_TRUE}" && test -z "${ENABLE_DOCBOOK_FALSE}"; then
 
5107
  as_fn_error $? "conditional \"ENABLE_DOCBOOK\" was never defined.
 
5108
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
5109
fi
 
5110
if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
 
5111
  as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
 
5112
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
5113
fi
 
5114
 
 
5115
: "${CONFIG_STATUS=./config.status}"
 
5116
ac_write_fail=0
 
5117
ac_clean_files_save=$ac_clean_files
 
5118
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
5119
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
5120
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
5121
as_write_fail=0
 
5122
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
5123
#! $SHELL
 
5124
# Generated by $as_me.
 
5125
# Run this file to recreate the current configuration.
 
5126
# Compiler output produced by configure, useful for debugging
 
5127
# configure, is in config.log if it exists.
 
5128
 
 
5129
debug=false
 
5130
ac_cs_recheck=false
 
5131
ac_cs_silent=false
 
5132
 
 
5133
SHELL=\${CONFIG_SHELL-$SHELL}
 
5134
export SHELL
 
5135
_ASEOF
 
5136
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
5137
## -------------------- ##
 
5138
## M4sh Initialization. ##
 
5139
## -------------------- ##
 
5140
 
 
5141
# Be more Bourne compatible
 
5142
DUALCASE=1; export DUALCASE # for MKS sh
 
5143
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
5144
  emulate sh
 
5145
  NULLCMD=:
 
5146
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
5147
  # is contrary to our usage.  Disable this feature.
 
5148
  alias -g '${1+"$@"}'='"$@"'
 
5149
  setopt NO_GLOB_SUBST
 
5150
else
 
5151
  case `(set -o) 2>/dev/null` in #(
 
5152
  *posix*) :
 
5153
    set -o posix ;; #(
 
5154
  *) :
 
5155
     ;;
 
5156
esac
 
5157
fi
 
5158
 
 
5159
 
 
5160
as_nl='
 
5161
'
 
5162
export as_nl
 
5163
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
5164
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
5165
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
5166
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
5167
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
5168
# but without wasting forks for bash or zsh.
 
5169
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
5170
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
5171
  as_echo='print -r --'
 
5172
  as_echo_n='print -rn --'
 
5173
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
5174
  as_echo='printf %s\n'
 
5175
  as_echo_n='printf %s'
 
5176
else
 
5177
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
5178
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
5179
    as_echo_n='/usr/ucb/echo -n'
 
5180
  else
 
5181
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
5182
    as_echo_n_body='eval
 
5183
      arg=$1;
 
5184
      case $arg in #(
 
5185
      *"$as_nl"*)
 
5186
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
5187
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
5188
      esac;
 
5189
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
5190
    '
 
5191
    export as_echo_n_body
 
5192
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
5193
  fi
 
5194
  export as_echo_body
 
5195
  as_echo='sh -c $as_echo_body as_echo'
 
5196
fi
 
5197
 
 
5198
# The user is always right.
 
5199
if test "${PATH_SEPARATOR+set}" != set; then
 
5200
  PATH_SEPARATOR=:
 
5201
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
5202
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
5203
      PATH_SEPARATOR=';'
 
5204
  }
 
5205
fi
 
5206
 
 
5207
 
 
5208
# IFS
 
5209
# We need space, tab and new line, in precisely that order.  Quoting is
 
5210
# there to prevent editors from complaining about space-tab.
 
5211
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
5212
# splitting by setting IFS to empty value.)
 
5213
IFS=" ""        $as_nl"
 
5214
 
 
5215
# Find who we are.  Look in the path if we contain no directory separator.
 
5216
as_myself=
 
5217
case $0 in #((
 
5218
  *[\\/]* ) as_myself=$0 ;;
 
5219
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5220
for as_dir in $PATH
 
5221
do
 
5222
  IFS=$as_save_IFS
 
5223
  test -z "$as_dir" && as_dir=.
 
5224
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
5225
  done
 
5226
IFS=$as_save_IFS
 
5227
 
 
5228
     ;;
 
5229
esac
 
5230
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
5231
# in which case we are not to be found in the path.
 
5232
if test "x$as_myself" = x; then
 
5233
  as_myself=$0
 
5234
fi
 
5235
if test ! -f "$as_myself"; then
 
5236
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
5237
  exit 1
 
5238
fi
 
5239
 
 
5240
# Unset variables that we do not need and which cause bugs (e.g. in
 
5241
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
5242
# suppresses any "Segmentation fault" message there.  '((' could
 
5243
# trigger a bug in pdksh 5.2.14.
 
5244
for as_var in BASH_ENV ENV MAIL MAILPATH
 
5245
do eval test x\${$as_var+set} = xset \
 
5246
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
5247
done
 
5248
PS1='$ '
 
5249
PS2='> '
 
5250
PS4='+ '
 
5251
 
 
5252
# NLS nuisances.
 
5253
LC_ALL=C
 
5254
export LC_ALL
 
5255
LANGUAGE=C
 
5256
export LANGUAGE
 
5257
 
 
5258
# CDPATH.
 
5259
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
5260
 
 
5261
 
 
5262
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
5263
# ----------------------------------------
 
5264
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
5265
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
5266
# script with STATUS, using 1 if that was 0.
 
5267
as_fn_error ()
 
5268
{
 
5269
  as_status=$1; test $as_status -eq 0 && as_status=1
 
5270
  if test "$4"; then
 
5271
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
5272
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
5273
  fi
 
5274
  $as_echo "$as_me: error: $2" >&2
 
5275
  as_fn_exit $as_status
 
5276
} # as_fn_error
 
5277
 
 
5278
 
 
5279
# as_fn_set_status STATUS
 
5280
# -----------------------
 
5281
# Set $? to STATUS, without forking.
 
5282
as_fn_set_status ()
 
5283
{
 
5284
  return $1
 
5285
} # as_fn_set_status
 
5286
 
 
5287
# as_fn_exit STATUS
 
5288
# -----------------
 
5289
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
5290
as_fn_exit ()
 
5291
{
 
5292
  set +e
 
5293
  as_fn_set_status $1
 
5294
  exit $1
 
5295
} # as_fn_exit
 
5296
 
 
5297
# as_fn_unset VAR
 
5298
# ---------------
 
5299
# Portably unset VAR.
 
5300
as_fn_unset ()
 
5301
{
 
5302
  { eval $1=; unset $1;}
 
5303
}
 
5304
as_unset=as_fn_unset
 
5305
# as_fn_append VAR VALUE
 
5306
# ----------------------
 
5307
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
5308
# advantage of any shell optimizations that allow amortized linear growth over
 
5309
# repeated appends, instead of the typical quadratic growth present in naive
 
5310
# implementations.
 
5311
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
5312
  eval 'as_fn_append ()
 
5313
  {
 
5314
    eval $1+=\$2
 
5315
  }'
 
5316
else
 
5317
  as_fn_append ()
 
5318
  {
 
5319
    eval $1=\$$1\$2
 
5320
  }
 
5321
fi # as_fn_append
 
5322
 
 
5323
# as_fn_arith ARG...
 
5324
# ------------------
 
5325
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
5326
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
5327
# must be portable across $(()) and expr.
 
5328
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
5329
  eval 'as_fn_arith ()
 
5330
  {
 
5331
    as_val=$(( $* ))
 
5332
  }'
 
5333
else
 
5334
  as_fn_arith ()
 
5335
  {
 
5336
    as_val=`expr "$@" || test $? -eq 1`
 
5337
  }
 
5338
fi # as_fn_arith
 
5339
 
 
5340
 
 
5341
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
5342
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
5343
  as_expr=expr
 
5344
else
 
5345
  as_expr=false
 
5346
fi
 
5347
 
 
5348
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
5349
  as_basename=basename
 
5350
else
 
5351
  as_basename=false
 
5352
fi
 
5353
 
 
5354
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
5355
  as_dirname=dirname
 
5356
else
 
5357
  as_dirname=false
 
5358
fi
 
5359
 
 
5360
as_me=`$as_basename -- "$0" ||
 
5361
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
5362
         X"$0" : 'X\(//\)$' \| \
 
5363
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
5364
$as_echo X/"$0" |
 
5365
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
5366
            s//\1/
 
5367
            q
 
5368
          }
 
5369
          /^X\/\(\/\/\)$/{
 
5370
            s//\1/
 
5371
            q
 
5372
          }
 
5373
          /^X\/\(\/\).*/{
 
5374
            s//\1/
 
5375
            q
 
5376
          }
 
5377
          s/.*/./; q'`
 
5378
 
 
5379
# Avoid depending upon Character Ranges.
 
5380
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
5381
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
5382
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
5383
as_cr_digits='0123456789'
 
5384
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
5385
 
 
5386
ECHO_C= ECHO_N= ECHO_T=
 
5387
case `echo -n x` in #(((((
 
5388
-n*)
 
5389
  case `echo 'xy\c'` in
 
5390
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
5391
  xy)  ECHO_C='\c';;
 
5392
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
5393
       ECHO_T=' ';;
 
5394
  esac;;
 
5395
*)
 
5396
  ECHO_N='-n';;
 
5397
esac
 
5398
 
 
5399
rm -f conf$$ conf$$.exe conf$$.file
 
5400
if test -d conf$$.dir; then
 
5401
  rm -f conf$$.dir/conf$$.file
 
5402
else
 
5403
  rm -f conf$$.dir
 
5404
  mkdir conf$$.dir 2>/dev/null
 
5405
fi
 
5406
if (echo >conf$$.file) 2>/dev/null; then
 
5407
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
5408
    as_ln_s='ln -s'
 
5409
    # ... but there are two gotchas:
 
5410
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
5411
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
5412
    # In both cases, we have to default to `cp -p'.
 
5413
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
5414
      as_ln_s='cp -p'
 
5415
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
5416
    as_ln_s=ln
 
5417
  else
 
5418
    as_ln_s='cp -p'
 
5419
  fi
 
5420
else
 
5421
  as_ln_s='cp -p'
 
5422
fi
 
5423
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
5424
rmdir conf$$.dir 2>/dev/null
 
5425
 
 
5426
 
 
5427
# as_fn_mkdir_p
 
5428
# -------------
 
5429
# Create "$as_dir" as a directory, including parents if necessary.
 
5430
as_fn_mkdir_p ()
 
5431
{
 
5432
 
 
5433
  case $as_dir in #(
 
5434
  -*) as_dir=./$as_dir;;
 
5435
  esac
 
5436
  test -d "$as_dir" || eval $as_mkdir_p || {
 
5437
    as_dirs=
 
5438
    while :; do
 
5439
      case $as_dir in #(
 
5440
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
5441
      *) as_qdir=$as_dir;;
 
5442
      esac
 
5443
      as_dirs="'$as_qdir' $as_dirs"
 
5444
      as_dir=`$as_dirname -- "$as_dir" ||
 
5445
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
5446
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
5447
         X"$as_dir" : 'X\(//\)$' \| \
 
5448
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
5449
$as_echo X"$as_dir" |
 
5450
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
5451
            s//\1/
 
5452
            q
 
5453
          }
 
5454
          /^X\(\/\/\)[^/].*/{
 
5455
            s//\1/
 
5456
            q
 
5457
          }
 
5458
          /^X\(\/\/\)$/{
 
5459
            s//\1/
 
5460
            q
 
5461
          }
 
5462
          /^X\(\/\).*/{
 
5463
            s//\1/
 
5464
            q
 
5465
          }
 
5466
          s/.*/./; q'`
 
5467
      test -d "$as_dir" && break
 
5468
    done
 
5469
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
5470
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
5471
 
 
5472
 
 
5473
} # as_fn_mkdir_p
 
5474
if mkdir -p . 2>/dev/null; then
 
5475
  as_mkdir_p='mkdir -p "$as_dir"'
 
5476
else
 
5477
  test -d ./-p && rmdir ./-p
 
5478
  as_mkdir_p=false
 
5479
fi
 
5480
 
 
5481
if test -x / >/dev/null 2>&1; then
 
5482
  as_test_x='test -x'
 
5483
else
 
5484
  if ls -dL / >/dev/null 2>&1; then
 
5485
    as_ls_L_option=L
 
5486
  else
 
5487
    as_ls_L_option=
 
5488
  fi
 
5489
  as_test_x='
 
5490
    eval sh -c '\''
 
5491
      if test -d "$1"; then
 
5492
        test -d "$1/.";
 
5493
      else
 
5494
        case $1 in #(
 
5495
        -*)set "./$1";;
 
5496
        esac;
 
5497
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
5498
        ???[sx]*):;;*)false;;esac;fi
 
5499
    '\'' sh
 
5500
  '
 
5501
fi
 
5502
as_executable_p=$as_test_x
 
5503
 
 
5504
# Sed expression to map a string onto a valid CPP name.
 
5505
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
5506
 
 
5507
# Sed expression to map a string onto a valid variable name.
 
5508
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
5509
 
 
5510
 
 
5511
exec 6>&1
 
5512
## ----------------------------------- ##
 
5513
## Main body of $CONFIG_STATUS script. ##
 
5514
## ----------------------------------- ##
 
5515
_ASEOF
 
5516
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
5517
 
 
5518
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5519
# Save the log message, to keep $0 and so on meaningful, and to
 
5520
# report actual input values of CONFIG_FILES etc. instead of their
 
5521
# values after options handling.
 
5522
ac_log="
 
5523
This file was extended by lxc $as_me 0.8.0-rc1, which was
 
5524
generated by GNU Autoconf 2.68.  Invocation command line was
 
5525
 
 
5526
  CONFIG_FILES    = $CONFIG_FILES
 
5527
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
5528
  CONFIG_LINKS    = $CONFIG_LINKS
 
5529
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
5530
  $ $0 $@
 
5531
 
 
5532
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
5533
"
 
5534
 
 
5535
_ACEOF
 
5536
 
 
5537
case $ac_config_files in *"
 
5538
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
5539
esac
 
5540
 
 
5541
case $ac_config_headers in *"
 
5542
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
5543
esac
 
5544
 
 
5545
 
 
5546
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5547
# Files that config.status was made for.
 
5548
config_files="$ac_config_files"
 
5549
config_headers="$ac_config_headers"
 
5550
config_commands="$ac_config_commands"
 
5551
 
 
5552
_ACEOF
 
5553
 
 
5554
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5555
ac_cs_usage="\
 
5556
\`$as_me' instantiates files and other configuration actions
 
5557
from templates according to the current configuration.  Unless the files
 
5558
and actions are specified as TAGs, all are instantiated by default.
 
5559
 
 
5560
Usage: $0 [OPTION]... [TAG]...
 
5561
 
 
5562
  -h, --help       print this help, then exit
 
5563
  -V, --version    print version number and configuration settings, then exit
 
5564
      --config     print configuration, then exit
 
5565
  -q, --quiet, --silent
 
5566
                   do not print progress messages
 
5567
  -d, --debug      don't remove temporary files
 
5568
      --recheck    update $as_me by reconfiguring in the same conditions
 
5569
      --file=FILE[:TEMPLATE]
 
5570
                   instantiate the configuration file FILE
 
5571
      --header=FILE[:TEMPLATE]
 
5572
                   instantiate the configuration header FILE
 
5573
 
 
5574
Configuration files:
 
5575
$config_files
 
5576
 
 
5577
Configuration headers:
 
5578
$config_headers
 
5579
 
 
5580
Configuration commands:
 
5581
$config_commands
 
5582
 
 
5583
Report bugs to the package provider."
 
5584
 
 
5585
_ACEOF
 
5586
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5587
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
5588
ac_cs_version="\\
 
5589
lxc config.status 0.8.0-rc1
 
5590
configured by $0, generated by GNU Autoconf 2.68,
 
5591
  with options \\"\$ac_cs_config\\"
 
5592
 
 
5593
Copyright (C) 2010 Free Software Foundation, Inc.
 
5594
This config.status script is free software; the Free Software Foundation
 
5595
gives unlimited permission to copy, distribute and modify it."
 
5596
 
 
5597
ac_pwd='$ac_pwd'
 
5598
srcdir='$srcdir'
 
5599
INSTALL='$INSTALL'
 
5600
MKDIR_P='$MKDIR_P'
 
5601
AWK='$AWK'
 
5602
test -n "\$AWK" || AWK=awk
 
5603
_ACEOF
 
5604
 
 
5605
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5606
# The default lists apply if the user does not specify any file.
 
5607
ac_need_defaults=:
 
5608
while test $# != 0
 
5609
do
 
5610
  case $1 in
 
5611
  --*=?*)
 
5612
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
5613
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
5614
    ac_shift=:
 
5615
    ;;
 
5616
  --*=)
 
5617
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
5618
    ac_optarg=
 
5619
    ac_shift=:
 
5620
    ;;
 
5621
  *)
 
5622
    ac_option=$1
 
5623
    ac_optarg=$2
 
5624
    ac_shift=shift
 
5625
    ;;
 
5626
  esac
 
5627
 
 
5628
  case $ac_option in
 
5629
  # Handling of the options.
 
5630
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
5631
    ac_cs_recheck=: ;;
 
5632
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
5633
    $as_echo "$ac_cs_version"; exit ;;
 
5634
  --config | --confi | --conf | --con | --co | --c )
 
5635
    $as_echo "$ac_cs_config"; exit ;;
 
5636
  --debug | --debu | --deb | --de | --d | -d )
 
5637
    debug=: ;;
 
5638
  --file | --fil | --fi | --f )
 
5639
    $ac_shift
 
5640
    case $ac_optarg in
 
5641
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
5642
    '') as_fn_error $? "missing file argument" ;;
 
5643
    esac
 
5644
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
5645
    ac_need_defaults=false;;
 
5646
  --header | --heade | --head | --hea )
 
5647
    $ac_shift
 
5648
    case $ac_optarg in
 
5649
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
5650
    esac
 
5651
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
5652
    ac_need_defaults=false;;
 
5653
  --he | --h)
 
5654
    # Conflict between --help and --header
 
5655
    as_fn_error $? "ambiguous option: \`$1'
 
5656
Try \`$0 --help' for more information.";;
 
5657
  --help | --hel | -h )
 
5658
    $as_echo "$ac_cs_usage"; exit ;;
 
5659
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
5660
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
5661
    ac_cs_silent=: ;;
 
5662
 
 
5663
  # This is an error.
 
5664
  -*) as_fn_error $? "unrecognized option: \`$1'
 
5665
Try \`$0 --help' for more information." ;;
 
5666
 
 
5667
  *) as_fn_append ac_config_targets " $1"
 
5668
     ac_need_defaults=false ;;
 
5669
 
 
5670
  esac
 
5671
  shift
 
5672
done
 
5673
 
 
5674
ac_configure_extra_args=
 
5675
 
 
5676
if $ac_cs_silent; then
 
5677
  exec 6>/dev/null
 
5678
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
5679
fi
 
5680
 
 
5681
_ACEOF
 
5682
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5683
if \$ac_cs_recheck; then
 
5684
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
5685
  shift
 
5686
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
5687
  CONFIG_SHELL='$SHELL'
 
5688
  export CONFIG_SHELL
 
5689
  exec "\$@"
 
5690
fi
 
5691
 
 
5692
_ACEOF
 
5693
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5694
exec 5>>config.log
 
5695
{
 
5696
  echo
 
5697
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
5698
## Running $as_me. ##
 
5699
_ASBOX
 
5700
  $as_echo "$ac_log"
 
5701
} >&5
 
5702
 
 
5703
_ACEOF
 
5704
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5705
#
 
5706
# INIT-COMMANDS
 
5707
#
 
5708
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
5709
 
 
5710
 
 
5711
_ACEOF
 
5712
 
 
5713
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5714
 
 
5715
# Handling of arguments.
 
5716
for ac_config_target in $ac_config_targets
 
5717
do
 
5718
  case $ac_config_target in
 
5719
    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
 
5720
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
5721
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
5722
    "lxc.pc") CONFIG_FILES="$CONFIG_FILES lxc.pc" ;;
 
5723
    "lxc.spec") CONFIG_FILES="$CONFIG_FILES lxc.spec" ;;
 
5724
    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
 
5725
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
5726
    "doc/lxc-create.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-create.sgml" ;;
 
5727
    "doc/lxc-destroy.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-destroy.sgml" ;;
 
5728
    "doc/lxc-execute.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-execute.sgml" ;;
 
5729
    "doc/lxc-start.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-start.sgml" ;;
 
5730
    "doc/lxc-checkpoint.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-checkpoint.sgml" ;;
 
5731
    "doc/lxc-restart.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-restart.sgml" ;;
 
5732
    "doc/lxc-stop.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-stop.sgml" ;;
 
5733
    "doc/lxc-console.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-console.sgml" ;;
 
5734
    "doc/lxc-freeze.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-freeze.sgml" ;;
 
5735
    "doc/lxc-unfreeze.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-unfreeze.sgml" ;;
 
5736
    "doc/lxc-monitor.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-monitor.sgml" ;;
 
5737
    "doc/lxc-wait.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-wait.sgml" ;;
 
5738
    "doc/lxc-ls.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-ls.sgml" ;;
 
5739
    "doc/lxc-ps.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-ps.sgml" ;;
 
5740
    "doc/lxc-cgroup.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-cgroup.sgml" ;;
 
5741
    "doc/lxc-kill.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-kill.sgml" ;;
 
5742
    "doc/lxc-attach.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-attach.sgml" ;;
 
5743
    "doc/lxc.conf.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc.conf.sgml" ;;
 
5744
    "doc/lxc.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc.sgml" ;;
 
5745
    "doc/common_options.sgml") CONFIG_FILES="$CONFIG_FILES doc/common_options.sgml" ;;
 
5746
    "doc/see_also.sgml") CONFIG_FILES="$CONFIG_FILES doc/see_also.sgml" ;;
 
5747
    "doc/rootfs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/rootfs/Makefile" ;;
 
5748
    "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
 
5749
    "doc/examples/lxc-macvlan.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-macvlan.conf" ;;
 
5750
    "doc/examples/lxc-vlan.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-vlan.conf" ;;
 
5751
    "doc/examples/lxc-no-netns.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-no-netns.conf" ;;
 
5752
    "doc/examples/lxc-empty-netns.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-empty-netns.conf" ;;
 
5753
    "doc/examples/lxc-phys.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-phys.conf" ;;
 
5754
    "doc/examples/lxc-veth.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-veth.conf" ;;
 
5755
    "doc/examples/lxc-complex.conf") CONFIG_FILES="$CONFIG_FILES doc/examples/lxc-complex.conf" ;;
 
5756
    "templates/Makefile") CONFIG_FILES="$CONFIG_FILES templates/Makefile" ;;
 
5757
    "templates/lxc-lenny") CONFIG_FILES="$CONFIG_FILES templates/lxc-lenny" ;;
 
5758
    "templates/lxc-debian") CONFIG_FILES="$CONFIG_FILES templates/lxc-debian" ;;
 
5759
    "templates/lxc-ubuntu") CONFIG_FILES="$CONFIG_FILES templates/lxc-ubuntu" ;;
 
5760
    "templates/lxc-ubuntu-cloud") CONFIG_FILES="$CONFIG_FILES templates/lxc-ubuntu-cloud" ;;
 
5761
    "templates/lxc-opensuse") CONFIG_FILES="$CONFIG_FILES templates/lxc-opensuse" ;;
 
5762
    "templates/lxc-busybox") CONFIG_FILES="$CONFIG_FILES templates/lxc-busybox" ;;
 
5763
    "templates/lxc-fedora") CONFIG_FILES="$CONFIG_FILES templates/lxc-fedora" ;;
 
5764
    "templates/lxc-altlinux") CONFIG_FILES="$CONFIG_FILES templates/lxc-altlinux" ;;
 
5765
    "templates/lxc-sshd") CONFIG_FILES="$CONFIG_FILES templates/lxc-sshd" ;;
 
5766
    "templates/lxc-archlinux") CONFIG_FILES="$CONFIG_FILES templates/lxc-archlinux" ;;
 
5767
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
5768
    "src/lxc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lxc/Makefile" ;;
 
5769
    "src/lxc/lxc-ps") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-ps" ;;
 
5770
    "src/lxc/lxc-ls") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-ls" ;;
 
5771
    "src/lxc/lxc-netstat") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-netstat" ;;
 
5772
    "src/lxc/lxc-checkconfig") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-checkconfig" ;;
 
5773
    "src/lxc/lxc-setcap") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-setcap" ;;
 
5774
    "src/lxc/lxc-setuid") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-setuid" ;;
 
5775
    "src/lxc/lxc-version") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-version" ;;
 
5776
    "src/lxc/lxc-create") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-create" ;;
 
5777
    "src/lxc/lxc-clone") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-clone" ;;
 
5778
    "src/lxc/lxc-destroy") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-destroy" ;;
 
5779
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
 
5780
 
 
5781
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
5782
  esac
 
5783
done
 
5784
 
 
5785
 
 
5786
# If the user did not use the arguments to specify the items to instantiate,
 
5787
# then the envvar interface is used.  Set only those that are not.
 
5788
# We use the long form for the default assignment because of an extremely
 
5789
# bizarre bug on SunOS 4.1.3.
 
5790
if $ac_need_defaults; then
 
5791
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
5792
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
5793
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
5794
fi
 
5795
 
 
5796
# Have a temporary directory for convenience.  Make it in the build tree
 
5797
# simply because there is no reason against having it here, and in addition,
 
5798
# creating and moving files from /tmp can sometimes cause problems.
 
5799
# Hook for its removal unless debugging.
 
5800
# Note that there is a small window in which the directory will not be cleaned:
 
5801
# after its creation but before its name has been assigned to `$tmp'.
 
5802
$debug ||
 
5803
{
 
5804
  tmp= ac_tmp=
 
5805
  trap 'exit_status=$?
 
5806
  : "${ac_tmp:=$tmp}"
 
5807
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
5808
' 0
 
5809
  trap 'as_fn_exit 1' 1 2 13 15
 
5810
}
 
5811
# Create a (secure) tmp directory for tmp files.
 
5812
 
 
5813
{
 
5814
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
5815
  test -d "$tmp"
 
5816
}  ||
 
5817
{
 
5818
  tmp=./conf$$-$RANDOM
 
5819
  (umask 077 && mkdir "$tmp")
 
5820
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
5821
ac_tmp=$tmp
 
5822
 
 
5823
# Set up the scripts for CONFIG_FILES section.
 
5824
# No need to generate them if there are no CONFIG_FILES.
 
5825
# This happens for instance with `./config.status config.h'.
 
5826
if test -n "$CONFIG_FILES"; then
 
5827
 
 
5828
 
 
5829
ac_cr=`echo X | tr X '\015'`
 
5830
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
5831
# But we know of no other shell where ac_cr would be empty at this
 
5832
# point, so we can use a bashism as a fallback.
 
5833
if test "x$ac_cr" = x; then
 
5834
  eval ac_cr=\$\'\\r\'
 
5835
fi
 
5836
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
5837
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
5838
  ac_cs_awk_cr='\\r'
 
5839
else
 
5840
  ac_cs_awk_cr=$ac_cr
 
5841
fi
 
5842
 
 
5843
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
5844
_ACEOF
 
5845
 
 
5846
 
 
5847
{
 
5848
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
5849
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
5850
  echo "_ACEOF"
 
5851
} >conf$$subs.sh ||
 
5852
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
5853
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
5854
ac_delim='%!_!# '
 
5855
for ac_last_try in false false false false false :; do
 
5856
  . ./conf$$subs.sh ||
 
5857
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
5858
 
 
5859
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
5860
  if test $ac_delim_n = $ac_delim_num; then
 
5861
    break
 
5862
  elif $ac_last_try; then
 
5863
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
5864
  else
 
5865
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
5866
  fi
 
5867
done
 
5868
rm -f conf$$subs.sh
 
5869
 
 
5870
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5871
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
5872
_ACEOF
 
5873
sed -n '
 
5874
h
 
5875
s/^/S["/; s/!.*/"]=/
 
5876
p
 
5877
g
 
5878
s/^[^!]*!//
 
5879
:repl
 
5880
t repl
 
5881
s/'"$ac_delim"'$//
 
5882
t delim
 
5883
:nl
 
5884
h
 
5885
s/\(.\{148\}\)..*/\1/
 
5886
t more1
 
5887
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
5888
p
 
5889
n
 
5890
b repl
 
5891
:more1
 
5892
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
5893
p
 
5894
g
 
5895
s/.\{148\}//
 
5896
t nl
 
5897
:delim
 
5898
h
 
5899
s/\(.\{148\}\)..*/\1/
 
5900
t more2
 
5901
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
5902
p
 
5903
b
 
5904
:more2
 
5905
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
5906
p
 
5907
g
 
5908
s/.\{148\}//
 
5909
t delim
 
5910
' <conf$$subs.awk | sed '
 
5911
/^[^""]/{
 
5912
  N
 
5913
  s/\n//
 
5914
}
 
5915
' >>$CONFIG_STATUS || ac_write_fail=1
 
5916
rm -f conf$$subs.awk
 
5917
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5918
_ACAWK
 
5919
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
5920
  for (key in S) S_is_set[key] = 1
 
5921
  FS = ""
 
5922
 
 
5923
}
 
5924
{
 
5925
  line = $ 0
 
5926
  nfields = split(line, field, "@")
 
5927
  substed = 0
 
5928
  len = length(field[1])
 
5929
  for (i = 2; i < nfields; i++) {
 
5930
    key = field[i]
 
5931
    keylen = length(key)
 
5932
    if (S_is_set[key]) {
 
5933
      value = S[key]
 
5934
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
5935
      len += length(value) + length(field[++i])
 
5936
      substed = 1
 
5937
    } else
 
5938
      len += 1 + keylen
 
5939
  }
 
5940
 
 
5941
  print line
 
5942
}
 
5943
 
 
5944
_ACAWK
 
5945
_ACEOF
 
5946
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5947
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
5948
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
5949
else
 
5950
  cat
 
5951
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
5952
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
5953
_ACEOF
 
5954
 
 
5955
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
5956
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
5957
# trailing colons and then remove the whole line if VPATH becomes empty
 
5958
# (actually we leave an empty line to preserve line numbers).
 
5959
if test "x$srcdir" = x.; then
 
5960
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
5961
h
 
5962
s///
 
5963
s/^/:/
 
5964
s/[      ]*$/:/
 
5965
s/:\$(srcdir):/:/g
 
5966
s/:\${srcdir}:/:/g
 
5967
s/:@srcdir@:/:/g
 
5968
s/^:*//
 
5969
s/:*$//
 
5970
x
 
5971
s/\(=[   ]*\).*/\1/
 
5972
G
 
5973
s/\n//
 
5974
s/^[^=]*=[       ]*$//
 
5975
}'
 
5976
fi
 
5977
 
 
5978
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5979
fi # test -n "$CONFIG_FILES"
 
5980
 
 
5981
# Set up the scripts for CONFIG_HEADERS section.
 
5982
# No need to generate them if there are no CONFIG_HEADERS.
 
5983
# This happens for instance with `./config.status Makefile'.
 
5984
if test -n "$CONFIG_HEADERS"; then
 
5985
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
5986
BEGIN {
 
5987
_ACEOF
 
5988
 
 
5989
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
5990
# here-document in config.status, that substitutes the proper values into
 
5991
# config.h.in to produce config.h.
 
5992
 
 
5993
# Create a delimiter string that does not exist in confdefs.h, to ease
 
5994
# handling of long lines.
 
5995
ac_delim='%!_!# '
 
5996
for ac_last_try in false false :; do
 
5997
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
5998
  if test -z "$ac_tt"; then
 
5999
    break
 
6000
  elif $ac_last_try; then
 
6001
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
6002
  else
 
6003
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
6004
  fi
 
6005
done
 
6006
 
 
6007
# For the awk script, D is an array of macro values keyed by name,
 
6008
# likewise P contains macro parameters if any.  Preserve backslash
 
6009
# newline sequences.
 
6010
 
 
6011
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
6012
sed -n '
 
6013
s/.\{148\}/&'"$ac_delim"'/g
 
6014
t rset
 
6015
:rset
 
6016
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
6017
t def
 
6018
d
 
6019
:def
 
6020
s/\\$//
 
6021
t bsnl
 
6022
s/["\\]/\\&/g
 
6023
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
6024
D["\1"]=" \3"/p
 
6025
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
6026
d
 
6027
:bsnl
 
6028
s/["\\]/\\&/g
 
6029
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
6030
D["\1"]=" \3\\\\\\n"\\/p
 
6031
t cont
 
6032
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
6033
t cont
 
6034
d
 
6035
:cont
 
6036
n
 
6037
s/.\{148\}/&'"$ac_delim"'/g
 
6038
t clear
 
6039
:clear
 
6040
s/\\$//
 
6041
t bsnlc
 
6042
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
6043
d
 
6044
:bsnlc
 
6045
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
6046
b cont
 
6047
' <confdefs.h | sed '
 
6048
s/'"$ac_delim"'/"\\\
 
6049
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
6050
 
 
6051
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
6052
  for (key in D) D_is_set[key] = 1
 
6053
  FS = ""
 
6054
}
 
6055
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
6056
  line = \$ 0
 
6057
  split(line, arg, " ")
 
6058
  if (arg[1] == "#") {
 
6059
    defundef = arg[2]
 
6060
    mac1 = arg[3]
 
6061
  } else {
 
6062
    defundef = substr(arg[1], 2)
 
6063
    mac1 = arg[2]
 
6064
  }
 
6065
  split(mac1, mac2, "(") #)
 
6066
  macro = mac2[1]
 
6067
  prefix = substr(line, 1, index(line, defundef) - 1)
 
6068
  if (D_is_set[macro]) {
 
6069
    # Preserve the white space surrounding the "#".
 
6070
    print prefix "define", macro P[macro] D[macro]
 
6071
    next
 
6072
  } else {
 
6073
    # Replace #undef with comments.  This is necessary, for example,
 
6074
    # in the case of _POSIX_SOURCE, which is predefined and required
 
6075
    # on some systems where configure will not decide to define it.
 
6076
    if (defundef == "undef") {
 
6077
      print "/*", prefix defundef, macro, "*/"
 
6078
      next
 
6079
    }
 
6080
  }
 
6081
}
 
6082
{ print }
 
6083
_ACAWK
 
6084
_ACEOF
 
6085
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
6086
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
6087
fi # test -n "$CONFIG_HEADERS"
 
6088
 
 
6089
 
 
6090
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
6091
shift
 
6092
for ac_tag
 
6093
do
 
6094
  case $ac_tag in
 
6095
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
6096
  esac
 
6097
  case $ac_mode$ac_tag in
 
6098
  :[FHL]*:*);;
 
6099
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
6100
  :[FH]-) ac_tag=-:-;;
 
6101
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
6102
  esac
 
6103
  ac_save_IFS=$IFS
 
6104
  IFS=:
 
6105
  set x $ac_tag
 
6106
  IFS=$ac_save_IFS
 
6107
  shift
 
6108
  ac_file=$1
 
6109
  shift
 
6110
 
 
6111
  case $ac_mode in
 
6112
  :L) ac_source=$1;;
 
6113
  :[FH])
 
6114
    ac_file_inputs=
 
6115
    for ac_f
 
6116
    do
 
6117
      case $ac_f in
 
6118
      -) ac_f="$ac_tmp/stdin";;
 
6119
      *) # Look for the file first in the build tree, then in the source tree
 
6120
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
6121
         # because $ac_f cannot contain `:'.
 
6122
         test -f "$ac_f" ||
 
6123
           case $ac_f in
 
6124
           [\\/$]*) false;;
 
6125
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
6126
           esac ||
 
6127
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
6128
      esac
 
6129
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
6130
      as_fn_append ac_file_inputs " '$ac_f'"
 
6131
    done
 
6132
 
 
6133
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
6134
    # use $as_me), people would be surprised to read:
 
6135
    #    /* config.h.  Generated by config.status.  */
 
6136
    configure_input='Generated from '`
 
6137
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
6138
        `' by configure.'
 
6139
    if test x"$ac_file" != x-; then
 
6140
      configure_input="$ac_file.  $configure_input"
 
6141
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
6142
$as_echo "$as_me: creating $ac_file" >&6;}
 
6143
    fi
 
6144
    # Neutralize special characters interpreted by sed in replacement strings.
 
6145
    case $configure_input in #(
 
6146
    *\&* | *\|* | *\\* )
 
6147
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
6148
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
6149
    *) ac_sed_conf_input=$configure_input;;
 
6150
    esac
 
6151
 
 
6152
    case $ac_tag in
 
6153
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
6154
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
6155
    esac
 
6156
    ;;
 
6157
  esac
 
6158
 
 
6159
  ac_dir=`$as_dirname -- "$ac_file" ||
 
6160
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6161
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
6162
         X"$ac_file" : 'X\(//\)$' \| \
 
6163
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
6164
$as_echo X"$ac_file" |
 
6165
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
6166
            s//\1/
 
6167
            q
 
6168
          }
 
6169
          /^X\(\/\/\)[^/].*/{
 
6170
            s//\1/
 
6171
            q
 
6172
          }
 
6173
          /^X\(\/\/\)$/{
 
6174
            s//\1/
 
6175
            q
 
6176
          }
 
6177
          /^X\(\/\).*/{
 
6178
            s//\1/
 
6179
            q
 
6180
          }
 
6181
          s/.*/./; q'`
 
6182
  as_dir="$ac_dir"; as_fn_mkdir_p
 
6183
  ac_builddir=.
 
6184
 
 
6185
case "$ac_dir" in
 
6186
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
6187
*)
 
6188
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
6189
  # A ".." for each directory in $ac_dir_suffix.
 
6190
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
6191
  case $ac_top_builddir_sub in
 
6192
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
6193
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
6194
  esac ;;
 
6195
esac
 
6196
ac_abs_top_builddir=$ac_pwd
 
6197
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
6198
# for backward compatibility:
 
6199
ac_top_builddir=$ac_top_build_prefix
 
6200
 
 
6201
case $srcdir in
 
6202
  .)  # We are building in place.
 
6203
    ac_srcdir=.
 
6204
    ac_top_srcdir=$ac_top_builddir_sub
 
6205
    ac_abs_top_srcdir=$ac_pwd ;;
 
6206
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
6207
    ac_srcdir=$srcdir$ac_dir_suffix;
 
6208
    ac_top_srcdir=$srcdir
 
6209
    ac_abs_top_srcdir=$srcdir ;;
 
6210
  *) # Relative name.
 
6211
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
6212
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
6213
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
6214
esac
 
6215
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
6216
 
 
6217
 
 
6218
  case $ac_mode in
 
6219
  :F)
 
6220
  #
 
6221
  # CONFIG_FILE
 
6222
  #
 
6223
 
 
6224
  case $INSTALL in
 
6225
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
6226
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
6227
  esac
 
6228
  ac_MKDIR_P=$MKDIR_P
 
6229
  case $MKDIR_P in
 
6230
  [\\/$]* | ?:[\\/]* ) ;;
 
6231
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
6232
  esac
 
6233
_ACEOF
 
6234
 
 
6235
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
6236
# If the template does not know about datarootdir, expand it.
 
6237
# FIXME: This hack should be removed a few years after 2.60.
 
6238
ac_datarootdir_hack=; ac_datarootdir_seen=
 
6239
ac_sed_dataroot='
 
6240
/datarootdir/ {
 
6241
  p
 
6242
  q
 
6243
}
 
6244
/@datadir@/p
 
6245
/@docdir@/p
 
6246
/@infodir@/p
 
6247
/@localedir@/p
 
6248
/@mandir@/p'
 
6249
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
6250
*datarootdir*) ac_datarootdir_seen=yes;;
 
6251
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
6252
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
6253
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
6254
_ACEOF
 
6255
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
6256
  ac_datarootdir_hack='
 
6257
  s&@datadir@&$datadir&g
 
6258
  s&@docdir@&$docdir&g
 
6259
  s&@infodir@&$infodir&g
 
6260
  s&@localedir@&$localedir&g
 
6261
  s&@mandir@&$mandir&g
 
6262
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
6263
esac
 
6264
_ACEOF
 
6265
 
 
6266
# Neutralize VPATH when `$srcdir' = `.'.
 
6267
# Shell code in configure.ac might set extrasub.
 
6268
# FIXME: do we really want to maintain this feature?
 
6269
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
6270
ac_sed_extra="$ac_vpsub
 
6271
$extrasub
 
6272
_ACEOF
 
6273
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
6274
:t
 
6275
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
6276
s|@configure_input@|$ac_sed_conf_input|;t t
 
6277
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
6278
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
6279
s&@srcdir@&$ac_srcdir&;t t
 
6280
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
6281
s&@top_srcdir@&$ac_top_srcdir&;t t
 
6282
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
6283
s&@builddir@&$ac_builddir&;t t
 
6284
s&@abs_builddir@&$ac_abs_builddir&;t t
 
6285
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
6286
s&@INSTALL@&$ac_INSTALL&;t t
 
6287
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
6288
$ac_datarootdir_hack
 
6289
"
 
6290
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
6291
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
6292
 
 
6293
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
6294
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
6295
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
6296
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
6297
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
6298
which seems to be undefined.  Please make sure it is defined" >&5
 
6299
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
6300
which seems to be undefined.  Please make sure it is defined" >&2;}
 
6301
 
 
6302
  rm -f "$ac_tmp/stdin"
 
6303
  case $ac_file in
 
6304
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
6305
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
6306
  esac \
 
6307
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
6308
 ;;
 
6309
  :H)
 
6310
  #
 
6311
  # CONFIG_HEADER
 
6312
  #
 
6313
  if test x"$ac_file" != x-; then
 
6314
    {
 
6315
      $as_echo "/* $configure_input  */" \
 
6316
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
6317
    } >"$ac_tmp/config.h" \
 
6318
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
6319
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
6320
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
6321
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
6322
    else
 
6323
      rm -f "$ac_file"
 
6324
      mv "$ac_tmp/config.h" "$ac_file" \
 
6325
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
6326
    fi
 
6327
  else
 
6328
    $as_echo "/* $configure_input  */" \
 
6329
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
6330
      || as_fn_error $? "could not create -" "$LINENO" 5
 
6331
  fi
 
6332
# Compute "$ac_file"'s index in $config_headers.
 
6333
_am_arg="$ac_file"
 
6334
_am_stamp_count=1
 
6335
for _am_header in $config_headers :; do
 
6336
  case $_am_header in
 
6337
    $_am_arg | $_am_arg:* )
 
6338
      break ;;
 
6339
    * )
 
6340
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
6341
  esac
 
6342
done
 
6343
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
6344
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6345
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
6346
         X"$_am_arg" : 'X\(//\)$' \| \
 
6347
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
6348
$as_echo X"$_am_arg" |
 
6349
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
6350
            s//\1/
 
6351
            q
 
6352
          }
 
6353
          /^X\(\/\/\)[^/].*/{
 
6354
            s//\1/
 
6355
            q
 
6356
          }
 
6357
          /^X\(\/\/\)$/{
 
6358
            s//\1/
 
6359
            q
 
6360
          }
 
6361
          /^X\(\/\).*/{
 
6362
            s//\1/
 
6363
            q
 
6364
          }
 
6365
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
6366
 ;;
 
6367
 
 
6368
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
6369
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
6370
 ;;
 
6371
  esac
 
6372
 
 
6373
 
 
6374
  case $ac_file$ac_mode in
 
6375
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
6376
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
6377
  # are listed without --file.  Let's play safe and only enable the eval
 
6378
  # if we detect the quoting.
 
6379
  case $CONFIG_FILES in
 
6380
  *\'*) eval set x "$CONFIG_FILES" ;;
 
6381
  *)   set x $CONFIG_FILES ;;
 
6382
  esac
 
6383
  shift
 
6384
  for mf
 
6385
  do
 
6386
    # Strip MF so we end up with the name of the file.
 
6387
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
6388
    # Check whether this is an Automake generated Makefile or not.
 
6389
    # We used to match only the files named `Makefile.in', but
 
6390
    # some people rename them; so instead we look at the file content.
 
6391
    # Grep'ing the first line is not enough: some people post-process
 
6392
    # each Makefile.in and add a new line on top of each file to say so.
 
6393
    # Grep'ing the whole file is not good either: AIX grep has a line
 
6394
    # limit of 2048, but all sed's we know have understand at least 4000.
 
6395
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
6396
      dirpart=`$as_dirname -- "$mf" ||
 
6397
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6398
         X"$mf" : 'X\(//\)[^/]' \| \
 
6399
         X"$mf" : 'X\(//\)$' \| \
 
6400
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
6401
$as_echo X"$mf" |
 
6402
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
6403
            s//\1/
 
6404
            q
 
6405
          }
 
6406
          /^X\(\/\/\)[^/].*/{
 
6407
            s//\1/
 
6408
            q
 
6409
          }
 
6410
          /^X\(\/\/\)$/{
 
6411
            s//\1/
 
6412
            q
 
6413
          }
 
6414
          /^X\(\/\).*/{
 
6415
            s//\1/
 
6416
            q
 
6417
          }
 
6418
          s/.*/./; q'`
 
6419
    else
 
6420
      continue
 
6421
    fi
 
6422
    # Extract the definition of DEPDIR, am__include, and am__quote
 
6423
    # from the Makefile without running `make'.
 
6424
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
6425
    test -z "$DEPDIR" && continue
 
6426
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
6427
    test -z "am__include" && continue
 
6428
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
6429
    # When using ansi2knr, U may be empty or an underscore; expand it
 
6430
    U=`sed -n 's/^U = //p' < "$mf"`
 
6431
    # Find all dependency output files, they are included files with
 
6432
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
6433
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
6434
    # expansion.
 
6435
    for file in `sed -n "
 
6436
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
6437
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
6438
      # Make sure the directory exists.
 
6439
      test -f "$dirpart/$file" && continue
 
6440
      fdir=`$as_dirname -- "$file" ||
 
6441
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6442
         X"$file" : 'X\(//\)[^/]' \| \
 
6443
         X"$file" : 'X\(//\)$' \| \
 
6444
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
6445
$as_echo X"$file" |
 
6446
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
6447
            s//\1/
 
6448
            q
 
6449
          }
 
6450
          /^X\(\/\/\)[^/].*/{
 
6451
            s//\1/
 
6452
            q
 
6453
          }
 
6454
          /^X\(\/\/\)$/{
 
6455
            s//\1/
 
6456
            q
 
6457
          }
 
6458
          /^X\(\/\).*/{
 
6459
            s//\1/
 
6460
            q
 
6461
          }
 
6462
          s/.*/./; q'`
 
6463
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
6464
      # echo "creating $dirpart/$file"
 
6465
      echo '# dummy' > "$dirpart/$file"
 
6466
    done
 
6467
  done
 
6468
}
 
6469
 ;;
 
6470
    "default":C)  ;;
 
6471
 
 
6472
  esac
 
6473
done # for ac_tag
 
6474
 
 
6475
 
 
6476
as_fn_exit 0
 
6477
_ACEOF
 
6478
ac_clean_files=$ac_clean_files_save
 
6479
 
 
6480
test $ac_write_fail = 0 ||
 
6481
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
6482
 
 
6483
 
 
6484
# configure is writing to config.log, and then calls config.status.
 
6485
# config.status does its own redirection, appending to config.log.
 
6486
# Unfortunately, on DOS this fails, as config.log is still kept open
 
6487
# by configure, so config.status won't be able to write to it; its
 
6488
# output is simply discarded.  So we exec the FD to /dev/null,
 
6489
# effectively closing config.log, so it can be properly (re)opened and
 
6490
# appended to by config.status.  When coming back to configure, we
 
6491
# need to make the FD available again.
 
6492
if test "$no_create" != yes; then
 
6493
  ac_cs_success=:
 
6494
  ac_config_status_args=
 
6495
  test "$silent" = yes &&
 
6496
    ac_config_status_args="$ac_config_status_args --quiet"
 
6497
  exec 5>/dev/null
 
6498
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
6499
  exec 5>>config.log
 
6500
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
6501
  # would make configure fail if this is the last instruction.
 
6502
  $ac_cs_success || as_fn_exit 1
 
6503
fi
 
6504
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
6505
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
6506
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
6507
fi
 
6508
 
 
6509
 
 
6510
if test "x$SETCAP" = "xno"; then
 
6511
   { $as_echo "$as_me:${as_lineno-$LINENO}:
 
6512
 
 
6513
Warning:
 
6514
--------
 
6515
 
 
6516
The setcap binary was not found. This means the tools to set the
 
6517
privilege for the lxc commands are not available, that's ok, but you
 
6518
will need to run these commands as root or install libcap-2.
 
6519
 
 
6520
" >&5
 
6521
$as_echo "$as_me:
 
6522
 
 
6523
Warning:
 
6524
--------
 
6525
 
 
6526
The setcap binary was not found. This means the tools to set the
 
6527
privilege for the lxc commands are not available, that's ok, but you
 
6528
will need to run these commands as root or install libcap-2.
 
6529
 
 
6530
" >&6;}
 
6531
 
 
6532
else
 
6533
 
 
6534
   { $as_echo "$as_me:${as_lineno-$LINENO}:
 
6535
 
 
6536
Advice:
 
6537
-------
 
6538
 
 
6539
If you wish to have a non root user to use the lxc tools,
 
6540
you can add the needed capabilities to the tools by invoking
 
6541
the 'lxc-setcap' script. To remove the capabilities, use
 
6542
'lxc-setcap -d'.
 
6543
" >&5
 
6544
$as_echo "$as_me:
 
6545
 
 
6546
Advice:
 
6547
-------
 
6548
 
 
6549
If you wish to have a non root user to use the lxc tools,
 
6550
you can add the needed capabilities to the tools by invoking
 
6551
the 'lxc-setcap' script. To remove the capabilities, use
 
6552
'lxc-setcap -d'.
 
6553
" >&6;}
 
6554
 
 
6555
fi