~ubuntu-branches/debian/squeeze/ltsp/squeeze

« back to all changes in this revision

Viewing changes to nbd-proxy/configure

  • Committer: Bazaar Package Importer
  • Author(s): Vagrant Cascadian
  • Date: 2010-01-27 14:22:23 UTC
  • mfrom: (34.2.36 upstream)
  • Revision ID: james.westby@ubuntu.com-20100127142223-yomxfg5ne6fhkauj
Tags: 5.1.99-1
* New upstream version:
  - Improved speed of group processing code for local apps.
  - Optimized code to handle lts.conf values by reducing the number of binary
    calls and caching some values.
  - ltsp-build-client plugins:
    + Rewrote functions that create sources.list to be more flexible and
      simpler handling of security mirrors.
    + Added option to mount an arbitrary server dir for apt package caching.
  - New NBD proxy binary, which reconnects an NBD client when necessary.
    replaces the old monitor_nbd script.
  - Disabled LTSP specific handling of sound on fat clients.

  - Updated translations:
    + Italian (it), by Vincenzo Campanella.
    + Polish (pl), by Wiktor Wandachowicz.
    + Spanish (es), by José Luis Redrejo Rodríguez.
    + Russian (ru), by Yuri Kozlov (Closes: #565293).
    + German (de), by Wolfgang Schweer (Closes: #565261).
    + Greek (el), by Alkis Georgopoulos.
    + Swedish (sv), by Martin Bagge (Closes: #565198).
    + Portuguese (pt), by Américo Monteiro (Closes: #565190).
    + French (fr), by Stéphane Graber.

  - New translations:
    + Japanese (ja) translation by Hideki Yamane (Closes: #565956).

* ltsp-server: Included example shutdown and restart .desktop files that use
  the new LTSP halt and reboot mechanisms.

* Updated patches:
  - use-test-binary
  - revert-pulseaudio-module-udev-detect

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