~ubuntu-branches/ubuntu/quantal/ltsp/quantal

« back to all changes in this revision

Viewing changes to client/nbd-proxy/autom4te.cache/output.0

  • Committer: Stéphane Graber
  • Date: 2012-08-23 18:55:11 UTC
  • mfrom: (111.1.58)
  • Revision ID: stgraber@ubuntu.com-20120823185511-nt14m0irprig39i7
Merge 5.4.3

Show diffs side-by-side

added added

removed removed

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