~ubuntu-branches/ubuntu/trusty/serf/trusty-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Peter Samuelson
  • Date: 2011-06-27 18:09:28 UTC
  • mto: (9.1.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20110627180928-m4tjk6r40sl31w1h
Tags: upstream-1.0.0~0+svn1514
ImportĀ upstreamĀ versionĀ 1.0.0~0+svn1514

Show diffs side-by-side

added added

removed removed

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