~ubuntu-branches/ubuntu/saucy/lighttpd/saucy

« back to all changes in this revision

Viewing changes to .pc/build-dev-package.patch/configure

  • Committer: Bazaar Package Importer
  • Author(s): Lorenzo De Liso
  • Date: 2010-06-27 13:13:01 UTC
  • mfrom: (6.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20100627131301-hno77ea67jxa6m1g
Tags: 1.4.26-3ubuntu1
* Merge from debian unstable (LP: #599010), remaining changes:
  - debian/control: 
    + libgamin-dev rather than libfam-dev to fix startup warning.
    + debhelper Build-depends bumped to (>= 7.0.50) for
      overrides in rules file. 
  - debian/lighttpd.init: clean environment; Check syntax during start/reload
    restart/force-reload.
  - debian/index.html: s/Debian/Ubuntu/g branding on the default page.
  - Added a UFW profile set:
    + debian/lighttpd.dirs: added etc/ufw/applications.d
    + debian/rules: install the ufw profile.
    + debian/control: Suggests on ufw.
  - Add lighttpd-dev package:
    + debian/control: Added lighttpd-dev package; Build-depends on
      automake, libtool
    + debian/lighttpd-dev.install: Added.
  - debian/rules:
    + Add override_dh_installinit to set "defaults 91 09" to not start
      before apache2 but in the same runlevel with the same priority.
  - debian/patches/build-dev-package.patch: Updated
  - debian/lighttpd.conf: Comment 'use-ipv6.pl' by default, which causes
    failure to bind port in ipv4 (LP: #551211)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.65 for lighttpd 1.4.26.
 
4
#
 
5
# Report bugs to <contact@lighttpd.net>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
 
10
# Inc.
 
11
#
 
12
#
 
13
# This configure script is free software; the Free Software Foundation
 
14
# gives unlimited permission to copy, distribute and modify it.
 
15
## -------------------- ##
 
16
## M4sh Initialization. ##
 
17
## -------------------- ##
 
18
 
 
19
# Be more Bourne compatible
 
20
DUALCASE=1; export DUALCASE # for MKS sh
 
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
22
  emulate sh
 
23
  NULLCMD=:
 
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
25
  # is contrary to our usage.  Disable this feature.
 
26
  alias -g '${1+"$@"}'='"$@"'
 
27
  setopt NO_GLOB_SUBST
 
28
else
 
29
  case `(set -o) 2>/dev/null` in #(
 
30
  *posix*) :
 
31
    set -o posix ;; #(
 
32
  *) :
 
33
     ;;
 
34
esac
 
35
fi
 
36
 
 
37
 
 
38
as_nl='
 
39
'
 
40
export as_nl
 
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
46
# but without wasting forks for bash or zsh.
 
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
49
  as_echo='print -r --'
 
50
  as_echo_n='print -rn --'
 
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
52
  as_echo='printf %s\n'
 
53
  as_echo_n='printf %s'
 
54
else
 
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
57
    as_echo_n='/usr/ucb/echo -n'
 
58
  else
 
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
60
    as_echo_n_body='eval
 
61
      arg=$1;
 
62
      case $arg in #(
 
63
      *"$as_nl"*)
 
64
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
65
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
66
      esac;
 
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
68
    '
 
69
    export as_echo_n_body
 
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
71
  fi
 
72
  export as_echo_body
 
73
  as_echo='sh -c $as_echo_body as_echo'
 
74
fi
 
75
 
 
76
# The user is always right.
 
77
if test "${PATH_SEPARATOR+set}" != set; then
 
78
  PATH_SEPARATOR=:
 
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
81
      PATH_SEPARATOR=';'
 
82
  }
 
83
fi
 
84
 
 
85
 
 
86
# IFS
 
87
# We need space, tab and new line, in precisely that order.  Quoting is
 
88
# there to prevent editors from complaining about space-tab.
 
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
90
# splitting by setting IFS to empty value.)
 
91
IFS=" ""        $as_nl"
 
92
 
 
93
# Find who we are.  Look in the path if we contain no directory separator.
 
94
case $0 in #((
 
95
  *[\\/]* ) as_myself=$0 ;;
 
96
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
97
for as_dir in $PATH
 
98
do
 
99
  IFS=$as_save_IFS
 
100
  test -z "$as_dir" && as_dir=.
 
101
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
102
  done
 
103
IFS=$as_save_IFS
 
104
 
 
105
     ;;
 
106
esac
 
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
108
# in which case we are not to be found in the path.
 
109
if test "x$as_myself" = x; then
 
110
  as_myself=$0
 
111
fi
 
112
if test ! -f "$as_myself"; then
 
113
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
114
  exit 1
 
115
fi
 
116
 
 
117
# Unset variables that we do not need and which cause bugs (e.g. in
 
118
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
119
# suppresses any "Segmentation fault" message there.  '((' could
 
120
# trigger a bug in pdksh 5.2.14.
 
121
for as_var in BASH_ENV ENV MAIL MAILPATH
 
122
do eval test x\${$as_var+set} = xset \
 
123
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
124
done
 
125
PS1='$ '
 
126
PS2='> '
 
127
PS4='+ '
 
128
 
 
129
# NLS nuisances.
 
130
LC_ALL=C
 
131
export LC_ALL
 
132
LANGUAGE=C
 
133
export LANGUAGE
 
134
 
 
135
# CDPATH.
 
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
137
 
 
138
if test "x$CONFIG_SHELL" = x; then
 
139
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
140
  emulate sh
 
141
  NULLCMD=:
 
142
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
143
  # is contrary to our usage.  Disable this feature.
 
144
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
145
  setopt NO_GLOB_SUBST
 
146
else
 
147
  case \`(set -o) 2>/dev/null\` in #(
 
148
  *posix*) :
 
149
    set -o posix ;; #(
 
150
  *) :
 
151
     ;;
 
152
esac
 
153
fi
 
154
"
 
155
  as_required="as_fn_return () { (exit \$1); }
 
156
as_fn_success () { as_fn_return 0; }
 
157
as_fn_failure () { as_fn_return 1; }
 
158
as_fn_ret_success () { return 0; }
 
159
as_fn_ret_failure () { return 1; }
 
160
 
 
161
exitcode=0
 
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
167
 
 
168
else
 
169
  exitcode=1; echo positional parameters were not saved.
 
170
fi
 
171
test x\$exitcode = x0 || exit 1"
 
172
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
173
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
174
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
175
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
176
test \$(( 1 + 1 )) = 2 || exit 1"
 
177
  if (eval "$as_required") 2>/dev/null; then :
 
178
  as_have_required=yes
 
179
else
 
180
  as_have_required=no
 
181
fi
 
182
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
183
 
 
184
else
 
185
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
186
as_found=false
 
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
188
do
 
189
  IFS=$as_save_IFS
 
190
  test -z "$as_dir" && as_dir=.
 
191
  as_found=:
 
192
  case $as_dir in #(
 
193
         /*)
 
194
           for as_base in sh bash ksh sh5; do
 
195
             # Try only shells that exist, to save several forks.
 
196
             as_shell=$as_dir/$as_base
 
197
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
198
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  CONFIG_SHELL=$as_shell as_have_required=yes
 
200
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
201
  break 2
 
202
fi
 
203
fi
 
204
           done;;
 
205
       esac
 
206
  as_found=false
 
207
done
 
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
209
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
210
  CONFIG_SHELL=$SHELL as_have_required=yes
 
211
fi; }
 
212
IFS=$as_save_IFS
 
213
 
 
214
 
 
215
      if test "x$CONFIG_SHELL" != x; then :
 
216
  # We cannot yet assume a decent shell, so we have to provide a
 
217
        # neutralization value for shells without unset; and this also
 
218
        # works around shells that cannot unset nonexistent variables.
 
219
        BASH_ENV=/dev/null
 
220
        ENV=/dev/null
 
221
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
222
        export CONFIG_SHELL
 
223
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
224
fi
 
225
 
 
226
    if test x$as_have_required = xno; then :
 
227
  $as_echo "$0: This script requires a shell more modern than all"
 
228
  $as_echo "$0: the shells that I found on your system."
 
229
  if test x${ZSH_VERSION+set} = xset ; then
 
230
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
231
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
232
  else
 
233
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
234
$0: contact@lighttpd.net about your system, including any
 
235
$0: error possibly output before this message. Then install
 
236
$0: a modern shell, or manually run the script under such a
 
237
$0: shell if you do have one."
 
238
  fi
 
239
  exit 1
 
240
fi
 
241
fi
 
242
fi
 
243
SHELL=${CONFIG_SHELL-/bin/sh}
 
244
export SHELL
 
245
# Unset more variables known to interfere with behavior of common tools.
 
246
CLICOLOR_FORCE= GREP_OPTIONS=
 
247
unset CLICOLOR_FORCE GREP_OPTIONS
 
248
 
 
249
## --------------------- ##
 
250
## M4sh Shell Functions. ##
 
251
## --------------------- ##
 
252
# as_fn_unset VAR
 
253
# ---------------
 
254
# Portably unset VAR.
 
255
as_fn_unset ()
 
256
{
 
257
  { eval $1=; unset $1;}
 
258
}
 
259
as_unset=as_fn_unset
 
260
 
 
261
# as_fn_set_status STATUS
 
262
# -----------------------
 
263
# Set $? to STATUS, without forking.
 
264
as_fn_set_status ()
 
265
{
 
266
  return $1
 
267
} # as_fn_set_status
 
268
 
 
269
# as_fn_exit STATUS
 
270
# -----------------
 
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
272
as_fn_exit ()
 
273
{
 
274
  set +e
 
275
  as_fn_set_status $1
 
276
  exit $1
 
277
} # as_fn_exit
 
278
 
 
279
# as_fn_mkdir_p
 
280
# -------------
 
281
# Create "$as_dir" as a directory, including parents if necessary.
 
282
as_fn_mkdir_p ()
 
283
{
 
284
 
 
285
  case $as_dir in #(
 
286
  -*) as_dir=./$as_dir;;
 
287
  esac
 
288
  test -d "$as_dir" || eval $as_mkdir_p || {
 
289
    as_dirs=
 
290
    while :; do
 
291
      case $as_dir in #(
 
292
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
293
      *) as_qdir=$as_dir;;
 
294
      esac
 
295
      as_dirs="'$as_qdir' $as_dirs"
 
296
      as_dir=`$as_dirname -- "$as_dir" ||
 
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
298
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
299
         X"$as_dir" : 'X\(//\)$' \| \
 
300
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
301
$as_echo X"$as_dir" |
 
302
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
303
            s//\1/
 
304
            q
 
305
          }
 
306
          /^X\(\/\/\)[^/].*/{
 
307
            s//\1/
 
308
            q
 
309
          }
 
310
          /^X\(\/\/\)$/{
 
311
            s//\1/
 
312
            q
 
313
          }
 
314
          /^X\(\/\).*/{
 
315
            s//\1/
 
316
            q
 
317
          }
 
318
          s/.*/./; q'`
 
319
      test -d "$as_dir" && break
 
320
    done
 
321
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
322
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
323
 
 
324
 
 
325
} # as_fn_mkdir_p
 
326
# as_fn_append VAR VALUE
 
327
# ----------------------
 
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
329
# advantage of any shell optimizations that allow amortized linear growth over
 
330
# repeated appends, instead of the typical quadratic growth present in naive
 
331
# implementations.
 
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
333
  eval 'as_fn_append ()
 
334
  {
 
335
    eval $1+=\$2
 
336
  }'
 
337
else
 
338
  as_fn_append ()
 
339
  {
 
340
    eval $1=\$$1\$2
 
341
  }
 
342
fi # as_fn_append
 
343
 
 
344
# as_fn_arith ARG...
 
345
# ------------------
 
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
348
# must be portable across $(()) and expr.
 
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
350
  eval 'as_fn_arith ()
 
351
  {
 
352
    as_val=$(( $* ))
 
353
  }'
 
354
else
 
355
  as_fn_arith ()
 
356
  {
 
357
    as_val=`expr "$@" || test $? -eq 1`
 
358
  }
 
359
fi # as_fn_arith
 
360
 
 
361
 
 
362
# as_fn_error ERROR [LINENO LOG_FD]
 
363
# ---------------------------------
 
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
366
# script with status $?, using 1 if that was 0.
 
367
as_fn_error ()
 
368
{
 
369
  as_status=$?; test $as_status -eq 0 && as_status=1
 
370
  if test "$3"; then
 
371
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
372
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
373
  fi
 
374
  $as_echo "$as_me: error: $1" >&2
 
375
  as_fn_exit $as_status
 
376
} # as_fn_error
 
377
 
 
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
379
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
380
  as_expr=expr
 
381
else
 
382
  as_expr=false
 
383
fi
 
384
 
 
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
386
  as_basename=basename
 
387
else
 
388
  as_basename=false
 
389
fi
 
390
 
 
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
392
  as_dirname=dirname
 
393
else
 
394
  as_dirname=false
 
395
fi
 
396
 
 
397
as_me=`$as_basename -- "$0" ||
 
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
399
         X"$0" : 'X\(//\)$' \| \
 
400
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
401
$as_echo X/"$0" |
 
402
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
403
            s//\1/
 
404
            q
 
405
          }
 
406
          /^X\/\(\/\/\)$/{
 
407
            s//\1/
 
408
            q
 
409
          }
 
410
          /^X\/\(\/\).*/{
 
411
            s//\1/
 
412
            q
 
413
          }
 
414
          s/.*/./; q'`
 
415
 
 
416
# Avoid depending upon Character Ranges.
 
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
420
as_cr_digits='0123456789'
 
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
422
 
 
423
 
 
424
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
425
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
426
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
427
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
428
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
429
  sed -n '
 
430
    p
 
431
    /[$]LINENO/=
 
432
  ' <$as_myself |
 
433
    sed '
 
434
      s/[$]LINENO.*/&-/
 
435
      t lineno
 
436
      b
 
437
      :lineno
 
438
      N
 
439
      :loop
 
440
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
441
      t loop
 
442
      s/-\n.*//
 
443
    ' >$as_me.lineno &&
 
444
  chmod +x "$as_me.lineno" ||
 
445
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
446
 
 
447
  # Don't try to exec as it changes $[0], causing all sort of problems
 
448
  # (the dirname of $[0] is not the place where we might find the
 
449
  # original and so on.  Autoconf is especially sensitive to this).
 
450
  . "./$as_me.lineno"
 
451
  # Exit status is that of the last command.
 
452
  exit
 
453
}
 
454
 
 
455
ECHO_C= ECHO_N= ECHO_T=
 
456
case `echo -n x` in #(((((
 
457
-n*)
 
458
  case `echo 'xy\c'` in
 
459
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
460
  xy)  ECHO_C='\c';;
 
461
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
462
       ECHO_T=' ';;
 
463
  esac;;
 
464
*)
 
465
  ECHO_N='-n';;
 
466
esac
 
467
 
 
468
rm -f conf$$ conf$$.exe conf$$.file
 
469
if test -d conf$$.dir; then
 
470
  rm -f conf$$.dir/conf$$.file
 
471
else
 
472
  rm -f conf$$.dir
 
473
  mkdir conf$$.dir 2>/dev/null
 
474
fi
 
475
if (echo >conf$$.file) 2>/dev/null; then
 
476
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
477
    as_ln_s='ln -s'
 
478
    # ... but there are two gotchas:
 
479
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
480
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
481
    # In both cases, we have to default to `cp -p'.
 
482
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
483
      as_ln_s='cp -p'
 
484
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
485
    as_ln_s=ln
 
486
  else
 
487
    as_ln_s='cp -p'
 
488
  fi
 
489
else
 
490
  as_ln_s='cp -p'
 
491
fi
 
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
493
rmdir conf$$.dir 2>/dev/null
 
494
 
 
495
if mkdir -p . 2>/dev/null; then
 
496
  as_mkdir_p='mkdir -p "$as_dir"'
 
497
else
 
498
  test -d ./-p && rmdir ./-p
 
499
  as_mkdir_p=false
 
500
fi
 
501
 
 
502
if test -x / >/dev/null 2>&1; then
 
503
  as_test_x='test -x'
 
504
else
 
505
  if ls -dL / >/dev/null 2>&1; then
 
506
    as_ls_L_option=L
 
507
  else
 
508
    as_ls_L_option=
 
509
  fi
 
510
  as_test_x='
 
511
    eval sh -c '\''
 
512
      if test -d "$1"; then
 
513
        test -d "$1/.";
 
514
      else
 
515
        case $1 in #(
 
516
        -*)set "./$1";;
 
517
        esac;
 
518
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
519
        ???[sx]*):;;*)false;;esac;fi
 
520
    '\'' sh
 
521
  '
 
522
fi
 
523
as_executable_p=$as_test_x
 
524
 
 
525
# Sed expression to map a string onto a valid CPP name.
 
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
527
 
 
528
# Sed expression to map a string onto a valid variable name.
 
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
530
 
 
531
 
 
532
 
 
533
# Check that we are running under the correct shell.
 
534
SHELL=${CONFIG_SHELL-/bin/sh}
 
535
 
 
536
case X$lt_ECHO in
 
537
X*--fallback-echo)
 
538
  # Remove one level of quotation (which was required for Make).
 
539
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
540
  ;;
 
541
esac
 
542
 
 
543
ECHO=${lt_ECHO-echo}
 
544
if test "X$1" = X--no-reexec; then
 
545
  # Discard the --no-reexec flag, and continue.
 
546
  shift
 
547
elif test "X$1" = X--fallback-echo; then
 
548
  # Avoid inline document here, it may be left over
 
549
  :
 
550
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
551
  # Yippee, $ECHO works!
 
552
  :
 
553
else
 
554
  # Restart under the correct shell.
 
555
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
556
fi
 
557
 
 
558
if test "X$1" = X--fallback-echo; then
 
559
  # used as fallback echo
 
560
  shift
 
561
  cat <<_LT_EOF
 
562
$*
 
563
_LT_EOF
 
564
  exit 0
 
565
fi
 
566
 
 
567
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
568
# if CDPATH is set.
 
569
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
570
 
 
571
if test -z "$lt_ECHO"; then
 
572
  if test "X${echo_test_string+set}" != Xset; then
 
573
    # find a string as large as possible, as long as the shell can cope with it
 
574
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
575
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
576
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
577
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
578
      then
 
579
        break
 
580
      fi
 
581
    done
 
582
  fi
 
583
 
 
584
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
585
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
586
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
587
    :
 
588
  else
 
589
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
590
    # backslashes.  This makes it impossible to quote backslashes using
 
591
    #   echo "$something" | sed 's/\\/\\\\/g'
 
592
    #
 
593
    # So, first we look for a working echo in the user's PATH.
 
594
 
 
595
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
596
    for dir in $PATH /usr/ucb; do
 
597
      IFS="$lt_save_ifs"
 
598
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
599
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
600
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
601
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
602
        ECHO="$dir/echo"
 
603
        break
 
604
      fi
 
605
    done
 
606
    IFS="$lt_save_ifs"
 
607
 
 
608
    if test "X$ECHO" = Xecho; then
 
609
      # We didn't find a better echo, so look for alternatives.
 
610
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
611
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
612
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
613
        # This shell has a builtin print -r that does the trick.
 
614
        ECHO='print -r'
 
615
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
616
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
617
        # If we have ksh, try running configure again with it.
 
618
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
619
        export ORIGINAL_CONFIG_SHELL
 
620
        CONFIG_SHELL=/bin/ksh
 
621
        export CONFIG_SHELL
 
622
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
623
      else
 
624
        # Try using printf.
 
625
        ECHO='printf %s\n'
 
626
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
627
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
628
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
629
          # Cool, printf works
 
630
          :
 
631
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
632
             test "X$echo_testing_string" = 'X\t' &&
 
633
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
634
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
635
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
636
          export CONFIG_SHELL
 
637
          SHELL="$CONFIG_SHELL"
 
638
          export SHELL
 
639
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
640
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
641
             test "X$echo_testing_string" = 'X\t' &&
 
642
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
643
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
644
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
645
        else
 
646
          # maybe with a smaller string...
 
647
          prev=:
 
648
 
 
649
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
650
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
651
            then
 
652
              break
 
653
            fi
 
654
            prev="$cmd"
 
655
          done
 
656
 
 
657
          if test "$prev" != 'sed 50q "$0"'; then
 
658
            echo_test_string=`eval $prev`
 
659
            export echo_test_string
 
660
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
661
          else
 
662
            # Oops.  We lost completely, so just stick with echo.
 
663
            ECHO=echo
 
664
          fi
 
665
        fi
 
666
      fi
 
667
    fi
 
668
  fi
 
669
fi
 
670
 
 
671
# Copy echo and quote the copy suitably for passing to libtool from
 
672
# the Makefile, instead of quoting the original, which is used later.
 
673
lt_ECHO=$ECHO
 
674
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
675
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
676
fi
 
677
 
 
678
 
 
679
 
 
680
 
 
681
test -n "$DJDIR" || exec 7<&0 </dev/null
 
682
exec 6>&1
 
683
 
 
684
# Name of the host.
 
685
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
686
# so uname gets run too.
 
687
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
688
 
 
689
#
 
690
# Initializations.
 
691
#
 
692
ac_default_prefix=/usr/local
 
693
ac_clean_files=
 
694
ac_config_libobj_dir=.
 
695
LIBOBJS=
 
696
cross_compiling=no
 
697
subdirs=
 
698
MFLAGS=
 
699
MAKEFLAGS=
 
700
 
 
701
# Identity of this package.
 
702
PACKAGE_NAME='lighttpd'
 
703
PACKAGE_TARNAME='lighttpd'
 
704
PACKAGE_VERSION='1.4.26'
 
705
PACKAGE_STRING='lighttpd 1.4.26'
 
706
PACKAGE_BUGREPORT='contact@lighttpd.net'
 
707
PACKAGE_URL=''
 
708
 
 
709
ac_unique_file="src/server.c"
 
710
# Factoring default headers for most tests.
 
711
ac_includes_default="\
 
712
#include <stdio.h>
 
713
#ifdef HAVE_SYS_TYPES_H
 
714
# include <sys/types.h>
 
715
#endif
 
716
#ifdef HAVE_SYS_STAT_H
 
717
# include <sys/stat.h>
 
718
#endif
 
719
#ifdef STDC_HEADERS
 
720
# include <stdlib.h>
 
721
# include <stddef.h>
 
722
#else
 
723
# ifdef HAVE_STDLIB_H
 
724
#  include <stdlib.h>
 
725
# endif
 
726
#endif
 
727
#ifdef HAVE_STRING_H
 
728
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
729
#  include <memory.h>
 
730
# endif
 
731
# include <string.h>
 
732
#endif
 
733
#ifdef HAVE_STRINGS_H
 
734
# include <strings.h>
 
735
#endif
 
736
#ifdef HAVE_INTTYPES_H
 
737
# include <inttypes.h>
 
738
#endif
 
739
#ifdef HAVE_STDINT_H
 
740
# include <stdint.h>
 
741
#endif
 
742
#ifdef HAVE_UNISTD_H
 
743
# include <unistd.h>
 
744
#endif"
 
745
 
 
746
ac_subst_vars='am__EXEEXT_FALSE
 
747
am__EXEEXT_TRUE
 
748
LTLIBOBJS
 
749
CHECK_WITH_FASTCGI_FALSE
 
750
CHECK_WITH_FASTCGI_TRUE
 
751
CROSS_COMPILING_FALSE
 
752
CROSS_COMPILING_TRUE
 
753
SENDFILE_LIB
 
754
CRYPT_LIB
 
755
LUA_LIBS
 
756
LUA_CFLAGS
 
757
MEMCACHE_LIB
 
758
GDBM_LIB
 
759
UUID_LIBS
 
760
SQLITE_LIBS
 
761
SQLITE_CFLAGS
 
762
XML_LIBS
 
763
XML_CFLAGS
 
764
FAM_LIBS
 
765
FAM_CFLAGS
 
766
PKG_CONFIG
 
767
BZ_LIB
 
768
Z_LIB
 
769
PCRE_LIB
 
770
PCRECONFIG
 
771
SSL_LIB
 
772
DL_LIB
 
773
ATTR_LIB
 
774
LBER_LIB
 
775
LDAP_LIB
 
776
MYSQL_INCLUDE
 
777
MYSQL_LIBS
 
778
MYSQL_CONFIG
 
779
LIBOBJS
 
780
OTOOL64
 
781
OTOOL
 
782
LIPO
 
783
NMEDIT
 
784
DSYMUTIL
 
785
lt_ECHO
 
786
RANLIB
 
787
AR
 
788
OBJDUMP
 
789
NM
 
790
ac_ct_DUMPBIN
 
791
DUMPBIN
 
792
LIBTOOL
 
793
ANSI2KNR
 
794
U
 
795
NO_RDYNAMIC_FALSE
 
796
NO_RDYNAMIC_TRUE
 
797
LN_S
 
798
CPP
 
799
LD
 
800
FGREP
 
801
EGREP
 
802
GREP
 
803
SED
 
804
am__fastdepCC_FALSE
 
805
am__fastdepCC_TRUE
 
806
CCDEPMODE
 
807
AMDEPBACKSLASH
 
808
AMDEP_FALSE
 
809
AMDEP_TRUE
 
810
am__quote
 
811
am__include
 
812
DEPDIR
 
813
OBJEXT
 
814
EXEEXT
 
815
ac_ct_CC
 
816
CPPFLAGS
 
817
LDFLAGS
 
818
CFLAGS
 
819
CC
 
820
AM_BACKSLASH
 
821
AM_DEFAULT_VERBOSITY
 
822
am__untar
 
823
am__tar
 
824
AMTAR
 
825
am__leading_dot
 
826
SET_MAKE
 
827
AWK
 
828
mkdir_p
 
829
MKDIR_P
 
830
INSTALL_STRIP_PROGRAM
 
831
STRIP
 
832
install_sh
 
833
MAKEINFO
 
834
AUTOHEADER
 
835
AUTOMAKE
 
836
AUTOCONF
 
837
ACLOCAL
 
838
VERSION
 
839
PACKAGE
 
840
CYGPATH_W
 
841
am__isrc
 
842
INSTALL_DATA
 
843
INSTALL_SCRIPT
 
844
INSTALL_PROGRAM
 
845
target_os
 
846
target_vendor
 
847
target_cpu
 
848
target
 
849
host_os
 
850
host_vendor
 
851
host_cpu
 
852
host
 
853
build_os
 
854
build_vendor
 
855
build_cpu
 
856
build
 
857
target_alias
 
858
host_alias
 
859
build_alias
 
860
LIBS
 
861
ECHO_T
 
862
ECHO_N
 
863
ECHO_C
 
864
DEFS
 
865
mandir
 
866
localedir
 
867
libdir
 
868
psdir
 
869
pdfdir
 
870
dvidir
 
871
htmldir
 
872
infodir
 
873
docdir
 
874
oldincludedir
 
875
includedir
 
876
localstatedir
 
877
sharedstatedir
 
878
sysconfdir
 
879
datadir
 
880
datarootdir
 
881
libexecdir
 
882
sbindir
 
883
bindir
 
884
program_transform_name
 
885
prefix
 
886
exec_prefix
 
887
PACKAGE_URL
 
888
PACKAGE_BUGREPORT
 
889
PACKAGE_STRING
 
890
PACKAGE_VERSION
 
891
PACKAGE_TARNAME
 
892
PACKAGE_NAME
 
893
PATH_SEPARATOR
 
894
SHELL'
 
895
ac_subst_files=''
 
896
ac_user_opts='
 
897
enable_option_checking
 
898
enable_silent_rules
 
899
enable_dependency_tracking
 
900
with_gnu_ld
 
901
enable_static
 
902
enable_shared
 
903
with_pic
 
904
enable_fast_install
 
905
enable_libtool_lock
 
906
with_mysql
 
907
with_ldap
 
908
with_attr
 
909
with_valgrind
 
910
with_openssl
 
911
with_openssl_includes
 
912
with_openssl_libs
 
913
with_kerberos5
 
914
with_pcre
 
915
with_zlib
 
916
with_bzip2
 
917
with_fam
 
918
with_webdav_props
 
919
with_webdav_locks
 
920
with_gdbm
 
921
with_memcache
 
922
with_lua
 
923
enable_lfs
 
924
enable_ipv6
 
925
enable_extra_warnings
 
926
'
 
927
      ac_precious_vars='build_alias
 
928
host_alias
 
929
target_alias
 
930
CC
 
931
CFLAGS
 
932
LDFLAGS
 
933
LIBS
 
934
CPPFLAGS
 
935
CPP
 
936
PKG_CONFIG
 
937
FAM_CFLAGS
 
938
FAM_LIBS
 
939
XML_CFLAGS
 
940
XML_LIBS
 
941
SQLITE_CFLAGS
 
942
SQLITE_LIBS
 
943
LUA_CFLAGS
 
944
LUA_LIBS'
 
945
 
 
946
 
 
947
# Initialize some variables set by options.
 
948
ac_init_help=
 
949
ac_init_version=false
 
950
ac_unrecognized_opts=
 
951
ac_unrecognized_sep=
 
952
# The variables have the same names as the options, with
 
953
# dashes changed to underlines.
 
954
cache_file=/dev/null
 
955
exec_prefix=NONE
 
956
no_create=
 
957
no_recursion=
 
958
prefix=NONE
 
959
program_prefix=NONE
 
960
program_suffix=NONE
 
961
program_transform_name=s,x,x,
 
962
silent=
 
963
site=
 
964
srcdir=
 
965
verbose=
 
966
x_includes=NONE
 
967
x_libraries=NONE
 
968
 
 
969
# Installation directory options.
 
970
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
971
# and all the variables that are supposed to be based on exec_prefix
 
972
# by default will actually change.
 
973
# Use braces instead of parens because sh, perl, etc. also accept them.
 
974
# (The list follows the same order as the GNU Coding Standards.)
 
975
bindir='${exec_prefix}/bin'
 
976
sbindir='${exec_prefix}/sbin'
 
977
libexecdir='${exec_prefix}/libexec'
 
978
datarootdir='${prefix}/share'
 
979
datadir='${datarootdir}'
 
980
sysconfdir='${prefix}/etc'
 
981
sharedstatedir='${prefix}/com'
 
982
localstatedir='${prefix}/var'
 
983
includedir='${prefix}/include'
 
984
oldincludedir='/usr/include'
 
985
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
986
infodir='${datarootdir}/info'
 
987
htmldir='${docdir}'
 
988
dvidir='${docdir}'
 
989
pdfdir='${docdir}'
 
990
psdir='${docdir}'
 
991
libdir='${exec_prefix}/lib'
 
992
localedir='${datarootdir}/locale'
 
993
mandir='${datarootdir}/man'
 
994
 
 
995
ac_prev=
 
996
ac_dashdash=
 
997
for ac_option
 
998
do
 
999
  # If the previous option needs an argument, assign it.
 
1000
  if test -n "$ac_prev"; then
 
1001
    eval $ac_prev=\$ac_option
 
1002
    ac_prev=
 
1003
    continue
 
1004
  fi
 
1005
 
 
1006
  case $ac_option in
 
1007
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1008
  *)    ac_optarg=yes ;;
 
1009
  esac
 
1010
 
 
1011
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1012
 
 
1013
  case $ac_dashdash$ac_option in
 
1014
  --)
 
1015
    ac_dashdash=yes ;;
 
1016
 
 
1017
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1018
    ac_prev=bindir ;;
 
1019
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1020
    bindir=$ac_optarg ;;
 
1021
 
 
1022
  -build | --build | --buil | --bui | --bu)
 
1023
    ac_prev=build_alias ;;
 
1024
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1025
    build_alias=$ac_optarg ;;
 
1026
 
 
1027
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1028
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1029
    ac_prev=cache_file ;;
 
1030
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1031
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1032
    cache_file=$ac_optarg ;;
 
1033
 
 
1034
  --config-cache | -C)
 
1035
    cache_file=config.cache ;;
 
1036
 
 
1037
  -datadir | --datadir | --datadi | --datad)
 
1038
    ac_prev=datadir ;;
 
1039
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1040
    datadir=$ac_optarg ;;
 
1041
 
 
1042
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1043
  | --dataroo | --dataro | --datar)
 
1044
    ac_prev=datarootdir ;;
 
1045
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1046
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1047
    datarootdir=$ac_optarg ;;
 
1048
 
 
1049
  -disable-* | --disable-*)
 
1050
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
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 feature 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
"enable_$ac_useropt"
 
1059
"*) ;;
 
1060
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1061
         ac_unrecognized_sep=', ';;
 
1062
    esac
 
1063
    eval enable_$ac_useropt=no ;;
 
1064
 
 
1065
  -docdir | --docdir | --docdi | --doc | --do)
 
1066
    ac_prev=docdir ;;
 
1067
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1068
    docdir=$ac_optarg ;;
 
1069
 
 
1070
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1071
    ac_prev=dvidir ;;
 
1072
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1073
    dvidir=$ac_optarg ;;
 
1074
 
 
1075
  -enable-* | --enable-*)
 
1076
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1077
    # Reject names that are not valid shell variable names.
 
1078
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1079
      as_fn_error "invalid feature name: $ac_useropt"
 
1080
    ac_useropt_orig=$ac_useropt
 
1081
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1082
    case $ac_user_opts in
 
1083
      *"
 
1084
"enable_$ac_useropt"
 
1085
"*) ;;
 
1086
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1087
         ac_unrecognized_sep=', ';;
 
1088
    esac
 
1089
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1090
 
 
1091
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1092
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1093
  | --exec | --exe | --ex)
 
1094
    ac_prev=exec_prefix ;;
 
1095
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1096
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1097
  | --exec=* | --exe=* | --ex=*)
 
1098
    exec_prefix=$ac_optarg ;;
 
1099
 
 
1100
  -gas | --gas | --ga | --g)
 
1101
    # Obsolete; use --with-gas.
 
1102
    with_gas=yes ;;
 
1103
 
 
1104
  -help | --help | --hel | --he | -h)
 
1105
    ac_init_help=long ;;
 
1106
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1107
    ac_init_help=recursive ;;
 
1108
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1109
    ac_init_help=short ;;
 
1110
 
 
1111
  -host | --host | --hos | --ho)
 
1112
    ac_prev=host_alias ;;
 
1113
  -host=* | --host=* | --hos=* | --ho=*)
 
1114
    host_alias=$ac_optarg ;;
 
1115
 
 
1116
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1117
    ac_prev=htmldir ;;
 
1118
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1119
  | --ht=*)
 
1120
    htmldir=$ac_optarg ;;
 
1121
 
 
1122
  -includedir | --includedir | --includedi | --included | --include \
 
1123
  | --includ | --inclu | --incl | --inc)
 
1124
    ac_prev=includedir ;;
 
1125
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1126
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1127
    includedir=$ac_optarg ;;
 
1128
 
 
1129
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1130
    ac_prev=infodir ;;
 
1131
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1132
    infodir=$ac_optarg ;;
 
1133
 
 
1134
  -libdir | --libdir | --libdi | --libd)
 
1135
    ac_prev=libdir ;;
 
1136
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1137
    libdir=$ac_optarg ;;
 
1138
 
 
1139
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1140
  | --libexe | --libex | --libe)
 
1141
    ac_prev=libexecdir ;;
 
1142
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1143
  | --libexe=* | --libex=* | --libe=*)
 
1144
    libexecdir=$ac_optarg ;;
 
1145
 
 
1146
  -localedir | --localedir | --localedi | --localed | --locale)
 
1147
    ac_prev=localedir ;;
 
1148
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1149
    localedir=$ac_optarg ;;
 
1150
 
 
1151
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1152
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1153
    ac_prev=localstatedir ;;
 
1154
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1155
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1156
    localstatedir=$ac_optarg ;;
 
1157
 
 
1158
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1159
    ac_prev=mandir ;;
 
1160
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1161
    mandir=$ac_optarg ;;
 
1162
 
 
1163
  -nfp | --nfp | --nf)
 
1164
    # Obsolete; use --without-fp.
 
1165
    with_fp=no ;;
 
1166
 
 
1167
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1168
  | --no-cr | --no-c | -n)
 
1169
    no_create=yes ;;
 
1170
 
 
1171
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1172
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1173
    no_recursion=yes ;;
 
1174
 
 
1175
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1176
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1177
  | --oldin | --oldi | --old | --ol | --o)
 
1178
    ac_prev=oldincludedir ;;
 
1179
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1180
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1181
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1182
    oldincludedir=$ac_optarg ;;
 
1183
 
 
1184
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1185
    ac_prev=prefix ;;
 
1186
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1187
    prefix=$ac_optarg ;;
 
1188
 
 
1189
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1190
  | --program-pre | --program-pr | --program-p)
 
1191
    ac_prev=program_prefix ;;
 
1192
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1193
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1194
    program_prefix=$ac_optarg ;;
 
1195
 
 
1196
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1197
  | --program-suf | --program-su | --program-s)
 
1198
    ac_prev=program_suffix ;;
 
1199
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1200
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1201
    program_suffix=$ac_optarg ;;
 
1202
 
 
1203
  -program-transform-name | --program-transform-name \
 
1204
  | --program-transform-nam | --program-transform-na \
 
1205
  | --program-transform-n | --program-transform- \
 
1206
  | --program-transform | --program-transfor \
 
1207
  | --program-transfo | --program-transf \
 
1208
  | --program-trans | --program-tran \
 
1209
  | --progr-tra | --program-tr | --program-t)
 
1210
    ac_prev=program_transform_name ;;
 
1211
  -program-transform-name=* | --program-transform-name=* \
 
1212
  | --program-transform-nam=* | --program-transform-na=* \
 
1213
  | --program-transform-n=* | --program-transform-=* \
 
1214
  | --program-transform=* | --program-transfor=* \
 
1215
  | --program-transfo=* | --program-transf=* \
 
1216
  | --program-trans=* | --program-tran=* \
 
1217
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1218
    program_transform_name=$ac_optarg ;;
 
1219
 
 
1220
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1221
    ac_prev=pdfdir ;;
 
1222
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1223
    pdfdir=$ac_optarg ;;
 
1224
 
 
1225
  -psdir | --psdir | --psdi | --psd | --ps)
 
1226
    ac_prev=psdir ;;
 
1227
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1228
    psdir=$ac_optarg ;;
 
1229
 
 
1230
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1231
  | -silent | --silent | --silen | --sile | --sil)
 
1232
    silent=yes ;;
 
1233
 
 
1234
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1235
    ac_prev=sbindir ;;
 
1236
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1237
  | --sbi=* | --sb=*)
 
1238
    sbindir=$ac_optarg ;;
 
1239
 
 
1240
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1241
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1242
  | --sharedst | --shareds | --shared | --share | --shar \
 
1243
  | --sha | --sh)
 
1244
    ac_prev=sharedstatedir ;;
 
1245
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1246
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1247
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1248
  | --sha=* | --sh=*)
 
1249
    sharedstatedir=$ac_optarg ;;
 
1250
 
 
1251
  -site | --site | --sit)
 
1252
    ac_prev=site ;;
 
1253
  -site=* | --site=* | --sit=*)
 
1254
    site=$ac_optarg ;;
 
1255
 
 
1256
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1257
    ac_prev=srcdir ;;
 
1258
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1259
    srcdir=$ac_optarg ;;
 
1260
 
 
1261
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1262
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1263
    ac_prev=sysconfdir ;;
 
1264
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1265
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1266
    sysconfdir=$ac_optarg ;;
 
1267
 
 
1268
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1269
    ac_prev=target_alias ;;
 
1270
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1271
    target_alias=$ac_optarg ;;
 
1272
 
 
1273
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1274
    verbose=yes ;;
 
1275
 
 
1276
  -version | --version | --versio | --versi | --vers | -V)
 
1277
    ac_init_version=: ;;
 
1278
 
 
1279
  -with-* | --with-*)
 
1280
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1281
    # Reject names that are not valid shell variable names.
 
1282
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1283
      as_fn_error "invalid package name: $ac_useropt"
 
1284
    ac_useropt_orig=$ac_useropt
 
1285
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1286
    case $ac_user_opts in
 
1287
      *"
 
1288
"with_$ac_useropt"
 
1289
"*) ;;
 
1290
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1291
         ac_unrecognized_sep=', ';;
 
1292
    esac
 
1293
    eval with_$ac_useropt=\$ac_optarg ;;
 
1294
 
 
1295
  -without-* | --without-*)
 
1296
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1297
    # Reject names that are not valid shell variable names.
 
1298
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1299
      as_fn_error "invalid package name: $ac_useropt"
 
1300
    ac_useropt_orig=$ac_useropt
 
1301
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1302
    case $ac_user_opts in
 
1303
      *"
 
1304
"with_$ac_useropt"
 
1305
"*) ;;
 
1306
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1307
         ac_unrecognized_sep=', ';;
 
1308
    esac
 
1309
    eval with_$ac_useropt=no ;;
 
1310
 
 
1311
  --x)
 
1312
    # Obsolete; use --with-x.
 
1313
    with_x=yes ;;
 
1314
 
 
1315
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1316
  | --x-incl | --x-inc | --x-in | --x-i)
 
1317
    ac_prev=x_includes ;;
 
1318
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1319
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1320
    x_includes=$ac_optarg ;;
 
1321
 
 
1322
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1323
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1324
    ac_prev=x_libraries ;;
 
1325
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1326
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1327
    x_libraries=$ac_optarg ;;
 
1328
 
 
1329
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1330
Try \`$0 --help' for more information."
 
1331
    ;;
 
1332
 
 
1333
  *=*)
 
1334
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1335
    # Reject names that are not valid shell variable names.
 
1336
    case $ac_envvar in #(
 
1337
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1338
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1339
    esac
 
1340
    eval $ac_envvar=\$ac_optarg
 
1341
    export $ac_envvar ;;
 
1342
 
 
1343
  *)
 
1344
    # FIXME: should be removed in autoconf 3.0.
 
1345
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1346
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1347
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1348
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1349
    ;;
 
1350
 
 
1351
  esac
 
1352
done
 
1353
 
 
1354
if test -n "$ac_prev"; then
 
1355
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1356
  as_fn_error "missing argument to $ac_option"
 
1357
fi
 
1358
 
 
1359
if test -n "$ac_unrecognized_opts"; then
 
1360
  case $enable_option_checking in
 
1361
    no) ;;
 
1362
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1363
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1364
  esac
 
1365
fi
 
1366
 
 
1367
# Check all directory arguments for consistency.
 
1368
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1369
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1370
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1371
                libdir localedir mandir
 
1372
do
 
1373
  eval ac_val=\$$ac_var
 
1374
  # Remove trailing slashes.
 
1375
  case $ac_val in
 
1376
    */ )
 
1377
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1378
      eval $ac_var=\$ac_val;;
 
1379
  esac
 
1380
  # Be sure to have absolute directory names.
 
1381
  case $ac_val in
 
1382
    [\\/$]* | ?:[\\/]* )  continue;;
 
1383
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1384
  esac
 
1385
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
 
1386
done
 
1387
 
 
1388
# There might be people who depend on the old broken behavior: `$host'
 
1389
# used to hold the argument of --host etc.
 
1390
# FIXME: To remove some day.
 
1391
build=$build_alias
 
1392
host=$host_alias
 
1393
target=$target_alias
 
1394
 
 
1395
# FIXME: To remove some day.
 
1396
if test "x$host_alias" != x; then
 
1397
  if test "x$build_alias" = x; then
 
1398
    cross_compiling=maybe
 
1399
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1400
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1401
  elif test "x$build_alias" != "x$host_alias"; then
 
1402
    cross_compiling=yes
 
1403
  fi
 
1404
fi
 
1405
 
 
1406
ac_tool_prefix=
 
1407
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1408
 
 
1409
test "$silent" = yes && exec 6>/dev/null
 
1410
 
 
1411
 
 
1412
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1413
ac_ls_di=`ls -di .` &&
 
1414
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1415
  as_fn_error "working directory cannot be determined"
 
1416
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1417
  as_fn_error "pwd does not report name of working directory"
 
1418
 
 
1419
 
 
1420
# Find the source files, if location was not specified.
 
1421
if test -z "$srcdir"; then
 
1422
  ac_srcdir_defaulted=yes
 
1423
  # Try the directory containing this script, then the parent directory.
 
1424
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1425
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1426
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1427
         X"$as_myself" : 'X\(//\)$' \| \
 
1428
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1429
$as_echo X"$as_myself" |
 
1430
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1431
            s//\1/
 
1432
            q
 
1433
          }
 
1434
          /^X\(\/\/\)[^/].*/{
 
1435
            s//\1/
 
1436
            q
 
1437
          }
 
1438
          /^X\(\/\/\)$/{
 
1439
            s//\1/
 
1440
            q
 
1441
          }
 
1442
          /^X\(\/\).*/{
 
1443
            s//\1/
 
1444
            q
 
1445
          }
 
1446
          s/.*/./; q'`
 
1447
  srcdir=$ac_confdir
 
1448
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1449
    srcdir=..
 
1450
  fi
 
1451
else
 
1452
  ac_srcdir_defaulted=no
 
1453
fi
 
1454
if test ! -r "$srcdir/$ac_unique_file"; then
 
1455
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1456
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1457
fi
 
1458
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1459
ac_abs_confdir=`(
 
1460
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1461
        pwd)`
 
1462
# When building in place, set srcdir=.
 
1463
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1464
  srcdir=.
 
1465
fi
 
1466
# Remove unnecessary trailing slashes from srcdir.
 
1467
# Double slashes in file names in object file debugging info
 
1468
# mess up M-x gdb in Emacs.
 
1469
case $srcdir in
 
1470
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1471
esac
 
1472
for ac_var in $ac_precious_vars; do
 
1473
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1474
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1475
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1476
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1477
done
 
1478
 
 
1479
#
 
1480
# Report the --help message.
 
1481
#
 
1482
if test "$ac_init_help" = "long"; then
 
1483
  # Omit some internal or obsolete options to make the list less imposing.
 
1484
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1485
  cat <<_ACEOF
 
1486
\`configure' configures lighttpd 1.4.26 to adapt to many kinds of systems.
 
1487
 
 
1488
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1489
 
 
1490
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1491
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1492
 
 
1493
Defaults for the options are specified in brackets.
 
1494
 
 
1495
Configuration:
 
1496
  -h, --help              display this help and exit
 
1497
      --help=short        display options specific to this package
 
1498
      --help=recursive    display the short help of all the included packages
 
1499
  -V, --version           display version information and exit
 
1500
  -q, --quiet, --silent   do not print \`checking...' messages
 
1501
      --cache-file=FILE   cache test results in FILE [disabled]
 
1502
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1503
  -n, --no-create         do not create output files
 
1504
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1505
 
 
1506
Installation directories:
 
1507
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1508
                          [$ac_default_prefix]
 
1509
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1510
                          [PREFIX]
 
1511
 
 
1512
By default, \`make install' will install all the files in
 
1513
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1514
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1515
for instance \`--prefix=\$HOME'.
 
1516
 
 
1517
For better control, use the options below.
 
1518
 
 
1519
Fine tuning of the installation directories:
 
1520
  --bindir=DIR            user executables [EPREFIX/bin]
 
1521
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1522
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1523
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1524
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1525
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1526
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1527
  --includedir=DIR        C header files [PREFIX/include]
 
1528
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1529
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1530
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1531
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1532
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1533
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1534
  --docdir=DIR            documentation root [DATAROOTDIR/doc/lighttpd]
 
1535
  --htmldir=DIR           html documentation [DOCDIR]
 
1536
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1537
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1538
  --psdir=DIR             ps documentation [DOCDIR]
 
1539
_ACEOF
 
1540
 
 
1541
  cat <<\_ACEOF
 
1542
 
 
1543
Program names:
 
1544
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1545
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1546
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1547
 
 
1548
System types:
 
1549
  --build=BUILD     configure for building on BUILD [guessed]
 
1550
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1551
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1552
_ACEOF
 
1553
fi
 
1554
 
 
1555
if test -n "$ac_init_help"; then
 
1556
  case $ac_init_help in
 
1557
     short | recursive ) echo "Configuration of lighttpd 1.4.26:";;
 
1558
   esac
 
1559
  cat <<\_ACEOF
 
1560
 
 
1561
Optional Features:
 
1562
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1563
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1564
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1565
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1566
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1567
  --disable-dependency-tracking  speeds up one-time build
 
1568
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1569
  --enable-static[=PKGS]  build static libraries [default=no]
 
1570
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1571
  --enable-fast-install[=PKGS]
 
1572
                          optimize for fast installation [default=yes]
 
1573
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1574
  --enable-lfs            Turn on Large File System (default)
 
1575
  --disable-ipv6          disable IPv6 support
 
1576
  --enable-extra-warnings enable extra warnings (gcc specific)
 
1577
 
 
1578
Optional Packages:
 
1579
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1580
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1581
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1582
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1583
                          both]
 
1584
  --with-mysql[=PATH]     Include MySQL support. PATH is the path to
 
1585
                          'mysql_config'
 
1586
  --with-ldap             enable LDAP support
 
1587
  --with-attr             enable extended attribute support
 
1588
  --with-valgrind         enable internal support for valgrind
 
1589
  --with-openssl[=DIR]    Include openssl support (default no)
 
1590
  --with-openssl-includes=DIR
 
1591
                          OpenSSL includes
 
1592
  --with-openssl-libs=DIR OpenSSL libraries
 
1593
  --with-kerberos5        use Kerberos5 support with OpenSSL
 
1594
  --with-pcre             Enable pcre support (default yes)
 
1595
  --with-zlib             Enable zlib support for mod_compress
 
1596
  --with-bzip2            Enable bzip2 support for mod_compress
 
1597
  --with-fam              fam/gamin for reducing number of stat() calls
 
1598
  --with-webdav-props     properties in mod_webdav
 
1599
  --with-webdav-locks     locks in mod_webdav
 
1600
  --with-gdbm             gdbm storage for mod_trigger_b4_dl
 
1601
  --with-memcache         memcached storage for mod_trigger_b4_dl
 
1602
  --with-lua              lua engine for mod_cml
 
1603
 
 
1604
Some influential environment variables:
 
1605
  CC          C compiler command
 
1606
  CFLAGS      C compiler flags
 
1607
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1608
              nonstandard directory <lib dir>
 
1609
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1610
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1611
              you have headers in a nonstandard directory <include dir>
 
1612
  CPP         C preprocessor
 
1613
  PKG_CONFIG  path to pkg-config utility
 
1614
  FAM_CFLAGS  C compiler flags for FAM, overriding pkg-config
 
1615
  FAM_LIBS    linker flags for FAM, overriding pkg-config
 
1616
  XML_CFLAGS  C compiler flags for XML, overriding pkg-config
 
1617
  XML_LIBS    linker flags for XML, overriding pkg-config
 
1618
  SQLITE_CFLAGS
 
1619
              C compiler flags for SQLITE, overriding pkg-config
 
1620
  SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
 
1621
  LUA_CFLAGS  C compiler flags for LUA, overriding pkg-config
 
1622
  LUA_LIBS    linker flags for LUA, overriding pkg-config
 
1623
 
 
1624
Use these variables to override the choices made by `configure' or to help
 
1625
it to find libraries and programs with nonstandard names/locations.
 
1626
 
 
1627
Report bugs to <contact@lighttpd.net>.
 
1628
_ACEOF
 
1629
ac_status=$?
 
1630
fi
 
1631
 
 
1632
if test "$ac_init_help" = "recursive"; then
 
1633
  # If there are subdirs, report their specific --help.
 
1634
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1635
    test -d "$ac_dir" ||
 
1636
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1637
      continue
 
1638
    ac_builddir=.
 
1639
 
 
1640
case "$ac_dir" in
 
1641
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1642
*)
 
1643
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1644
  # A ".." for each directory in $ac_dir_suffix.
 
1645
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1646
  case $ac_top_builddir_sub in
 
1647
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1648
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1649
  esac ;;
 
1650
esac
 
1651
ac_abs_top_builddir=$ac_pwd
 
1652
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1653
# for backward compatibility:
 
1654
ac_top_builddir=$ac_top_build_prefix
 
1655
 
 
1656
case $srcdir in
 
1657
  .)  # We are building in place.
 
1658
    ac_srcdir=.
 
1659
    ac_top_srcdir=$ac_top_builddir_sub
 
1660
    ac_abs_top_srcdir=$ac_pwd ;;
 
1661
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1662
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1663
    ac_top_srcdir=$srcdir
 
1664
    ac_abs_top_srcdir=$srcdir ;;
 
1665
  *) # Relative name.
 
1666
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1667
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1668
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1669
esac
 
1670
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1671
 
 
1672
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1673
    # Check for guested configure.
 
1674
    if test -f "$ac_srcdir/configure.gnu"; then
 
1675
      echo &&
 
1676
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1677
    elif test -f "$ac_srcdir/configure"; then
 
1678
      echo &&
 
1679
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1680
    else
 
1681
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1682
    fi || ac_status=$?
 
1683
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1684
  done
 
1685
fi
 
1686
 
 
1687
test -n "$ac_init_help" && exit $ac_status
 
1688
if $ac_init_version; then
 
1689
  cat <<\_ACEOF
 
1690
lighttpd configure 1.4.26
 
1691
generated by GNU Autoconf 2.65
 
1692
 
 
1693
Copyright (C) 2009 Free Software Foundation, Inc.
 
1694
This configure script is free software; the Free Software Foundation
 
1695
gives unlimited permission to copy, distribute and modify it.
 
1696
_ACEOF
 
1697
  exit
 
1698
fi
 
1699
 
 
1700
## ------------------------ ##
 
1701
## Autoconf initialization. ##
 
1702
## ------------------------ ##
 
1703
 
 
1704
# ac_fn_c_try_compile LINENO
 
1705
# --------------------------
 
1706
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1707
ac_fn_c_try_compile ()
 
1708
{
 
1709
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1710
  rm -f conftest.$ac_objext
 
1711
  if { { ac_try="$ac_compile"
 
1712
case "(($ac_try" in
 
1713
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1714
  *) ac_try_echo=$ac_try;;
 
1715
esac
 
1716
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1717
$as_echo "$ac_try_echo"; } >&5
 
1718
  (eval "$ac_compile") 2>conftest.err
 
1719
  ac_status=$?
 
1720
  if test -s conftest.err; then
 
1721
    grep -v '^ *+' conftest.err >conftest.er1
 
1722
    cat conftest.er1 >&5
 
1723
    mv -f conftest.er1 conftest.err
 
1724
  fi
 
1725
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1726
  test $ac_status = 0; } && {
 
1727
         test -z "$ac_c_werror_flag" ||
 
1728
         test ! -s conftest.err
 
1729
       } && test -s conftest.$ac_objext; then :
 
1730
  ac_retval=0
 
1731
else
 
1732
  $as_echo "$as_me: failed program was:" >&5
 
1733
sed 's/^/| /' conftest.$ac_ext >&5
 
1734
 
 
1735
        ac_retval=1
 
1736
fi
 
1737
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1738
  as_fn_set_status $ac_retval
 
1739
 
 
1740
} # ac_fn_c_try_compile
 
1741
 
 
1742
# ac_fn_c_try_cpp LINENO
 
1743
# ----------------------
 
1744
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1745
ac_fn_c_try_cpp ()
 
1746
{
 
1747
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1748
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1749
case "(($ac_try" in
 
1750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1751
  *) ac_try_echo=$ac_try;;
 
1752
esac
 
1753
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1754
$as_echo "$ac_try_echo"; } >&5
 
1755
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1756
  ac_status=$?
 
1757
  if test -s conftest.err; then
 
1758
    grep -v '^ *+' conftest.err >conftest.er1
 
1759
    cat conftest.er1 >&5
 
1760
    mv -f conftest.er1 conftest.err
 
1761
  fi
 
1762
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1763
  test $ac_status = 0; } >/dev/null && {
 
1764
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1765
         test ! -s conftest.err
 
1766
       }; then :
 
1767
  ac_retval=0
 
1768
else
 
1769
  $as_echo "$as_me: failed program was:" >&5
 
1770
sed 's/^/| /' conftest.$ac_ext >&5
 
1771
 
 
1772
    ac_retval=1
 
1773
fi
 
1774
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1775
  as_fn_set_status $ac_retval
 
1776
 
 
1777
} # ac_fn_c_try_cpp
 
1778
 
 
1779
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1780
# -------------------------------------------------------
 
1781
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1782
# the include files in INCLUDES and setting the cache variable VAR
 
1783
# accordingly.
 
1784
ac_fn_c_check_header_mongrel ()
 
1785
{
 
1786
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1787
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1788
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1789
$as_echo_n "checking for $2... " >&6; }
 
1790
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1791
  $as_echo_n "(cached) " >&6
 
1792
fi
 
1793
eval ac_res=\$$3
 
1794
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1795
$as_echo "$ac_res" >&6; }
 
1796
else
 
1797
  # Is the header compilable?
 
1798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1799
$as_echo_n "checking $2 usability... " >&6; }
 
1800
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1801
/* end confdefs.h.  */
 
1802
$4
 
1803
#include <$2>
 
1804
_ACEOF
 
1805
if ac_fn_c_try_compile "$LINENO"; then :
 
1806
  ac_header_compiler=yes
 
1807
else
 
1808
  ac_header_compiler=no
 
1809
fi
 
1810
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1812
$as_echo "$ac_header_compiler" >&6; }
 
1813
 
 
1814
# Is the header present?
 
1815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1816
$as_echo_n "checking $2 presence... " >&6; }
 
1817
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1818
/* end confdefs.h.  */
 
1819
#include <$2>
 
1820
_ACEOF
 
1821
if ac_fn_c_try_cpp "$LINENO"; then :
 
1822
  ac_header_preproc=yes
 
1823
else
 
1824
  ac_header_preproc=no
 
1825
fi
 
1826
rm -f conftest.err conftest.$ac_ext
 
1827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1828
$as_echo "$ac_header_preproc" >&6; }
 
1829
 
 
1830
# So?  What about this header?
 
1831
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1832
  yes:no: )
 
1833
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1834
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1835
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1836
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1837
    ;;
 
1838
  no:yes:* )
 
1839
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1840
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1841
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1842
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1843
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1844
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1845
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1846
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1847
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1848
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1849
( cat <<\_ASBOX
 
1850
## ----------------------------------- ##
 
1851
## Report this to contact@lighttpd.net ##
 
1852
## ----------------------------------- ##
 
1853
_ASBOX
 
1854
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1855
    ;;
 
1856
esac
 
1857
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1858
$as_echo_n "checking for $2... " >&6; }
 
1859
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1860
  $as_echo_n "(cached) " >&6
 
1861
else
 
1862
  eval "$3=\$ac_header_compiler"
 
1863
fi
 
1864
eval ac_res=\$$3
 
1865
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1866
$as_echo "$ac_res" >&6; }
 
1867
fi
 
1868
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1869
 
 
1870
} # ac_fn_c_check_header_mongrel
 
1871
 
 
1872
# ac_fn_c_try_run LINENO
 
1873
# ----------------------
 
1874
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1875
# that executables *can* be run.
 
1876
ac_fn_c_try_run ()
 
1877
{
 
1878
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1879
  if { { ac_try="$ac_link"
 
1880
case "(($ac_try" in
 
1881
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1882
  *) ac_try_echo=$ac_try;;
 
1883
esac
 
1884
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1885
$as_echo "$ac_try_echo"; } >&5
 
1886
  (eval "$ac_link") 2>&5
 
1887
  ac_status=$?
 
1888
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1889
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1890
  { { case "(($ac_try" in
 
1891
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1892
  *) ac_try_echo=$ac_try;;
 
1893
esac
 
1894
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1895
$as_echo "$ac_try_echo"; } >&5
 
1896
  (eval "$ac_try") 2>&5
 
1897
  ac_status=$?
 
1898
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1899
  test $ac_status = 0; }; }; then :
 
1900
  ac_retval=0
 
1901
else
 
1902
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1903
       $as_echo "$as_me: failed program was:" >&5
 
1904
sed 's/^/| /' conftest.$ac_ext >&5
 
1905
 
 
1906
       ac_retval=$ac_status
 
1907
fi
 
1908
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1909
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1910
  as_fn_set_status $ac_retval
 
1911
 
 
1912
} # ac_fn_c_try_run
 
1913
 
 
1914
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1915
# -------------------------------------------------------
 
1916
# Tests whether HEADER exists and can be compiled using the include files in
 
1917
# INCLUDES, setting the cache variable VAR accordingly.
 
1918
ac_fn_c_check_header_compile ()
 
1919
{
 
1920
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1921
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1922
$as_echo_n "checking for $2... " >&6; }
 
1923
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1924
  $as_echo_n "(cached) " >&6
 
1925
else
 
1926
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1927
/* end confdefs.h.  */
 
1928
$4
 
1929
#include <$2>
 
1930
_ACEOF
 
1931
if ac_fn_c_try_compile "$LINENO"; then :
 
1932
  eval "$3=yes"
 
1933
else
 
1934
  eval "$3=no"
 
1935
fi
 
1936
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1937
fi
 
1938
eval ac_res=\$$3
 
1939
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1940
$as_echo "$ac_res" >&6; }
 
1941
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1942
 
 
1943
} # ac_fn_c_check_header_compile
 
1944
 
 
1945
# ac_fn_c_try_link LINENO
 
1946
# -----------------------
 
1947
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1948
ac_fn_c_try_link ()
 
1949
{
 
1950
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1951
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1952
  if { { ac_try="$ac_link"
 
1953
case "(($ac_try" in
 
1954
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1955
  *) ac_try_echo=$ac_try;;
 
1956
esac
 
1957
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1958
$as_echo "$ac_try_echo"; } >&5
 
1959
  (eval "$ac_link") 2>conftest.err
 
1960
  ac_status=$?
 
1961
  if test -s conftest.err; then
 
1962
    grep -v '^ *+' conftest.err >conftest.er1
 
1963
    cat conftest.er1 >&5
 
1964
    mv -f conftest.er1 conftest.err
 
1965
  fi
 
1966
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1967
  test $ac_status = 0; } && {
 
1968
         test -z "$ac_c_werror_flag" ||
 
1969
         test ! -s conftest.err
 
1970
       } && test -s conftest$ac_exeext && {
 
1971
         test "$cross_compiling" = yes ||
 
1972
         $as_test_x conftest$ac_exeext
 
1973
       }; then :
 
1974
  ac_retval=0
 
1975
else
 
1976
  $as_echo "$as_me: failed program was:" >&5
 
1977
sed 's/^/| /' conftest.$ac_ext >&5
 
1978
 
 
1979
        ac_retval=1
 
1980
fi
 
1981
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1982
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1983
  # interfere with the next link command; also delete a directory that is
 
1984
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1985
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1986
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1987
  as_fn_set_status $ac_retval
 
1988
 
 
1989
} # ac_fn_c_try_link
 
1990
 
 
1991
# ac_fn_c_check_func LINENO FUNC VAR
 
1992
# ----------------------------------
 
1993
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1994
ac_fn_c_check_func ()
 
1995
{
 
1996
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1997
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1998
$as_echo_n "checking for $2... " >&6; }
 
1999
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2000
  $as_echo_n "(cached) " >&6
 
2001
else
 
2002
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2003
/* end confdefs.h.  */
 
2004
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2005
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2006
#define $2 innocuous_$2
 
2007
 
 
2008
/* System header to define __stub macros and hopefully few prototypes,
 
2009
    which can conflict with char $2 (); below.
 
2010
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2011
    <limits.h> exists even on freestanding compilers.  */
 
2012
 
 
2013
#ifdef __STDC__
 
2014
# include <limits.h>
 
2015
#else
 
2016
# include <assert.h>
 
2017
#endif
 
2018
 
 
2019
#undef $2
 
2020
 
 
2021
/* Override any GCC internal prototype to avoid an error.
 
2022
   Use char because int might match the return type of a GCC
 
2023
   builtin and then its argument prototype would still apply.  */
 
2024
#ifdef __cplusplus
 
2025
extern "C"
 
2026
#endif
 
2027
char $2 ();
 
2028
/* The GNU C library defines this for functions which it implements
 
2029
    to always fail with ENOSYS.  Some functions are actually named
 
2030
    something starting with __ and the normal name is an alias.  */
 
2031
#if defined __stub_$2 || defined __stub___$2
 
2032
choke me
 
2033
#endif
 
2034
 
 
2035
int
 
2036
main ()
 
2037
{
 
2038
return $2 ();
 
2039
  ;
 
2040
  return 0;
 
2041
}
 
2042
_ACEOF
 
2043
if ac_fn_c_try_link "$LINENO"; then :
 
2044
  eval "$3=yes"
 
2045
else
 
2046
  eval "$3=no"
 
2047
fi
 
2048
rm -f core conftest.err conftest.$ac_objext \
 
2049
    conftest$ac_exeext conftest.$ac_ext
 
2050
fi
 
2051
eval ac_res=\$$3
 
2052
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2053
$as_echo "$ac_res" >&6; }
 
2054
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2055
 
 
2056
} # ac_fn_c_check_func
 
2057
 
 
2058
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2059
# -------------------------------------------
 
2060
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2061
# variable VAR accordingly.
 
2062
ac_fn_c_check_type ()
 
2063
{
 
2064
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2065
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2066
$as_echo_n "checking for $2... " >&6; }
 
2067
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2068
  $as_echo_n "(cached) " >&6
 
2069
else
 
2070
  eval "$3=no"
 
2071
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2072
/* end confdefs.h.  */
 
2073
$4
 
2074
int
 
2075
main ()
 
2076
{
 
2077
if (sizeof ($2))
 
2078
         return 0;
 
2079
  ;
 
2080
  return 0;
 
2081
}
 
2082
_ACEOF
 
2083
if ac_fn_c_try_compile "$LINENO"; then :
 
2084
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2085
/* end confdefs.h.  */
 
2086
$4
 
2087
int
 
2088
main ()
 
2089
{
 
2090
if (sizeof (($2)))
 
2091
            return 0;
 
2092
  ;
 
2093
  return 0;
 
2094
}
 
2095
_ACEOF
 
2096
if ac_fn_c_try_compile "$LINENO"; then :
 
2097
 
 
2098
else
 
2099
  eval "$3=yes"
 
2100
fi
 
2101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2102
fi
 
2103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2104
fi
 
2105
eval ac_res=\$$3
 
2106
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2107
$as_echo "$ac_res" >&6; }
 
2108
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2109
 
 
2110
} # ac_fn_c_check_type
 
2111
 
 
2112
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 
2113
# ----------------------------------------------------
 
2114
# Tries to find if the field MEMBER exists in type AGGR, after including
 
2115
# INCLUDES, setting cache variable VAR accordingly.
 
2116
ac_fn_c_check_member ()
 
2117
{
 
2118
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2119
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 
2120
$as_echo_n "checking for $2.$3... " >&6; }
 
2121
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2122
  $as_echo_n "(cached) " >&6
 
2123
else
 
2124
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2125
/* end confdefs.h.  */
 
2126
$5
 
2127
int
 
2128
main ()
 
2129
{
 
2130
static $2 ac_aggr;
 
2131
if (ac_aggr.$3)
 
2132
return 0;
 
2133
  ;
 
2134
  return 0;
 
2135
}
 
2136
_ACEOF
 
2137
if ac_fn_c_try_compile "$LINENO"; then :
 
2138
  eval "$4=yes"
 
2139
else
 
2140
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2141
/* end confdefs.h.  */
 
2142
$5
 
2143
int
 
2144
main ()
 
2145
{
 
2146
static $2 ac_aggr;
 
2147
if (sizeof ac_aggr.$3)
 
2148
return 0;
 
2149
  ;
 
2150
  return 0;
 
2151
}
 
2152
_ACEOF
 
2153
if ac_fn_c_try_compile "$LINENO"; then :
 
2154
  eval "$4=yes"
 
2155
else
 
2156
  eval "$4=no"
 
2157
fi
 
2158
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2159
fi
 
2160
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2161
fi
 
2162
eval ac_res=\$$4
 
2163
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2164
$as_echo "$ac_res" >&6; }
 
2165
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2166
 
 
2167
} # ac_fn_c_check_member
 
2168
 
 
2169
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 
2170
# --------------------------------------------
 
2171
# Tries to find the compile-time value of EXPR in a program that includes
 
2172
# INCLUDES, setting VAR accordingly. Returns whether the value could be
 
2173
# computed
 
2174
ac_fn_c_compute_int ()
 
2175
{
 
2176
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2177
  if test "$cross_compiling" = yes; then
 
2178
    # Depending upon the size, compute the lo and hi bounds.
 
2179
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2180
/* end confdefs.h.  */
 
2181
$4
 
2182
int
 
2183
main ()
 
2184
{
 
2185
static int test_array [1 - 2 * !(($2) >= 0)];
 
2186
test_array [0] = 0
 
2187
 
 
2188
  ;
 
2189
  return 0;
 
2190
}
 
2191
_ACEOF
 
2192
if ac_fn_c_try_compile "$LINENO"; then :
 
2193
  ac_lo=0 ac_mid=0
 
2194
  while :; do
 
2195
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2196
/* end confdefs.h.  */
 
2197
$4
 
2198
int
 
2199
main ()
 
2200
{
 
2201
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2202
test_array [0] = 0
 
2203
 
 
2204
  ;
 
2205
  return 0;
 
2206
}
 
2207
_ACEOF
 
2208
if ac_fn_c_try_compile "$LINENO"; then :
 
2209
  ac_hi=$ac_mid; break
 
2210
else
 
2211
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 
2212
                        if test $ac_lo -le $ac_mid; then
 
2213
                          ac_lo= ac_hi=
 
2214
                          break
 
2215
                        fi
 
2216
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 
2217
fi
 
2218
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2219
  done
 
2220
else
 
2221
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2222
/* end confdefs.h.  */
 
2223
$4
 
2224
int
 
2225
main ()
 
2226
{
 
2227
static int test_array [1 - 2 * !(($2) < 0)];
 
2228
test_array [0] = 0
 
2229
 
 
2230
  ;
 
2231
  return 0;
 
2232
}
 
2233
_ACEOF
 
2234
if ac_fn_c_try_compile "$LINENO"; then :
 
2235
  ac_hi=-1 ac_mid=-1
 
2236
  while :; do
 
2237
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2238
/* end confdefs.h.  */
 
2239
$4
 
2240
int
 
2241
main ()
 
2242
{
 
2243
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 
2244
test_array [0] = 0
 
2245
 
 
2246
  ;
 
2247
  return 0;
 
2248
}
 
2249
_ACEOF
 
2250
if ac_fn_c_try_compile "$LINENO"; then :
 
2251
  ac_lo=$ac_mid; break
 
2252
else
 
2253
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 
2254
                        if test $ac_mid -le $ac_hi; then
 
2255
                          ac_lo= ac_hi=
 
2256
                          break
 
2257
                        fi
 
2258
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 
2259
fi
 
2260
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2261
  done
 
2262
else
 
2263
  ac_lo= ac_hi=
 
2264
fi
 
2265
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2266
fi
 
2267
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2268
# Binary search between lo and hi bounds.
 
2269
while test "x$ac_lo" != "x$ac_hi"; do
 
2270
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 
2271
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2272
/* end confdefs.h.  */
 
2273
$4
 
2274
int
 
2275
main ()
 
2276
{
 
2277
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2278
test_array [0] = 0
 
2279
 
 
2280
  ;
 
2281
  return 0;
 
2282
}
 
2283
_ACEOF
 
2284
if ac_fn_c_try_compile "$LINENO"; then :
 
2285
  ac_hi=$ac_mid
 
2286
else
 
2287
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 
2288
fi
 
2289
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2290
done
 
2291
case $ac_lo in #((
 
2292
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 
2293
'') ac_retval=1 ;;
 
2294
esac
 
2295
  else
 
2296
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2297
/* end confdefs.h.  */
 
2298
$4
 
2299
static long int longval () { return $2; }
 
2300
static unsigned long int ulongval () { return $2; }
 
2301
#include <stdio.h>
 
2302
#include <stdlib.h>
 
2303
int
 
2304
main ()
 
2305
{
 
2306
 
 
2307
  FILE *f = fopen ("conftest.val", "w");
 
2308
  if (! f)
 
2309
    return 1;
 
2310
  if (($2) < 0)
 
2311
    {
 
2312
      long int i = longval ();
 
2313
      if (i != ($2))
 
2314
        return 1;
 
2315
      fprintf (f, "%ld", i);
 
2316
    }
 
2317
  else
 
2318
    {
 
2319
      unsigned long int i = ulongval ();
 
2320
      if (i != ($2))
 
2321
        return 1;
 
2322
      fprintf (f, "%lu", i);
 
2323
    }
 
2324
  /* Do not output a trailing newline, as this causes \r\n confusion
 
2325
     on some platforms.  */
 
2326
  return ferror (f) || fclose (f) != 0;
 
2327
 
 
2328
  ;
 
2329
  return 0;
 
2330
}
 
2331
_ACEOF
 
2332
if ac_fn_c_try_run "$LINENO"; then :
 
2333
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 
2334
else
 
2335
  ac_retval=1
 
2336
fi
 
2337
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
2338
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
2339
rm -f conftest.val
 
2340
 
 
2341
  fi
 
2342
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2343
  as_fn_set_status $ac_retval
 
2344
 
 
2345
} # ac_fn_c_compute_int
 
2346
cat >config.log <<_ACEOF
 
2347
This file contains any messages produced by compilers while
 
2348
running configure, to aid debugging if configure makes a mistake.
 
2349
 
 
2350
It was created by lighttpd $as_me 1.4.26, which was
 
2351
generated by GNU Autoconf 2.65.  Invocation command line was
 
2352
 
 
2353
  $ $0 $@
 
2354
 
 
2355
_ACEOF
 
2356
exec 5>>config.log
 
2357
{
 
2358
cat <<_ASUNAME
 
2359
## --------- ##
 
2360
## Platform. ##
 
2361
## --------- ##
 
2362
 
 
2363
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2364
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2365
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2366
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2367
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2368
 
 
2369
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2370
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2371
 
 
2372
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2373
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2374
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2375
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2376
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2377
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2378
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2379
 
 
2380
_ASUNAME
 
2381
 
 
2382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2383
for as_dir in $PATH
 
2384
do
 
2385
  IFS=$as_save_IFS
 
2386
  test -z "$as_dir" && as_dir=.
 
2387
    $as_echo "PATH: $as_dir"
 
2388
  done
 
2389
IFS=$as_save_IFS
 
2390
 
 
2391
} >&5
 
2392
 
 
2393
cat >&5 <<_ACEOF
 
2394
 
 
2395
 
 
2396
## ----------- ##
 
2397
## Core tests. ##
 
2398
## ----------- ##
 
2399
 
 
2400
_ACEOF
 
2401
 
 
2402
 
 
2403
# Keep a trace of the command line.
 
2404
# Strip out --no-create and --no-recursion so they do not pile up.
 
2405
# Strip out --silent because we don't want to record it for future runs.
 
2406
# Also quote any args containing shell meta-characters.
 
2407
# Make two passes to allow for proper duplicate-argument suppression.
 
2408
ac_configure_args=
 
2409
ac_configure_args0=
 
2410
ac_configure_args1=
 
2411
ac_must_keep_next=false
 
2412
for ac_pass in 1 2
 
2413
do
 
2414
  for ac_arg
 
2415
  do
 
2416
    case $ac_arg in
 
2417
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2418
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2419
    | -silent | --silent | --silen | --sile | --sil)
 
2420
      continue ;;
 
2421
    *\'*)
 
2422
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2423
    esac
 
2424
    case $ac_pass in
 
2425
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2426
    2)
 
2427
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2428
      if test $ac_must_keep_next = true; then
 
2429
        ac_must_keep_next=false # Got value, back to normal.
 
2430
      else
 
2431
        case $ac_arg in
 
2432
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2433
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2434
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2435
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2436
            case "$ac_configure_args0 " in
 
2437
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2438
            esac
 
2439
            ;;
 
2440
          -* ) ac_must_keep_next=true ;;
 
2441
        esac
 
2442
      fi
 
2443
      as_fn_append ac_configure_args " '$ac_arg'"
 
2444
      ;;
 
2445
    esac
 
2446
  done
 
2447
done
 
2448
{ ac_configure_args0=; unset ac_configure_args0;}
 
2449
{ ac_configure_args1=; unset ac_configure_args1;}
 
2450
 
 
2451
# When interrupted or exit'd, cleanup temporary files, and complete
 
2452
# config.log.  We remove comments because anyway the quotes in there
 
2453
# would cause problems or look ugly.
 
2454
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2455
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2456
trap 'exit_status=$?
 
2457
  # Save into config.log some information that might help in debugging.
 
2458
  {
 
2459
    echo
 
2460
 
 
2461
    cat <<\_ASBOX
 
2462
## ---------------- ##
 
2463
## Cache variables. ##
 
2464
## ---------------- ##
 
2465
_ASBOX
 
2466
    echo
 
2467
    # The following way of writing the cache mishandles newlines in values,
 
2468
(
 
2469
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2470
    eval ac_val=\$$ac_var
 
2471
    case $ac_val in #(
 
2472
    *${as_nl}*)
 
2473
      case $ac_var in #(
 
2474
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2475
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2476
      esac
 
2477
      case $ac_var in #(
 
2478
      _ | IFS | as_nl) ;; #(
 
2479
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2480
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2481
      esac ;;
 
2482
    esac
 
2483
  done
 
2484
  (set) 2>&1 |
 
2485
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2486
    *${as_nl}ac_space=\ *)
 
2487
      sed -n \
 
2488
        "s/'\''/'\''\\\\'\'''\''/g;
 
2489
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2490
      ;; #(
 
2491
    *)
 
2492
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2493
      ;;
 
2494
    esac |
 
2495
    sort
 
2496
)
 
2497
    echo
 
2498
 
 
2499
    cat <<\_ASBOX
 
2500
## ----------------- ##
 
2501
## Output variables. ##
 
2502
## ----------------- ##
 
2503
_ASBOX
 
2504
    echo
 
2505
    for ac_var in $ac_subst_vars
 
2506
    do
 
2507
      eval ac_val=\$$ac_var
 
2508
      case $ac_val in
 
2509
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2510
      esac
 
2511
      $as_echo "$ac_var='\''$ac_val'\''"
 
2512
    done | sort
 
2513
    echo
 
2514
 
 
2515
    if test -n "$ac_subst_files"; then
 
2516
      cat <<\_ASBOX
 
2517
## ------------------- ##
 
2518
## File substitutions. ##
 
2519
## ------------------- ##
 
2520
_ASBOX
 
2521
      echo
 
2522
      for ac_var in $ac_subst_files
 
2523
      do
 
2524
        eval ac_val=\$$ac_var
 
2525
        case $ac_val in
 
2526
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2527
        esac
 
2528
        $as_echo "$ac_var='\''$ac_val'\''"
 
2529
      done | sort
 
2530
      echo
 
2531
    fi
 
2532
 
 
2533
    if test -s confdefs.h; then
 
2534
      cat <<\_ASBOX
 
2535
## ----------- ##
 
2536
## confdefs.h. ##
 
2537
## ----------- ##
 
2538
_ASBOX
 
2539
      echo
 
2540
      cat confdefs.h
 
2541
      echo
 
2542
    fi
 
2543
    test "$ac_signal" != 0 &&
 
2544
      $as_echo "$as_me: caught signal $ac_signal"
 
2545
    $as_echo "$as_me: exit $exit_status"
 
2546
  } >&5
 
2547
  rm -f core *.core core.conftest.* &&
 
2548
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2549
    exit $exit_status
 
2550
' 0
 
2551
for ac_signal in 1 2 13 15; do
 
2552
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2553
done
 
2554
ac_signal=0
 
2555
 
 
2556
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2557
rm -f -r conftest* confdefs.h
 
2558
 
 
2559
$as_echo "/* confdefs.h */" > confdefs.h
 
2560
 
 
2561
# Predefined preprocessor variables.
 
2562
 
 
2563
cat >>confdefs.h <<_ACEOF
 
2564
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2565
_ACEOF
 
2566
 
 
2567
cat >>confdefs.h <<_ACEOF
 
2568
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2569
_ACEOF
 
2570
 
 
2571
cat >>confdefs.h <<_ACEOF
 
2572
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2573
_ACEOF
 
2574
 
 
2575
cat >>confdefs.h <<_ACEOF
 
2576
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2577
_ACEOF
 
2578
 
 
2579
cat >>confdefs.h <<_ACEOF
 
2580
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2581
_ACEOF
 
2582
 
 
2583
cat >>confdefs.h <<_ACEOF
 
2584
#define PACKAGE_URL "$PACKAGE_URL"
 
2585
_ACEOF
 
2586
 
 
2587
 
 
2588
# Let the site file select an alternate cache file if it wants to.
 
2589
# Prefer an explicitly selected file to automatically selected ones.
 
2590
ac_site_file1=NONE
 
2591
ac_site_file2=NONE
 
2592
if test -n "$CONFIG_SITE"; then
 
2593
  ac_site_file1=$CONFIG_SITE
 
2594
elif test "x$prefix" != xNONE; then
 
2595
  ac_site_file1=$prefix/share/config.site
 
2596
  ac_site_file2=$prefix/etc/config.site
 
2597
else
 
2598
  ac_site_file1=$ac_default_prefix/share/config.site
 
2599
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2600
fi
 
2601
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2602
do
 
2603
  test "x$ac_site_file" = xNONE && continue
 
2604
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2605
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2606
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2607
    sed 's/^/| /' "$ac_site_file" >&5
 
2608
    . "$ac_site_file"
 
2609
  fi
 
2610
done
 
2611
 
 
2612
if test -r "$cache_file"; then
 
2613
  # Some versions of bash will fail to source /dev/null (special files
 
2614
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2615
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2616
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2617
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2618
    case $cache_file in
 
2619
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2620
      *)                      . "./$cache_file";;
 
2621
    esac
 
2622
  fi
 
2623
else
 
2624
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2625
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2626
  >$cache_file
 
2627
fi
 
2628
 
 
2629
# Check that the precious variables saved in the cache have kept the same
 
2630
# value.
 
2631
ac_cache_corrupted=false
 
2632
for ac_var in $ac_precious_vars; do
 
2633
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2634
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2635
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2636
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2637
  case $ac_old_set,$ac_new_set in
 
2638
    set,)
 
2639
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2640
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2641
      ac_cache_corrupted=: ;;
 
2642
    ,set)
 
2643
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2644
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2645
      ac_cache_corrupted=: ;;
 
2646
    ,);;
 
2647
    *)
 
2648
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2649
        # differences in whitespace do not lead to failure.
 
2650
        ac_old_val_w=`echo x $ac_old_val`
 
2651
        ac_new_val_w=`echo x $ac_new_val`
 
2652
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2653
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2654
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2655
          ac_cache_corrupted=:
 
2656
        else
 
2657
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2658
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2659
          eval $ac_var=\$ac_old_val
 
2660
        fi
 
2661
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2662
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2663
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2664
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2665
      fi;;
 
2666
  esac
 
2667
  # Pass precious variables to config.status.
 
2668
  if test "$ac_new_set" = set; then
 
2669
    case $ac_new_val in
 
2670
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2671
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2672
    esac
 
2673
    case " $ac_configure_args " in
 
2674
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2675
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2676
    esac
 
2677
  fi
 
2678
done
 
2679
if $ac_cache_corrupted; then
 
2680
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2681
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2682
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2683
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2684
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2685
fi
 
2686
## -------------------- ##
 
2687
## Main body of script. ##
 
2688
## -------------------- ##
 
2689
 
 
2690
ac_ext=c
 
2691
ac_cpp='$CPP $CPPFLAGS'
 
2692
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2693
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2694
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2695
 
 
2696
 
 
2697
 
 
2698
ac_config_headers="$ac_config_headers config.h"
 
2699
 
 
2700
 
 
2701
 
 
2702
ac_aux_dir=
 
2703
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2704
  for ac_t in install-sh install.sh shtool; do
 
2705
    if test -f "$ac_dir/$ac_t"; then
 
2706
      ac_aux_dir=$ac_dir
 
2707
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2708
      break 2
 
2709
    fi
 
2710
  done
 
2711
done
 
2712
if test -z "$ac_aux_dir"; then
 
2713
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2714
fi
 
2715
 
 
2716
# These three variables are undocumented and unsupported,
 
2717
# and are intended to be withdrawn in a future Autoconf release.
 
2718
# They can cause serious problems if a builder's source tree is in a directory
 
2719
# whose full name contains unusual characters.
 
2720
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2721
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2722
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2723
 
 
2724
 
 
2725
# Make sure we can run config.sub.
 
2726
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2727
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2728
 
 
2729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2730
$as_echo_n "checking build system type... " >&6; }
 
2731
if test "${ac_cv_build+set}" = set; then :
 
2732
  $as_echo_n "(cached) " >&6
 
2733
else
 
2734
  ac_build_alias=$build_alias
 
2735
test "x$ac_build_alias" = x &&
 
2736
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2737
test "x$ac_build_alias" = x &&
 
2738
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
2739
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2740
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2741
 
 
2742
fi
 
2743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2744
$as_echo "$ac_cv_build" >&6; }
 
2745
case $ac_cv_build in
 
2746
*-*-*) ;;
 
2747
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
2748
esac
 
2749
build=$ac_cv_build
 
2750
ac_save_IFS=$IFS; IFS='-'
 
2751
set x $ac_cv_build
 
2752
shift
 
2753
build_cpu=$1
 
2754
build_vendor=$2
 
2755
shift; shift
 
2756
# Remember, the first character of IFS is used to create $*,
 
2757
# except with old shells:
 
2758
build_os=$*
 
2759
IFS=$ac_save_IFS
 
2760
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2761
 
 
2762
 
 
2763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2764
$as_echo_n "checking host system type... " >&6; }
 
2765
if test "${ac_cv_host+set}" = set; then :
 
2766
  $as_echo_n "(cached) " >&6
 
2767
else
 
2768
  if test "x$host_alias" = x; then
 
2769
  ac_cv_host=$ac_cv_build
 
2770
else
 
2771
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2772
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2773
fi
 
2774
 
 
2775
fi
 
2776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2777
$as_echo "$ac_cv_host" >&6; }
 
2778
case $ac_cv_host in
 
2779
*-*-*) ;;
 
2780
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
2781
esac
 
2782
host=$ac_cv_host
 
2783
ac_save_IFS=$IFS; IFS='-'
 
2784
set x $ac_cv_host
 
2785
shift
 
2786
host_cpu=$1
 
2787
host_vendor=$2
 
2788
shift; shift
 
2789
# Remember, the first character of IFS is used to create $*,
 
2790
# except with old shells:
 
2791
host_os=$*
 
2792
IFS=$ac_save_IFS
 
2793
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2794
 
 
2795
 
 
2796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 
2797
$as_echo_n "checking target system type... " >&6; }
 
2798
if test "${ac_cv_target+set}" = set; then :
 
2799
  $as_echo_n "(cached) " >&6
 
2800
else
 
2801
  if test "x$target_alias" = x; then
 
2802
  ac_cv_target=$ac_cv_host
 
2803
else
 
2804
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2805
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 
2806
fi
 
2807
 
 
2808
fi
 
2809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
 
2810
$as_echo "$ac_cv_target" >&6; }
 
2811
case $ac_cv_target in
 
2812
*-*-*) ;;
 
2813
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
 
2814
esac
 
2815
target=$ac_cv_target
 
2816
ac_save_IFS=$IFS; IFS='-'
 
2817
set x $ac_cv_target
 
2818
shift
 
2819
target_cpu=$1
 
2820
target_vendor=$2
 
2821
shift; shift
 
2822
# Remember, the first character of IFS is used to create $*,
 
2823
# except with old shells:
 
2824
target_os=$*
 
2825
IFS=$ac_save_IFS
 
2826
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
2827
 
 
2828
 
 
2829
# The aliases save the names the user supplied, while $host etc.
 
2830
# will get canonicalized.
 
2831
test -n "$target_alias" &&
 
2832
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2833
    NONENONEs,x,x, &&
 
2834
  program_prefix=${target_alias}-
 
2835
 
 
2836
am__api_version='1.11'
 
2837
 
 
2838
# Find a good install program.  We prefer a C program (faster),
 
2839
# so one script is as good as another.  But avoid the broken or
 
2840
# incompatible versions:
 
2841
# SysV /etc/install, /usr/sbin/install
 
2842
# SunOS /usr/etc/install
 
2843
# IRIX /sbin/install
 
2844
# AIX /bin/install
 
2845
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2846
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2847
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2848
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2849
# OS/2's system install, which has a completely different semantic
 
2850
# ./install, which can be erroneously created by make from ./install.sh.
 
2851
# Reject install programs that cannot install multiple files.
 
2852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2853
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2854
if test -z "$INSTALL"; then
 
2855
if test "${ac_cv_path_install+set}" = set; then :
 
2856
  $as_echo_n "(cached) " >&6
 
2857
else
 
2858
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2859
for as_dir in $PATH
 
2860
do
 
2861
  IFS=$as_save_IFS
 
2862
  test -z "$as_dir" && as_dir=.
 
2863
    # Account for people who put trailing slashes in PATH elements.
 
2864
case $as_dir/ in #((
 
2865
  ./ | .// | /[cC]/* | \
 
2866
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2867
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2868
  /usr/ucb/* ) ;;
 
2869
  *)
 
2870
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2871
    # Don't use installbsd from OSF since it installs stuff as root
 
2872
    # by default.
 
2873
    for ac_prog in ginstall scoinst install; do
 
2874
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2875
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2876
          if test $ac_prog = install &&
 
2877
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2878
            # AIX install.  It has an incompatible calling convention.
 
2879
            :
 
2880
          elif test $ac_prog = install &&
 
2881
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2882
            # program-specific install script used by HP pwplus--don't use.
 
2883
            :
 
2884
          else
 
2885
            rm -rf conftest.one conftest.two conftest.dir
 
2886
            echo one > conftest.one
 
2887
            echo two > conftest.two
 
2888
            mkdir conftest.dir
 
2889
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2890
              test -s conftest.one && test -s conftest.two &&
 
2891
              test -s conftest.dir/conftest.one &&
 
2892
              test -s conftest.dir/conftest.two
 
2893
            then
 
2894
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2895
              break 3
 
2896
            fi
 
2897
          fi
 
2898
        fi
 
2899
      done
 
2900
    done
 
2901
    ;;
 
2902
esac
 
2903
 
 
2904
  done
 
2905
IFS=$as_save_IFS
 
2906
 
 
2907
rm -rf conftest.one conftest.two conftest.dir
 
2908
 
 
2909
fi
 
2910
  if test "${ac_cv_path_install+set}" = set; then
 
2911
    INSTALL=$ac_cv_path_install
 
2912
  else
 
2913
    # As a last resort, use the slow shell script.  Don't cache a
 
2914
    # value for INSTALL within a source directory, because that will
 
2915
    # break other packages using the cache if that directory is
 
2916
    # removed, or if the value is a relative name.
 
2917
    INSTALL=$ac_install_sh
 
2918
  fi
 
2919
fi
 
2920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2921
$as_echo "$INSTALL" >&6; }
 
2922
 
 
2923
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2924
# It thinks the first close brace ends the variable substitution.
 
2925
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2926
 
 
2927
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2928
 
 
2929
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2930
 
 
2931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2932
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2933
# Just in case
 
2934
sleep 1
 
2935
echo timestamp > conftest.file
 
2936
# Reject unsafe characters in $srcdir or the absolute working directory
 
2937
# name.  Accept space and tab only in the latter.
 
2938
am_lf='
 
2939
'
 
2940
case `pwd` in
 
2941
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2942
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
2943
esac
 
2944
case $srcdir in
 
2945
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2946
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2947
esac
 
2948
 
 
2949
# Do `set' in a subshell so we don't clobber the current shell's
 
2950
# arguments.  Must try -L first in case configure is actually a
 
2951
# symlink; some systems play weird games with the mod time of symlinks
 
2952
# (eg FreeBSD returns the mod time of the symlink's containing
 
2953
# directory).
 
2954
if (
 
2955
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2956
   if test "$*" = "X"; then
 
2957
      # -L didn't work.
 
2958
      set X `ls -t "$srcdir/configure" conftest.file`
 
2959
   fi
 
2960
   rm -f conftest.file
 
2961
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2962
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2963
 
 
2964
      # If neither matched, then we have a broken ls.  This can happen
 
2965
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2966
      # broken ls alias from the environment.  This has actually
 
2967
      # happened.  Such a system could not be considered "sane".
 
2968
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
2969
alias in your environment" "$LINENO" 5
 
2970
   fi
 
2971
 
 
2972
   test "$2" = conftest.file
 
2973
   )
 
2974
then
 
2975
   # Ok.
 
2976
   :
 
2977
else
 
2978
   as_fn_error "newly created file is older than distributed files!
 
2979
Check your system clock" "$LINENO" 5
 
2980
fi
 
2981
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2982
$as_echo "yes" >&6; }
 
2983
test "$program_prefix" != NONE &&
 
2984
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2985
# Use a double $ so make ignores it.
 
2986
test "$program_suffix" != NONE &&
 
2987
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2988
# Double any \ or $.
 
2989
# By default was `s,x,x', remove it if useless.
 
2990
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2991
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2992
 
 
2993
# expand $ac_aux_dir to an absolute path
 
2994
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2995
 
 
2996
if test x"${MISSING+set}" != xset; then
 
2997
  case $am_aux_dir in
 
2998
  *\ * | *\     *)
 
2999
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
3000
  *)
 
3001
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
3002
  esac
 
3003
fi
 
3004
# Use eval to expand $SHELL
 
3005
if eval "$MISSING --run true"; then
 
3006
  am_missing_run="$MISSING --run "
 
3007
else
 
3008
  am_missing_run=
 
3009
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
3010
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
3011
fi
 
3012
 
 
3013
if test x"${install_sh}" != xset; then
 
3014
  case $am_aux_dir in
 
3015
  *\ * | *\     *)
 
3016
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
3017
  *)
 
3018
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
3019
  esac
 
3020
fi
 
3021
 
 
3022
# Installed binaries are usually stripped using `strip' when the user
 
3023
# run `make install-strip'.  However `strip' might not be the right
 
3024
# tool to use in cross-compilation environments, therefore Automake
 
3025
# will honor the `STRIP' environment variable to overrule this program.
 
3026
if test "$cross_compiling" != no; then
 
3027
  if test -n "$ac_tool_prefix"; then
 
3028
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
3029
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
3030
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3031
$as_echo_n "checking for $ac_word... " >&6; }
 
3032
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
3033
  $as_echo_n "(cached) " >&6
 
3034
else
 
3035
  if test -n "$STRIP"; then
 
3036
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
3037
else
 
3038
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3039
for as_dir in $PATH
 
3040
do
 
3041
  IFS=$as_save_IFS
 
3042
  test -z "$as_dir" && as_dir=.
 
3043
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3044
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3045
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
3046
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3047
    break 2
 
3048
  fi
 
3049
done
 
3050
  done
 
3051
IFS=$as_save_IFS
 
3052
 
 
3053
fi
 
3054
fi
 
3055
STRIP=$ac_cv_prog_STRIP
 
3056
if test -n "$STRIP"; then
 
3057
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
3058
$as_echo "$STRIP" >&6; }
 
3059
else
 
3060
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3061
$as_echo "no" >&6; }
 
3062
fi
 
3063
 
 
3064
 
 
3065
fi
 
3066
if test -z "$ac_cv_prog_STRIP"; then
 
3067
  ac_ct_STRIP=$STRIP
 
3068
  # Extract the first word of "strip", so it can be a program name with args.
 
3069
set dummy strip; ac_word=$2
 
3070
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3071
$as_echo_n "checking for $ac_word... " >&6; }
 
3072
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
3073
  $as_echo_n "(cached) " >&6
 
3074
else
 
3075
  if test -n "$ac_ct_STRIP"; then
 
3076
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
3077
else
 
3078
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3079
for as_dir in $PATH
 
3080
do
 
3081
  IFS=$as_save_IFS
 
3082
  test -z "$as_dir" && as_dir=.
 
3083
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3084
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3085
    ac_cv_prog_ac_ct_STRIP="strip"
 
3086
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3087
    break 2
 
3088
  fi
 
3089
done
 
3090
  done
 
3091
IFS=$as_save_IFS
 
3092
 
 
3093
fi
 
3094
fi
 
3095
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
3096
if test -n "$ac_ct_STRIP"; then
 
3097
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
3098
$as_echo "$ac_ct_STRIP" >&6; }
 
3099
else
 
3100
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3101
$as_echo "no" >&6; }
 
3102
fi
 
3103
 
 
3104
  if test "x$ac_ct_STRIP" = x; then
 
3105
    STRIP=":"
 
3106
  else
 
3107
    case $cross_compiling:$ac_tool_warned in
 
3108
yes:)
 
3109
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3110
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3111
ac_tool_warned=yes ;;
 
3112
esac
 
3113
    STRIP=$ac_ct_STRIP
 
3114
  fi
 
3115
else
 
3116
  STRIP="$ac_cv_prog_STRIP"
 
3117
fi
 
3118
 
 
3119
fi
 
3120
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
3121
 
 
3122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
3123
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
3124
if test -z "$MKDIR_P"; then
 
3125
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
3126
  $as_echo_n "(cached) " >&6
 
3127
else
 
3128
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3129
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
3130
do
 
3131
  IFS=$as_save_IFS
 
3132
  test -z "$as_dir" && as_dir=.
 
3133
    for ac_prog in mkdir gmkdir; do
 
3134
         for ac_exec_ext in '' $ac_executable_extensions; do
 
3135
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
3136
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
3137
             'mkdir (GNU coreutils) '* | \
 
3138
             'mkdir (coreutils) '* | \
 
3139
             'mkdir (fileutils) '4.1*)
 
3140
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
3141
               break 3;;
 
3142
           esac
 
3143
         done
 
3144
       done
 
3145
  done
 
3146
IFS=$as_save_IFS
 
3147
 
 
3148
fi
 
3149
 
 
3150
  test -d ./--version && rmdir ./--version
 
3151
  if test "${ac_cv_path_mkdir+set}" = set; then
 
3152
    MKDIR_P="$ac_cv_path_mkdir -p"
 
3153
  else
 
3154
    # As a last resort, use the slow shell script.  Don't cache a
 
3155
    # value for MKDIR_P within a source directory, because that will
 
3156
    # break other packages using the cache if that directory is
 
3157
    # removed, or if the value is a relative name.
 
3158
    MKDIR_P="$ac_install_sh -d"
 
3159
  fi
 
3160
fi
 
3161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
3162
$as_echo "$MKDIR_P" >&6; }
 
3163
 
 
3164
mkdir_p="$MKDIR_P"
 
3165
case $mkdir_p in
 
3166
  [\\/$]* | ?:[\\/]*) ;;
 
3167
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
3168
esac
 
3169
 
 
3170
for ac_prog in gawk mawk nawk awk
 
3171
do
 
3172
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3173
set dummy $ac_prog; ac_word=$2
 
3174
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3175
$as_echo_n "checking for $ac_word... " >&6; }
 
3176
if test "${ac_cv_prog_AWK+set}" = set; then :
 
3177
  $as_echo_n "(cached) " >&6
 
3178
else
 
3179
  if test -n "$AWK"; then
 
3180
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3181
else
 
3182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3183
for as_dir in $PATH
 
3184
do
 
3185
  IFS=$as_save_IFS
 
3186
  test -z "$as_dir" && as_dir=.
 
3187
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3188
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3189
    ac_cv_prog_AWK="$ac_prog"
 
3190
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3191
    break 2
 
3192
  fi
 
3193
done
 
3194
  done
 
3195
IFS=$as_save_IFS
 
3196
 
 
3197
fi
 
3198
fi
 
3199
AWK=$ac_cv_prog_AWK
 
3200
if test -n "$AWK"; then
 
3201
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
3202
$as_echo "$AWK" >&6; }
 
3203
else
 
3204
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3205
$as_echo "no" >&6; }
 
3206
fi
 
3207
 
 
3208
 
 
3209
  test -n "$AWK" && break
 
3210
done
 
3211
 
 
3212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3213
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3214
set x ${MAKE-make}
 
3215
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3216
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
3217
  $as_echo_n "(cached) " >&6
 
3218
else
 
3219
  cat >conftest.make <<\_ACEOF
 
3220
SHELL = /bin/sh
 
3221
all:
 
3222
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3223
_ACEOF
 
3224
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3225
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3226
  *@@@%%%=?*=@@@%%%*)
 
3227
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3228
  *)
 
3229
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3230
esac
 
3231
rm -f conftest.make
 
3232
fi
 
3233
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3234
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3235
$as_echo "yes" >&6; }
 
3236
  SET_MAKE=
 
3237
else
 
3238
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3239
$as_echo "no" >&6; }
 
3240
  SET_MAKE="MAKE=${MAKE-make}"
 
3241
fi
 
3242
 
 
3243
rm -rf .tst 2>/dev/null
 
3244
mkdir .tst 2>/dev/null
 
3245
if test -d .tst; then
 
3246
  am__leading_dot=.
 
3247
else
 
3248
  am__leading_dot=_
 
3249
fi
 
3250
rmdir .tst 2>/dev/null
 
3251
 
 
3252
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
3253
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
3254
  # is not polluted with repeated "-I."
 
3255
  am__isrc=' -I$(srcdir)'
 
3256
  # test to see if srcdir already configured
 
3257
  if test -f $srcdir/config.status; then
 
3258
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
3259
  fi
 
3260
fi
 
3261
 
 
3262
# test whether we have cygpath
 
3263
if test -z "$CYGPATH_W"; then
 
3264
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
3265
    CYGPATH_W='cygpath -w'
 
3266
  else
 
3267
    CYGPATH_W=echo
 
3268
  fi
 
3269
fi
 
3270
 
 
3271
 
 
3272
# Define the identity of the package.
 
3273
 PACKAGE='lighttpd'
 
3274
 VERSION='1.4.26'
 
3275
 
 
3276
 
 
3277
cat >>confdefs.h <<_ACEOF
 
3278
#define PACKAGE "$PACKAGE"
 
3279
_ACEOF
 
3280
 
 
3281
 
 
3282
cat >>confdefs.h <<_ACEOF
 
3283
#define VERSION "$VERSION"
 
3284
_ACEOF
 
3285
 
 
3286
# Some tools Automake needs.
 
3287
 
 
3288
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
3289
 
 
3290
 
 
3291
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
3292
 
 
3293
 
 
3294
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
3295
 
 
3296
 
 
3297
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
3298
 
 
3299
 
 
3300
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
3301
 
 
3302
# We need awk for the "check" target.  The system "awk" is bad on
 
3303
# some platforms.
 
3304
# Always define AMTAR for backward compatibility.
 
3305
 
 
3306
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
3307
 
 
3308
 
 
3309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
 
3310
$as_echo_n "checking how to create a ustar tar archive... " >&6; }
 
3311
# Loop over all known methods to create a tar archive until one works.
 
3312
_am_tools='gnutar plaintar pax cpio none'
 
3313
_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
 
3314
# Do not fold the above two line into one, because Tru64 sh and
 
3315
# Solaris sh will not grok spaces in the rhs of `-'.
 
3316
for _am_tool in $_am_tools
 
3317
do
 
3318
  case $_am_tool in
 
3319
  gnutar)
 
3320
    for _am_tar in tar gnutar gtar;
 
3321
    do
 
3322
      { echo "$as_me:$LINENO: $_am_tar --version" >&5
 
3323
   ($_am_tar --version) >&5 2>&5
 
3324
   ac_status=$?
 
3325
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3326
   (exit $ac_status); } && break
 
3327
    done
 
3328
    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
 
3329
    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
 
3330
    am__untar="$_am_tar -xf -"
 
3331
    ;;
 
3332
  plaintar)
 
3333
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
3334
    # ustar tarball either.
 
3335
    (tar --version) >/dev/null 2>&1 && continue
 
3336
    am__tar='tar chf - "$$tardir"'
 
3337
    am__tar_='tar chf - "$tardir"'
 
3338
    am__untar='tar xf -'
 
3339
    ;;
 
3340
  pax)
 
3341
    am__tar='pax -L -x ustar -w "$$tardir"'
 
3342
    am__tar_='pax -L -x ustar -w "$tardir"'
 
3343
    am__untar='pax -r'
 
3344
    ;;
 
3345
  cpio)
 
3346
    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
 
3347
    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
 
3348
    am__untar='cpio -i -H ustar -d'
 
3349
    ;;
 
3350
  none)
 
3351
    am__tar=false
 
3352
    am__tar_=false
 
3353
    am__untar=false
 
3354
    ;;
 
3355
  esac
 
3356
 
 
3357
  # If the value was cached, stop now.  We just wanted to have am__tar
 
3358
  # and am__untar set.
 
3359
  test -n "${am_cv_prog_tar_ustar}" && break
 
3360
 
 
3361
  # tar/untar a dummy directory, and stop if the command works
 
3362
  rm -rf conftest.dir
 
3363
  mkdir conftest.dir
 
3364
  echo GrepMe > conftest.dir/file
 
3365
  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
 
3366
   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
 
3367
   ac_status=$?
 
3368
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3369
   (exit $ac_status); }
 
3370
  rm -rf conftest.dir
 
3371
  if test -s conftest.tar; then
 
3372
    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
 
3373
   ($am__untar <conftest.tar) >&5 2>&5
 
3374
   ac_status=$?
 
3375
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3376
   (exit $ac_status); }
 
3377
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
3378
  fi
 
3379
done
 
3380
rm -rf conftest.dir
 
3381
 
 
3382
if test "${am_cv_prog_tar_ustar+set}" = set; then :
 
3383
  $as_echo_n "(cached) " >&6
 
3384
else
 
3385
  am_cv_prog_tar_ustar=$_am_tool
 
3386
fi
 
3387
 
 
3388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
 
3389
$as_echo "$am_cv_prog_tar_ustar" >&6; }
 
3390
 
 
3391
 
 
3392
 
 
3393
 
 
3394
 
 
3395
 
 
3396
# Check whether --enable-silent-rules was given.
 
3397
if test "${enable_silent_rules+set}" = set; then :
 
3398
  enableval=$enable_silent_rules;
 
3399
fi
 
3400
 
 
3401
case $enable_silent_rules in
 
3402
yes) AM_DEFAULT_VERBOSITY=0;;
 
3403
no)  AM_DEFAULT_VERBOSITY=1;;
 
3404
*)   AM_DEFAULT_VERBOSITY=1;;
 
3405
esac
 
3406
AM_BACKSLASH='\'
 
3407
 
 
3408
 
 
3409
ac_ext=c
 
3410
ac_cpp='$CPP $CPPFLAGS'
 
3411
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3412
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3413
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3414
if test -n "$ac_tool_prefix"; then
 
3415
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3416
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3418
$as_echo_n "checking for $ac_word... " >&6; }
 
3419
if test "${ac_cv_prog_CC+set}" = set; then :
 
3420
  $as_echo_n "(cached) " >&6
 
3421
else
 
3422
  if test -n "$CC"; then
 
3423
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3424
else
 
3425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3426
for as_dir in $PATH
 
3427
do
 
3428
  IFS=$as_save_IFS
 
3429
  test -z "$as_dir" && as_dir=.
 
3430
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3431
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3432
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3433
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3434
    break 2
 
3435
  fi
 
3436
done
 
3437
  done
 
3438
IFS=$as_save_IFS
 
3439
 
 
3440
fi
 
3441
fi
 
3442
CC=$ac_cv_prog_CC
 
3443
if test -n "$CC"; then
 
3444
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3445
$as_echo "$CC" >&6; }
 
3446
else
 
3447
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3448
$as_echo "no" >&6; }
 
3449
fi
 
3450
 
 
3451
 
 
3452
fi
 
3453
if test -z "$ac_cv_prog_CC"; then
 
3454
  ac_ct_CC=$CC
 
3455
  # Extract the first word of "gcc", so it can be a program name with args.
 
3456
set dummy gcc; ac_word=$2
 
3457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3458
$as_echo_n "checking for $ac_word... " >&6; }
 
3459
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3460
  $as_echo_n "(cached) " >&6
 
3461
else
 
3462
  if test -n "$ac_ct_CC"; then
 
3463
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3464
else
 
3465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3466
for as_dir in $PATH
 
3467
do
 
3468
  IFS=$as_save_IFS
 
3469
  test -z "$as_dir" && as_dir=.
 
3470
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3471
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3472
    ac_cv_prog_ac_ct_CC="gcc"
 
3473
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3474
    break 2
 
3475
  fi
 
3476
done
 
3477
  done
 
3478
IFS=$as_save_IFS
 
3479
 
 
3480
fi
 
3481
fi
 
3482
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3483
if test -n "$ac_ct_CC"; then
 
3484
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3485
$as_echo "$ac_ct_CC" >&6; }
 
3486
else
 
3487
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3488
$as_echo "no" >&6; }
 
3489
fi
 
3490
 
 
3491
  if test "x$ac_ct_CC" = x; then
 
3492
    CC=""
 
3493
  else
 
3494
    case $cross_compiling:$ac_tool_warned in
 
3495
yes:)
 
3496
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3497
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3498
ac_tool_warned=yes ;;
 
3499
esac
 
3500
    CC=$ac_ct_CC
 
3501
  fi
 
3502
else
 
3503
  CC="$ac_cv_prog_CC"
 
3504
fi
 
3505
 
 
3506
if test -z "$CC"; then
 
3507
          if test -n "$ac_tool_prefix"; then
 
3508
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3509
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3511
$as_echo_n "checking for $ac_word... " >&6; }
 
3512
if test "${ac_cv_prog_CC+set}" = set; then :
 
3513
  $as_echo_n "(cached) " >&6
 
3514
else
 
3515
  if test -n "$CC"; then
 
3516
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3517
else
 
3518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3519
for as_dir in $PATH
 
3520
do
 
3521
  IFS=$as_save_IFS
 
3522
  test -z "$as_dir" && as_dir=.
 
3523
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3524
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3525
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3526
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3527
    break 2
 
3528
  fi
 
3529
done
 
3530
  done
 
3531
IFS=$as_save_IFS
 
3532
 
 
3533
fi
 
3534
fi
 
3535
CC=$ac_cv_prog_CC
 
3536
if test -n "$CC"; then
 
3537
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3538
$as_echo "$CC" >&6; }
 
3539
else
 
3540
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3541
$as_echo "no" >&6; }
 
3542
fi
 
3543
 
 
3544
 
 
3545
  fi
 
3546
fi
 
3547
if test -z "$CC"; then
 
3548
  # Extract the first word of "cc", so it can be a program name with args.
 
3549
set dummy cc; ac_word=$2
 
3550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3551
$as_echo_n "checking for $ac_word... " >&6; }
 
3552
if test "${ac_cv_prog_CC+set}" = set; then :
 
3553
  $as_echo_n "(cached) " >&6
 
3554
else
 
3555
  if test -n "$CC"; then
 
3556
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3557
else
 
3558
  ac_prog_rejected=no
 
3559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3560
for as_dir in $PATH
 
3561
do
 
3562
  IFS=$as_save_IFS
 
3563
  test -z "$as_dir" && as_dir=.
 
3564
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3565
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3566
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3567
       ac_prog_rejected=yes
 
3568
       continue
 
3569
     fi
 
3570
    ac_cv_prog_CC="cc"
 
3571
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3572
    break 2
 
3573
  fi
 
3574
done
 
3575
  done
 
3576
IFS=$as_save_IFS
 
3577
 
 
3578
if test $ac_prog_rejected = yes; then
 
3579
  # We found a bogon in the path, so make sure we never use it.
 
3580
  set dummy $ac_cv_prog_CC
 
3581
  shift
 
3582
  if test $# != 0; then
 
3583
    # We chose a different compiler from the bogus one.
 
3584
    # However, it has the same basename, so the bogon will be chosen
 
3585
    # first if we set CC to just the basename; use the full file name.
 
3586
    shift
 
3587
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3588
  fi
 
3589
fi
 
3590
fi
 
3591
fi
 
3592
CC=$ac_cv_prog_CC
 
3593
if test -n "$CC"; then
 
3594
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3595
$as_echo "$CC" >&6; }
 
3596
else
 
3597
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3598
$as_echo "no" >&6; }
 
3599
fi
 
3600
 
 
3601
 
 
3602
fi
 
3603
if test -z "$CC"; then
 
3604
  if test -n "$ac_tool_prefix"; then
 
3605
  for ac_prog in cl.exe
 
3606
  do
 
3607
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3608
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3610
$as_echo_n "checking for $ac_word... " >&6; }
 
3611
if test "${ac_cv_prog_CC+set}" = set; then :
 
3612
  $as_echo_n "(cached) " >&6
 
3613
else
 
3614
  if test -n "$CC"; then
 
3615
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3616
else
 
3617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3618
for as_dir in $PATH
 
3619
do
 
3620
  IFS=$as_save_IFS
 
3621
  test -z "$as_dir" && as_dir=.
 
3622
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3623
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3624
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3625
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3626
    break 2
 
3627
  fi
 
3628
done
 
3629
  done
 
3630
IFS=$as_save_IFS
 
3631
 
 
3632
fi
 
3633
fi
 
3634
CC=$ac_cv_prog_CC
 
3635
if test -n "$CC"; then
 
3636
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3637
$as_echo "$CC" >&6; }
 
3638
else
 
3639
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3640
$as_echo "no" >&6; }
 
3641
fi
 
3642
 
 
3643
 
 
3644
    test -n "$CC" && break
 
3645
  done
 
3646
fi
 
3647
if test -z "$CC"; then
 
3648
  ac_ct_CC=$CC
 
3649
  for ac_prog in cl.exe
 
3650
do
 
3651
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3652
set dummy $ac_prog; ac_word=$2
 
3653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3654
$as_echo_n "checking for $ac_word... " >&6; }
 
3655
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3656
  $as_echo_n "(cached) " >&6
 
3657
else
 
3658
  if test -n "$ac_ct_CC"; then
 
3659
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3660
else
 
3661
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3662
for as_dir in $PATH
 
3663
do
 
3664
  IFS=$as_save_IFS
 
3665
  test -z "$as_dir" && as_dir=.
 
3666
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3667
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3668
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3669
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3670
    break 2
 
3671
  fi
 
3672
done
 
3673
  done
 
3674
IFS=$as_save_IFS
 
3675
 
 
3676
fi
 
3677
fi
 
3678
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3679
if test -n "$ac_ct_CC"; then
 
3680
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3681
$as_echo "$ac_ct_CC" >&6; }
 
3682
else
 
3683
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3684
$as_echo "no" >&6; }
 
3685
fi
 
3686
 
 
3687
 
 
3688
  test -n "$ac_ct_CC" && break
 
3689
done
 
3690
 
 
3691
  if test "x$ac_ct_CC" = x; then
 
3692
    CC=""
 
3693
  else
 
3694
    case $cross_compiling:$ac_tool_warned in
 
3695
yes:)
 
3696
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3697
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3698
ac_tool_warned=yes ;;
 
3699
esac
 
3700
    CC=$ac_ct_CC
 
3701
  fi
 
3702
fi
 
3703
 
 
3704
fi
 
3705
 
 
3706
 
 
3707
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3708
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3709
as_fn_error "no acceptable C compiler found in \$PATH
 
3710
See \`config.log' for more details." "$LINENO" 5; }
 
3711
 
 
3712
# Provide some information about the compiler.
 
3713
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3714
set X $ac_compile
 
3715
ac_compiler=$2
 
3716
for ac_option in --version -v -V -qversion; do
 
3717
  { { ac_try="$ac_compiler $ac_option >&5"
 
3718
case "(($ac_try" in
 
3719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3720
  *) ac_try_echo=$ac_try;;
 
3721
esac
 
3722
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3723
$as_echo "$ac_try_echo"; } >&5
 
3724
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3725
  ac_status=$?
 
3726
  if test -s conftest.err; then
 
3727
    sed '10a\
 
3728
... rest of stderr output deleted ...
 
3729
         10q' conftest.err >conftest.er1
 
3730
    cat conftest.er1 >&5
 
3731
  fi
 
3732
  rm -f conftest.er1 conftest.err
 
3733
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3734
  test $ac_status = 0; }
 
3735
done
 
3736
 
 
3737
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3738
/* end confdefs.h.  */
 
3739
 
 
3740
int
 
3741
main ()
 
3742
{
 
3743
 
 
3744
  ;
 
3745
  return 0;
 
3746
}
 
3747
_ACEOF
 
3748
ac_clean_files_save=$ac_clean_files
 
3749
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3750
# Try to create an executable without -o first, disregard a.out.
 
3751
# It will help us diagnose broken compilers, and finding out an intuition
 
3752
# of exeext.
 
3753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3754
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3755
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3756
 
 
3757
# The possible output files:
 
3758
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3759
 
 
3760
ac_rmfiles=
 
3761
for ac_file in $ac_files
 
3762
do
 
3763
  case $ac_file in
 
3764
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3765
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3766
  esac
 
3767
done
 
3768
rm -f $ac_rmfiles
 
3769
 
 
3770
if { { ac_try="$ac_link_default"
 
3771
case "(($ac_try" in
 
3772
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3773
  *) ac_try_echo=$ac_try;;
 
3774
esac
 
3775
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3776
$as_echo "$ac_try_echo"; } >&5
 
3777
  (eval "$ac_link_default") 2>&5
 
3778
  ac_status=$?
 
3779
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3780
  test $ac_status = 0; }; then :
 
3781
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3782
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3783
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3784
# so that the user can short-circuit this test for compilers unknown to
 
3785
# Autoconf.
 
3786
for ac_file in $ac_files ''
 
3787
do
 
3788
  test -f "$ac_file" || continue
 
3789
  case $ac_file in
 
3790
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3791
        ;;
 
3792
    [ab].out )
 
3793
        # We found the default executable, but exeext='' is most
 
3794
        # certainly right.
 
3795
        break;;
 
3796
    *.* )
 
3797
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3798
        then :; else
 
3799
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3800
        fi
 
3801
        # We set ac_cv_exeext here because the later test for it is not
 
3802
        # safe: cross compilers may not add the suffix if given an `-o'
 
3803
        # argument, so we may need to know it at that point already.
 
3804
        # Even if this section looks crufty: it has the advantage of
 
3805
        # actually working.
 
3806
        break;;
 
3807
    * )
 
3808
        break;;
 
3809
  esac
 
3810
done
 
3811
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3812
 
 
3813
else
 
3814
  ac_file=''
 
3815
fi
 
3816
if test -z "$ac_file"; then :
 
3817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3818
$as_echo "no" >&6; }
 
3819
$as_echo "$as_me: failed program was:" >&5
 
3820
sed 's/^/| /' conftest.$ac_ext >&5
 
3821
 
 
3822
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3823
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3824
{ as_fn_set_status 77
 
3825
as_fn_error "C compiler cannot create executables
 
3826
See \`config.log' for more details." "$LINENO" 5; }; }
 
3827
else
 
3828
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3829
$as_echo "yes" >&6; }
 
3830
fi
 
3831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3832
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3834
$as_echo "$ac_file" >&6; }
 
3835
ac_exeext=$ac_cv_exeext
 
3836
 
 
3837
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3838
ac_clean_files=$ac_clean_files_save
 
3839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3840
$as_echo_n "checking for suffix of executables... " >&6; }
 
3841
if { { ac_try="$ac_link"
 
3842
case "(($ac_try" in
 
3843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3844
  *) ac_try_echo=$ac_try;;
 
3845
esac
 
3846
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3847
$as_echo "$ac_try_echo"; } >&5
 
3848
  (eval "$ac_link") 2>&5
 
3849
  ac_status=$?
 
3850
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3851
  test $ac_status = 0; }; then :
 
3852
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3853
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3854
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3855
# `rm'.
 
3856
for ac_file in conftest.exe conftest conftest.*; do
 
3857
  test -f "$ac_file" || continue
 
3858
  case $ac_file in
 
3859
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3860
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3861
          break;;
 
3862
    * ) break;;
 
3863
  esac
 
3864
done
 
3865
else
 
3866
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3867
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3868
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3869
See \`config.log' for more details." "$LINENO" 5; }
 
3870
fi
 
3871
rm -f conftest conftest$ac_cv_exeext
 
3872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3873
$as_echo "$ac_cv_exeext" >&6; }
 
3874
 
 
3875
rm -f conftest.$ac_ext
 
3876
EXEEXT=$ac_cv_exeext
 
3877
ac_exeext=$EXEEXT
 
3878
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3879
/* end confdefs.h.  */
 
3880
#include <stdio.h>
 
3881
int
 
3882
main ()
 
3883
{
 
3884
FILE *f = fopen ("conftest.out", "w");
 
3885
 return ferror (f) || fclose (f) != 0;
 
3886
 
 
3887
  ;
 
3888
  return 0;
 
3889
}
 
3890
_ACEOF
 
3891
ac_clean_files="$ac_clean_files conftest.out"
 
3892
# Check that the compiler produces executables we can run.  If not, either
 
3893
# the compiler is broken, or we cross compile.
 
3894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3895
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3896
if test "$cross_compiling" != yes; then
 
3897
  { { ac_try="$ac_link"
 
3898
case "(($ac_try" in
 
3899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3900
  *) ac_try_echo=$ac_try;;
 
3901
esac
 
3902
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3903
$as_echo "$ac_try_echo"; } >&5
 
3904
  (eval "$ac_link") 2>&5
 
3905
  ac_status=$?
 
3906
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3907
  test $ac_status = 0; }
 
3908
  if { ac_try='./conftest$ac_cv_exeext'
 
3909
  { { case "(($ac_try" in
 
3910
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3911
  *) ac_try_echo=$ac_try;;
 
3912
esac
 
3913
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3914
$as_echo "$ac_try_echo"; } >&5
 
3915
  (eval "$ac_try") 2>&5
 
3916
  ac_status=$?
 
3917
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3918
  test $ac_status = 0; }; }; then
 
3919
    cross_compiling=no
 
3920
  else
 
3921
    if test "$cross_compiling" = maybe; then
 
3922
        cross_compiling=yes
 
3923
    else
 
3924
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3925
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3926
as_fn_error "cannot run C compiled programs.
 
3927
If you meant to cross compile, use \`--host'.
 
3928
See \`config.log' for more details." "$LINENO" 5; }
 
3929
    fi
 
3930
  fi
 
3931
fi
 
3932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3933
$as_echo "$cross_compiling" >&6; }
 
3934
 
 
3935
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3936
ac_clean_files=$ac_clean_files_save
 
3937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3938
$as_echo_n "checking for suffix of object files... " >&6; }
 
3939
if test "${ac_cv_objext+set}" = set; then :
 
3940
  $as_echo_n "(cached) " >&6
 
3941
else
 
3942
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3943
/* end confdefs.h.  */
 
3944
 
 
3945
int
 
3946
main ()
 
3947
{
 
3948
 
 
3949
  ;
 
3950
  return 0;
 
3951
}
 
3952
_ACEOF
 
3953
rm -f conftest.o conftest.obj
 
3954
if { { ac_try="$ac_compile"
 
3955
case "(($ac_try" in
 
3956
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3957
  *) ac_try_echo=$ac_try;;
 
3958
esac
 
3959
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3960
$as_echo "$ac_try_echo"; } >&5
 
3961
  (eval "$ac_compile") 2>&5
 
3962
  ac_status=$?
 
3963
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3964
  test $ac_status = 0; }; then :
 
3965
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3966
  test -f "$ac_file" || continue;
 
3967
  case $ac_file in
 
3968
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3969
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3970
       break;;
 
3971
  esac
 
3972
done
 
3973
else
 
3974
  $as_echo "$as_me: failed program was:" >&5
 
3975
sed 's/^/| /' conftest.$ac_ext >&5
 
3976
 
 
3977
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3978
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3979
as_fn_error "cannot compute suffix of object files: cannot compile
 
3980
See \`config.log' for more details." "$LINENO" 5; }
 
3981
fi
 
3982
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3983
fi
 
3984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3985
$as_echo "$ac_cv_objext" >&6; }
 
3986
OBJEXT=$ac_cv_objext
 
3987
ac_objext=$OBJEXT
 
3988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3989
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3990
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3991
  $as_echo_n "(cached) " >&6
 
3992
else
 
3993
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3994
/* end confdefs.h.  */
 
3995
 
 
3996
int
 
3997
main ()
 
3998
{
 
3999
#ifndef __GNUC__
 
4000
       choke me
 
4001
#endif
 
4002
 
 
4003
  ;
 
4004
  return 0;
 
4005
}
 
4006
_ACEOF
 
4007
if ac_fn_c_try_compile "$LINENO"; then :
 
4008
  ac_compiler_gnu=yes
 
4009
else
 
4010
  ac_compiler_gnu=no
 
4011
fi
 
4012
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4013
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4014
 
 
4015
fi
 
4016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4017
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4018
if test $ac_compiler_gnu = yes; then
 
4019
  GCC=yes
 
4020
else
 
4021
  GCC=
 
4022
fi
 
4023
ac_test_CFLAGS=${CFLAGS+set}
 
4024
ac_save_CFLAGS=$CFLAGS
 
4025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4026
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4027
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
4028
  $as_echo_n "(cached) " >&6
 
4029
else
 
4030
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4031
   ac_c_werror_flag=yes
 
4032
   ac_cv_prog_cc_g=no
 
4033
   CFLAGS="-g"
 
4034
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4035
/* end confdefs.h.  */
 
4036
 
 
4037
int
 
4038
main ()
 
4039
{
 
4040
 
 
4041
  ;
 
4042
  return 0;
 
4043
}
 
4044
_ACEOF
 
4045
if ac_fn_c_try_compile "$LINENO"; then :
 
4046
  ac_cv_prog_cc_g=yes
 
4047
else
 
4048
  CFLAGS=""
 
4049
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4050
/* end confdefs.h.  */
 
4051
 
 
4052
int
 
4053
main ()
 
4054
{
 
4055
 
 
4056
  ;
 
4057
  return 0;
 
4058
}
 
4059
_ACEOF
 
4060
if ac_fn_c_try_compile "$LINENO"; then :
 
4061
 
 
4062
else
 
4063
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4064
         CFLAGS="-g"
 
4065
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4066
/* end confdefs.h.  */
 
4067
 
 
4068
int
 
4069
main ()
 
4070
{
 
4071
 
 
4072
  ;
 
4073
  return 0;
 
4074
}
 
4075
_ACEOF
 
4076
if ac_fn_c_try_compile "$LINENO"; then :
 
4077
  ac_cv_prog_cc_g=yes
 
4078
fi
 
4079
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4080
fi
 
4081
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4082
fi
 
4083
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4084
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4085
fi
 
4086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4087
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4088
if test "$ac_test_CFLAGS" = set; then
 
4089
  CFLAGS=$ac_save_CFLAGS
 
4090
elif test $ac_cv_prog_cc_g = yes; then
 
4091
  if test "$GCC" = yes; then
 
4092
    CFLAGS="-g -O2"
 
4093
  else
 
4094
    CFLAGS="-g"
 
4095
  fi
 
4096
else
 
4097
  if test "$GCC" = yes; then
 
4098
    CFLAGS="-O2"
 
4099
  else
 
4100
    CFLAGS=
 
4101
  fi
 
4102
fi
 
4103
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4104
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4105
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
4106
  $as_echo_n "(cached) " >&6
 
4107
else
 
4108
  ac_cv_prog_cc_c89=no
 
4109
ac_save_CC=$CC
 
4110
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4111
/* end confdefs.h.  */
 
4112
#include <stdarg.h>
 
4113
#include <stdio.h>
 
4114
#include <sys/types.h>
 
4115
#include <sys/stat.h>
 
4116
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4117
struct buf { int x; };
 
4118
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4119
static char *e (p, i)
 
4120
     char **p;
 
4121
     int i;
 
4122
{
 
4123
  return p[i];
 
4124
}
 
4125
static char *f (char * (*g) (char **, int), char **p, ...)
 
4126
{
 
4127
  char *s;
 
4128
  va_list v;
 
4129
  va_start (v,p);
 
4130
  s = g (p, va_arg (v,int));
 
4131
  va_end (v);
 
4132
  return s;
 
4133
}
 
4134
 
 
4135
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4136
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4137
   These don't provoke an error unfortunately, instead are silently treated
 
4138
   as 'x'.  The following induces an error, until -std is added to get
 
4139
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4140
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4141
   that's true only with -std.  */
 
4142
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4143
 
 
4144
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4145
   inside strings and character constants.  */
 
4146
#define FOO(x) 'x'
 
4147
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4148
 
 
4149
int test (int i, double x);
 
4150
struct s1 {int (*f) (int a);};
 
4151
struct s2 {int (*f) (double a);};
 
4152
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4153
int argc;
 
4154
char **argv;
 
4155
int
 
4156
main ()
 
4157
{
 
4158
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4159
  ;
 
4160
  return 0;
 
4161
}
 
4162
_ACEOF
 
4163
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4164
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4165
do
 
4166
  CC="$ac_save_CC $ac_arg"
 
4167
  if ac_fn_c_try_compile "$LINENO"; then :
 
4168
  ac_cv_prog_cc_c89=$ac_arg
 
4169
fi
 
4170
rm -f core conftest.err conftest.$ac_objext
 
4171
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4172
done
 
4173
rm -f conftest.$ac_ext
 
4174
CC=$ac_save_CC
 
4175
 
 
4176
fi
 
4177
# AC_CACHE_VAL
 
4178
case "x$ac_cv_prog_cc_c89" in
 
4179
  x)
 
4180
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4181
$as_echo "none needed" >&6; } ;;
 
4182
  xno)
 
4183
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4184
$as_echo "unsupported" >&6; } ;;
 
4185
  *)
 
4186
    CC="$CC $ac_cv_prog_cc_c89"
 
4187
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4188
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4189
esac
 
4190
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4191
 
 
4192
fi
 
4193
 
 
4194
ac_ext=c
 
4195
ac_cpp='$CPP $CPPFLAGS'
 
4196
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4197
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4198
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4199
DEPDIR="${am__leading_dot}deps"
 
4200
 
 
4201
ac_config_commands="$ac_config_commands depfiles"
 
4202
 
 
4203
 
 
4204
am_make=${MAKE-make}
 
4205
cat > confinc << 'END'
 
4206
am__doit:
 
4207
        @echo this is the am__doit target
 
4208
.PHONY: am__doit
 
4209
END
 
4210
# If we don't find an include directive, just comment out the code.
 
4211
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
4212
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
4213
am__include="#"
 
4214
am__quote=
 
4215
_am_result=none
 
4216
# First try GNU make style include.
 
4217
echo "include confinc" > confmf
 
4218
# Ignore all kinds of additional output from `make'.
 
4219
case `$am_make -s -f confmf 2> /dev/null` in #(
 
4220
*the\ am__doit\ target*)
 
4221
  am__include=include
 
4222
  am__quote=
 
4223
  _am_result=GNU
 
4224
  ;;
 
4225
esac
 
4226
# Now try BSD make style include.
 
4227
if test "$am__include" = "#"; then
 
4228
   echo '.include "confinc"' > confmf
 
4229
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
4230
   *the\ am__doit\ target*)
 
4231
     am__include=.include
 
4232
     am__quote="\""
 
4233
     _am_result=BSD
 
4234
     ;;
 
4235
   esac
 
4236
fi
 
4237
 
 
4238
 
 
4239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
4240
$as_echo "$_am_result" >&6; }
 
4241
rm -f confinc confmf
 
4242
 
 
4243
# Check whether --enable-dependency-tracking was given.
 
4244
if test "${enable_dependency_tracking+set}" = set; then :
 
4245
  enableval=$enable_dependency_tracking;
 
4246
fi
 
4247
 
 
4248
if test "x$enable_dependency_tracking" != xno; then
 
4249
  am_depcomp="$ac_aux_dir/depcomp"
 
4250
  AMDEPBACKSLASH='\'
 
4251
fi
 
4252
 if test "x$enable_dependency_tracking" != xno; then
 
4253
  AMDEP_TRUE=
 
4254
  AMDEP_FALSE='#'
 
4255
else
 
4256
  AMDEP_TRUE='#'
 
4257
  AMDEP_FALSE=
 
4258
fi
 
4259
 
 
4260
 
 
4261
 
 
4262
depcc="$CC"   am_compiler_list=
 
4263
 
 
4264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4265
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4266
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
4267
  $as_echo_n "(cached) " >&6
 
4268
else
 
4269
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4270
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4271
  # making bogus files that we don't know about and never remove.  For
 
4272
  # instance it was reported that on HP-UX the gcc test will end up
 
4273
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4274
  # in D'.
 
4275
  mkdir conftest.dir
 
4276
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4277
  # using a relative directory.
 
4278
  cp "$am_depcomp" conftest.dir
 
4279
  cd conftest.dir
 
4280
  # We will build objects and dependencies in a subdirectory because
 
4281
  # it helps to detect inapplicable dependency modes.  For instance
 
4282
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4283
  # side effect of compilation, but ICC will put the dependencies in
 
4284
  # the current directory while Tru64 will put them in the object
 
4285
  # directory.
 
4286
  mkdir sub
 
4287
 
 
4288
  am_cv_CC_dependencies_compiler_type=none
 
4289
  if test "$am_compiler_list" = ""; then
 
4290
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4291
  fi
 
4292
  am__universal=false
 
4293
  case " $depcc " in #(
 
4294
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4295
     esac
 
4296
 
 
4297
  for depmode in $am_compiler_list; do
 
4298
    # Setup a source with many dependencies, because some compilers
 
4299
    # like to wrap large dependency lists on column 80 (with \), and
 
4300
    # we should not choose a depcomp mode which is confused by this.
 
4301
    #
 
4302
    # We need to recreate these files for each test, as the compiler may
 
4303
    # overwrite some of them when testing with obscure command lines.
 
4304
    # This happens at least with the AIX C compiler.
 
4305
    : > sub/conftest.c
 
4306
    for i in 1 2 3 4 5 6; do
 
4307
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4308
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4309
      # Solaris 8's {/usr,}/bin/sh.
 
4310
      touch sub/conftst$i.h
 
4311
    done
 
4312
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4313
 
 
4314
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4315
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4316
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4317
    # versions had trouble with output in subdirs
 
4318
    am__obj=sub/conftest.${OBJEXT-o}
 
4319
    am__minus_obj="-o $am__obj"
 
4320
    case $depmode in
 
4321
    gcc)
 
4322
      # This depmode causes a compiler race in universal mode.
 
4323
      test "$am__universal" = false || continue
 
4324
      ;;
 
4325
    nosideeffect)
 
4326
      # after this tag, mechanisms are not by side-effect, so they'll
 
4327
      # only be used when explicitly requested
 
4328
      if test "x$enable_dependency_tracking" = xyes; then
 
4329
        continue
 
4330
      else
 
4331
        break
 
4332
      fi
 
4333
      ;;
 
4334
    msvisualcpp | msvcmsys)
 
4335
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4336
      # not run yet.  These depmodes are late enough in the game, and
 
4337
      # so weak that their functioning should not be impacted.
 
4338
      am__obj=conftest.${OBJEXT-o}
 
4339
      am__minus_obj=
 
4340
      ;;
 
4341
    none) break ;;
 
4342
    esac
 
4343
    if depmode=$depmode \
 
4344
       source=sub/conftest.c object=$am__obj \
 
4345
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4346
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4347
         >/dev/null 2>conftest.err &&
 
4348
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4349
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4350
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4351
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4352
      # icc doesn't choke on unknown options, it will just issue warnings
 
4353
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4354
      # that says an option was ignored or not supported.
 
4355
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4356
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4357
      # The diagnosis changed in icc 8.0:
 
4358
      #   icc: Command line remark: option '-MP' not supported
 
4359
      if (grep 'ignoring option' conftest.err ||
 
4360
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4361
        am_cv_CC_dependencies_compiler_type=$depmode
 
4362
        break
 
4363
      fi
 
4364
    fi
 
4365
  done
 
4366
 
 
4367
  cd ..
 
4368
  rm -rf conftest.dir
 
4369
else
 
4370
  am_cv_CC_dependencies_compiler_type=none
 
4371
fi
 
4372
 
 
4373
fi
 
4374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4375
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4376
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4377
 
 
4378
 if
 
4379
  test "x$enable_dependency_tracking" != xno \
 
4380
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4381
  am__fastdepCC_TRUE=
 
4382
  am__fastdepCC_FALSE='#'
 
4383
else
 
4384
  am__fastdepCC_TRUE='#'
 
4385
  am__fastdepCC_FALSE=
 
4386
fi
 
4387
 
 
4388
 
 
4389
if test "x$CC" != xcc; then
 
4390
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 
4391
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
4392
else
 
4393
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 
4394
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
4395
fi
 
4396
set dummy $CC; ac_cc=`$as_echo "$2" |
 
4397
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4398
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
 
4399
  $as_echo_n "(cached) " >&6
 
4400
else
 
4401
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4402
/* end confdefs.h.  */
 
4403
 
 
4404
int
 
4405
main ()
 
4406
{
 
4407
 
 
4408
  ;
 
4409
  return 0;
 
4410
}
 
4411
_ACEOF
 
4412
# Make sure it works both with $CC and with simple cc.
 
4413
# We do the test twice because some compilers refuse to overwrite an
 
4414
# existing .o file with -o, though they will create one.
 
4415
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4416
rm -f conftest2.*
 
4417
if { { case "(($ac_try" in
 
4418
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4419
  *) ac_try_echo=$ac_try;;
 
4420
esac
 
4421
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4422
$as_echo "$ac_try_echo"; } >&5
 
4423
  (eval "$ac_try") 2>&5
 
4424
  ac_status=$?
 
4425
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4426
  test $ac_status = 0; } &&
 
4427
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
4428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4429
  *) ac_try_echo=$ac_try;;
 
4430
esac
 
4431
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4432
$as_echo "$ac_try_echo"; } >&5
 
4433
  (eval "$ac_try") 2>&5
 
4434
  ac_status=$?
 
4435
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4436
  test $ac_status = 0; };
 
4437
then
 
4438
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
4439
  if test "x$CC" != xcc; then
 
4440
    # Test first that cc exists at all.
 
4441
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
4442
  { { case "(($ac_try" in
 
4443
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4444
  *) ac_try_echo=$ac_try;;
 
4445
esac
 
4446
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4447
$as_echo "$ac_try_echo"; } >&5
 
4448
  (eval "$ac_try") 2>&5
 
4449
  ac_status=$?
 
4450
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4451
  test $ac_status = 0; }; }; then
 
4452
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4453
      rm -f conftest2.*
 
4454
      if { { case "(($ac_try" in
 
4455
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4456
  *) ac_try_echo=$ac_try;;
 
4457
esac
 
4458
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4459
$as_echo "$ac_try_echo"; } >&5
 
4460
  (eval "$ac_try") 2>&5
 
4461
  ac_status=$?
 
4462
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4463
  test $ac_status = 0; } &&
 
4464
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
4465
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4466
  *) ac_try_echo=$ac_try;;
 
4467
esac
 
4468
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4469
$as_echo "$ac_try_echo"; } >&5
 
4470
  (eval "$ac_try") 2>&5
 
4471
  ac_status=$?
 
4472
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4473
  test $ac_status = 0; };
 
4474
      then
 
4475
        # cc works too.
 
4476
        :
 
4477
      else
 
4478
        # cc exists but doesn't like -o.
 
4479
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4480
      fi
 
4481
    fi
 
4482
  fi
 
4483
else
 
4484
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4485
fi
 
4486
rm -f core conftest*
 
4487
 
 
4488
fi
 
4489
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
4490
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4491
$as_echo "yes" >&6; }
 
4492
else
 
4493
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4494
$as_echo "no" >&6; }
 
4495
 
 
4496
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
 
4497
 
 
4498
fi
 
4499
 
 
4500
# FIXME: we rely on the cache variable name because
 
4501
# there is no other way.
 
4502
set dummy $CC
 
4503
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4504
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
4505
if test "$am_t" != yes; then
 
4506
   # Losing compiler, so override with the script.
 
4507
   # FIXME: It is wrong to rewrite CC.
 
4508
   # But if we don't then we get into trouble of one sort or another.
 
4509
   # A longer-term fix would be to have automake use am__CC in this case,
 
4510
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
4511
   CC="$am_aux_dir/compile $CC"
 
4512
fi
 
4513
 
 
4514
 
 
4515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4516
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4517
if test "${ac_cv_path_SED+set}" = set; then :
 
4518
  $as_echo_n "(cached) " >&6
 
4519
else
 
4520
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4521
     for ac_i in 1 2 3 4 5 6 7; do
 
4522
       ac_script="$ac_script$as_nl$ac_script"
 
4523
     done
 
4524
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4525
     { ac_script=; unset ac_script;}
 
4526
     if test -z "$SED"; then
 
4527
  ac_path_SED_found=false
 
4528
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4529
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4530
for as_dir in $PATH
 
4531
do
 
4532
  IFS=$as_save_IFS
 
4533
  test -z "$as_dir" && as_dir=.
 
4534
    for ac_prog in sed gsed; do
 
4535
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4536
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4537
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4538
# Check for GNU ac_path_SED and select it if it is found.
 
4539
  # Check for GNU $ac_path_SED
 
4540
case `"$ac_path_SED" --version 2>&1` in
 
4541
*GNU*)
 
4542
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4543
*)
 
4544
  ac_count=0
 
4545
  $as_echo_n 0123456789 >"conftest.in"
 
4546
  while :
 
4547
  do
 
4548
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4549
    mv "conftest.tmp" "conftest.in"
 
4550
    cp "conftest.in" "conftest.nl"
 
4551
    $as_echo '' >> "conftest.nl"
 
4552
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4553
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4554
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4555
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4556
      # Best one so far, save it but keep looking for a better one
 
4557
      ac_cv_path_SED="$ac_path_SED"
 
4558
      ac_path_SED_max=$ac_count
 
4559
    fi
 
4560
    # 10*(2^10) chars as input seems more than enough
 
4561
    test $ac_count -gt 10 && break
 
4562
  done
 
4563
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4564
esac
 
4565
 
 
4566
      $ac_path_SED_found && break 3
 
4567
    done
 
4568
  done
 
4569
  done
 
4570
IFS=$as_save_IFS
 
4571
  if test -z "$ac_cv_path_SED"; then
 
4572
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4573
  fi
 
4574
else
 
4575
  ac_cv_path_SED=$SED
 
4576
fi
 
4577
 
 
4578
fi
 
4579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4580
$as_echo "$ac_cv_path_SED" >&6; }
 
4581
 SED="$ac_cv_path_SED"
 
4582
  rm -f conftest.sed
 
4583
 
 
4584
test -z "$SED" && SED=sed
 
4585
Xsed="$SED -e 1s/^X//"
 
4586
 
 
4587
 
 
4588
 
 
4589
 
 
4590
 
 
4591
 
 
4592
 
 
4593
 
 
4594
 
 
4595
 
 
4596
 
 
4597
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4598
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4599
if test "${ac_cv_path_GREP+set}" = set; then :
 
4600
  $as_echo_n "(cached) " >&6
 
4601
else
 
4602
  if test -z "$GREP"; then
 
4603
  ac_path_GREP_found=false
 
4604
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4605
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4606
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4607
do
 
4608
  IFS=$as_save_IFS
 
4609
  test -z "$as_dir" && as_dir=.
 
4610
    for ac_prog in grep ggrep; do
 
4611
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4612
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4613
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4614
# Check for GNU ac_path_GREP and select it if it is found.
 
4615
  # Check for GNU $ac_path_GREP
 
4616
case `"$ac_path_GREP" --version 2>&1` in
 
4617
*GNU*)
 
4618
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4619
*)
 
4620
  ac_count=0
 
4621
  $as_echo_n 0123456789 >"conftest.in"
 
4622
  while :
 
4623
  do
 
4624
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4625
    mv "conftest.tmp" "conftest.in"
 
4626
    cp "conftest.in" "conftest.nl"
 
4627
    $as_echo 'GREP' >> "conftest.nl"
 
4628
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4629
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4630
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4631
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4632
      # Best one so far, save it but keep looking for a better one
 
4633
      ac_cv_path_GREP="$ac_path_GREP"
 
4634
      ac_path_GREP_max=$ac_count
 
4635
    fi
 
4636
    # 10*(2^10) chars as input seems more than enough
 
4637
    test $ac_count -gt 10 && break
 
4638
  done
 
4639
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4640
esac
 
4641
 
 
4642
      $ac_path_GREP_found && break 3
 
4643
    done
 
4644
  done
 
4645
  done
 
4646
IFS=$as_save_IFS
 
4647
  if test -z "$ac_cv_path_GREP"; then
 
4648
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4649
  fi
 
4650
else
 
4651
  ac_cv_path_GREP=$GREP
 
4652
fi
 
4653
 
 
4654
fi
 
4655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4656
$as_echo "$ac_cv_path_GREP" >&6; }
 
4657
 GREP="$ac_cv_path_GREP"
 
4658
 
 
4659
 
 
4660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4661
$as_echo_n "checking for egrep... " >&6; }
 
4662
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4663
  $as_echo_n "(cached) " >&6
 
4664
else
 
4665
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4666
   then ac_cv_path_EGREP="$GREP -E"
 
4667
   else
 
4668
     if test -z "$EGREP"; then
 
4669
  ac_path_EGREP_found=false
 
4670
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4671
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4672
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4673
do
 
4674
  IFS=$as_save_IFS
 
4675
  test -z "$as_dir" && as_dir=.
 
4676
    for ac_prog in egrep; do
 
4677
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4678
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4679
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4680
# Check for GNU ac_path_EGREP and select it if it is found.
 
4681
  # Check for GNU $ac_path_EGREP
 
4682
case `"$ac_path_EGREP" --version 2>&1` in
 
4683
*GNU*)
 
4684
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4685
*)
 
4686
  ac_count=0
 
4687
  $as_echo_n 0123456789 >"conftest.in"
 
4688
  while :
 
4689
  do
 
4690
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4691
    mv "conftest.tmp" "conftest.in"
 
4692
    cp "conftest.in" "conftest.nl"
 
4693
    $as_echo 'EGREP' >> "conftest.nl"
 
4694
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4695
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4696
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4697
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4698
      # Best one so far, save it but keep looking for a better one
 
4699
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4700
      ac_path_EGREP_max=$ac_count
 
4701
    fi
 
4702
    # 10*(2^10) chars as input seems more than enough
 
4703
    test $ac_count -gt 10 && break
 
4704
  done
 
4705
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4706
esac
 
4707
 
 
4708
      $ac_path_EGREP_found && break 3
 
4709
    done
 
4710
  done
 
4711
  done
 
4712
IFS=$as_save_IFS
 
4713
  if test -z "$ac_cv_path_EGREP"; then
 
4714
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4715
  fi
 
4716
else
 
4717
  ac_cv_path_EGREP=$EGREP
 
4718
fi
 
4719
 
 
4720
   fi
 
4721
fi
 
4722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4723
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4724
 EGREP="$ac_cv_path_EGREP"
 
4725
 
 
4726
 
 
4727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4728
$as_echo_n "checking for fgrep... " >&6; }
 
4729
if test "${ac_cv_path_FGREP+set}" = set; then :
 
4730
  $as_echo_n "(cached) " >&6
 
4731
else
 
4732
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4733
   then ac_cv_path_FGREP="$GREP -F"
 
4734
   else
 
4735
     if test -z "$FGREP"; then
 
4736
  ac_path_FGREP_found=false
 
4737
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4738
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4739
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4740
do
 
4741
  IFS=$as_save_IFS
 
4742
  test -z "$as_dir" && as_dir=.
 
4743
    for ac_prog in fgrep; do
 
4744
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4745
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4746
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4747
# Check for GNU ac_path_FGREP and select it if it is found.
 
4748
  # Check for GNU $ac_path_FGREP
 
4749
case `"$ac_path_FGREP" --version 2>&1` in
 
4750
*GNU*)
 
4751
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4752
*)
 
4753
  ac_count=0
 
4754
  $as_echo_n 0123456789 >"conftest.in"
 
4755
  while :
 
4756
  do
 
4757
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4758
    mv "conftest.tmp" "conftest.in"
 
4759
    cp "conftest.in" "conftest.nl"
 
4760
    $as_echo 'FGREP' >> "conftest.nl"
 
4761
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4762
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4763
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4764
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4765
      # Best one so far, save it but keep looking for a better one
 
4766
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4767
      ac_path_FGREP_max=$ac_count
 
4768
    fi
 
4769
    # 10*(2^10) chars as input seems more than enough
 
4770
    test $ac_count -gt 10 && break
 
4771
  done
 
4772
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4773
esac
 
4774
 
 
4775
      $ac_path_FGREP_found && break 3
 
4776
    done
 
4777
  done
 
4778
  done
 
4779
IFS=$as_save_IFS
 
4780
  if test -z "$ac_cv_path_FGREP"; then
 
4781
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4782
  fi
 
4783
else
 
4784
  ac_cv_path_FGREP=$FGREP
 
4785
fi
 
4786
 
 
4787
   fi
 
4788
fi
 
4789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4790
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4791
 FGREP="$ac_cv_path_FGREP"
 
4792
 
 
4793
 
 
4794
test -z "$GREP" && GREP=grep
 
4795
 
 
4796
 
 
4797
 
 
4798
 
 
4799
 
 
4800
 
 
4801
 
 
4802
 
 
4803
 
 
4804
 
 
4805
 
 
4806
 
 
4807
 
 
4808
 
 
4809
 
 
4810
 
 
4811
 
 
4812
 
 
4813
 
 
4814
# Check whether --with-gnu-ld was given.
 
4815
if test "${with_gnu_ld+set}" = set; then :
 
4816
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4817
else
 
4818
  with_gnu_ld=no
 
4819
fi
 
4820
 
 
4821
ac_prog=ld
 
4822
if test "$GCC" = yes; then
 
4823
  # Check if gcc -print-prog-name=ld gives a path.
 
4824
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4825
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4826
  case $host in
 
4827
  *-*-mingw*)
 
4828
    # gcc leaves a trailing carriage return which upsets mingw
 
4829
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4830
  *)
 
4831
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4832
  esac
 
4833
  case $ac_prog in
 
4834
    # Accept absolute paths.
 
4835
    [\\/]* | ?:[\\/]*)
 
4836
      re_direlt='/[^/][^/]*/\.\./'
 
4837
      # Canonicalize the pathname of ld
 
4838
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4839
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4840
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4841
      done
 
4842
      test -z "$LD" && LD="$ac_prog"
 
4843
      ;;
 
4844
  "")
 
4845
    # If it fails, then pretend we aren't using GCC.
 
4846
    ac_prog=ld
 
4847
    ;;
 
4848
  *)
 
4849
    # If it is relative, then search for the first ld in PATH.
 
4850
    with_gnu_ld=unknown
 
4851
    ;;
 
4852
  esac
 
4853
elif test "$with_gnu_ld" = yes; then
 
4854
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4855
$as_echo_n "checking for GNU ld... " >&6; }
 
4856
else
 
4857
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4858
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4859
fi
 
4860
if test "${lt_cv_path_LD+set}" = set; then :
 
4861
  $as_echo_n "(cached) " >&6
 
4862
else
 
4863
  if test -z "$LD"; then
 
4864
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4865
  for ac_dir in $PATH; do
 
4866
    IFS="$lt_save_ifs"
 
4867
    test -z "$ac_dir" && ac_dir=.
 
4868
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4869
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4870
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4871
      # but apparently some variants of GNU ld only accept -v.
 
4872
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4873
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4874
      *GNU* | *'with BFD'*)
 
4875
        test "$with_gnu_ld" != no && break
 
4876
        ;;
 
4877
      *)
 
4878
        test "$with_gnu_ld" != yes && break
 
4879
        ;;
 
4880
      esac
 
4881
    fi
 
4882
  done
 
4883
  IFS="$lt_save_ifs"
 
4884
else
 
4885
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4886
fi
 
4887
fi
 
4888
 
 
4889
LD="$lt_cv_path_LD"
 
4890
if test -n "$LD"; then
 
4891
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4892
$as_echo "$LD" >&6; }
 
4893
else
 
4894
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4895
$as_echo "no" >&6; }
 
4896
fi
 
4897
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
4898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4899
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4900
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
4901
  $as_echo_n "(cached) " >&6
 
4902
else
 
4903
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4904
case `$LD -v 2>&1 </dev/null` in
 
4905
*GNU* | *'with BFD'*)
 
4906
  lt_cv_prog_gnu_ld=yes
 
4907
  ;;
 
4908
*)
 
4909
  lt_cv_prog_gnu_ld=no
 
4910
  ;;
 
4911
esac
 
4912
fi
 
4913
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4914
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4915
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4916
 
 
4917
 
 
4918
 
 
4919
 
 
4920
 
 
4921
 
 
4922
 
 
4923
 
 
4924
 
 
4925
 
 
4926
for ac_prog in gawk mawk nawk awk
 
4927
do
 
4928
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4929
set dummy $ac_prog; ac_word=$2
 
4930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4931
$as_echo_n "checking for $ac_word... " >&6; }
 
4932
if test "${ac_cv_prog_AWK+set}" = set; then :
 
4933
  $as_echo_n "(cached) " >&6
 
4934
else
 
4935
  if test -n "$AWK"; then
 
4936
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
4937
else
 
4938
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4939
for as_dir in $PATH
 
4940
do
 
4941
  IFS=$as_save_IFS
 
4942
  test -z "$as_dir" && as_dir=.
 
4943
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4944
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4945
    ac_cv_prog_AWK="$ac_prog"
 
4946
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4947
    break 2
 
4948
  fi
 
4949
done
 
4950
  done
 
4951
IFS=$as_save_IFS
 
4952
 
 
4953
fi
 
4954
fi
 
4955
AWK=$ac_cv_prog_AWK
 
4956
if test -n "$AWK"; then
 
4957
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
4958
$as_echo "$AWK" >&6; }
 
4959
else
 
4960
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4961
$as_echo "no" >&6; }
 
4962
fi
 
4963
 
 
4964
 
 
4965
  test -n "$AWK" && break
 
4966
done
 
4967
 
 
4968
ac_ext=c
 
4969
ac_cpp='$CPP $CPPFLAGS'
 
4970
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4971
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4972
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
4974
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
4975
# On Suns, sometimes $CPP names a directory.
 
4976
if test -n "$CPP" && test -d "$CPP"; then
 
4977
  CPP=
 
4978
fi
 
4979
if test -z "$CPP"; then
 
4980
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
4981
  $as_echo_n "(cached) " >&6
 
4982
else
 
4983
      # Double quotes because CPP needs to be expanded
 
4984
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4985
    do
 
4986
      ac_preproc_ok=false
 
4987
for ac_c_preproc_warn_flag in '' yes
 
4988
do
 
4989
  # Use a header file that comes with gcc, so configuring glibc
 
4990
  # with a fresh cross-compiler works.
 
4991
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4992
  # <limits.h> exists even on freestanding compilers.
 
4993
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4994
  # not just through cpp. "Syntax error" is here to catch this case.
 
4995
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4996
/* end confdefs.h.  */
 
4997
#ifdef __STDC__
 
4998
# include <limits.h>
 
4999
#else
 
5000
# include <assert.h>
 
5001
#endif
 
5002
                     Syntax error
 
5003
_ACEOF
 
5004
if ac_fn_c_try_cpp "$LINENO"; then :
 
5005
 
 
5006
else
 
5007
  # Broken: fails on valid input.
 
5008
continue
 
5009
fi
 
5010
rm -f conftest.err conftest.$ac_ext
 
5011
 
 
5012
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5013
  # can be detected and how.
 
5014
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5015
/* end confdefs.h.  */
 
5016
#include <ac_nonexistent.h>
 
5017
_ACEOF
 
5018
if ac_fn_c_try_cpp "$LINENO"; then :
 
5019
  # Broken: success on invalid input.
 
5020
continue
 
5021
else
 
5022
  # Passes both tests.
 
5023
ac_preproc_ok=:
 
5024
break
 
5025
fi
 
5026
rm -f conftest.err conftest.$ac_ext
 
5027
 
 
5028
done
 
5029
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5030
rm -f conftest.err conftest.$ac_ext
 
5031
if $ac_preproc_ok; then :
 
5032
  break
 
5033
fi
 
5034
 
 
5035
    done
 
5036
    ac_cv_prog_CPP=$CPP
 
5037
 
 
5038
fi
 
5039
  CPP=$ac_cv_prog_CPP
 
5040
else
 
5041
  ac_cv_prog_CPP=$CPP
 
5042
fi
 
5043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
5044
$as_echo "$CPP" >&6; }
 
5045
ac_preproc_ok=false
 
5046
for ac_c_preproc_warn_flag in '' yes
 
5047
do
 
5048
  # Use a header file that comes with gcc, so configuring glibc
 
5049
  # with a fresh cross-compiler works.
 
5050
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5051
  # <limits.h> exists even on freestanding compilers.
 
5052
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5053
  # not just through cpp. "Syntax error" is here to catch this case.
 
5054
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5055
/* end confdefs.h.  */
 
5056
#ifdef __STDC__
 
5057
# include <limits.h>
 
5058
#else
 
5059
# include <assert.h>
 
5060
#endif
 
5061
                     Syntax error
 
5062
_ACEOF
 
5063
if ac_fn_c_try_cpp "$LINENO"; then :
 
5064
 
 
5065
else
 
5066
  # Broken: fails on valid input.
 
5067
continue
 
5068
fi
 
5069
rm -f conftest.err conftest.$ac_ext
 
5070
 
 
5071
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5072
  # can be detected and how.
 
5073
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5074
/* end confdefs.h.  */
 
5075
#include <ac_nonexistent.h>
 
5076
_ACEOF
 
5077
if ac_fn_c_try_cpp "$LINENO"; then :
 
5078
  # Broken: success on invalid input.
 
5079
continue
 
5080
else
 
5081
  # Passes both tests.
 
5082
ac_preproc_ok=:
 
5083
break
 
5084
fi
 
5085
rm -f conftest.err conftest.$ac_ext
 
5086
 
 
5087
done
 
5088
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5089
rm -f conftest.err conftest.$ac_ext
 
5090
if $ac_preproc_ok; then :
 
5091
 
 
5092
else
 
5093
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
5094
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5095
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
5096
See \`config.log' for more details." "$LINENO" 5; }
 
5097
fi
 
5098
 
 
5099
ac_ext=c
 
5100
ac_cpp='$CPP $CPPFLAGS'
 
5101
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5102
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5103
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5104
 
 
5105
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5106
$as_echo_n "checking whether ln -s works... " >&6; }
 
5107
LN_S=$as_ln_s
 
5108
if test "$LN_S" = "ln -s"; then
 
5109
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5110
$as_echo "yes" >&6; }
 
5111
else
 
5112
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5113
$as_echo "no, using $LN_S" >&6; }
 
5114
fi
 
5115
 
 
5116
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
5117
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
5118
set x ${MAKE-make}
 
5119
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
5120
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
5121
  $as_echo_n "(cached) " >&6
 
5122
else
 
5123
  cat >conftest.make <<\_ACEOF
 
5124
SHELL = /bin/sh
 
5125
all:
 
5126
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
5127
_ACEOF
 
5128
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
5129
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
5130
  *@@@%%%=?*=@@@%%%*)
 
5131
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
5132
  *)
 
5133
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
5134
esac
 
5135
rm -f conftest.make
 
5136
fi
 
5137
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
5138
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5139
$as_echo "yes" >&6; }
 
5140
  SET_MAKE=
 
5141
else
 
5142
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5143
$as_echo "no" >&6; }
 
5144
  SET_MAKE="MAKE=${MAKE-make}"
 
5145
fi
 
5146
 
 
5147
 
 
5148
 
 
5149
 
 
5150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
5151
$as_echo_n "checking for ANSI C header files... " >&6; }
 
5152
if test "${ac_cv_header_stdc+set}" = set; then :
 
5153
  $as_echo_n "(cached) " >&6
 
5154
else
 
5155
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5156
/* end confdefs.h.  */
 
5157
#include <stdlib.h>
 
5158
#include <stdarg.h>
 
5159
#include <string.h>
 
5160
#include <float.h>
 
5161
 
 
5162
int
 
5163
main ()
 
5164
{
 
5165
 
 
5166
  ;
 
5167
  return 0;
 
5168
}
 
5169
_ACEOF
 
5170
if ac_fn_c_try_compile "$LINENO"; then :
 
5171
  ac_cv_header_stdc=yes
 
5172
else
 
5173
  ac_cv_header_stdc=no
 
5174
fi
 
5175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5176
 
 
5177
if test $ac_cv_header_stdc = yes; then
 
5178
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5179
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5180
/* end confdefs.h.  */
 
5181
#include <string.h>
 
5182
 
 
5183
_ACEOF
 
5184
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5185
  $EGREP "memchr" >/dev/null 2>&1; then :
 
5186
 
 
5187
else
 
5188
  ac_cv_header_stdc=no
 
5189
fi
 
5190
rm -f conftest*
 
5191
 
 
5192
fi
 
5193
 
 
5194
if test $ac_cv_header_stdc = yes; then
 
5195
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5196
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5197
/* end confdefs.h.  */
 
5198
#include <stdlib.h>
 
5199
 
 
5200
_ACEOF
 
5201
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5202
  $EGREP "free" >/dev/null 2>&1; then :
 
5203
 
 
5204
else
 
5205
  ac_cv_header_stdc=no
 
5206
fi
 
5207
rm -f conftest*
 
5208
 
 
5209
fi
 
5210
 
 
5211
if test $ac_cv_header_stdc = yes; then
 
5212
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5213
  if test "$cross_compiling" = yes; then :
 
5214
  :
 
5215
else
 
5216
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5217
/* end confdefs.h.  */
 
5218
#include <ctype.h>
 
5219
#include <stdlib.h>
 
5220
#if ((' ' & 0x0FF) == 0x020)
 
5221
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5222
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5223
#else
 
5224
# define ISLOWER(c) \
 
5225
                   (('a' <= (c) && (c) <= 'i') \
 
5226
                     || ('j' <= (c) && (c) <= 'r') \
 
5227
                     || ('s' <= (c) && (c) <= 'z'))
 
5228
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5229
#endif
 
5230
 
 
5231
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5232
int
 
5233
main ()
 
5234
{
 
5235
  int i;
 
5236
  for (i = 0; i < 256; i++)
 
5237
    if (XOR (islower (i), ISLOWER (i))
 
5238
        || toupper (i) != TOUPPER (i))
 
5239
      return 2;
 
5240
  return 0;
 
5241
}
 
5242
_ACEOF
 
5243
if ac_fn_c_try_run "$LINENO"; then :
 
5244
 
 
5245
else
 
5246
  ac_cv_header_stdc=no
 
5247
fi
 
5248
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5249
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5250
fi
 
5251
 
 
5252
fi
 
5253
fi
 
5254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
5255
$as_echo "$ac_cv_header_stdc" >&6; }
 
5256
if test $ac_cv_header_stdc = yes; then
 
5257
 
 
5258
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
5259
 
 
5260
fi
 
5261
 
 
5262
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5263
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5264
                  inttypes.h stdint.h unistd.h
 
5265
do :
 
5266
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5267
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
5268
"
 
5269
eval as_val=\$$as_ac_Header
 
5270
   if test "x$as_val" = x""yes; then :
 
5271
  cat >>confdefs.h <<_ACEOF
 
5272
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5273
_ACEOF
 
5274
 
 
5275
fi
 
5276
 
 
5277
done
 
5278
 
 
5279
 
 
5280
 
 
5281
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
5282
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
 
5283
  MINIX=yes
 
5284
else
 
5285
  MINIX=
 
5286
fi
 
5287
 
 
5288
 
 
5289
  if test "$MINIX" = yes; then
 
5290
 
 
5291
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 
5292
 
 
5293
 
 
5294
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 
5295
 
 
5296
 
 
5297
$as_echo "#define _MINIX 1" >>confdefs.h
 
5298
 
 
5299
  fi
 
5300
 
 
5301
 
 
5302
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 
5303
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
5304
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
 
5305
  $as_echo_n "(cached) " >&6
 
5306
else
 
5307
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5308
/* end confdefs.h.  */
 
5309
 
 
5310
#         define __EXTENSIONS__ 1
 
5311
          $ac_includes_default
 
5312
int
 
5313
main ()
 
5314
{
 
5315
 
 
5316
  ;
 
5317
  return 0;
 
5318
}
 
5319
_ACEOF
 
5320
if ac_fn_c_try_compile "$LINENO"; then :
 
5321
  ac_cv_safe_to_define___extensions__=yes
 
5322
else
 
5323
  ac_cv_safe_to_define___extensions__=no
 
5324
fi
 
5325
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5326
fi
 
5327
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 
5328
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
5329
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
5330
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 
5331
 
 
5332
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 
5333
 
 
5334
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 
5335
 
 
5336
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
5337
 
 
5338
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 
5339
 
 
5340
 
 
5341
 
 
5342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
 
5343
$as_echo_n "checking for library containing strerror... " >&6; }
 
5344
if test "${ac_cv_search_strerror+set}" = set; then :
 
5345
  $as_echo_n "(cached) " >&6
 
5346
else
 
5347
  ac_func_search_save_LIBS=$LIBS
 
5348
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5349
/* end confdefs.h.  */
 
5350
 
 
5351
/* Override any GCC internal prototype to avoid an error.
 
5352
   Use char because int might match the return type of a GCC
 
5353
   builtin and then its argument prototype would still apply.  */
 
5354
#ifdef __cplusplus
 
5355
extern "C"
 
5356
#endif
 
5357
char strerror ();
 
5358
int
 
5359
main ()
 
5360
{
 
5361
return strerror ();
 
5362
  ;
 
5363
  return 0;
 
5364
}
 
5365
_ACEOF
 
5366
for ac_lib in '' cposix; do
 
5367
  if test -z "$ac_lib"; then
 
5368
    ac_res="none required"
 
5369
  else
 
5370
    ac_res=-l$ac_lib
 
5371
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
5372
  fi
 
5373
  if ac_fn_c_try_link "$LINENO"; then :
 
5374
  ac_cv_search_strerror=$ac_res
 
5375
fi
 
5376
rm -f core conftest.err conftest.$ac_objext \
 
5377
    conftest$ac_exeext
 
5378
  if test "${ac_cv_search_strerror+set}" = set; then :
 
5379
  break
 
5380
fi
 
5381
done
 
5382
if test "${ac_cv_search_strerror+set}" = set; then :
 
5383
 
 
5384
else
 
5385
  ac_cv_search_strerror=no
 
5386
fi
 
5387
rm conftest.$ac_ext
 
5388
LIBS=$ac_func_search_save_LIBS
 
5389
fi
 
5390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
 
5391
$as_echo "$ac_cv_search_strerror" >&6; }
 
5392
ac_res=$ac_cv_search_strerror
 
5393
if test "$ac_res" != no; then :
 
5394
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
5395
 
 
5396
fi
 
5397
 
 
5398
 
 
5399
 
 
5400
case $host_os in
 
5401
        *darwin*|*cygwin*|*aix*|*mingw* ) NO_RDYNAMIC=yes;;
 
5402
        * ) NO_RDYNAMIC=no;;
 
5403
esac
 
5404
 if test x$NO_RDYNAMIC = xyes; then
 
5405
  NO_RDYNAMIC_TRUE=
 
5406
  NO_RDYNAMIC_FALSE='#'
 
5407
else
 
5408
  NO_RDYNAMIC_TRUE='#'
 
5409
  NO_RDYNAMIC_FALSE=
 
5410
fi
 
5411
 
 
5412
 
 
5413
 
 
5414
 
 
5415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
 
5416
$as_echo_n "checking for function prototypes... " >&6; }
 
5417
if test "$ac_cv_prog_cc_c89" != no; then
 
5418
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5419
$as_echo "yes" >&6; }
 
5420
 
 
5421
$as_echo "#define PROTOTYPES 1" >>confdefs.h
 
5422
 
 
5423
 
 
5424
$as_echo "#define __PROTOTYPES 1" >>confdefs.h
 
5425
 
 
5426
else
 
5427
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5428
$as_echo "no" >&6; }
 
5429
fi
 
5430
 
 
5431
 
 
5432
if test "$ac_cv_prog_cc_stdc" != no; then
 
5433
  U= ANSI2KNR=
 
5434
else
 
5435
  U=_ ANSI2KNR=./ansi2knr
 
5436
fi
 
5437
# Ensure some checks needed by ansi2knr itself.
 
5438
 
 
5439
for ac_header in string.h
 
5440
do :
 
5441
  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
 
5442
if test "x$ac_cv_header_string_h" = x""yes; then :
 
5443
  cat >>confdefs.h <<_ACEOF
 
5444
#define HAVE_STRING_H 1
 
5445
_ACEOF
 
5446
 
 
5447
fi
 
5448
 
 
5449
done
 
5450
 
 
5451
 
 
5452
 
 
5453
# Check whether --enable-static was given.
 
5454
if test "${enable_static+set}" = set; then :
 
5455
  enableval=$enable_static; p=${PACKAGE-default}
 
5456
    case $enableval in
 
5457
    yes) enable_static=yes ;;
 
5458
    no) enable_static=no ;;
 
5459
    *)
 
5460
     enable_static=no
 
5461
      # Look at the argument we got.  We use all the common list separators.
 
5462
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5463
      for pkg in $enableval; do
 
5464
        IFS="$lt_save_ifs"
 
5465
        if test "X$pkg" = "X$p"; then
 
5466
          enable_static=yes
 
5467
        fi
 
5468
      done
 
5469
      IFS="$lt_save_ifs"
 
5470
      ;;
 
5471
    esac
 
5472
else
 
5473
  enable_static=no
 
5474
fi
 
5475
 
 
5476
 
 
5477
 
 
5478
 
 
5479
 
 
5480
 
 
5481
 
 
5482
 
 
5483
 
 
5484
# Check whether --enable-shared was given.
 
5485
if test "${enable_shared+set}" = set; then :
 
5486
  enableval=$enable_shared; p=${PACKAGE-default}
 
5487
    case $enableval in
 
5488
    yes) enable_shared=yes ;;
 
5489
    no) enable_shared=no ;;
 
5490
    *)
 
5491
      enable_shared=no
 
5492
      # Look at the argument we got.  We use all the common list separators.
 
5493
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5494
      for pkg in $enableval; do
 
5495
        IFS="$lt_save_ifs"
 
5496
        if test "X$pkg" = "X$p"; then
 
5497
          enable_shared=yes
 
5498
        fi
 
5499
      done
 
5500
      IFS="$lt_save_ifs"
 
5501
      ;;
 
5502
    esac
 
5503
else
 
5504
  enable_shared=yes
 
5505
fi
 
5506
 
 
5507
 
 
5508
 
 
5509
 
 
5510
 
 
5511
 
 
5512
 
 
5513
 
 
5514
 
 
5515
 
 
5516
enable_dlopen=yes
 
5517
 
 
5518
 
 
5519
 
 
5520
case `pwd` in
 
5521
  *\ * | *\     *)
 
5522
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
5523
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
5524
esac
 
5525
 
 
5526
 
 
5527
 
 
5528
macro_version='2.2.6b'
 
5529
macro_revision='1.3017'
 
5530
 
 
5531
 
 
5532
 
 
5533
 
 
5534
 
 
5535
 
 
5536
 
 
5537
 
 
5538
 
 
5539
 
 
5540
 
 
5541
 
 
5542
 
 
5543
ltmain="$ac_aux_dir/ltmain.sh"
 
5544
 
 
5545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5546
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5547
if test "${lt_cv_path_NM+set}" = set; then :
 
5548
  $as_echo_n "(cached) " >&6
 
5549
else
 
5550
  if test -n "$NM"; then
 
5551
  # Let the user override the test.
 
5552
  lt_cv_path_NM="$NM"
 
5553
else
 
5554
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5555
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5556
    lt_nm_to_check="$lt_nm_to_check nm"
 
5557
  fi
 
5558
  for lt_tmp_nm in $lt_nm_to_check; do
 
5559
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5560
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5561
      IFS="$lt_save_ifs"
 
5562
      test -z "$ac_dir" && ac_dir=.
 
5563
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5564
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5565
        # Check to see if the nm accepts a BSD-compat flag.
 
5566
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5567
        #   nm: unknown option "B" ignored
 
5568
        # Tru64's nm complains that /dev/null is an invalid object file
 
5569
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5570
        */dev/null* | *'Invalid file or object type'*)
 
5571
          lt_cv_path_NM="$tmp_nm -B"
 
5572
          break
 
5573
          ;;
 
5574
        *)
 
5575
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5576
          */dev/null*)
 
5577
            lt_cv_path_NM="$tmp_nm -p"
 
5578
            break
 
5579
            ;;
 
5580
          *)
 
5581
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5582
            continue # so that we can try to find one that supports BSD flags
 
5583
            ;;
 
5584
          esac
 
5585
          ;;
 
5586
        esac
 
5587
      fi
 
5588
    done
 
5589
    IFS="$lt_save_ifs"
 
5590
  done
 
5591
  : ${lt_cv_path_NM=no}
 
5592
fi
 
5593
fi
 
5594
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5595
$as_echo "$lt_cv_path_NM" >&6; }
 
5596
if test "$lt_cv_path_NM" != "no"; then
 
5597
  NM="$lt_cv_path_NM"
 
5598
else
 
5599
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5600
  if test -n "$ac_tool_prefix"; then
 
5601
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5602
  do
 
5603
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5604
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5606
$as_echo_n "checking for $ac_word... " >&6; }
 
5607
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
5608
  $as_echo_n "(cached) " >&6
 
5609
else
 
5610
  if test -n "$DUMPBIN"; then
 
5611
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5612
else
 
5613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5614
for as_dir in $PATH
 
5615
do
 
5616
  IFS=$as_save_IFS
 
5617
  test -z "$as_dir" && as_dir=.
 
5618
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5619
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5620
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5621
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5622
    break 2
 
5623
  fi
 
5624
done
 
5625
  done
 
5626
IFS=$as_save_IFS
 
5627
 
 
5628
fi
 
5629
fi
 
5630
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5631
if test -n "$DUMPBIN"; then
 
5632
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5633
$as_echo "$DUMPBIN" >&6; }
 
5634
else
 
5635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5636
$as_echo "no" >&6; }
 
5637
fi
 
5638
 
 
5639
 
 
5640
    test -n "$DUMPBIN" && break
 
5641
  done
 
5642
fi
 
5643
if test -z "$DUMPBIN"; then
 
5644
  ac_ct_DUMPBIN=$DUMPBIN
 
5645
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5646
do
 
5647
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5648
set dummy $ac_prog; ac_word=$2
 
5649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5650
$as_echo_n "checking for $ac_word... " >&6; }
 
5651
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
5652
  $as_echo_n "(cached) " >&6
 
5653
else
 
5654
  if test -n "$ac_ct_DUMPBIN"; then
 
5655
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5656
else
 
5657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5658
for as_dir in $PATH
 
5659
do
 
5660
  IFS=$as_save_IFS
 
5661
  test -z "$as_dir" && as_dir=.
 
5662
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5663
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5664
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5665
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5666
    break 2
 
5667
  fi
 
5668
done
 
5669
  done
 
5670
IFS=$as_save_IFS
 
5671
 
 
5672
fi
 
5673
fi
 
5674
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5675
if test -n "$ac_ct_DUMPBIN"; then
 
5676
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5677
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5678
else
 
5679
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5680
$as_echo "no" >&6; }
 
5681
fi
 
5682
 
 
5683
 
 
5684
  test -n "$ac_ct_DUMPBIN" && break
 
5685
done
 
5686
 
 
5687
  if test "x$ac_ct_DUMPBIN" = x; then
 
5688
    DUMPBIN=":"
 
5689
  else
 
5690
    case $cross_compiling:$ac_tool_warned in
 
5691
yes:)
 
5692
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5693
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5694
ac_tool_warned=yes ;;
 
5695
esac
 
5696
    DUMPBIN=$ac_ct_DUMPBIN
 
5697
  fi
 
5698
fi
 
5699
 
 
5700
 
 
5701
  if test "$DUMPBIN" != ":"; then
 
5702
    NM="$DUMPBIN"
 
5703
  fi
 
5704
fi
 
5705
test -z "$NM" && NM=nm
 
5706
 
 
5707
 
 
5708
 
 
5709
 
 
5710
 
 
5711
 
 
5712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5713
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5714
if test "${lt_cv_nm_interface+set}" = set; then :
 
5715
  $as_echo_n "(cached) " >&6
 
5716
else
 
5717
  lt_cv_nm_interface="BSD nm"
 
5718
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5719
  (eval echo "\"\$as_me:5719: $ac_compile\"" >&5)
 
5720
  (eval "$ac_compile" 2>conftest.err)
 
5721
  cat conftest.err >&5
 
5722
  (eval echo "\"\$as_me:5722: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5723
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5724
  cat conftest.err >&5
 
5725
  (eval echo "\"\$as_me:5725: output\"" >&5)
 
5726
  cat conftest.out >&5
 
5727
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5728
    lt_cv_nm_interface="MS dumpbin"
 
5729
  fi
 
5730
  rm -f conftest*
 
5731
fi
 
5732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5733
$as_echo "$lt_cv_nm_interface" >&6; }
 
5734
 
 
5735
# find the maximum length of command line arguments
 
5736
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5737
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5738
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
5739
  $as_echo_n "(cached) " >&6
 
5740
else
 
5741
    i=0
 
5742
  teststring="ABCD"
 
5743
 
 
5744
  case $build_os in
 
5745
  msdosdjgpp*)
 
5746
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5747
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5748
    # during glob expansion).  Even if it were fixed, the result of this
 
5749
    # check would be larger than it should be.
 
5750
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5751
    ;;
 
5752
 
 
5753
  gnu*)
 
5754
    # Under GNU Hurd, this test is not required because there is
 
5755
    # no limit to the length of command line arguments.
 
5756
    # Libtool will interpret -1 as no limit whatsoever
 
5757
    lt_cv_sys_max_cmd_len=-1;
 
5758
    ;;
 
5759
 
 
5760
  cygwin* | mingw* | cegcc*)
 
5761
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5762
    # about 5 minutes as the teststring grows exponentially.
 
5763
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5764
    # you end up with a "frozen" computer, even though with patience
 
5765
    # the test eventually succeeds (with a max line length of 256k).
 
5766
    # Instead, let's just punt: use the minimum linelength reported by
 
5767
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5768
    lt_cv_sys_max_cmd_len=8192;
 
5769
    ;;
 
5770
 
 
5771
  amigaos*)
 
5772
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5773
    # So we just punt and use a minimum line length of 8192.
 
5774
    lt_cv_sys_max_cmd_len=8192;
 
5775
    ;;
 
5776
 
 
5777
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5778
    # This has been around since 386BSD, at least.  Likely further.
 
5779
    if test -x /sbin/sysctl; then
 
5780
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5781
    elif test -x /usr/sbin/sysctl; then
 
5782
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5783
    else
 
5784
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5785
    fi
 
5786
    # And add a safety zone
 
5787
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5788
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5789
    ;;
 
5790
 
 
5791
  interix*)
 
5792
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5793
    lt_cv_sys_max_cmd_len=196608
 
5794
    ;;
 
5795
 
 
5796
  osf*)
 
5797
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5798
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5799
    # nice to cause kernel panics so lets avoid the loop below.
 
5800
    # First set a reasonable default.
 
5801
    lt_cv_sys_max_cmd_len=16384
 
5802
    #
 
5803
    if test -x /sbin/sysconfig; then
 
5804
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5805
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5806
      esac
 
5807
    fi
 
5808
    ;;
 
5809
  sco3.2v5*)
 
5810
    lt_cv_sys_max_cmd_len=102400
 
5811
    ;;
 
5812
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5813
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5814
    if test -n "$kargmax"; then
 
5815
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5816
    else
 
5817
      lt_cv_sys_max_cmd_len=32768
 
5818
    fi
 
5819
    ;;
 
5820
  *)
 
5821
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5822
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5823
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5824
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5825
    else
 
5826
      # Make teststring a little bigger before we do anything with it.
 
5827
      # a 1K string should be a reasonable start.
 
5828
      for i in 1 2 3 4 5 6 7 8 ; do
 
5829
        teststring=$teststring$teststring
 
5830
      done
 
5831
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5832
      # If test is not a shell built-in, we'll probably end up computing a
 
5833
      # maximum length that is only half of the actual maximum length, but
 
5834
      # we can't tell.
 
5835
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
5836
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
5837
              test $i != 17 # 1/2 MB should be enough
 
5838
      do
 
5839
        i=`expr $i + 1`
 
5840
        teststring=$teststring$teststring
 
5841
      done
 
5842
      # Only check the string length outside the loop.
 
5843
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5844
      teststring=
 
5845
      # Add a significant safety factor because C++ compilers can tack on
 
5846
      # massive amounts of additional arguments before passing them to the
 
5847
      # linker.  It appears as though 1/2 is a usable value.
 
5848
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5849
    fi
 
5850
    ;;
 
5851
  esac
 
5852
 
 
5853
fi
 
5854
 
 
5855
if test -n $lt_cv_sys_max_cmd_len ; then
 
5856
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5857
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5858
else
 
5859
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5860
$as_echo "none" >&6; }
 
5861
fi
 
5862
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5863
 
 
5864
 
 
5865
 
 
5866
 
 
5867
 
 
5868
 
 
5869
: ${CP="cp -f"}
 
5870
: ${MV="mv -f"}
 
5871
: ${RM="rm -f"}
 
5872
 
 
5873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5874
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5875
# Try some XSI features
 
5876
xsi_shell=no
 
5877
( _lt_dummy="a/b/c"
 
5878
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
5879
      = c,a/b,, \
 
5880
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5881
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5882
  && xsi_shell=yes
 
5883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5884
$as_echo "$xsi_shell" >&6; }
 
5885
 
 
5886
 
 
5887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5888
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5889
lt_shell_append=no
 
5890
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5891
    >/dev/null 2>&1 \
 
5892
  && lt_shell_append=yes
 
5893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5894
$as_echo "$lt_shell_append" >&6; }
 
5895
 
 
5896
 
 
5897
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5898
  lt_unset=unset
 
5899
else
 
5900
  lt_unset=false
 
5901
fi
 
5902
 
 
5903
 
 
5904
 
 
5905
 
 
5906
 
 
5907
# test EBCDIC or ASCII
 
5908
case `echo X|tr X '\101'` in
 
5909
 A) # ASCII based system
 
5910
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5911
  lt_SP2NL='tr \040 \012'
 
5912
  lt_NL2SP='tr \015\012 \040\040'
 
5913
  ;;
 
5914
 *) # EBCDIC based system
 
5915
  lt_SP2NL='tr \100 \n'
 
5916
  lt_NL2SP='tr \r\n \100\100'
 
5917
  ;;
 
5918
esac
 
5919
 
 
5920
 
 
5921
 
 
5922
 
 
5923
 
 
5924
 
 
5925
 
 
5926
 
 
5927
 
 
5928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5929
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5930
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
5931
  $as_echo_n "(cached) " >&6
 
5932
else
 
5933
  lt_cv_ld_reload_flag='-r'
 
5934
fi
 
5935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5936
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5937
reload_flag=$lt_cv_ld_reload_flag
 
5938
case $reload_flag in
 
5939
"" | " "*) ;;
 
5940
*) reload_flag=" $reload_flag" ;;
 
5941
esac
 
5942
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5943
case $host_os in
 
5944
  darwin*)
 
5945
    if test "$GCC" = yes; then
 
5946
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5947
    else
 
5948
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5949
    fi
 
5950
    ;;
 
5951
esac
 
5952
 
 
5953
 
 
5954
 
 
5955
 
 
5956
 
 
5957
 
 
5958
 
 
5959
 
 
5960
 
 
5961
if test -n "$ac_tool_prefix"; then
 
5962
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5963
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5965
$as_echo_n "checking for $ac_word... " >&6; }
 
5966
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
5967
  $as_echo_n "(cached) " >&6
 
5968
else
 
5969
  if test -n "$OBJDUMP"; then
 
5970
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5971
else
 
5972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5973
for as_dir in $PATH
 
5974
do
 
5975
  IFS=$as_save_IFS
 
5976
  test -z "$as_dir" && as_dir=.
 
5977
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5978
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5979
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5980
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5981
    break 2
 
5982
  fi
 
5983
done
 
5984
  done
 
5985
IFS=$as_save_IFS
 
5986
 
 
5987
fi
 
5988
fi
 
5989
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5990
if test -n "$OBJDUMP"; then
 
5991
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5992
$as_echo "$OBJDUMP" >&6; }
 
5993
else
 
5994
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5995
$as_echo "no" >&6; }
 
5996
fi
 
5997
 
 
5998
 
 
5999
fi
 
6000
if test -z "$ac_cv_prog_OBJDUMP"; then
 
6001
  ac_ct_OBJDUMP=$OBJDUMP
 
6002
  # Extract the first word of "objdump", so it can be a program name with args.
 
6003
set dummy objdump; ac_word=$2
 
6004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6005
$as_echo_n "checking for $ac_word... " >&6; }
 
6006
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
6007
  $as_echo_n "(cached) " >&6
 
6008
else
 
6009
  if test -n "$ac_ct_OBJDUMP"; then
 
6010
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
6011
else
 
6012
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6013
for as_dir in $PATH
 
6014
do
 
6015
  IFS=$as_save_IFS
 
6016
  test -z "$as_dir" && as_dir=.
 
6017
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6018
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6019
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
6020
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6021
    break 2
 
6022
  fi
 
6023
done
 
6024
  done
 
6025
IFS=$as_save_IFS
 
6026
 
 
6027
fi
 
6028
fi
 
6029
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
6030
if test -n "$ac_ct_OBJDUMP"; then
 
6031
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
6032
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
6033
else
 
6034
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6035
$as_echo "no" >&6; }
 
6036
fi
 
6037
 
 
6038
  if test "x$ac_ct_OBJDUMP" = x; then
 
6039
    OBJDUMP="false"
 
6040
  else
 
6041
    case $cross_compiling:$ac_tool_warned in
 
6042
yes:)
 
6043
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6044
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6045
ac_tool_warned=yes ;;
 
6046
esac
 
6047
    OBJDUMP=$ac_ct_OBJDUMP
 
6048
  fi
 
6049
else
 
6050
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
6051
fi
 
6052
 
 
6053
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6054
 
 
6055
 
 
6056
 
 
6057
 
 
6058
 
 
6059
 
 
6060
 
 
6061
 
 
6062
 
 
6063
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
6064
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
6065
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
6066
  $as_echo_n "(cached) " >&6
 
6067
else
 
6068
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
6069
lt_cv_file_magic_test_file=
 
6070
lt_cv_deplibs_check_method='unknown'
 
6071
# Need to set the preceding variable on all platforms that support
 
6072
# interlibrary dependencies.
 
6073
# 'none' -- dependencies not supported.
 
6074
# `unknown' -- same as none, but documents that we really don't know.
 
6075
# 'pass_all' -- all dependencies passed with no checks.
 
6076
# 'test_compile' -- check by making test program.
 
6077
# 'file_magic [[regex]]' -- check by looking for files in library path
 
6078
# which responds to the $file_magic_cmd with a given extended regex.
 
6079
# If you have `file' or equivalent on your system and you're not sure
 
6080
# whether `pass_all' will *always* work, you probably want this one.
 
6081
 
 
6082
case $host_os in
 
6083
aix[4-9]*)
 
6084
  lt_cv_deplibs_check_method=pass_all
 
6085
  ;;
 
6086
 
 
6087
beos*)
 
6088
  lt_cv_deplibs_check_method=pass_all
 
6089
  ;;
 
6090
 
 
6091
bsdi[45]*)
 
6092
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
6093
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
6094
  lt_cv_file_magic_test_file=/shlib/libc.so
 
6095
  ;;
 
6096
 
 
6097
cygwin*)
 
6098
  # func_win32_libid is a shell function defined in ltmain.sh
 
6099
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6100
  lt_cv_file_magic_cmd='func_win32_libid'
 
6101
  ;;
 
6102
 
 
6103
mingw* | pw32*)
 
6104
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
6105
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
6106
  # unless we find 'file', for example because we are cross-compiling.
 
6107
  if ( file / ) >/dev/null 2>&1; then
 
6108
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6109
    lt_cv_file_magic_cmd='func_win32_libid'
 
6110
  else
 
6111
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
6112
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6113
  fi
 
6114
  ;;
 
6115
 
 
6116
cegcc)
 
6117
  # use the weaker test based on 'objdump'. See mingw*.
 
6118
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
6119
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6120
  ;;
 
6121
 
 
6122
darwin* | rhapsody*)
 
6123
  lt_cv_deplibs_check_method=pass_all
 
6124
  ;;
 
6125
 
 
6126
freebsd* | dragonfly*)
 
6127
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6128
    case $host_cpu in
 
6129
    i*86 )
 
6130
      # Not sure whether the presence of OpenBSD here was a mistake.
 
6131
      # Let's accept both of them until this is cleared up.
 
6132
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
6133
      lt_cv_file_magic_cmd=/usr/bin/file
 
6134
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6135
      ;;
 
6136
    esac
 
6137
  else
 
6138
    lt_cv_deplibs_check_method=pass_all
 
6139
  fi
 
6140
  ;;
 
6141
 
 
6142
gnu*)
 
6143
  lt_cv_deplibs_check_method=pass_all
 
6144
  ;;
 
6145
 
 
6146
hpux10.20* | hpux11*)
 
6147
  lt_cv_file_magic_cmd=/usr/bin/file
 
6148
  case $host_cpu in
 
6149
  ia64*)
 
6150
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
6151
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
6152
    ;;
 
6153
  hppa*64*)
 
6154
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
6155
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
6156
    ;;
 
6157
  *)
 
6158
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
6159
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
6160
    ;;
 
6161
  esac
 
6162
  ;;
 
6163
 
 
6164
interix[3-9]*)
 
6165
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
6166
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
6167
  ;;
 
6168
 
 
6169
irix5* | irix6* | nonstopux*)
 
6170
  case $LD in
 
6171
  *-32|*"-32 ") libmagic=32-bit;;
 
6172
  *-n32|*"-n32 ") libmagic=N32;;
 
6173
  *-64|*"-64 ") libmagic=64-bit;;
 
6174
  *) libmagic=never-match;;
 
6175
  esac
 
6176
  lt_cv_deplibs_check_method=pass_all
 
6177
  ;;
 
6178
 
 
6179
# This must be Linux ELF.
 
6180
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
6181
  lt_cv_deplibs_check_method=pass_all
 
6182
  ;;
 
6183
 
 
6184
netbsd* | netbsdelf*-gnu)
 
6185
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6186
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6187
  else
 
6188
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
6189
  fi
 
6190
  ;;
 
6191
 
 
6192
newos6*)
 
6193
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
6194
  lt_cv_file_magic_cmd=/usr/bin/file
 
6195
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
6196
  ;;
 
6197
 
 
6198
*nto* | *qnx*)
 
6199
  lt_cv_deplibs_check_method=pass_all
 
6200
  ;;
 
6201
 
 
6202
openbsd*)
 
6203
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6204
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
6205
  else
 
6206
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6207
  fi
 
6208
  ;;
 
6209
 
 
6210
osf3* | osf4* | osf5*)
 
6211
  lt_cv_deplibs_check_method=pass_all
 
6212
  ;;
 
6213
 
 
6214
rdos*)
 
6215
  lt_cv_deplibs_check_method=pass_all
 
6216
  ;;
 
6217
 
 
6218
solaris*)
 
6219
  lt_cv_deplibs_check_method=pass_all
 
6220
  ;;
 
6221
 
 
6222
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6223
  lt_cv_deplibs_check_method=pass_all
 
6224
  ;;
 
6225
 
 
6226
sysv4 | sysv4.3*)
 
6227
  case $host_vendor in
 
6228
  motorola)
 
6229
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
6230
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6231
    ;;
 
6232
  ncr)
 
6233
    lt_cv_deplibs_check_method=pass_all
 
6234
    ;;
 
6235
  sequent)
 
6236
    lt_cv_file_magic_cmd='/bin/file'
 
6237
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6238
    ;;
 
6239
  sni)
 
6240
    lt_cv_file_magic_cmd='/bin/file'
 
6241
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6242
    lt_cv_file_magic_test_file=/lib/libc.so
 
6243
    ;;
 
6244
  siemens)
 
6245
    lt_cv_deplibs_check_method=pass_all
 
6246
    ;;
 
6247
  pc)
 
6248
    lt_cv_deplibs_check_method=pass_all
 
6249
    ;;
 
6250
  esac
 
6251
  ;;
 
6252
 
 
6253
tpf*)
 
6254
  lt_cv_deplibs_check_method=pass_all
 
6255
  ;;
 
6256
esac
 
6257
 
 
6258
fi
 
6259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
6260
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
6261
file_magic_cmd=$lt_cv_file_magic_cmd
 
6262
deplibs_check_method=$lt_cv_deplibs_check_method
 
6263
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6264
 
 
6265
 
 
6266
 
 
6267
 
 
6268
 
 
6269
 
 
6270
 
 
6271
 
 
6272
 
 
6273
 
 
6274
 
 
6275
 
 
6276
if test -n "$ac_tool_prefix"; then
 
6277
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6278
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6280
$as_echo_n "checking for $ac_word... " >&6; }
 
6281
if test "${ac_cv_prog_AR+set}" = set; then :
 
6282
  $as_echo_n "(cached) " >&6
 
6283
else
 
6284
  if test -n "$AR"; then
 
6285
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6286
else
 
6287
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6288
for as_dir in $PATH
 
6289
do
 
6290
  IFS=$as_save_IFS
 
6291
  test -z "$as_dir" && as_dir=.
 
6292
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6293
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6294
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6295
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6296
    break 2
 
6297
  fi
 
6298
done
 
6299
  done
 
6300
IFS=$as_save_IFS
 
6301
 
 
6302
fi
 
6303
fi
 
6304
AR=$ac_cv_prog_AR
 
6305
if test -n "$AR"; then
 
6306
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6307
$as_echo "$AR" >&6; }
 
6308
else
 
6309
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6310
$as_echo "no" >&6; }
 
6311
fi
 
6312
 
 
6313
 
 
6314
fi
 
6315
if test -z "$ac_cv_prog_AR"; then
 
6316
  ac_ct_AR=$AR
 
6317
  # Extract the first word of "ar", so it can be a program name with args.
 
6318
set dummy ar; ac_word=$2
 
6319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6320
$as_echo_n "checking for $ac_word... " >&6; }
 
6321
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
6322
  $as_echo_n "(cached) " >&6
 
6323
else
 
6324
  if test -n "$ac_ct_AR"; then
 
6325
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6326
else
 
6327
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6328
for as_dir in $PATH
 
6329
do
 
6330
  IFS=$as_save_IFS
 
6331
  test -z "$as_dir" && as_dir=.
 
6332
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6333
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6334
    ac_cv_prog_ac_ct_AR="ar"
 
6335
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6336
    break 2
 
6337
  fi
 
6338
done
 
6339
  done
 
6340
IFS=$as_save_IFS
 
6341
 
 
6342
fi
 
6343
fi
 
6344
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6345
if test -n "$ac_ct_AR"; then
 
6346
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6347
$as_echo "$ac_ct_AR" >&6; }
 
6348
else
 
6349
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6350
$as_echo "no" >&6; }
 
6351
fi
 
6352
 
 
6353
  if test "x$ac_ct_AR" = x; then
 
6354
    AR="false"
 
6355
  else
 
6356
    case $cross_compiling:$ac_tool_warned in
 
6357
yes:)
 
6358
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6359
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6360
ac_tool_warned=yes ;;
 
6361
esac
 
6362
    AR=$ac_ct_AR
 
6363
  fi
 
6364
else
 
6365
  AR="$ac_cv_prog_AR"
 
6366
fi
 
6367
 
 
6368
test -z "$AR" && AR=ar
 
6369
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6370
 
 
6371
 
 
6372
 
 
6373
 
 
6374
 
 
6375
 
 
6376
 
 
6377
 
 
6378
 
 
6379
 
 
6380
 
 
6381
if test -n "$ac_tool_prefix"; then
 
6382
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6383
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6385
$as_echo_n "checking for $ac_word... " >&6; }
 
6386
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
6387
  $as_echo_n "(cached) " >&6
 
6388
else
 
6389
  if test -n "$STRIP"; then
 
6390
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6391
else
 
6392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6393
for as_dir in $PATH
 
6394
do
 
6395
  IFS=$as_save_IFS
 
6396
  test -z "$as_dir" && as_dir=.
 
6397
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6398
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6399
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6400
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6401
    break 2
 
6402
  fi
 
6403
done
 
6404
  done
 
6405
IFS=$as_save_IFS
 
6406
 
 
6407
fi
 
6408
fi
 
6409
STRIP=$ac_cv_prog_STRIP
 
6410
if test -n "$STRIP"; then
 
6411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6412
$as_echo "$STRIP" >&6; }
 
6413
else
 
6414
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6415
$as_echo "no" >&6; }
 
6416
fi
 
6417
 
 
6418
 
 
6419
fi
 
6420
if test -z "$ac_cv_prog_STRIP"; then
 
6421
  ac_ct_STRIP=$STRIP
 
6422
  # Extract the first word of "strip", so it can be a program name with args.
 
6423
set dummy strip; ac_word=$2
 
6424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6425
$as_echo_n "checking for $ac_word... " >&6; }
 
6426
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
6427
  $as_echo_n "(cached) " >&6
 
6428
else
 
6429
  if test -n "$ac_ct_STRIP"; then
 
6430
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6431
else
 
6432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6433
for as_dir in $PATH
 
6434
do
 
6435
  IFS=$as_save_IFS
 
6436
  test -z "$as_dir" && as_dir=.
 
6437
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6438
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6439
    ac_cv_prog_ac_ct_STRIP="strip"
 
6440
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6441
    break 2
 
6442
  fi
 
6443
done
 
6444
  done
 
6445
IFS=$as_save_IFS
 
6446
 
 
6447
fi
 
6448
fi
 
6449
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6450
if test -n "$ac_ct_STRIP"; then
 
6451
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
6452
$as_echo "$ac_ct_STRIP" >&6; }
 
6453
else
 
6454
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6455
$as_echo "no" >&6; }
 
6456
fi
 
6457
 
 
6458
  if test "x$ac_ct_STRIP" = x; then
 
6459
    STRIP=":"
 
6460
  else
 
6461
    case $cross_compiling:$ac_tool_warned in
 
6462
yes:)
 
6463
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6464
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6465
ac_tool_warned=yes ;;
 
6466
esac
 
6467
    STRIP=$ac_ct_STRIP
 
6468
  fi
 
6469
else
 
6470
  STRIP="$ac_cv_prog_STRIP"
 
6471
fi
 
6472
 
 
6473
test -z "$STRIP" && STRIP=:
 
6474
 
 
6475
 
 
6476
 
 
6477
 
 
6478
 
 
6479
 
 
6480
if test -n "$ac_tool_prefix"; then
 
6481
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6482
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6484
$as_echo_n "checking for $ac_word... " >&6; }
 
6485
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
6486
  $as_echo_n "(cached) " >&6
 
6487
else
 
6488
  if test -n "$RANLIB"; then
 
6489
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6490
else
 
6491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6492
for as_dir in $PATH
 
6493
do
 
6494
  IFS=$as_save_IFS
 
6495
  test -z "$as_dir" && as_dir=.
 
6496
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6497
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6498
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6499
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6500
    break 2
 
6501
  fi
 
6502
done
 
6503
  done
 
6504
IFS=$as_save_IFS
 
6505
 
 
6506
fi
 
6507
fi
 
6508
RANLIB=$ac_cv_prog_RANLIB
 
6509
if test -n "$RANLIB"; then
 
6510
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6511
$as_echo "$RANLIB" >&6; }
 
6512
else
 
6513
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6514
$as_echo "no" >&6; }
 
6515
fi
 
6516
 
 
6517
 
 
6518
fi
 
6519
if test -z "$ac_cv_prog_RANLIB"; then
 
6520
  ac_ct_RANLIB=$RANLIB
 
6521
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6522
set dummy ranlib; ac_word=$2
 
6523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6524
$as_echo_n "checking for $ac_word... " >&6; }
 
6525
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
6526
  $as_echo_n "(cached) " >&6
 
6527
else
 
6528
  if test -n "$ac_ct_RANLIB"; then
 
6529
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6530
else
 
6531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6532
for as_dir in $PATH
 
6533
do
 
6534
  IFS=$as_save_IFS
 
6535
  test -z "$as_dir" && as_dir=.
 
6536
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6537
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6538
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6539
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6540
    break 2
 
6541
  fi
 
6542
done
 
6543
  done
 
6544
IFS=$as_save_IFS
 
6545
 
 
6546
fi
 
6547
fi
 
6548
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6549
if test -n "$ac_ct_RANLIB"; then
 
6550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6551
$as_echo "$ac_ct_RANLIB" >&6; }
 
6552
else
 
6553
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6554
$as_echo "no" >&6; }
 
6555
fi
 
6556
 
 
6557
  if test "x$ac_ct_RANLIB" = x; then
 
6558
    RANLIB=":"
 
6559
  else
 
6560
    case $cross_compiling:$ac_tool_warned in
 
6561
yes:)
 
6562
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6563
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6564
ac_tool_warned=yes ;;
 
6565
esac
 
6566
    RANLIB=$ac_ct_RANLIB
 
6567
  fi
 
6568
else
 
6569
  RANLIB="$ac_cv_prog_RANLIB"
 
6570
fi
 
6571
 
 
6572
test -z "$RANLIB" && RANLIB=:
 
6573
 
 
6574
 
 
6575
 
 
6576
 
 
6577
 
 
6578
 
 
6579
# Determine commands to create old-style static archives.
 
6580
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6581
old_postinstall_cmds='chmod 644 $oldlib'
 
6582
old_postuninstall_cmds=
 
6583
 
 
6584
if test -n "$RANLIB"; then
 
6585
  case $host_os in
 
6586
  openbsd*)
 
6587
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6588
    ;;
 
6589
  *)
 
6590
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6591
    ;;
 
6592
  esac
 
6593
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6594
fi
 
6595
 
 
6596
 
 
6597
 
 
6598
 
 
6599
 
 
6600
 
 
6601
 
 
6602
 
 
6603
 
 
6604
 
 
6605
 
 
6606
 
 
6607
 
 
6608
 
 
6609
 
 
6610
 
 
6611
 
 
6612
 
 
6613
 
 
6614
 
 
6615
 
 
6616
 
 
6617
 
 
6618
 
 
6619
 
 
6620
 
 
6621
 
 
6622
 
 
6623
 
 
6624
 
 
6625
 
 
6626
 
 
6627
 
 
6628
 
 
6629
# If no C compiler was specified, use CC.
 
6630
LTCC=${LTCC-"$CC"}
 
6631
 
 
6632
# If no C compiler flags were specified, use CFLAGS.
 
6633
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6634
 
 
6635
# Allow CC to be a program name with arguments.
 
6636
compiler=$CC
 
6637
 
 
6638
 
 
6639
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6641
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6642
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
6643
  $as_echo_n "(cached) " >&6
 
6644
else
 
6645
 
 
6646
# These are sane defaults that work on at least a few old systems.
 
6647
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6648
 
 
6649
# Character class describing NM global symbol codes.
 
6650
symcode='[BCDEGRST]'
 
6651
 
 
6652
# Regexp to match symbols that can be accessed directly from C.
 
6653
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6654
 
 
6655
# Define system-specific variables.
 
6656
case $host_os in
 
6657
aix*)
 
6658
  symcode='[BCDT]'
 
6659
  ;;
 
6660
cygwin* | mingw* | pw32* | cegcc*)
 
6661
  symcode='[ABCDGISTW]'
 
6662
  ;;
 
6663
hpux*)
 
6664
  if test "$host_cpu" = ia64; then
 
6665
    symcode='[ABCDEGRST]'
 
6666
  fi
 
6667
  ;;
 
6668
irix* | nonstopux*)
 
6669
  symcode='[BCDEGRST]'
 
6670
  ;;
 
6671
osf*)
 
6672
  symcode='[BCDEGQRST]'
 
6673
  ;;
 
6674
solaris*)
 
6675
  symcode='[BDRT]'
 
6676
  ;;
 
6677
sco3.2v5*)
 
6678
  symcode='[DT]'
 
6679
  ;;
 
6680
sysv4.2uw2*)
 
6681
  symcode='[DT]'
 
6682
  ;;
 
6683
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6684
  symcode='[ABDT]'
 
6685
  ;;
 
6686
sysv4)
 
6687
  symcode='[DFNSTU]'
 
6688
  ;;
 
6689
esac
 
6690
 
 
6691
# If we're using GNU nm, then use its standard symbol codes.
 
6692
case `$NM -V 2>&1` in
 
6693
*GNU* | *'with BFD'*)
 
6694
  symcode='[ABCDGIRSTW]' ;;
 
6695
esac
 
6696
 
 
6697
# Transform an extracted symbol line into a proper C declaration.
 
6698
# Some systems (esp. on ia64) link data and code symbols differently,
 
6699
# so use this general approach.
 
6700
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6701
 
 
6702
# Transform an extracted symbol line into symbol name and symbol address
 
6703
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6704
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
6705
 
 
6706
# Handle CRLF in mingw tool chain
 
6707
opt_cr=
 
6708
case $build_os in
 
6709
mingw*)
 
6710
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6711
  ;;
 
6712
esac
 
6713
 
 
6714
# Try without a prefix underscore, then with it.
 
6715
for ac_symprfx in "" "_"; do
 
6716
 
 
6717
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6718
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6719
 
 
6720
  # Write the raw and C identifiers.
 
6721
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6722
    # Fake it for dumpbin and say T for any non-static function
 
6723
    # and D for any global variable.
 
6724
    # Also find C++ and __fastcall symbols from MSVC++,
 
6725
    # which start with @ or ?.
 
6726
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6727
"     {last_section=section; section=\$ 3};"\
 
6728
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6729
"     \$ 0!~/External *\|/{next};"\
 
6730
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6731
"     {if(hide[section]) next};"\
 
6732
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6733
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6734
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6735
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6736
"     ' prfx=^$ac_symprfx"
 
6737
  else
 
6738
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6739
  fi
 
6740
 
 
6741
  # Check to see that the pipe works correctly.
 
6742
  pipe_works=no
 
6743
 
 
6744
  rm -f conftest*
 
6745
  cat > conftest.$ac_ext <<_LT_EOF
 
6746
#ifdef __cplusplus
 
6747
extern "C" {
 
6748
#endif
 
6749
char nm_test_var;
 
6750
void nm_test_func(void);
 
6751
void nm_test_func(void){}
 
6752
#ifdef __cplusplus
 
6753
}
 
6754
#endif
 
6755
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6756
_LT_EOF
 
6757
 
 
6758
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6759
  (eval $ac_compile) 2>&5
 
6760
  ac_status=$?
 
6761
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6762
  test $ac_status = 0; }; then
 
6763
    # Now try to grab the symbols.
 
6764
    nlist=conftest.nm
 
6765
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
 
6766
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6767
  ac_status=$?
 
6768
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6769
  test $ac_status = 0; } && test -s "$nlist"; then
 
6770
      # Try sorting and uniquifying the output.
 
6771
      if sort "$nlist" | uniq > "$nlist"T; then
 
6772
        mv -f "$nlist"T "$nlist"
 
6773
      else
 
6774
        rm -f "$nlist"T
 
6775
      fi
 
6776
 
 
6777
      # Make sure that we snagged all the symbols we need.
 
6778
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6779
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6780
          cat <<_LT_EOF > conftest.$ac_ext
 
6781
#ifdef __cplusplus
 
6782
extern "C" {
 
6783
#endif
 
6784
 
 
6785
_LT_EOF
 
6786
          # Now generate the symbol file.
 
6787
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6788
 
 
6789
          cat <<_LT_EOF >> conftest.$ac_ext
 
6790
 
 
6791
/* The mapping between symbol names and symbols.  */
 
6792
const struct {
 
6793
  const char *name;
 
6794
  void       *address;
 
6795
}
 
6796
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6797
{
 
6798
  { "@PROGRAM@", (void *) 0 },
 
6799
_LT_EOF
 
6800
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6801
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6802
  {0, (void *) 0}
 
6803
};
 
6804
 
 
6805
/* This works around a problem in FreeBSD linker */
 
6806
#ifdef FREEBSD_WORKAROUND
 
6807
static const void *lt_preloaded_setup() {
 
6808
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6809
}
 
6810
#endif
 
6811
 
 
6812
#ifdef __cplusplus
 
6813
}
 
6814
#endif
 
6815
_LT_EOF
 
6816
          # Now try linking the two files.
 
6817
          mv conftest.$ac_objext conftstm.$ac_objext
 
6818
          lt_save_LIBS="$LIBS"
 
6819
          lt_save_CFLAGS="$CFLAGS"
 
6820
          LIBS="conftstm.$ac_objext"
 
6821
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6822
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6823
  (eval $ac_link) 2>&5
 
6824
  ac_status=$?
 
6825
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6826
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6827
            pipe_works=yes
 
6828
          fi
 
6829
          LIBS="$lt_save_LIBS"
 
6830
          CFLAGS="$lt_save_CFLAGS"
 
6831
        else
 
6832
          echo "cannot find nm_test_func in $nlist" >&5
 
6833
        fi
 
6834
      else
 
6835
        echo "cannot find nm_test_var in $nlist" >&5
 
6836
      fi
 
6837
    else
 
6838
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6839
    fi
 
6840
  else
 
6841
    echo "$progname: failed program was:" >&5
 
6842
    cat conftest.$ac_ext >&5
 
6843
  fi
 
6844
  rm -rf conftest* conftst*
 
6845
 
 
6846
  # Do not use the global_symbol_pipe unless it works.
 
6847
  if test "$pipe_works" = yes; then
 
6848
    break
 
6849
  else
 
6850
    lt_cv_sys_global_symbol_pipe=
 
6851
  fi
 
6852
done
 
6853
 
 
6854
fi
 
6855
 
 
6856
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6857
  lt_cv_sys_global_symbol_to_cdecl=
 
6858
fi
 
6859
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6860
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6861
$as_echo "failed" >&6; }
 
6862
else
 
6863
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6864
$as_echo "ok" >&6; }
 
6865
fi
 
6866
 
 
6867
 
 
6868
 
 
6869
 
 
6870
 
 
6871
 
 
6872
 
 
6873
 
 
6874
 
 
6875
 
 
6876
 
 
6877
 
 
6878
 
 
6879
 
 
6880
 
 
6881
 
 
6882
 
 
6883
 
 
6884
 
 
6885
 
 
6886
 
 
6887
 
 
6888
# Check whether --enable-libtool-lock was given.
 
6889
if test "${enable_libtool_lock+set}" = set; then :
 
6890
  enableval=$enable_libtool_lock;
 
6891
fi
 
6892
 
 
6893
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6894
 
 
6895
# Some flags need to be propagated to the compiler or linker for good
 
6896
# libtool support.
 
6897
case $host in
 
6898
ia64-*-hpux*)
 
6899
  # Find out which ABI we are using.
 
6900
  echo 'int i;' > conftest.$ac_ext
 
6901
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6902
  (eval $ac_compile) 2>&5
 
6903
  ac_status=$?
 
6904
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6905
  test $ac_status = 0; }; then
 
6906
    case `/usr/bin/file conftest.$ac_objext` in
 
6907
      *ELF-32*)
 
6908
        HPUX_IA64_MODE="32"
 
6909
        ;;
 
6910
      *ELF-64*)
 
6911
        HPUX_IA64_MODE="64"
 
6912
        ;;
 
6913
    esac
 
6914
  fi
 
6915
  rm -rf conftest*
 
6916
  ;;
 
6917
*-*-irix6*)
 
6918
  # Find out which ABI we are using.
 
6919
  echo '#line 6919 "configure"' > conftest.$ac_ext
 
6920
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6921
  (eval $ac_compile) 2>&5
 
6922
  ac_status=$?
 
6923
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6924
  test $ac_status = 0; }; then
 
6925
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6926
      case `/usr/bin/file conftest.$ac_objext` in
 
6927
        *32-bit*)
 
6928
          LD="${LD-ld} -melf32bsmip"
 
6929
          ;;
 
6930
        *N32*)
 
6931
          LD="${LD-ld} -melf32bmipn32"
 
6932
          ;;
 
6933
        *64-bit*)
 
6934
          LD="${LD-ld} -melf64bmip"
 
6935
        ;;
 
6936
      esac
 
6937
    else
 
6938
      case `/usr/bin/file conftest.$ac_objext` in
 
6939
        *32-bit*)
 
6940
          LD="${LD-ld} -32"
 
6941
          ;;
 
6942
        *N32*)
 
6943
          LD="${LD-ld} -n32"
 
6944
          ;;
 
6945
        *64-bit*)
 
6946
          LD="${LD-ld} -64"
 
6947
          ;;
 
6948
      esac
 
6949
    fi
 
6950
  fi
 
6951
  rm -rf conftest*
 
6952
  ;;
 
6953
 
 
6954
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6955
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6956
  # Find out which ABI we are using.
 
6957
  echo 'int i;' > conftest.$ac_ext
 
6958
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6959
  (eval $ac_compile) 2>&5
 
6960
  ac_status=$?
 
6961
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6962
  test $ac_status = 0; }; then
 
6963
    case `/usr/bin/file conftest.o` in
 
6964
      *32-bit*)
 
6965
        case $host in
 
6966
          x86_64-*kfreebsd*-gnu)
 
6967
            LD="${LD-ld} -m elf_i386_fbsd"
 
6968
            ;;
 
6969
          x86_64-*linux*)
 
6970
            LD="${LD-ld} -m elf_i386"
 
6971
            ;;
 
6972
          ppc64-*linux*|powerpc64-*linux*)
 
6973
            LD="${LD-ld} -m elf32ppclinux"
 
6974
            ;;
 
6975
          s390x-*linux*)
 
6976
            LD="${LD-ld} -m elf_s390"
 
6977
            ;;
 
6978
          sparc64-*linux*)
 
6979
            LD="${LD-ld} -m elf32_sparc"
 
6980
            ;;
 
6981
        esac
 
6982
        ;;
 
6983
      *64-bit*)
 
6984
        case $host in
 
6985
          x86_64-*kfreebsd*-gnu)
 
6986
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6987
            ;;
 
6988
          x86_64-*linux*)
 
6989
            LD="${LD-ld} -m elf_x86_64"
 
6990
            ;;
 
6991
          ppc*-*linux*|powerpc*-*linux*)
 
6992
            LD="${LD-ld} -m elf64ppc"
 
6993
            ;;
 
6994
          s390*-*linux*|s390*-*tpf*)
 
6995
            LD="${LD-ld} -m elf64_s390"
 
6996
            ;;
 
6997
          sparc*-*linux*)
 
6998
            LD="${LD-ld} -m elf64_sparc"
 
6999
            ;;
 
7000
        esac
 
7001
        ;;
 
7002
    esac
 
7003
  fi
 
7004
  rm -rf conftest*
 
7005
  ;;
 
7006
 
 
7007
*-*-sco3.2v5*)
 
7008
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7009
  SAVE_CFLAGS="$CFLAGS"
 
7010
  CFLAGS="$CFLAGS -belf"
 
7011
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
7012
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
7013
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
7014
  $as_echo_n "(cached) " >&6
 
7015
else
 
7016
  ac_ext=c
 
7017
ac_cpp='$CPP $CPPFLAGS'
 
7018
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7019
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7020
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7021
 
 
7022
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7023
/* end confdefs.h.  */
 
7024
 
 
7025
int
 
7026
main ()
 
7027
{
 
7028
 
 
7029
  ;
 
7030
  return 0;
 
7031
}
 
7032
_ACEOF
 
7033
if ac_fn_c_try_link "$LINENO"; then :
 
7034
  lt_cv_cc_needs_belf=yes
 
7035
else
 
7036
  lt_cv_cc_needs_belf=no
 
7037
fi
 
7038
rm -f core conftest.err conftest.$ac_objext \
 
7039
    conftest$ac_exeext conftest.$ac_ext
 
7040
     ac_ext=c
 
7041
ac_cpp='$CPP $CPPFLAGS'
 
7042
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7043
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7044
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7045
 
 
7046
fi
 
7047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
7048
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
7049
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7050
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7051
    CFLAGS="$SAVE_CFLAGS"
 
7052
  fi
 
7053
  ;;
 
7054
sparc*-*solaris*)
 
7055
  # Find out which ABI we are using.
 
7056
  echo 'int i;' > conftest.$ac_ext
 
7057
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7058
  (eval $ac_compile) 2>&5
 
7059
  ac_status=$?
 
7060
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7061
  test $ac_status = 0; }; then
 
7062
    case `/usr/bin/file conftest.o` in
 
7063
    *64-bit*)
 
7064
      case $lt_cv_prog_gnu_ld in
 
7065
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
7066
      *)
 
7067
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7068
          LD="${LD-ld} -64"
 
7069
        fi
 
7070
        ;;
 
7071
      esac
 
7072
      ;;
 
7073
    esac
 
7074
  fi
 
7075
  rm -rf conftest*
 
7076
  ;;
 
7077
esac
 
7078
 
 
7079
need_locks="$enable_libtool_lock"
 
7080
 
 
7081
 
 
7082
  case $host_os in
 
7083
    rhapsody* | darwin*)
 
7084
    if test -n "$ac_tool_prefix"; then
 
7085
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7086
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7088
$as_echo_n "checking for $ac_word... " >&6; }
 
7089
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
7090
  $as_echo_n "(cached) " >&6
 
7091
else
 
7092
  if test -n "$DSYMUTIL"; then
 
7093
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7094
else
 
7095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7096
for as_dir in $PATH
 
7097
do
 
7098
  IFS=$as_save_IFS
 
7099
  test -z "$as_dir" && as_dir=.
 
7100
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7101
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7102
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7103
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7104
    break 2
 
7105
  fi
 
7106
done
 
7107
  done
 
7108
IFS=$as_save_IFS
 
7109
 
 
7110
fi
 
7111
fi
 
7112
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7113
if test -n "$DSYMUTIL"; then
 
7114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
7115
$as_echo "$DSYMUTIL" >&6; }
 
7116
else
 
7117
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7118
$as_echo "no" >&6; }
 
7119
fi
 
7120
 
 
7121
 
 
7122
fi
 
7123
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7124
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7125
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7126
set dummy dsymutil; ac_word=$2
 
7127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7128
$as_echo_n "checking for $ac_word... " >&6; }
 
7129
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
7130
  $as_echo_n "(cached) " >&6
 
7131
else
 
7132
  if test -n "$ac_ct_DSYMUTIL"; then
 
7133
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7134
else
 
7135
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7136
for as_dir in $PATH
 
7137
do
 
7138
  IFS=$as_save_IFS
 
7139
  test -z "$as_dir" && as_dir=.
 
7140
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7141
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7142
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7143
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7144
    break 2
 
7145
  fi
 
7146
done
 
7147
  done
 
7148
IFS=$as_save_IFS
 
7149
 
 
7150
fi
 
7151
fi
 
7152
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7153
if test -n "$ac_ct_DSYMUTIL"; then
 
7154
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
7155
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7156
else
 
7157
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7158
$as_echo "no" >&6; }
 
7159
fi
 
7160
 
 
7161
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7162
    DSYMUTIL=":"
 
7163
  else
 
7164
    case $cross_compiling:$ac_tool_warned in
 
7165
yes:)
 
7166
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7167
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7168
ac_tool_warned=yes ;;
 
7169
esac
 
7170
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7171
  fi
 
7172
else
 
7173
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7174
fi
 
7175
 
 
7176
    if test -n "$ac_tool_prefix"; then
 
7177
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7178
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7180
$as_echo_n "checking for $ac_word... " >&6; }
 
7181
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
7182
  $as_echo_n "(cached) " >&6
 
7183
else
 
7184
  if test -n "$NMEDIT"; then
 
7185
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7186
else
 
7187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7188
for as_dir in $PATH
 
7189
do
 
7190
  IFS=$as_save_IFS
 
7191
  test -z "$as_dir" && as_dir=.
 
7192
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7193
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7194
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7195
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7196
    break 2
 
7197
  fi
 
7198
done
 
7199
  done
 
7200
IFS=$as_save_IFS
 
7201
 
 
7202
fi
 
7203
fi
 
7204
NMEDIT=$ac_cv_prog_NMEDIT
 
7205
if test -n "$NMEDIT"; then
 
7206
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7207
$as_echo "$NMEDIT" >&6; }
 
7208
else
 
7209
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7210
$as_echo "no" >&6; }
 
7211
fi
 
7212
 
 
7213
 
 
7214
fi
 
7215
if test -z "$ac_cv_prog_NMEDIT"; then
 
7216
  ac_ct_NMEDIT=$NMEDIT
 
7217
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7218
set dummy nmedit; ac_word=$2
 
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7220
$as_echo_n "checking for $ac_word... " >&6; }
 
7221
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
7222
  $as_echo_n "(cached) " >&6
 
7223
else
 
7224
  if test -n "$ac_ct_NMEDIT"; then
 
7225
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7226
else
 
7227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7228
for as_dir in $PATH
 
7229
do
 
7230
  IFS=$as_save_IFS
 
7231
  test -z "$as_dir" && as_dir=.
 
7232
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7233
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7234
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7235
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7236
    break 2
 
7237
  fi
 
7238
done
 
7239
  done
 
7240
IFS=$as_save_IFS
 
7241
 
 
7242
fi
 
7243
fi
 
7244
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7245
if test -n "$ac_ct_NMEDIT"; then
 
7246
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7247
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7248
else
 
7249
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7250
$as_echo "no" >&6; }
 
7251
fi
 
7252
 
 
7253
  if test "x$ac_ct_NMEDIT" = x; then
 
7254
    NMEDIT=":"
 
7255
  else
 
7256
    case $cross_compiling:$ac_tool_warned in
 
7257
yes:)
 
7258
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7259
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7260
ac_tool_warned=yes ;;
 
7261
esac
 
7262
    NMEDIT=$ac_ct_NMEDIT
 
7263
  fi
 
7264
else
 
7265
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7266
fi
 
7267
 
 
7268
    if test -n "$ac_tool_prefix"; then
 
7269
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7270
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7272
$as_echo_n "checking for $ac_word... " >&6; }
 
7273
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
7274
  $as_echo_n "(cached) " >&6
 
7275
else
 
7276
  if test -n "$LIPO"; then
 
7277
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7278
else
 
7279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7280
for as_dir in $PATH
 
7281
do
 
7282
  IFS=$as_save_IFS
 
7283
  test -z "$as_dir" && as_dir=.
 
7284
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7285
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7286
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7287
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7288
    break 2
 
7289
  fi
 
7290
done
 
7291
  done
 
7292
IFS=$as_save_IFS
 
7293
 
 
7294
fi
 
7295
fi
 
7296
LIPO=$ac_cv_prog_LIPO
 
7297
if test -n "$LIPO"; then
 
7298
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
7299
$as_echo "$LIPO" >&6; }
 
7300
else
 
7301
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7302
$as_echo "no" >&6; }
 
7303
fi
 
7304
 
 
7305
 
 
7306
fi
 
7307
if test -z "$ac_cv_prog_LIPO"; then
 
7308
  ac_ct_LIPO=$LIPO
 
7309
  # Extract the first word of "lipo", so it can be a program name with args.
 
7310
set dummy lipo; ac_word=$2
 
7311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7312
$as_echo_n "checking for $ac_word... " >&6; }
 
7313
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
7314
  $as_echo_n "(cached) " >&6
 
7315
else
 
7316
  if test -n "$ac_ct_LIPO"; then
 
7317
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7318
else
 
7319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7320
for as_dir in $PATH
 
7321
do
 
7322
  IFS=$as_save_IFS
 
7323
  test -z "$as_dir" && as_dir=.
 
7324
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7325
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7326
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7327
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7328
    break 2
 
7329
  fi
 
7330
done
 
7331
  done
 
7332
IFS=$as_save_IFS
 
7333
 
 
7334
fi
 
7335
fi
 
7336
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7337
if test -n "$ac_ct_LIPO"; then
 
7338
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
7339
$as_echo "$ac_ct_LIPO" >&6; }
 
7340
else
 
7341
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7342
$as_echo "no" >&6; }
 
7343
fi
 
7344
 
 
7345
  if test "x$ac_ct_LIPO" = x; then
 
7346
    LIPO=":"
 
7347
  else
 
7348
    case $cross_compiling:$ac_tool_warned in
 
7349
yes:)
 
7350
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7351
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7352
ac_tool_warned=yes ;;
 
7353
esac
 
7354
    LIPO=$ac_ct_LIPO
 
7355
  fi
 
7356
else
 
7357
  LIPO="$ac_cv_prog_LIPO"
 
7358
fi
 
7359
 
 
7360
    if test -n "$ac_tool_prefix"; then
 
7361
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7362
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7364
$as_echo_n "checking for $ac_word... " >&6; }
 
7365
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
7366
  $as_echo_n "(cached) " >&6
 
7367
else
 
7368
  if test -n "$OTOOL"; then
 
7369
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7370
else
 
7371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7372
for as_dir in $PATH
 
7373
do
 
7374
  IFS=$as_save_IFS
 
7375
  test -z "$as_dir" && as_dir=.
 
7376
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7377
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7378
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7379
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7380
    break 2
 
7381
  fi
 
7382
done
 
7383
  done
 
7384
IFS=$as_save_IFS
 
7385
 
 
7386
fi
 
7387
fi
 
7388
OTOOL=$ac_cv_prog_OTOOL
 
7389
if test -n "$OTOOL"; then
 
7390
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
7391
$as_echo "$OTOOL" >&6; }
 
7392
else
 
7393
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7394
$as_echo "no" >&6; }
 
7395
fi
 
7396
 
 
7397
 
 
7398
fi
 
7399
if test -z "$ac_cv_prog_OTOOL"; then
 
7400
  ac_ct_OTOOL=$OTOOL
 
7401
  # Extract the first word of "otool", so it can be a program name with args.
 
7402
set dummy otool; ac_word=$2
 
7403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7404
$as_echo_n "checking for $ac_word... " >&6; }
 
7405
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
7406
  $as_echo_n "(cached) " >&6
 
7407
else
 
7408
  if test -n "$ac_ct_OTOOL"; then
 
7409
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7410
else
 
7411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7412
for as_dir in $PATH
 
7413
do
 
7414
  IFS=$as_save_IFS
 
7415
  test -z "$as_dir" && as_dir=.
 
7416
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7417
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7418
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7419
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7420
    break 2
 
7421
  fi
 
7422
done
 
7423
  done
 
7424
IFS=$as_save_IFS
 
7425
 
 
7426
fi
 
7427
fi
 
7428
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7429
if test -n "$ac_ct_OTOOL"; then
 
7430
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
7431
$as_echo "$ac_ct_OTOOL" >&6; }
 
7432
else
 
7433
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7434
$as_echo "no" >&6; }
 
7435
fi
 
7436
 
 
7437
  if test "x$ac_ct_OTOOL" = x; then
 
7438
    OTOOL=":"
 
7439
  else
 
7440
    case $cross_compiling:$ac_tool_warned in
 
7441
yes:)
 
7442
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7443
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7444
ac_tool_warned=yes ;;
 
7445
esac
 
7446
    OTOOL=$ac_ct_OTOOL
 
7447
  fi
 
7448
else
 
7449
  OTOOL="$ac_cv_prog_OTOOL"
 
7450
fi
 
7451
 
 
7452
    if test -n "$ac_tool_prefix"; then
 
7453
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7454
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7456
$as_echo_n "checking for $ac_word... " >&6; }
 
7457
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
7458
  $as_echo_n "(cached) " >&6
 
7459
else
 
7460
  if test -n "$OTOOL64"; then
 
7461
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7462
else
 
7463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7464
for as_dir in $PATH
 
7465
do
 
7466
  IFS=$as_save_IFS
 
7467
  test -z "$as_dir" && as_dir=.
 
7468
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7469
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7470
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7471
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7472
    break 2
 
7473
  fi
 
7474
done
 
7475
  done
 
7476
IFS=$as_save_IFS
 
7477
 
 
7478
fi
 
7479
fi
 
7480
OTOOL64=$ac_cv_prog_OTOOL64
 
7481
if test -n "$OTOOL64"; then
 
7482
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
7483
$as_echo "$OTOOL64" >&6; }
 
7484
else
 
7485
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7486
$as_echo "no" >&6; }
 
7487
fi
 
7488
 
 
7489
 
 
7490
fi
 
7491
if test -z "$ac_cv_prog_OTOOL64"; then
 
7492
  ac_ct_OTOOL64=$OTOOL64
 
7493
  # Extract the first word of "otool64", so it can be a program name with args.
 
7494
set dummy otool64; ac_word=$2
 
7495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7496
$as_echo_n "checking for $ac_word... " >&6; }
 
7497
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
7498
  $as_echo_n "(cached) " >&6
 
7499
else
 
7500
  if test -n "$ac_ct_OTOOL64"; then
 
7501
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7502
else
 
7503
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7504
for as_dir in $PATH
 
7505
do
 
7506
  IFS=$as_save_IFS
 
7507
  test -z "$as_dir" && as_dir=.
 
7508
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7509
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7510
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7511
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7512
    break 2
 
7513
  fi
 
7514
done
 
7515
  done
 
7516
IFS=$as_save_IFS
 
7517
 
 
7518
fi
 
7519
fi
 
7520
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7521
if test -n "$ac_ct_OTOOL64"; then
 
7522
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7523
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7524
else
 
7525
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7526
$as_echo "no" >&6; }
 
7527
fi
 
7528
 
 
7529
  if test "x$ac_ct_OTOOL64" = x; then
 
7530
    OTOOL64=":"
 
7531
  else
 
7532
    case $cross_compiling:$ac_tool_warned in
 
7533
yes:)
 
7534
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7535
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7536
ac_tool_warned=yes ;;
 
7537
esac
 
7538
    OTOOL64=$ac_ct_OTOOL64
 
7539
  fi
 
7540
else
 
7541
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7542
fi
 
7543
 
 
7544
 
 
7545
 
 
7546
 
 
7547
 
 
7548
 
 
7549
 
 
7550
 
 
7551
 
 
7552
 
 
7553
 
 
7554
 
 
7555
 
 
7556
 
 
7557
 
 
7558
 
 
7559
 
 
7560
 
 
7561
 
 
7562
 
 
7563
 
 
7564
 
 
7565
 
 
7566
 
 
7567
 
 
7568
 
 
7569
 
 
7570
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7571
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7572
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
7573
  $as_echo_n "(cached) " >&6
 
7574
else
 
7575
  lt_cv_apple_cc_single_mod=no
 
7576
      if test -z "${LT_MULTI_MODULE}"; then
 
7577
        # By default we will add the -single_module flag. You can override
 
7578
        # by either setting the environment variable LT_MULTI_MODULE
 
7579
        # non-empty at configure time, or by adding -multi_module to the
 
7580
        # link flags.
 
7581
        rm -rf libconftest.dylib*
 
7582
        echo "int foo(void){return 1;}" > conftest.c
 
7583
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7584
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7585
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7586
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7587
        _lt_result=$?
 
7588
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
7589
          lt_cv_apple_cc_single_mod=yes
 
7590
        else
 
7591
          cat conftest.err >&5
 
7592
        fi
 
7593
        rm -rf libconftest.dylib*
 
7594
        rm -f conftest.*
 
7595
      fi
 
7596
fi
 
7597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7598
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7599
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7600
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7601
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
7602
  $as_echo_n "(cached) " >&6
 
7603
else
 
7604
  lt_cv_ld_exported_symbols_list=no
 
7605
      save_LDFLAGS=$LDFLAGS
 
7606
      echo "_main" > conftest.sym
 
7607
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7608
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7609
/* end confdefs.h.  */
 
7610
 
 
7611
int
 
7612
main ()
 
7613
{
 
7614
 
 
7615
  ;
 
7616
  return 0;
 
7617
}
 
7618
_ACEOF
 
7619
if ac_fn_c_try_link "$LINENO"; then :
 
7620
  lt_cv_ld_exported_symbols_list=yes
 
7621
else
 
7622
  lt_cv_ld_exported_symbols_list=no
 
7623
fi
 
7624
rm -f core conftest.err conftest.$ac_objext \
 
7625
    conftest$ac_exeext conftest.$ac_ext
 
7626
        LDFLAGS="$save_LDFLAGS"
 
7627
 
 
7628
fi
 
7629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7630
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7631
    case $host_os in
 
7632
    rhapsody* | darwin1.[012])
 
7633
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7634
    darwin1.*)
 
7635
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7636
    darwin*) # darwin 5.x on
 
7637
      # if running on 10.5 or later, the deployment target defaults
 
7638
      # to the OS version, if on x86, and 10.4, the deployment
 
7639
      # target defaults to 10.4. Don't you love it?
 
7640
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7641
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7642
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7643
        10.[012]*)
 
7644
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7645
        10.*)
 
7646
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7647
      esac
 
7648
    ;;
 
7649
  esac
 
7650
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7651
      _lt_dar_single_mod='$single_module'
 
7652
    fi
 
7653
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7654
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7655
    else
 
7656
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7657
    fi
 
7658
    if test "$DSYMUTIL" != ":"; then
 
7659
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7660
    else
 
7661
      _lt_dsymutil=
 
7662
    fi
 
7663
    ;;
 
7664
  esac
 
7665
 
 
7666
for ac_header in dlfcn.h
 
7667
do :
 
7668
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7669
"
 
7670
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
7671
  cat >>confdefs.h <<_ACEOF
 
7672
#define HAVE_DLFCN_H 1
 
7673
_ACEOF
 
7674
 
 
7675
fi
 
7676
 
 
7677
done
 
7678
 
 
7679
 
 
7680
 
 
7681
# Set options
 
7682
 
 
7683
 
 
7684
 
 
7685
 
 
7686
  enable_win32_dll=no
 
7687
 
 
7688
 
 
7689
 
 
7690
 
 
7691
 
 
7692
# Check whether --with-pic was given.
 
7693
if test "${with_pic+set}" = set; then :
 
7694
  withval=$with_pic; pic_mode="$withval"
 
7695
else
 
7696
  pic_mode=default
 
7697
fi
 
7698
 
 
7699
 
 
7700
test -z "$pic_mode" && pic_mode=default
 
7701
 
 
7702
 
 
7703
 
 
7704
 
 
7705
 
 
7706
 
 
7707
 
 
7708
  # Check whether --enable-fast-install was given.
 
7709
if test "${enable_fast_install+set}" = set; then :
 
7710
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7711
    case $enableval in
 
7712
    yes) enable_fast_install=yes ;;
 
7713
    no) enable_fast_install=no ;;
 
7714
    *)
 
7715
      enable_fast_install=no
 
7716
      # Look at the argument we got.  We use all the common list separators.
 
7717
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7718
      for pkg in $enableval; do
 
7719
        IFS="$lt_save_ifs"
 
7720
        if test "X$pkg" = "X$p"; then
 
7721
          enable_fast_install=yes
 
7722
        fi
 
7723
      done
 
7724
      IFS="$lt_save_ifs"
 
7725
      ;;
 
7726
    esac
 
7727
else
 
7728
  enable_fast_install=yes
 
7729
fi
 
7730
 
 
7731
 
 
7732
 
 
7733
 
 
7734
 
 
7735
 
 
7736
 
 
7737
 
 
7738
 
 
7739
 
 
7740
 
 
7741
# This can be used to rebuild libtool when needed
 
7742
LIBTOOL_DEPS="$ltmain"
 
7743
 
 
7744
# Always use our own libtool.
 
7745
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7746
 
 
7747
 
 
7748
 
 
7749
 
 
7750
 
 
7751
 
 
7752
 
 
7753
 
 
7754
 
 
7755
 
 
7756
 
 
7757
 
 
7758
 
 
7759
 
 
7760
 
 
7761
 
 
7762
 
 
7763
 
 
7764
 
 
7765
 
 
7766
 
 
7767
 
 
7768
 
 
7769
 
 
7770
 
 
7771
test -z "$LN_S" && LN_S="ln -s"
 
7772
 
 
7773
 
 
7774
 
 
7775
 
 
7776
 
 
7777
 
 
7778
 
 
7779
 
 
7780
 
 
7781
 
 
7782
 
 
7783
 
 
7784
 
 
7785
 
 
7786
if test -n "${ZSH_VERSION+set}" ; then
 
7787
   setopt NO_GLOB_SUBST
 
7788
fi
 
7789
 
 
7790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7791
$as_echo_n "checking for objdir... " >&6; }
 
7792
if test "${lt_cv_objdir+set}" = set; then :
 
7793
  $as_echo_n "(cached) " >&6
 
7794
else
 
7795
  rm -f .libs 2>/dev/null
 
7796
mkdir .libs 2>/dev/null
 
7797
if test -d .libs; then
 
7798
  lt_cv_objdir=.libs
 
7799
else
 
7800
  # MS-DOS does not allow filenames that begin with a dot.
 
7801
  lt_cv_objdir=_libs
 
7802
fi
 
7803
rmdir .libs 2>/dev/null
 
7804
fi
 
7805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7806
$as_echo "$lt_cv_objdir" >&6; }
 
7807
objdir=$lt_cv_objdir
 
7808
 
 
7809
 
 
7810
 
 
7811
 
 
7812
 
 
7813
cat >>confdefs.h <<_ACEOF
 
7814
#define LT_OBJDIR "$lt_cv_objdir/"
 
7815
_ACEOF
 
7816
 
 
7817
 
 
7818
 
 
7819
 
 
7820
 
 
7821
 
 
7822
 
 
7823
 
 
7824
 
 
7825
 
 
7826
 
 
7827
 
 
7828
 
 
7829
 
 
7830
 
 
7831
 
 
7832
 
 
7833
case $host_os in
 
7834
aix3*)
 
7835
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7836
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7837
  # vanish in a puff of smoke.
 
7838
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7839
    COLLECT_NAMES=
 
7840
    export COLLECT_NAMES
 
7841
  fi
 
7842
  ;;
 
7843
esac
 
7844
 
 
7845
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7846
# metacharacters that are still active within double-quoted strings.
 
7847
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
7848
 
 
7849
# Same as above, but do not quote variable references.
 
7850
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
7851
 
 
7852
# Sed substitution to delay expansion of an escaped shell variable in a
 
7853
# double_quote_subst'ed string.
 
7854
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7855
 
 
7856
# Sed substitution to delay expansion of an escaped single quote.
 
7857
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7858
 
 
7859
# Sed substitution to avoid accidental globbing in evaled expressions
 
7860
no_glob_subst='s/\*/\\\*/g'
 
7861
 
 
7862
# Global variables:
 
7863
ofile=libtool
 
7864
can_build_shared=yes
 
7865
 
 
7866
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7867
# which needs '.lib').
 
7868
libext=a
 
7869
 
 
7870
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7871
 
 
7872
old_CC="$CC"
 
7873
old_CFLAGS="$CFLAGS"
 
7874
 
 
7875
# Set sane defaults for various variables
 
7876
test -z "$CC" && CC=cc
 
7877
test -z "$LTCC" && LTCC=$CC
 
7878
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7879
test -z "$LD" && LD=ld
 
7880
test -z "$ac_objext" && ac_objext=o
 
7881
 
 
7882
for cc_temp in $compiler""; do
 
7883
  case $cc_temp in
 
7884
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7885
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7886
    \-*) ;;
 
7887
    *) break;;
 
7888
  esac
 
7889
done
 
7890
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7891
 
 
7892
 
 
7893
# Only perform the check for file, if the check method requires it
 
7894
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7895
case $deplibs_check_method in
 
7896
file_magic*)
 
7897
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7898
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
7899
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7900
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
7901
  $as_echo_n "(cached) " >&6
 
7902
else
 
7903
  case $MAGIC_CMD in
 
7904
[\\/*] |  ?:[\\/]*)
 
7905
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7906
  ;;
 
7907
*)
 
7908
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7909
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7910
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7911
  for ac_dir in $ac_dummy; do
 
7912
    IFS="$lt_save_ifs"
 
7913
    test -z "$ac_dir" && ac_dir=.
 
7914
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7915
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7916
      if test -n "$file_magic_test_file"; then
 
7917
        case $deplibs_check_method in
 
7918
        "file_magic "*)
 
7919
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7920
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7921
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7922
            $EGREP "$file_magic_regex" > /dev/null; then
 
7923
            :
 
7924
          else
 
7925
            cat <<_LT_EOF 1>&2
 
7926
 
 
7927
*** Warning: the command libtool uses to detect shared libraries,
 
7928
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7929
*** The result is that libtool may fail to recognize shared libraries
 
7930
*** as such.  This will affect the creation of libtool libraries that
 
7931
*** depend on shared libraries, but programs linked with such libtool
 
7932
*** libraries will work regardless of this problem.  Nevertheless, you
 
7933
*** may want to report the problem to your system manager and/or to
 
7934
*** bug-libtool@gnu.org
 
7935
 
 
7936
_LT_EOF
 
7937
          fi ;;
 
7938
        esac
 
7939
      fi
 
7940
      break
 
7941
    fi
 
7942
  done
 
7943
  IFS="$lt_save_ifs"
 
7944
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7945
  ;;
 
7946
esac
 
7947
fi
 
7948
 
 
7949
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7950
if test -n "$MAGIC_CMD"; then
 
7951
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7952
$as_echo "$MAGIC_CMD" >&6; }
 
7953
else
 
7954
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7955
$as_echo "no" >&6; }
 
7956
fi
 
7957
 
 
7958
 
 
7959
 
 
7960
 
 
7961
 
 
7962
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7963
  if test -n "$ac_tool_prefix"; then
 
7964
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
7965
$as_echo_n "checking for file... " >&6; }
 
7966
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
7967
  $as_echo_n "(cached) " >&6
 
7968
else
 
7969
  case $MAGIC_CMD in
 
7970
[\\/*] |  ?:[\\/]*)
 
7971
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7972
  ;;
 
7973
*)
 
7974
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7975
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7976
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7977
  for ac_dir in $ac_dummy; do
 
7978
    IFS="$lt_save_ifs"
 
7979
    test -z "$ac_dir" && ac_dir=.
 
7980
    if test -f $ac_dir/file; then
 
7981
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7982
      if test -n "$file_magic_test_file"; then
 
7983
        case $deplibs_check_method in
 
7984
        "file_magic "*)
 
7985
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7986
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7987
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7988
            $EGREP "$file_magic_regex" > /dev/null; then
 
7989
            :
 
7990
          else
 
7991
            cat <<_LT_EOF 1>&2
 
7992
 
 
7993
*** Warning: the command libtool uses to detect shared libraries,
 
7994
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7995
*** The result is that libtool may fail to recognize shared libraries
 
7996
*** as such.  This will affect the creation of libtool libraries that
 
7997
*** depend on shared libraries, but programs linked with such libtool
 
7998
*** libraries will work regardless of this problem.  Nevertheless, you
 
7999
*** may want to report the problem to your system manager and/or to
 
8000
*** bug-libtool@gnu.org
 
8001
 
 
8002
_LT_EOF
 
8003
          fi ;;
 
8004
        esac
 
8005
      fi
 
8006
      break
 
8007
    fi
 
8008
  done
 
8009
  IFS="$lt_save_ifs"
 
8010
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8011
  ;;
 
8012
esac
 
8013
fi
 
8014
 
 
8015
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8016
if test -n "$MAGIC_CMD"; then
 
8017
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8018
$as_echo "$MAGIC_CMD" >&6; }
 
8019
else
 
8020
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8021
$as_echo "no" >&6; }
 
8022
fi
 
8023
 
 
8024
 
 
8025
  else
 
8026
    MAGIC_CMD=:
 
8027
  fi
 
8028
fi
 
8029
 
 
8030
  fi
 
8031
  ;;
 
8032
esac
 
8033
 
 
8034
# Use C for the default configuration in the libtool script
 
8035
 
 
8036
lt_save_CC="$CC"
 
8037
ac_ext=c
 
8038
ac_cpp='$CPP $CPPFLAGS'
 
8039
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8040
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8041
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8042
 
 
8043
 
 
8044
# Source file extension for C test sources.
 
8045
ac_ext=c
 
8046
 
 
8047
# Object file extension for compiled C test sources.
 
8048
objext=o
 
8049
objext=$objext
 
8050
 
 
8051
# Code to be used in simple compile tests
 
8052
lt_simple_compile_test_code="int some_variable = 0;"
 
8053
 
 
8054
# Code to be used in simple link tests
 
8055
lt_simple_link_test_code='int main(){return(0);}'
 
8056
 
 
8057
 
 
8058
 
 
8059
 
 
8060
 
 
8061
 
 
8062
 
 
8063
# If no C compiler was specified, use CC.
 
8064
LTCC=${LTCC-"$CC"}
 
8065
 
 
8066
# If no C compiler flags were specified, use CFLAGS.
 
8067
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8068
 
 
8069
# Allow CC to be a program name with arguments.
 
8070
compiler=$CC
 
8071
 
 
8072
# Save the default compiler, since it gets overwritten when the other
 
8073
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8074
compiler_DEFAULT=$CC
 
8075
 
 
8076
# save warnings/boilerplate of simple test code
 
8077
ac_outfile=conftest.$ac_objext
 
8078
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8079
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8080
_lt_compiler_boilerplate=`cat conftest.err`
 
8081
$RM conftest*
 
8082
 
 
8083
ac_outfile=conftest.$ac_objext
 
8084
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
8085
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8086
_lt_linker_boilerplate=`cat conftest.err`
 
8087
$RM -r conftest*
 
8088
 
 
8089
 
 
8090
## CAVEAT EMPTOR:
 
8091
## There is no encapsulation within the following macros, do not change
 
8092
## the running order or otherwise move them around unless you know exactly
 
8093
## what you are doing...
 
8094
if test -n "$compiler"; then
 
8095
 
 
8096
lt_prog_compiler_no_builtin_flag=
 
8097
 
 
8098
if test "$GCC" = yes; then
 
8099
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
8100
 
 
8101
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8102
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8103
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
8104
  $as_echo_n "(cached) " >&6
 
8105
else
 
8106
  lt_cv_prog_compiler_rtti_exceptions=no
 
8107
   ac_outfile=conftest.$ac_objext
 
8108
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8109
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8110
   # Insert the option either (1) after the last *FLAGS variable, or
 
8111
   # (2) before a word containing "conftest.", or (3) at the end.
 
8112
   # Note that $ac_compile itself does not contain backslashes and begins
 
8113
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8114
   # The option is referenced via a variable to avoid confusing sed.
 
8115
   lt_compile=`echo "$ac_compile" | $SED \
 
8116
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8117
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8118
   -e 's:$: $lt_compiler_flag:'`
 
8119
   (eval echo "\"\$as_me:8119: $lt_compile\"" >&5)
 
8120
   (eval "$lt_compile" 2>conftest.err)
 
8121
   ac_status=$?
 
8122
   cat conftest.err >&5
 
8123
   echo "$as_me:8123: \$? = $ac_status" >&5
 
8124
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8125
     # The compiler can only warn and ignore the option if not recognized
 
8126
     # So say no if there are warnings other than the usual output.
 
8127
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8128
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8129
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8130
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8131
     fi
 
8132
   fi
 
8133
   $RM conftest*
 
8134
 
 
8135
fi
 
8136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8137
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8138
 
 
8139
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8140
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8141
else
 
8142
    :
 
8143
fi
 
8144
 
 
8145
fi
 
8146
 
 
8147
 
 
8148
 
 
8149
 
 
8150
 
 
8151
 
 
8152
  lt_prog_compiler_wl=
 
8153
lt_prog_compiler_pic=
 
8154
lt_prog_compiler_static=
 
8155
 
 
8156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8157
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8158
 
 
8159
  if test "$GCC" = yes; then
 
8160
    lt_prog_compiler_wl='-Wl,'
 
8161
    lt_prog_compiler_static='-static'
 
8162
 
 
8163
    case $host_os in
 
8164
      aix*)
 
8165
      # All AIX code is PIC.
 
8166
      if test "$host_cpu" = ia64; then
 
8167
        # AIX 5 now supports IA64 processor
 
8168
        lt_prog_compiler_static='-Bstatic'
 
8169
      fi
 
8170
      ;;
 
8171
 
 
8172
    amigaos*)
 
8173
      case $host_cpu in
 
8174
      powerpc)
 
8175
            # see comment about AmigaOS4 .so support
 
8176
            lt_prog_compiler_pic='-fPIC'
 
8177
        ;;
 
8178
      m68k)
 
8179
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8180
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8181
            # like `-m68040'.
 
8182
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8183
        ;;
 
8184
      esac
 
8185
      ;;
 
8186
 
 
8187
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8188
      # PIC is the default for these OSes.
 
8189
      ;;
 
8190
 
 
8191
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8192
      # This hack is so that the source file can tell whether it is being
 
8193
      # built for inclusion in a dll (and should export symbols for example).
 
8194
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8195
      # (--disable-auto-import) libraries
 
8196
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8197
      ;;
 
8198
 
 
8199
    darwin* | rhapsody*)
 
8200
      # PIC is the default on this platform
 
8201
      # Common symbols not allowed in MH_DYLIB files
 
8202
      lt_prog_compiler_pic='-fno-common'
 
8203
      ;;
 
8204
 
 
8205
    hpux*)
 
8206
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8207
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8208
      # sets the default TLS model and affects inlining.
 
8209
      case $host_cpu in
 
8210
      hppa*64*)
 
8211
        # +Z the default
 
8212
        ;;
 
8213
      *)
 
8214
        lt_prog_compiler_pic='-fPIC'
 
8215
        ;;
 
8216
      esac
 
8217
      ;;
 
8218
 
 
8219
    interix[3-9]*)
 
8220
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8221
      # Instead, we relocate shared libraries at runtime.
 
8222
      ;;
 
8223
 
 
8224
    msdosdjgpp*)
 
8225
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8226
      # on systems that don't support them.
 
8227
      lt_prog_compiler_can_build_shared=no
 
8228
      enable_shared=no
 
8229
      ;;
 
8230
 
 
8231
    *nto* | *qnx*)
 
8232
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8233
      # it will coredump.
 
8234
      lt_prog_compiler_pic='-fPIC -shared'
 
8235
      ;;
 
8236
 
 
8237
    sysv4*MP*)
 
8238
      if test -d /usr/nec; then
 
8239
        lt_prog_compiler_pic=-Kconform_pic
 
8240
      fi
 
8241
      ;;
 
8242
 
 
8243
    *)
 
8244
      lt_prog_compiler_pic='-fPIC'
 
8245
      ;;
 
8246
    esac
 
8247
  else
 
8248
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8249
    case $host_os in
 
8250
    aix*)
 
8251
      lt_prog_compiler_wl='-Wl,'
 
8252
      if test "$host_cpu" = ia64; then
 
8253
        # AIX 5 now supports IA64 processor
 
8254
        lt_prog_compiler_static='-Bstatic'
 
8255
      else
 
8256
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8257
      fi
 
8258
      ;;
 
8259
 
 
8260
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8261
      # This hack is so that the source file can tell whether it is being
 
8262
      # built for inclusion in a dll (and should export symbols for example).
 
8263
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8264
      ;;
 
8265
 
 
8266
    hpux9* | hpux10* | hpux11*)
 
8267
      lt_prog_compiler_wl='-Wl,'
 
8268
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8269
      # not for PA HP-UX.
 
8270
      case $host_cpu in
 
8271
      hppa*64*|ia64*)
 
8272
        # +Z the default
 
8273
        ;;
 
8274
      *)
 
8275
        lt_prog_compiler_pic='+Z'
 
8276
        ;;
 
8277
      esac
 
8278
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8279
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8280
      ;;
 
8281
 
 
8282
    irix5* | irix6* | nonstopux*)
 
8283
      lt_prog_compiler_wl='-Wl,'
 
8284
      # PIC (with -KPIC) is the default.
 
8285
      lt_prog_compiler_static='-non_shared'
 
8286
      ;;
 
8287
 
 
8288
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8289
      case $cc_basename in
 
8290
      # old Intel for x86_64 which still supported -KPIC.
 
8291
      ecc*)
 
8292
        lt_prog_compiler_wl='-Wl,'
 
8293
        lt_prog_compiler_pic='-KPIC'
 
8294
        lt_prog_compiler_static='-static'
 
8295
        ;;
 
8296
      # icc used to be incompatible with GCC.
 
8297
      # ICC 10 doesn't accept -KPIC any more.
 
8298
      icc* | ifort*)
 
8299
        lt_prog_compiler_wl='-Wl,'
 
8300
        lt_prog_compiler_pic='-fPIC'
 
8301
        lt_prog_compiler_static='-static'
 
8302
        ;;
 
8303
      # Lahey Fortran 8.1.
 
8304
      lf95*)
 
8305
        lt_prog_compiler_wl='-Wl,'
 
8306
        lt_prog_compiler_pic='--shared'
 
8307
        lt_prog_compiler_static='--static'
 
8308
        ;;
 
8309
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8310
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8311
        # which looks to be a dead project)
 
8312
        lt_prog_compiler_wl='-Wl,'
 
8313
        lt_prog_compiler_pic='-fpic'
 
8314
        lt_prog_compiler_static='-Bstatic'
 
8315
        ;;
 
8316
      ccc*)
 
8317
        lt_prog_compiler_wl='-Wl,'
 
8318
        # All Alpha code is PIC.
 
8319
        lt_prog_compiler_static='-non_shared'
 
8320
        ;;
 
8321
      xl*)
 
8322
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
8323
        lt_prog_compiler_wl='-Wl,'
 
8324
        lt_prog_compiler_pic='-qpic'
 
8325
        lt_prog_compiler_static='-qstaticlink'
 
8326
        ;;
 
8327
      *)
 
8328
        case `$CC -V 2>&1 | sed 5q` in
 
8329
        *Sun\ C*)
 
8330
          # Sun C 5.9
 
8331
          lt_prog_compiler_pic='-KPIC'
 
8332
          lt_prog_compiler_static='-Bstatic'
 
8333
          lt_prog_compiler_wl='-Wl,'
 
8334
          ;;
 
8335
        *Sun\ F*)
 
8336
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8337
          lt_prog_compiler_pic='-KPIC'
 
8338
          lt_prog_compiler_static='-Bstatic'
 
8339
          lt_prog_compiler_wl=''
 
8340
          ;;
 
8341
        esac
 
8342
        ;;
 
8343
      esac
 
8344
      ;;
 
8345
 
 
8346
    newsos6)
 
8347
      lt_prog_compiler_pic='-KPIC'
 
8348
      lt_prog_compiler_static='-Bstatic'
 
8349
      ;;
 
8350
 
 
8351
    *nto* | *qnx*)
 
8352
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8353
      # it will coredump.
 
8354
      lt_prog_compiler_pic='-fPIC -shared'
 
8355
      ;;
 
8356
 
 
8357
    osf3* | osf4* | osf5*)
 
8358
      lt_prog_compiler_wl='-Wl,'
 
8359
      # All OSF/1 code is PIC.
 
8360
      lt_prog_compiler_static='-non_shared'
 
8361
      ;;
 
8362
 
 
8363
    rdos*)
 
8364
      lt_prog_compiler_static='-non_shared'
 
8365
      ;;
 
8366
 
 
8367
    solaris*)
 
8368
      lt_prog_compiler_pic='-KPIC'
 
8369
      lt_prog_compiler_static='-Bstatic'
 
8370
      case $cc_basename in
 
8371
      f77* | f90* | f95*)
 
8372
        lt_prog_compiler_wl='-Qoption ld ';;
 
8373
      *)
 
8374
        lt_prog_compiler_wl='-Wl,';;
 
8375
      esac
 
8376
      ;;
 
8377
 
 
8378
    sunos4*)
 
8379
      lt_prog_compiler_wl='-Qoption ld '
 
8380
      lt_prog_compiler_pic='-PIC'
 
8381
      lt_prog_compiler_static='-Bstatic'
 
8382
      ;;
 
8383
 
 
8384
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8385
      lt_prog_compiler_wl='-Wl,'
 
8386
      lt_prog_compiler_pic='-KPIC'
 
8387
      lt_prog_compiler_static='-Bstatic'
 
8388
      ;;
 
8389
 
 
8390
    sysv4*MP*)
 
8391
      if test -d /usr/nec ;then
 
8392
        lt_prog_compiler_pic='-Kconform_pic'
 
8393
        lt_prog_compiler_static='-Bstatic'
 
8394
      fi
 
8395
      ;;
 
8396
 
 
8397
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8398
      lt_prog_compiler_wl='-Wl,'
 
8399
      lt_prog_compiler_pic='-KPIC'
 
8400
      lt_prog_compiler_static='-Bstatic'
 
8401
      ;;
 
8402
 
 
8403
    unicos*)
 
8404
      lt_prog_compiler_wl='-Wl,'
 
8405
      lt_prog_compiler_can_build_shared=no
 
8406
      ;;
 
8407
 
 
8408
    uts4*)
 
8409
      lt_prog_compiler_pic='-pic'
 
8410
      lt_prog_compiler_static='-Bstatic'
 
8411
      ;;
 
8412
 
 
8413
    *)
 
8414
      lt_prog_compiler_can_build_shared=no
 
8415
      ;;
 
8416
    esac
 
8417
  fi
 
8418
 
 
8419
case $host_os in
 
8420
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8421
  *djgpp*)
 
8422
    lt_prog_compiler_pic=
 
8423
    ;;
 
8424
  *)
 
8425
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8426
    ;;
 
8427
esac
 
8428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
 
8429
$as_echo "$lt_prog_compiler_pic" >&6; }
 
8430
 
 
8431
 
 
8432
 
 
8433
 
 
8434
 
 
8435
 
 
8436
#
 
8437
# Check to make sure the PIC flag actually works.
 
8438
#
 
8439
if test -n "$lt_prog_compiler_pic"; then
 
8440
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8441
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8442
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
8443
  $as_echo_n "(cached) " >&6
 
8444
else
 
8445
  lt_cv_prog_compiler_pic_works=no
 
8446
   ac_outfile=conftest.$ac_objext
 
8447
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8448
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8449
   # Insert the option either (1) after the last *FLAGS variable, or
 
8450
   # (2) before a word containing "conftest.", or (3) at the end.
 
8451
   # Note that $ac_compile itself does not contain backslashes and begins
 
8452
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8453
   # The option is referenced via a variable to avoid confusing sed.
 
8454
   lt_compile=`echo "$ac_compile" | $SED \
 
8455
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8456
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8457
   -e 's:$: $lt_compiler_flag:'`
 
8458
   (eval echo "\"\$as_me:8458: $lt_compile\"" >&5)
 
8459
   (eval "$lt_compile" 2>conftest.err)
 
8460
   ac_status=$?
 
8461
   cat conftest.err >&5
 
8462
   echo "$as_me:8462: \$? = $ac_status" >&5
 
8463
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8464
     # The compiler can only warn and ignore the option if not recognized
 
8465
     # So say no if there are warnings other than the usual output.
 
8466
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8467
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8468
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8469
       lt_cv_prog_compiler_pic_works=yes
 
8470
     fi
 
8471
   fi
 
8472
   $RM conftest*
 
8473
 
 
8474
fi
 
8475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8476
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8477
 
 
8478
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8479
    case $lt_prog_compiler_pic in
 
8480
     "" | " "*) ;;
 
8481
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8482
     esac
 
8483
else
 
8484
    lt_prog_compiler_pic=
 
8485
     lt_prog_compiler_can_build_shared=no
 
8486
fi
 
8487
 
 
8488
fi
 
8489
 
 
8490
 
 
8491
 
 
8492
 
 
8493
 
 
8494
 
 
8495
#
 
8496
# Check to make sure the static flag actually works.
 
8497
#
 
8498
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8500
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8501
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
8502
  $as_echo_n "(cached) " >&6
 
8503
else
 
8504
  lt_cv_prog_compiler_static_works=no
 
8505
   save_LDFLAGS="$LDFLAGS"
 
8506
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8507
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8508
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8509
     # The linker can only warn and ignore the option if not recognized
 
8510
     # So say no if there are warnings
 
8511
     if test -s conftest.err; then
 
8512
       # Append any errors to the config.log.
 
8513
       cat conftest.err 1>&5
 
8514
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8515
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8516
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8517
         lt_cv_prog_compiler_static_works=yes
 
8518
       fi
 
8519
     else
 
8520
       lt_cv_prog_compiler_static_works=yes
 
8521
     fi
 
8522
   fi
 
8523
   $RM -r conftest*
 
8524
   LDFLAGS="$save_LDFLAGS"
 
8525
 
 
8526
fi
 
8527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8528
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8529
 
 
8530
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8531
    :
 
8532
else
 
8533
    lt_prog_compiler_static=
 
8534
fi
 
8535
 
 
8536
 
 
8537
 
 
8538
 
 
8539
 
 
8540
 
 
8541
 
 
8542
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8543
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8544
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8545
  $as_echo_n "(cached) " >&6
 
8546
else
 
8547
  lt_cv_prog_compiler_c_o=no
 
8548
   $RM -r conftest 2>/dev/null
 
8549
   mkdir conftest
 
8550
   cd conftest
 
8551
   mkdir out
 
8552
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8553
 
 
8554
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8555
   # Insert the option either (1) after the last *FLAGS variable, or
 
8556
   # (2) before a word containing "conftest.", or (3) at the end.
 
8557
   # Note that $ac_compile itself does not contain backslashes and begins
 
8558
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8559
   lt_compile=`echo "$ac_compile" | $SED \
 
8560
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8561
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8562
   -e 's:$: $lt_compiler_flag:'`
 
8563
   (eval echo "\"\$as_me:8563: $lt_compile\"" >&5)
 
8564
   (eval "$lt_compile" 2>out/conftest.err)
 
8565
   ac_status=$?
 
8566
   cat out/conftest.err >&5
 
8567
   echo "$as_me:8567: \$? = $ac_status" >&5
 
8568
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8569
   then
 
8570
     # The compiler can only warn and ignore the option if not recognized
 
8571
     # So say no if there are warnings
 
8572
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8573
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8574
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8575
       lt_cv_prog_compiler_c_o=yes
 
8576
     fi
 
8577
   fi
 
8578
   chmod u+w . 2>&5
 
8579
   $RM conftest*
 
8580
   # SGI C++ compiler will create directory out/ii_files/ for
 
8581
   # template instantiation
 
8582
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8583
   $RM out/* && rmdir out
 
8584
   cd ..
 
8585
   $RM -r conftest
 
8586
   $RM conftest*
 
8587
 
 
8588
fi
 
8589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8590
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8591
 
 
8592
 
 
8593
 
 
8594
 
 
8595
 
 
8596
 
 
8597
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8598
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8599
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
8600
  $as_echo_n "(cached) " >&6
 
8601
else
 
8602
  lt_cv_prog_compiler_c_o=no
 
8603
   $RM -r conftest 2>/dev/null
 
8604
   mkdir conftest
 
8605
   cd conftest
 
8606
   mkdir out
 
8607
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8608
 
 
8609
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8610
   # Insert the option either (1) after the last *FLAGS variable, or
 
8611
   # (2) before a word containing "conftest.", or (3) at the end.
 
8612
   # Note that $ac_compile itself does not contain backslashes and begins
 
8613
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8614
   lt_compile=`echo "$ac_compile" | $SED \
 
8615
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8616
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8617
   -e 's:$: $lt_compiler_flag:'`
 
8618
   (eval echo "\"\$as_me:8618: $lt_compile\"" >&5)
 
8619
   (eval "$lt_compile" 2>out/conftest.err)
 
8620
   ac_status=$?
 
8621
   cat out/conftest.err >&5
 
8622
   echo "$as_me:8622: \$? = $ac_status" >&5
 
8623
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8624
   then
 
8625
     # The compiler can only warn and ignore the option if not recognized
 
8626
     # So say no if there are warnings
 
8627
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8628
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8629
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8630
       lt_cv_prog_compiler_c_o=yes
 
8631
     fi
 
8632
   fi
 
8633
   chmod u+w . 2>&5
 
8634
   $RM conftest*
 
8635
   # SGI C++ compiler will create directory out/ii_files/ for
 
8636
   # template instantiation
 
8637
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8638
   $RM out/* && rmdir out
 
8639
   cd ..
 
8640
   $RM -r conftest
 
8641
   $RM conftest*
 
8642
 
 
8643
fi
 
8644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8645
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8646
 
 
8647
 
 
8648
 
 
8649
 
 
8650
hard_links="nottested"
 
8651
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8652
  # do not overwrite the value of need_locks provided by the user
 
8653
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8654
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8655
  hard_links=yes
 
8656
  $RM conftest*
 
8657
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8658
  touch conftest.a
 
8659
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8660
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8661
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8662
$as_echo "$hard_links" >&6; }
 
8663
  if test "$hard_links" = no; then
 
8664
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8665
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8666
    need_locks=warn
 
8667
  fi
 
8668
else
 
8669
  need_locks=no
 
8670
fi
 
8671
 
 
8672
 
 
8673
 
 
8674
 
 
8675
 
 
8676
 
 
8677
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8678
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8679
 
 
8680
  runpath_var=
 
8681
  allow_undefined_flag=
 
8682
  always_export_symbols=no
 
8683
  archive_cmds=
 
8684
  archive_expsym_cmds=
 
8685
  compiler_needs_object=no
 
8686
  enable_shared_with_static_runtimes=no
 
8687
  export_dynamic_flag_spec=
 
8688
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8689
  hardcode_automatic=no
 
8690
  hardcode_direct=no
 
8691
  hardcode_direct_absolute=no
 
8692
  hardcode_libdir_flag_spec=
 
8693
  hardcode_libdir_flag_spec_ld=
 
8694
  hardcode_libdir_separator=
 
8695
  hardcode_minus_L=no
 
8696
  hardcode_shlibpath_var=unsupported
 
8697
  inherit_rpath=no
 
8698
  link_all_deplibs=unknown
 
8699
  module_cmds=
 
8700
  module_expsym_cmds=
 
8701
  old_archive_from_new_cmds=
 
8702
  old_archive_from_expsyms_cmds=
 
8703
  thread_safe_flag_spec=
 
8704
  whole_archive_flag_spec=
 
8705
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8706
  # included in the symbol list
 
8707
  include_expsyms=
 
8708
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8709
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8710
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8711
  # as well as any symbol that contains `d'.
 
8712
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8713
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8714
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8715
  # the symbol is explicitly referenced.  Since portable code cannot
 
8716
  # rely on this symbol name, it's probably fine to never include it in
 
8717
  # preloaded symbol tables.
 
8718
  # Exclude shared library initialization/finalization symbols.
 
8719
  extract_expsyms_cmds=
 
8720
 
 
8721
  case $host_os in
 
8722
  cygwin* | mingw* | pw32* | cegcc*)
 
8723
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8724
    # When not using gcc, we currently assume that we are using
 
8725
    # Microsoft Visual C++.
 
8726
    if test "$GCC" != yes; then
 
8727
      with_gnu_ld=no
 
8728
    fi
 
8729
    ;;
 
8730
  interix*)
 
8731
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8732
    with_gnu_ld=yes
 
8733
    ;;
 
8734
  openbsd*)
 
8735
    with_gnu_ld=no
 
8736
    ;;
 
8737
  linux* | k*bsd*-gnu)
 
8738
    link_all_deplibs=no
 
8739
    ;;
 
8740
  esac
 
8741
 
 
8742
  ld_shlibs=yes
 
8743
  if test "$with_gnu_ld" = yes; then
 
8744
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8745
    wlarc='${wl}'
 
8746
 
 
8747
    # Set some defaults for GNU ld with shared library support. These
 
8748
    # are reset later if shared libraries are not supported. Putting them
 
8749
    # here allows them to be overridden if necessary.
 
8750
    runpath_var=LD_RUN_PATH
 
8751
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8752
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8753
    # ancient GNU ld didn't support --whole-archive et. al.
 
8754
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8755
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8756
    else
 
8757
      whole_archive_flag_spec=
 
8758
    fi
 
8759
    supports_anon_versioning=no
 
8760
    case `$LD -v 2>&1` in
 
8761
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
8762
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8763
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8764
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8765
      *\ 2.11.*) ;; # other 2.11 versions
 
8766
      *) supports_anon_versioning=yes ;;
 
8767
    esac
 
8768
 
 
8769
    # See if GNU ld supports shared libraries.
 
8770
    case $host_os in
 
8771
    aix[3-9]*)
 
8772
      # On AIX/PPC, the GNU linker is very broken
 
8773
      if test "$host_cpu" != ia64; then
 
8774
        ld_shlibs=no
 
8775
        cat <<_LT_EOF 1>&2
 
8776
 
 
8777
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8778
*** to be unable to reliably create shared libraries on AIX.
 
8779
*** Therefore, libtool is disabling shared libraries support.  If you
 
8780
*** really care for shared libraries, you may want to modify your PATH
 
8781
*** so that a non-GNU linker is found, and then restart.
 
8782
 
 
8783
_LT_EOF
 
8784
      fi
 
8785
      ;;
 
8786
 
 
8787
    amigaos*)
 
8788
      case $host_cpu in
 
8789
      powerpc)
 
8790
            # see comment about AmigaOS4 .so support
 
8791
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8792
            archive_expsym_cmds=''
 
8793
        ;;
 
8794
      m68k)
 
8795
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
8796
            hardcode_libdir_flag_spec='-L$libdir'
 
8797
            hardcode_minus_L=yes
 
8798
        ;;
 
8799
      esac
 
8800
      ;;
 
8801
 
 
8802
    beos*)
 
8803
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8804
        allow_undefined_flag=unsupported
 
8805
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8806
        # support --undefined.  This deserves some investigation.  FIXME
 
8807
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8808
      else
 
8809
        ld_shlibs=no
 
8810
      fi
 
8811
      ;;
 
8812
 
 
8813
    cygwin* | mingw* | pw32* | cegcc*)
 
8814
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8815
      # as there is no search path for DLLs.
 
8816
      hardcode_libdir_flag_spec='-L$libdir'
 
8817
      allow_undefined_flag=unsupported
 
8818
      always_export_symbols=no
 
8819
      enable_shared_with_static_runtimes=yes
 
8820
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8821
 
 
8822
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8823
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8824
        # If the export-symbols file already is a .def file (1st line
 
8825
        # is EXPORTS), use it as is; otherwise, prepend...
 
8826
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8827
          cp $export_symbols $output_objdir/$soname.def;
 
8828
        else
 
8829
          echo EXPORTS > $output_objdir/$soname.def;
 
8830
          cat $export_symbols >> $output_objdir/$soname.def;
 
8831
        fi~
 
8832
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8833
      else
 
8834
        ld_shlibs=no
 
8835
      fi
 
8836
      ;;
 
8837
 
 
8838
    interix[3-9]*)
 
8839
      hardcode_direct=no
 
8840
      hardcode_shlibpath_var=no
 
8841
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8842
      export_dynamic_flag_spec='${wl}-E'
 
8843
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8844
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8845
      # default) and relocated if they conflict, which is a slow very memory
 
8846
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8847
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8848
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8849
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8850
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8851
      ;;
 
8852
 
 
8853
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
8854
      tmp_diet=no
 
8855
      if test "$host_os" = linux-dietlibc; then
 
8856
        case $cc_basename in
 
8857
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8858
        esac
 
8859
      fi
 
8860
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8861
         && test "$tmp_diet" = no
 
8862
      then
 
8863
        tmp_addflag=
 
8864
        tmp_sharedflag='-shared'
 
8865
        case $cc_basename,$host_cpu in
 
8866
        pgcc*)                          # Portland Group C compiler
 
8867
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8868
          tmp_addflag=' $pic_flag'
 
8869
          ;;
 
8870
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8871
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8872
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8873
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8874
          tmp_addflag=' -i_dynamic' ;;
 
8875
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8876
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8877
        ifc* | ifort*)                  # Intel Fortran compiler
 
8878
          tmp_addflag=' -nofor_main' ;;
 
8879
        lf95*)                          # Lahey Fortran 8.1
 
8880
          whole_archive_flag_spec=
 
8881
          tmp_sharedflag='--shared' ;;
 
8882
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8883
          tmp_sharedflag='-qmkshrobj'
 
8884
          tmp_addflag= ;;
 
8885
        esac
 
8886
        case `$CC -V 2>&1 | sed 5q` in
 
8887
        *Sun\ C*)                       # Sun C 5.9
 
8888
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
8889
          compiler_needs_object=yes
 
8890
          tmp_sharedflag='-G' ;;
 
8891
        *Sun\ F*)                       # Sun Fortran 8.3
 
8892
          tmp_sharedflag='-G' ;;
 
8893
        esac
 
8894
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8895
 
 
8896
        if test "x$supports_anon_versioning" = xyes; then
 
8897
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8898
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8899
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8900
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8901
        fi
 
8902
 
 
8903
        case $cc_basename in
 
8904
        xlf*)
 
8905
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8906
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8907
          hardcode_libdir_flag_spec=
 
8908
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8909
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8910
          if test "x$supports_anon_versioning" = xyes; then
 
8911
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8912
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8913
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8914
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8915
          fi
 
8916
          ;;
 
8917
        esac
 
8918
      else
 
8919
        ld_shlibs=no
 
8920
      fi
 
8921
      ;;
 
8922
 
 
8923
    netbsd* | netbsdelf*-gnu)
 
8924
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8925
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8926
        wlarc=
 
8927
      else
 
8928
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8929
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8930
      fi
 
8931
      ;;
 
8932
 
 
8933
    solaris*)
 
8934
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8935
        ld_shlibs=no
 
8936
        cat <<_LT_EOF 1>&2
 
8937
 
 
8938
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8939
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8940
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8941
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8942
*** your PATH or compiler configuration so that the native linker is
 
8943
*** used, and then restart.
 
8944
 
 
8945
_LT_EOF
 
8946
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8947
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8948
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8949
      else
 
8950
        ld_shlibs=no
 
8951
      fi
 
8952
      ;;
 
8953
 
 
8954
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8955
      case `$LD -v 2>&1` in
 
8956
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8957
        ld_shlibs=no
 
8958
        cat <<_LT_EOF 1>&2
 
8959
 
 
8960
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8961
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8962
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8963
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8964
*** your PATH or compiler configuration so that the native linker is
 
8965
*** used, and then restart.
 
8966
 
 
8967
_LT_EOF
 
8968
        ;;
 
8969
        *)
 
8970
          # For security reasons, it is highly recommended that you always
 
8971
          # use absolute paths for naming shared libraries, and exclude the
 
8972
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8973
          # requires that you compile everything twice, which is a pain.
 
8974
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8975
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8976
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8977
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8978
          else
 
8979
            ld_shlibs=no
 
8980
          fi
 
8981
        ;;
 
8982
      esac
 
8983
      ;;
 
8984
 
 
8985
    sunos4*)
 
8986
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8987
      wlarc=
 
8988
      hardcode_direct=yes
 
8989
      hardcode_shlibpath_var=no
 
8990
      ;;
 
8991
 
 
8992
    *)
 
8993
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8994
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8995
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8996
      else
 
8997
        ld_shlibs=no
 
8998
      fi
 
8999
      ;;
 
9000
    esac
 
9001
 
 
9002
    if test "$ld_shlibs" = no; then
 
9003
      runpath_var=
 
9004
      hardcode_libdir_flag_spec=
 
9005
      export_dynamic_flag_spec=
 
9006
      whole_archive_flag_spec=
 
9007
    fi
 
9008
  else
 
9009
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9010
    case $host_os in
 
9011
    aix3*)
 
9012
      allow_undefined_flag=unsupported
 
9013
      always_export_symbols=yes
 
9014
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
9015
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9016
      # are no directories specified by -L.
 
9017
      hardcode_minus_L=yes
 
9018
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
9019
        # Neither direct hardcoding nor static linking is supported with a
 
9020
        # broken collect2.
 
9021
        hardcode_direct=unsupported
 
9022
      fi
 
9023
      ;;
 
9024
 
 
9025
    aix[4-9]*)
 
9026
      if test "$host_cpu" = ia64; then
 
9027
        # On IA64, the linker does run time linking by default, so we don't
 
9028
        # have to do anything special.
 
9029
        aix_use_runtimelinking=no
 
9030
        exp_sym_flag='-Bexport'
 
9031
        no_entry_flag=""
 
9032
      else
 
9033
        # If we're using GNU nm, then we don't want the "-C" option.
 
9034
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9035
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9036
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9037
        else
 
9038
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9039
        fi
 
9040
        aix_use_runtimelinking=no
 
9041
 
 
9042
        # Test if we are trying to use run time linking or normal
 
9043
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9044
        # need to do runtime linking.
 
9045
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9046
          for ld_flag in $LDFLAGS; do
 
9047
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9048
            aix_use_runtimelinking=yes
 
9049
            break
 
9050
          fi
 
9051
          done
 
9052
          ;;
 
9053
        esac
 
9054
 
 
9055
        exp_sym_flag='-bexport'
 
9056
        no_entry_flag='-bnoentry'
 
9057
      fi
 
9058
 
 
9059
      # When large executables or shared objects are built, AIX ld can
 
9060
      # have problems creating the table of contents.  If linking a library
 
9061
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9062
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9063
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9064
 
 
9065
      archive_cmds=''
 
9066
      hardcode_direct=yes
 
9067
      hardcode_direct_absolute=yes
 
9068
      hardcode_libdir_separator=':'
 
9069
      link_all_deplibs=yes
 
9070
      file_list_spec='${wl}-f,'
 
9071
 
 
9072
      if test "$GCC" = yes; then
 
9073
        case $host_os in aix4.[012]|aix4.[012].*)
 
9074
        # We only want to do this on AIX 4.2 and lower, the check
 
9075
        # below for broken collect2 doesn't work under 4.3+
 
9076
          collect2name=`${CC} -print-prog-name=collect2`
 
9077
          if test -f "$collect2name" &&
 
9078
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9079
          then
 
9080
          # We have reworked collect2
 
9081
          :
 
9082
          else
 
9083
          # We have old collect2
 
9084
          hardcode_direct=unsupported
 
9085
          # It fails to find uninstalled libraries when the uninstalled
 
9086
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9087
          # to unsupported forces relinking
 
9088
          hardcode_minus_L=yes
 
9089
          hardcode_libdir_flag_spec='-L$libdir'
 
9090
          hardcode_libdir_separator=
 
9091
          fi
 
9092
          ;;
 
9093
        esac
 
9094
        shared_flag='-shared'
 
9095
        if test "$aix_use_runtimelinking" = yes; then
 
9096
          shared_flag="$shared_flag "'${wl}-G'
 
9097
        fi
 
9098
        link_all_deplibs=no
 
9099
      else
 
9100
        # not using gcc
 
9101
        if test "$host_cpu" = ia64; then
 
9102
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9103
        # chokes on -Wl,-G. The following line is correct:
 
9104
          shared_flag='-G'
 
9105
        else
 
9106
          if test "$aix_use_runtimelinking" = yes; then
 
9107
            shared_flag='${wl}-G'
 
9108
          else
 
9109
            shared_flag='${wl}-bM:SRE'
 
9110
          fi
 
9111
        fi
 
9112
      fi
 
9113
 
 
9114
      export_dynamic_flag_spec='${wl}-bexpall'
 
9115
      # It seems that -bexpall does not export symbols beginning with
 
9116
      # underscore (_), so it is better to generate a list of symbols to export.
 
9117
      always_export_symbols=yes
 
9118
      if test "$aix_use_runtimelinking" = yes; then
 
9119
        # Warning - without using the other runtime loading flags (-brtl),
 
9120
        # -berok will link without error, but may produce a broken library.
 
9121
        allow_undefined_flag='-berok'
 
9122
        # Determine the default libpath from the value encoded in an
 
9123
        # empty executable.
 
9124
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9125
/* end confdefs.h.  */
 
9126
 
 
9127
int
 
9128
main ()
 
9129
{
 
9130
 
 
9131
  ;
 
9132
  return 0;
 
9133
}
 
9134
_ACEOF
 
9135
if ac_fn_c_try_link "$LINENO"; then :
 
9136
 
 
9137
lt_aix_libpath_sed='
 
9138
    /Import File Strings/,/^$/ {
 
9139
        /^0/ {
 
9140
            s/^0  *\(.*\)$/\1/
 
9141
            p
 
9142
        }
 
9143
    }'
 
9144
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9145
# Check for a 64-bit object if we didn't find anything.
 
9146
if test -z "$aix_libpath"; then
 
9147
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9148
fi
 
9149
fi
 
9150
rm -f core conftest.err conftest.$ac_objext \
 
9151
    conftest$ac_exeext conftest.$ac_ext
 
9152
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9153
 
 
9154
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9155
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9156
      else
 
9157
        if test "$host_cpu" = ia64; then
 
9158
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9159
          allow_undefined_flag="-z nodefs"
 
9160
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
9161
        else
 
9162
         # Determine the default libpath from the value encoded in an
 
9163
         # empty executable.
 
9164
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9165
/* end confdefs.h.  */
 
9166
 
 
9167
int
 
9168
main ()
 
9169
{
 
9170
 
 
9171
  ;
 
9172
  return 0;
 
9173
}
 
9174
_ACEOF
 
9175
if ac_fn_c_try_link "$LINENO"; then :
 
9176
 
 
9177
lt_aix_libpath_sed='
 
9178
    /Import File Strings/,/^$/ {
 
9179
        /^0/ {
 
9180
            s/^0  *\(.*\)$/\1/
 
9181
            p
 
9182
        }
 
9183
    }'
 
9184
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9185
# Check for a 64-bit object if we didn't find anything.
 
9186
if test -z "$aix_libpath"; then
 
9187
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9188
fi
 
9189
fi
 
9190
rm -f core conftest.err conftest.$ac_objext \
 
9191
    conftest$ac_exeext conftest.$ac_ext
 
9192
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9193
 
 
9194
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9195
          # Warning - without using the other run time loading flags,
 
9196
          # -berok will link without error, but may produce a broken library.
 
9197
          no_undefined_flag=' ${wl}-bernotok'
 
9198
          allow_undefined_flag=' ${wl}-berok'
 
9199
          # Exported symbols can be pulled into shared objects from archives
 
9200
          whole_archive_flag_spec='$convenience'
 
9201
          archive_cmds_need_lc=yes
 
9202
          # This is similar to how AIX traditionally builds its shared libraries.
 
9203
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
9204
        fi
 
9205
      fi
 
9206
      ;;
 
9207
 
 
9208
    amigaos*)
 
9209
      case $host_cpu in
 
9210
      powerpc)
 
9211
            # see comment about AmigaOS4 .so support
 
9212
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9213
            archive_expsym_cmds=''
 
9214
        ;;
 
9215
      m68k)
 
9216
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
9217
            hardcode_libdir_flag_spec='-L$libdir'
 
9218
            hardcode_minus_L=yes
 
9219
        ;;
 
9220
      esac
 
9221
      ;;
 
9222
 
 
9223
    bsdi[45]*)
 
9224
      export_dynamic_flag_spec=-rdynamic
 
9225
      ;;
 
9226
 
 
9227
    cygwin* | mingw* | pw32* | cegcc*)
 
9228
      # When not using gcc, we currently assume that we are using
 
9229
      # Microsoft Visual C++.
 
9230
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9231
      # no search path for DLLs.
 
9232
      hardcode_libdir_flag_spec=' '
 
9233
      allow_undefined_flag=unsupported
 
9234
      # Tell ltmain to make .lib files, not .a files.
 
9235
      libext=lib
 
9236
      # Tell ltmain to make .dll files, not .so files.
 
9237
      shrext_cmds=".dll"
 
9238
      # FIXME: Setting linknames here is a bad hack.
 
9239
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9240
      # The linker will automatically build a .lib file if we build a DLL.
 
9241
      old_archive_from_new_cmds='true'
 
9242
      # FIXME: Should let the user specify the lib program.
 
9243
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9244
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9245
      enable_shared_with_static_runtimes=yes
 
9246
      ;;
 
9247
 
 
9248
    darwin* | rhapsody*)
 
9249
 
 
9250
 
 
9251
  archive_cmds_need_lc=no
 
9252
  hardcode_direct=no
 
9253
  hardcode_automatic=yes
 
9254
  hardcode_shlibpath_var=unsupported
 
9255
  whole_archive_flag_spec=''
 
9256
  link_all_deplibs=yes
 
9257
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9258
  case $cc_basename in
 
9259
     ifort*) _lt_dar_can_shared=yes ;;
 
9260
     *) _lt_dar_can_shared=$GCC ;;
 
9261
  esac
 
9262
  if test "$_lt_dar_can_shared" = "yes"; then
 
9263
    output_verbose_link_cmd=echo
 
9264
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9265
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9266
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
9267
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
9268
 
 
9269
  else
 
9270
  ld_shlibs=no
 
9271
  fi
 
9272
 
 
9273
      ;;
 
9274
 
 
9275
    dgux*)
 
9276
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9277
      hardcode_libdir_flag_spec='-L$libdir'
 
9278
      hardcode_shlibpath_var=no
 
9279
      ;;
 
9280
 
 
9281
    freebsd1*)
 
9282
      ld_shlibs=no
 
9283
      ;;
 
9284
 
 
9285
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9286
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9287
    # does not break anything, and helps significantly (at the cost of a little
 
9288
    # extra space).
 
9289
    freebsd2.2*)
 
9290
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9291
      hardcode_libdir_flag_spec='-R$libdir'
 
9292
      hardcode_direct=yes
 
9293
      hardcode_shlibpath_var=no
 
9294
      ;;
 
9295
 
 
9296
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9297
    freebsd2*)
 
9298
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9299
      hardcode_direct=yes
 
9300
      hardcode_minus_L=yes
 
9301
      hardcode_shlibpath_var=no
 
9302
      ;;
 
9303
 
 
9304
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9305
    freebsd* | dragonfly*)
 
9306
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9307
      hardcode_libdir_flag_spec='-R$libdir'
 
9308
      hardcode_direct=yes
 
9309
      hardcode_shlibpath_var=no
 
9310
      ;;
 
9311
 
 
9312
    hpux9*)
 
9313
      if test "$GCC" = yes; then
 
9314
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9315
      else
 
9316
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9317
      fi
 
9318
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9319
      hardcode_libdir_separator=:
 
9320
      hardcode_direct=yes
 
9321
 
 
9322
      # hardcode_minus_L: Not really in the search PATH,
 
9323
      # but as the default location of the library.
 
9324
      hardcode_minus_L=yes
 
9325
      export_dynamic_flag_spec='${wl}-E'
 
9326
      ;;
 
9327
 
 
9328
    hpux10*)
 
9329
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9330
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9331
      else
 
9332
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9333
      fi
 
9334
      if test "$with_gnu_ld" = no; then
 
9335
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9336
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
9337
        hardcode_libdir_separator=:
 
9338
        hardcode_direct=yes
 
9339
        hardcode_direct_absolute=yes
 
9340
        export_dynamic_flag_spec='${wl}-E'
 
9341
        # hardcode_minus_L: Not really in the search PATH,
 
9342
        # but as the default location of the library.
 
9343
        hardcode_minus_L=yes
 
9344
      fi
 
9345
      ;;
 
9346
 
 
9347
    hpux11*)
 
9348
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9349
        case $host_cpu in
 
9350
        hppa*64*)
 
9351
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9352
          ;;
 
9353
        ia64*)
 
9354
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9355
          ;;
 
9356
        *)
 
9357
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9358
          ;;
 
9359
        esac
 
9360
      else
 
9361
        case $host_cpu in
 
9362
        hppa*64*)
 
9363
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9364
          ;;
 
9365
        ia64*)
 
9366
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9367
          ;;
 
9368
        *)
 
9369
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9370
          ;;
 
9371
        esac
 
9372
      fi
 
9373
      if test "$with_gnu_ld" = no; then
 
9374
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9375
        hardcode_libdir_separator=:
 
9376
 
 
9377
        case $host_cpu in
 
9378
        hppa*64*|ia64*)
 
9379
          hardcode_direct=no
 
9380
          hardcode_shlibpath_var=no
 
9381
          ;;
 
9382
        *)
 
9383
          hardcode_direct=yes
 
9384
          hardcode_direct_absolute=yes
 
9385
          export_dynamic_flag_spec='${wl}-E'
 
9386
 
 
9387
          # hardcode_minus_L: Not really in the search PATH,
 
9388
          # but as the default location of the library.
 
9389
          hardcode_minus_L=yes
 
9390
          ;;
 
9391
        esac
 
9392
      fi
 
9393
      ;;
 
9394
 
 
9395
    irix5* | irix6* | nonstopux*)
 
9396
      if test "$GCC" = yes; then
 
9397
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9398
        # Try to use the -exported_symbol ld option, if it does not
 
9399
        # work, assume that -exports_file does not work either and
 
9400
        # implicitly export all symbols.
 
9401
        save_LDFLAGS="$LDFLAGS"
 
9402
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9403
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9404
/* end confdefs.h.  */
 
9405
int foo(void) {}
 
9406
_ACEOF
 
9407
if ac_fn_c_try_link "$LINENO"; then :
 
9408
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9409
 
 
9410
fi
 
9411
rm -f core conftest.err conftest.$ac_objext \
 
9412
    conftest$ac_exeext conftest.$ac_ext
 
9413
        LDFLAGS="$save_LDFLAGS"
 
9414
      else
 
9415
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9416
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
9417
      fi
 
9418
      archive_cmds_need_lc='no'
 
9419
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9420
      hardcode_libdir_separator=:
 
9421
      inherit_rpath=yes
 
9422
      link_all_deplibs=yes
 
9423
      ;;
 
9424
 
 
9425
    netbsd* | netbsdelf*-gnu)
 
9426
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9427
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9428
      else
 
9429
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9430
      fi
 
9431
      hardcode_libdir_flag_spec='-R$libdir'
 
9432
      hardcode_direct=yes
 
9433
      hardcode_shlibpath_var=no
 
9434
      ;;
 
9435
 
 
9436
    newsos6)
 
9437
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9438
      hardcode_direct=yes
 
9439
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9440
      hardcode_libdir_separator=:
 
9441
      hardcode_shlibpath_var=no
 
9442
      ;;
 
9443
 
 
9444
    *nto* | *qnx*)
 
9445
      ;;
 
9446
 
 
9447
    openbsd*)
 
9448
      if test -f /usr/libexec/ld.so; then
 
9449
        hardcode_direct=yes
 
9450
        hardcode_shlibpath_var=no
 
9451
        hardcode_direct_absolute=yes
 
9452
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9453
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9454
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9455
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9456
          export_dynamic_flag_spec='${wl}-E'
 
9457
        else
 
9458
          case $host_os in
 
9459
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9460
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9461
             hardcode_libdir_flag_spec='-R$libdir'
 
9462
             ;;
 
9463
           *)
 
9464
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9465
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9466
             ;;
 
9467
          esac
 
9468
        fi
 
9469
      else
 
9470
        ld_shlibs=no
 
9471
      fi
 
9472
      ;;
 
9473
 
 
9474
    os2*)
 
9475
      hardcode_libdir_flag_spec='-L$libdir'
 
9476
      hardcode_minus_L=yes
 
9477
      allow_undefined_flag=unsupported
 
9478
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
9479
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9480
      ;;
 
9481
 
 
9482
    osf3*)
 
9483
      if test "$GCC" = yes; then
 
9484
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9485
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9486
      else
 
9487
        allow_undefined_flag=' -expect_unresolved \*'
 
9488
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9489
      fi
 
9490
      archive_cmds_need_lc='no'
 
9491
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9492
      hardcode_libdir_separator=:
 
9493
      ;;
 
9494
 
 
9495
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9496
      if test "$GCC" = yes; then
 
9497
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9498
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9499
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9500
      else
 
9501
        allow_undefined_flag=' -expect_unresolved \*'
 
9502
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
9503
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
9504
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
9505
 
 
9506
        # Both c and cxx compiler support -rpath directly
 
9507
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9508
      fi
 
9509
      archive_cmds_need_lc='no'
 
9510
      hardcode_libdir_separator=:
 
9511
      ;;
 
9512
 
 
9513
    solaris*)
 
9514
      no_undefined_flag=' -z defs'
 
9515
      if test "$GCC" = yes; then
 
9516
        wlarc='${wl}'
 
9517
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9518
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9519
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9520
      else
 
9521
        case `$CC -V 2>&1` in
 
9522
        *"Compilers 5.0"*)
 
9523
          wlarc=''
 
9524
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9525
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9526
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9527
          ;;
 
9528
        *)
 
9529
          wlarc='${wl}'
 
9530
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9531
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9532
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9533
          ;;
 
9534
        esac
 
9535
      fi
 
9536
      hardcode_libdir_flag_spec='-R$libdir'
 
9537
      hardcode_shlibpath_var=no
 
9538
      case $host_os in
 
9539
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9540
      *)
 
9541
        # The compiler driver will combine and reorder linker options,
 
9542
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9543
        # but is careful enough not to reorder.
 
9544
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9545
        if test "$GCC" = yes; then
 
9546
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9547
        else
 
9548
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9549
        fi
 
9550
        ;;
 
9551
      esac
 
9552
      link_all_deplibs=yes
 
9553
      ;;
 
9554
 
 
9555
    sunos4*)
 
9556
      if test "x$host_vendor" = xsequent; then
 
9557
        # Use $CC to link under sequent, because it throws in some extra .o
 
9558
        # files that make .init and .fini sections work.
 
9559
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9560
      else
 
9561
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9562
      fi
 
9563
      hardcode_libdir_flag_spec='-L$libdir'
 
9564
      hardcode_direct=yes
 
9565
      hardcode_minus_L=yes
 
9566
      hardcode_shlibpath_var=no
 
9567
      ;;
 
9568
 
 
9569
    sysv4)
 
9570
      case $host_vendor in
 
9571
        sni)
 
9572
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9573
          hardcode_direct=yes # is this really true???
 
9574
        ;;
 
9575
        siemens)
 
9576
          ## LD is ld it makes a PLAMLIB
 
9577
          ## CC just makes a GrossModule.
 
9578
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9579
          reload_cmds='$CC -r -o $output$reload_objs'
 
9580
          hardcode_direct=no
 
9581
        ;;
 
9582
        motorola)
 
9583
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9584
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9585
        ;;
 
9586
      esac
 
9587
      runpath_var='LD_RUN_PATH'
 
9588
      hardcode_shlibpath_var=no
 
9589
      ;;
 
9590
 
 
9591
    sysv4.3*)
 
9592
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9593
      hardcode_shlibpath_var=no
 
9594
      export_dynamic_flag_spec='-Bexport'
 
9595
      ;;
 
9596
 
 
9597
    sysv4*MP*)
 
9598
      if test -d /usr/nec; then
 
9599
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9600
        hardcode_shlibpath_var=no
 
9601
        runpath_var=LD_RUN_PATH
 
9602
        hardcode_runpath_var=yes
 
9603
        ld_shlibs=yes
 
9604
      fi
 
9605
      ;;
 
9606
 
 
9607
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9608
      no_undefined_flag='${wl}-z,text'
 
9609
      archive_cmds_need_lc=no
 
9610
      hardcode_shlibpath_var=no
 
9611
      runpath_var='LD_RUN_PATH'
 
9612
 
 
9613
      if test "$GCC" = yes; then
 
9614
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9615
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9616
      else
 
9617
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9618
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9619
      fi
 
9620
      ;;
 
9621
 
 
9622
    sysv5* | sco3.2v5* | sco5v6*)
 
9623
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9624
      # link with -lc, and that would cause any symbols used from libc to
 
9625
      # always be unresolved, which means just about no library would
 
9626
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9627
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9628
      # as -z defs.
 
9629
      no_undefined_flag='${wl}-z,text'
 
9630
      allow_undefined_flag='${wl}-z,nodefs'
 
9631
      archive_cmds_need_lc=no
 
9632
      hardcode_shlibpath_var=no
 
9633
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9634
      hardcode_libdir_separator=':'
 
9635
      link_all_deplibs=yes
 
9636
      export_dynamic_flag_spec='${wl}-Bexport'
 
9637
      runpath_var='LD_RUN_PATH'
 
9638
 
 
9639
      if test "$GCC" = yes; then
 
9640
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9641
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9642
      else
 
9643
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9644
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9645
      fi
 
9646
      ;;
 
9647
 
 
9648
    uts4*)
 
9649
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9650
      hardcode_libdir_flag_spec='-L$libdir'
 
9651
      hardcode_shlibpath_var=no
 
9652
      ;;
 
9653
 
 
9654
    *)
 
9655
      ld_shlibs=no
 
9656
      ;;
 
9657
    esac
 
9658
 
 
9659
    if test x$host_vendor = xsni; then
 
9660
      case $host in
 
9661
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9662
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9663
        ;;
 
9664
      esac
 
9665
    fi
 
9666
  fi
 
9667
 
 
9668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
9669
$as_echo "$ld_shlibs" >&6; }
 
9670
test "$ld_shlibs" = no && can_build_shared=no
 
9671
 
 
9672
with_gnu_ld=$with_gnu_ld
 
9673
 
 
9674
 
 
9675
 
 
9676
 
 
9677
 
 
9678
 
 
9679
 
 
9680
 
 
9681
 
 
9682
 
 
9683
 
 
9684
 
 
9685
 
 
9686
 
 
9687
 
 
9688
#
 
9689
# Do we need to explicitly link libc?
 
9690
#
 
9691
case "x$archive_cmds_need_lc" in
 
9692
x|xyes)
 
9693
  # Assume -lc should be added
 
9694
  archive_cmds_need_lc=yes
 
9695
 
 
9696
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9697
    case $archive_cmds in
 
9698
    *'~'*)
 
9699
      # FIXME: we may have to deal with multi-command sequences.
 
9700
      ;;
 
9701
    '$CC '*)
 
9702
      # Test whether the compiler implicitly links with -lc since on some
 
9703
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9704
      # to ld, don't add -lc before -lgcc.
 
9705
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
9706
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9707
      $RM conftest*
 
9708
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9709
 
 
9710
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
9711
  (eval $ac_compile) 2>&5
 
9712
  ac_status=$?
 
9713
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9714
  test $ac_status = 0; } 2>conftest.err; then
 
9715
        soname=conftest
 
9716
        lib=conftest
 
9717
        libobjs=conftest.$ac_objext
 
9718
        deplibs=
 
9719
        wl=$lt_prog_compiler_wl
 
9720
        pic_flag=$lt_prog_compiler_pic
 
9721
        compiler_flags=-v
 
9722
        linker_flags=-v
 
9723
        verstring=
 
9724
        output_objdir=.
 
9725
        libname=conftest
 
9726
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9727
        allow_undefined_flag=
 
9728
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
9729
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9730
  ac_status=$?
 
9731
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9732
  test $ac_status = 0; }
 
9733
        then
 
9734
          archive_cmds_need_lc=no
 
9735
        else
 
9736
          archive_cmds_need_lc=yes
 
9737
        fi
 
9738
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9739
      else
 
9740
        cat conftest.err 1>&5
 
9741
      fi
 
9742
      $RM conftest*
 
9743
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
 
9744
$as_echo "$archive_cmds_need_lc" >&6; }
 
9745
      ;;
 
9746
    esac
 
9747
  fi
 
9748
  ;;
 
9749
esac
 
9750
 
 
9751
 
 
9752
 
 
9753
 
 
9754
 
 
9755
 
 
9756
 
 
9757
 
 
9758
 
 
9759
 
 
9760
 
 
9761
 
 
9762
 
 
9763
 
 
9764
 
 
9765
 
 
9766
 
 
9767
 
 
9768
 
 
9769
 
 
9770
 
 
9771
 
 
9772
 
 
9773
 
 
9774
 
 
9775
 
 
9776
 
 
9777
 
 
9778
 
 
9779
 
 
9780
 
 
9781
 
 
9782
 
 
9783
 
 
9784
 
 
9785
 
 
9786
 
 
9787
 
 
9788
 
 
9789
 
 
9790
 
 
9791
 
 
9792
 
 
9793
 
 
9794
 
 
9795
 
 
9796
 
 
9797
 
 
9798
 
 
9799
 
 
9800
 
 
9801
 
 
9802
 
 
9803
 
 
9804
 
 
9805
 
 
9806
 
 
9807
 
 
9808
 
 
9809
 
 
9810
 
 
9811
 
 
9812
 
 
9813
 
 
9814
 
 
9815
 
 
9816
 
 
9817
 
 
9818
 
 
9819
 
 
9820
 
 
9821
 
 
9822
 
 
9823
 
 
9824
 
 
9825
 
 
9826
 
 
9827
 
 
9828
 
 
9829
 
 
9830
 
 
9831
 
 
9832
 
 
9833
 
 
9834
 
 
9835
 
 
9836
 
 
9837
 
 
9838
 
 
9839
 
 
9840
 
 
9841
 
 
9842
 
 
9843
 
 
9844
 
 
9845
 
 
9846
 
 
9847
 
 
9848
 
 
9849
 
 
9850
 
 
9851
 
 
9852
 
 
9853
 
 
9854
 
 
9855
 
 
9856
 
 
9857
 
 
9858
 
 
9859
 
 
9860
 
 
9861
 
 
9862
 
 
9863
 
 
9864
 
 
9865
 
 
9866
 
 
9867
 
 
9868
 
 
9869
 
 
9870
 
 
9871
 
 
9872
 
 
9873
 
 
9874
 
 
9875
 
 
9876
 
 
9877
 
 
9878
 
 
9879
 
 
9880
 
 
9881
 
 
9882
 
 
9883
 
 
9884
 
 
9885
 
 
9886
 
 
9887
 
 
9888
 
 
9889
 
 
9890
 
 
9891
 
 
9892
 
 
9893
 
 
9894
 
 
9895
 
 
9896
 
 
9897
 
 
9898
 
 
9899
 
 
9900
 
 
9901
 
 
9902
 
 
9903
 
 
9904
 
 
9905
 
 
9906
 
 
9907
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
9908
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9909
 
 
9910
if test "$GCC" = yes; then
 
9911
  case $host_os in
 
9912
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9913
    *) lt_awk_arg="/^libraries:/" ;;
 
9914
  esac
 
9915
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9916
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
9917
    # if the path contains ";" then we assume it to be the separator
 
9918
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9919
    # assumed that no part of a normal pathname contains ";" but that should
 
9920
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9921
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9922
  else
 
9923
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9924
  fi
 
9925
  # Ok, now we have the path, separated by spaces, we can step through it
 
9926
  # and add multilib dir if necessary.
 
9927
  lt_tmp_lt_search_path_spec=
 
9928
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9929
  for lt_sys_path in $lt_search_path_spec; do
 
9930
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9931
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9932
    else
 
9933
      test -d "$lt_sys_path" && \
 
9934
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9935
    fi
 
9936
  done
 
9937
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
9938
BEGIN {RS=" "; FS="/|\n";} {
 
9939
  lt_foo="";
 
9940
  lt_count=0;
 
9941
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9942
    if ($lt_i != "" && $lt_i != ".") {
 
9943
      if ($lt_i == "..") {
 
9944
        lt_count++;
 
9945
      } else {
 
9946
        if (lt_count == 0) {
 
9947
          lt_foo="/" $lt_i lt_foo;
 
9948
        } else {
 
9949
          lt_count--;
 
9950
        }
 
9951
      }
 
9952
    }
 
9953
  }
 
9954
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9955
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9956
}'`
 
9957
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
9958
else
 
9959
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9960
fi
 
9961
library_names_spec=
 
9962
libname_spec='lib$name'
 
9963
soname_spec=
 
9964
shrext_cmds=".so"
 
9965
postinstall_cmds=
 
9966
postuninstall_cmds=
 
9967
finish_cmds=
 
9968
finish_eval=
 
9969
shlibpath_var=
 
9970
shlibpath_overrides_runpath=unknown
 
9971
version_type=none
 
9972
dynamic_linker="$host_os ld.so"
 
9973
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9974
need_lib_prefix=unknown
 
9975
hardcode_into_libs=no
 
9976
 
 
9977
# when you set need_version to no, make sure it does not cause -set_version
 
9978
# flags to be left without arguments
 
9979
need_version=unknown
 
9980
 
 
9981
case $host_os in
 
9982
aix3*)
 
9983
  version_type=linux
 
9984
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9985
  shlibpath_var=LIBPATH
 
9986
 
 
9987
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9988
  soname_spec='${libname}${release}${shared_ext}$major'
 
9989
  ;;
 
9990
 
 
9991
aix[4-9]*)
 
9992
  version_type=linux
 
9993
  need_lib_prefix=no
 
9994
  need_version=no
 
9995
  hardcode_into_libs=yes
 
9996
  if test "$host_cpu" = ia64; then
 
9997
    # AIX 5 supports IA64
 
9998
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9999
    shlibpath_var=LD_LIBRARY_PATH
 
10000
  else
 
10001
    # With GCC up to 2.95.x, collect2 would create an import file
 
10002
    # for dependence libraries.  The import file would start with
 
10003
    # the line `#! .'.  This would cause the generated library to
 
10004
    # depend on `.', always an invalid library.  This was fixed in
 
10005
    # development snapshots of GCC prior to 3.0.
 
10006
    case $host_os in
 
10007
      aix4 | aix4.[01] | aix4.[01].*)
 
10008
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10009
           echo ' yes '
 
10010
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10011
        :
 
10012
      else
 
10013
        can_build_shared=no
 
10014
      fi
 
10015
      ;;
 
10016
    esac
 
10017
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10018
    # soname into executable. Probably we can add versioning support to
 
10019
    # collect2, so additional links can be useful in future.
 
10020
    if test "$aix_use_runtimelinking" = yes; then
 
10021
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10022
      # instead of lib<name>.a to let people know that these are not
 
10023
      # typical AIX shared libraries.
 
10024
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10025
    else
 
10026
      # We preserve .a as extension for shared libraries through AIX4.2
 
10027
      # and later when we are not doing run time linking.
 
10028
      library_names_spec='${libname}${release}.a $libname.a'
 
10029
      soname_spec='${libname}${release}${shared_ext}$major'
 
10030
    fi
 
10031
    shlibpath_var=LIBPATH
 
10032
  fi
 
10033
  ;;
 
10034
 
 
10035
amigaos*)
 
10036
  case $host_cpu in
 
10037
  powerpc)
 
10038
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10039
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10040
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10041
    ;;
 
10042
  m68k)
 
10043
    library_names_spec='$libname.ixlibrary $libname.a'
 
10044
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10045
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
10046
    ;;
 
10047
  esac
 
10048
  ;;
 
10049
 
 
10050
beos*)
 
10051
  library_names_spec='${libname}${shared_ext}'
 
10052
  dynamic_linker="$host_os ld.so"
 
10053
  shlibpath_var=LIBRARY_PATH
 
10054
  ;;
 
10055
 
 
10056
bsdi[45]*)
 
10057
  version_type=linux
 
10058
  need_version=no
 
10059
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10060
  soname_spec='${libname}${release}${shared_ext}$major'
 
10061
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10062
  shlibpath_var=LD_LIBRARY_PATH
 
10063
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10064
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10065
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10066
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10067
  # libtool to hard-code these into programs
 
10068
  ;;
 
10069
 
 
10070
cygwin* | mingw* | pw32* | cegcc*)
 
10071
  version_type=windows
 
10072
  shrext_cmds=".dll"
 
10073
  need_version=no
 
10074
  need_lib_prefix=no
 
10075
 
 
10076
  case $GCC,$host_os in
 
10077
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
10078
    library_names_spec='$libname.dll.a'
 
10079
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10080
    postinstall_cmds='base_file=`basename \${file}`~
 
10081
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10082
      dldir=$destdir/`dirname \$dlpath`~
 
10083
      test -d \$dldir || mkdir -p \$dldir~
 
10084
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10085
      chmod a+x \$dldir/$dlname~
 
10086
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10087
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10088
      fi'
 
10089
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10090
      dlpath=$dir/\$dldll~
 
10091
       $RM \$dlpath'
 
10092
    shlibpath_overrides_runpath=yes
 
10093
 
 
10094
    case $host_os in
 
10095
    cygwin*)
 
10096
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10097
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10098
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10099
      ;;
 
10100
    mingw* | cegcc*)
 
10101
      # MinGW DLLs use traditional 'lib' prefix
 
10102
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10103
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10104
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10105
        # It is most probably a Windows format PATH printed by
 
10106
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10107
        # path with ; separators, and with drive letters. We can handle the
 
10108
        # drive letters (cygwin fileutils understands them), so leave them,
 
10109
        # especially as we might pass files found there to a mingw objdump,
 
10110
        # which wouldn't understand a cygwinified path. Ahh.
 
10111
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10112
      else
 
10113
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10114
      fi
 
10115
      ;;
 
10116
    pw32*)
 
10117
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10118
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10119
      ;;
 
10120
    esac
 
10121
    ;;
 
10122
 
 
10123
  *)
 
10124
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10125
    ;;
 
10126
  esac
 
10127
  dynamic_linker='Win32 ld.exe'
 
10128
  # FIXME: first we should search . and the directory the executable is in
 
10129
  shlibpath_var=PATH
 
10130
  ;;
 
10131
 
 
10132
darwin* | rhapsody*)
 
10133
  dynamic_linker="$host_os dyld"
 
10134
  version_type=darwin
 
10135
  need_lib_prefix=no
 
10136
  need_version=no
 
10137
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10138
  soname_spec='${libname}${release}${major}$shared_ext'
 
10139
  shlibpath_overrides_runpath=yes
 
10140
  shlibpath_var=DYLD_LIBRARY_PATH
 
10141
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10142
 
 
10143
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10144
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10145
  ;;
 
10146
 
 
10147
dgux*)
 
10148
  version_type=linux
 
10149
  need_lib_prefix=no
 
10150
  need_version=no
 
10151
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10152
  soname_spec='${libname}${release}${shared_ext}$major'
 
10153
  shlibpath_var=LD_LIBRARY_PATH
 
10154
  ;;
 
10155
 
 
10156
freebsd1*)
 
10157
  dynamic_linker=no
 
10158
  ;;
 
10159
 
 
10160
freebsd* | dragonfly*)
 
10161
  # DragonFly does not have aout.  When/if they implement a new
 
10162
  # versioning mechanism, adjust this.
 
10163
  if test -x /usr/bin/objformat; then
 
10164
    objformat=`/usr/bin/objformat`
 
10165
  else
 
10166
    case $host_os in
 
10167
    freebsd[123]*) objformat=aout ;;
 
10168
    *) objformat=elf ;;
 
10169
    esac
 
10170
  fi
 
10171
  version_type=freebsd-$objformat
 
10172
  case $version_type in
 
10173
    freebsd-elf*)
 
10174
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10175
      need_version=no
 
10176
      need_lib_prefix=no
 
10177
      ;;
 
10178
    freebsd-*)
 
10179
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10180
      need_version=yes
 
10181
      ;;
 
10182
  esac
 
10183
  shlibpath_var=LD_LIBRARY_PATH
 
10184
  case $host_os in
 
10185
  freebsd2*)
 
10186
    shlibpath_overrides_runpath=yes
 
10187
    ;;
 
10188
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10189
    shlibpath_overrides_runpath=yes
 
10190
    hardcode_into_libs=yes
 
10191
    ;;
 
10192
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10193
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10194
    shlibpath_overrides_runpath=no
 
10195
    hardcode_into_libs=yes
 
10196
    ;;
 
10197
  *) # from 4.6 on, and DragonFly
 
10198
    shlibpath_overrides_runpath=yes
 
10199
    hardcode_into_libs=yes
 
10200
    ;;
 
10201
  esac
 
10202
  ;;
 
10203
 
 
10204
gnu*)
 
10205
  version_type=linux
 
10206
  need_lib_prefix=no
 
10207
  need_version=no
 
10208
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10209
  soname_spec='${libname}${release}${shared_ext}$major'
 
10210
  shlibpath_var=LD_LIBRARY_PATH
 
10211
  hardcode_into_libs=yes
 
10212
  ;;
 
10213
 
 
10214
hpux9* | hpux10* | hpux11*)
 
10215
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10216
  # link against other versions.
 
10217
  version_type=sunos
 
10218
  need_lib_prefix=no
 
10219
  need_version=no
 
10220
  case $host_cpu in
 
10221
  ia64*)
 
10222
    shrext_cmds='.so'
 
10223
    hardcode_into_libs=yes
 
10224
    dynamic_linker="$host_os dld.so"
 
10225
    shlibpath_var=LD_LIBRARY_PATH
 
10226
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10227
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10228
    soname_spec='${libname}${release}${shared_ext}$major'
 
10229
    if test "X$HPUX_IA64_MODE" = X32; then
 
10230
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10231
    else
 
10232
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10233
    fi
 
10234
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10235
    ;;
 
10236
  hppa*64*)
 
10237
    shrext_cmds='.sl'
 
10238
    hardcode_into_libs=yes
 
10239
    dynamic_linker="$host_os dld.sl"
 
10240
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10241
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10242
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10243
    soname_spec='${libname}${release}${shared_ext}$major'
 
10244
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10245
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10246
    ;;
 
10247
  *)
 
10248
    shrext_cmds='.sl'
 
10249
    dynamic_linker="$host_os dld.sl"
 
10250
    shlibpath_var=SHLIB_PATH
 
10251
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10252
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10253
    soname_spec='${libname}${release}${shared_ext}$major'
 
10254
    ;;
 
10255
  esac
 
10256
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
10257
  postinstall_cmds='chmod 555 $lib'
 
10258
  ;;
 
10259
 
 
10260
interix[3-9]*)
 
10261
  version_type=linux
 
10262
  need_lib_prefix=no
 
10263
  need_version=no
 
10264
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10265
  soname_spec='${libname}${release}${shared_ext}$major'
 
10266
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10267
  shlibpath_var=LD_LIBRARY_PATH
 
10268
  shlibpath_overrides_runpath=no
 
10269
  hardcode_into_libs=yes
 
10270
  ;;
 
10271
 
 
10272
irix5* | irix6* | nonstopux*)
 
10273
  case $host_os in
 
10274
    nonstopux*) version_type=nonstopux ;;
 
10275
    *)
 
10276
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10277
                version_type=linux
 
10278
        else
 
10279
                version_type=irix
 
10280
        fi ;;
 
10281
  esac
 
10282
  need_lib_prefix=no
 
10283
  need_version=no
 
10284
  soname_spec='${libname}${release}${shared_ext}$major'
 
10285
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10286
  case $host_os in
 
10287
  irix5* | nonstopux*)
 
10288
    libsuff= shlibsuff=
 
10289
    ;;
 
10290
  *)
 
10291
    case $LD in # libtool.m4 will add one of these switches to LD
 
10292
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10293
      libsuff= shlibsuff= libmagic=32-bit;;
 
10294
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10295
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10296
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10297
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10298
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10299
    esac
 
10300
    ;;
 
10301
  esac
 
10302
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10303
  shlibpath_overrides_runpath=no
 
10304
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10305
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10306
  hardcode_into_libs=yes
 
10307
  ;;
 
10308
 
 
10309
# No shared lib support for Linux oldld, aout, or coff.
 
10310
linux*oldld* | linux*aout* | linux*coff*)
 
10311
  dynamic_linker=no
 
10312
  ;;
 
10313
 
 
10314
# This must be Linux ELF.
 
10315
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
10316
  version_type=linux
 
10317
  need_lib_prefix=no
 
10318
  need_version=no
 
10319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10320
  soname_spec='${libname}${release}${shared_ext}$major'
 
10321
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10322
  shlibpath_var=LD_LIBRARY_PATH
 
10323
  shlibpath_overrides_runpath=no
 
10324
  # Some binutils ld are patched to set DT_RUNPATH
 
10325
  save_LDFLAGS=$LDFLAGS
 
10326
  save_libdir=$libdir
 
10327
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10328
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10329
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10330
/* end confdefs.h.  */
 
10331
 
 
10332
int
 
10333
main ()
 
10334
{
 
10335
 
 
10336
  ;
 
10337
  return 0;
 
10338
}
 
10339
_ACEOF
 
10340
if ac_fn_c_try_link "$LINENO"; then :
 
10341
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10342
  shlibpath_overrides_runpath=yes
 
10343
fi
 
10344
fi
 
10345
rm -f core conftest.err conftest.$ac_objext \
 
10346
    conftest$ac_exeext conftest.$ac_ext
 
10347
  LDFLAGS=$save_LDFLAGS
 
10348
  libdir=$save_libdir
 
10349
 
 
10350
  # This implies no fast_install, which is unacceptable.
 
10351
  # Some rework will be needed to allow for fast_install
 
10352
  # before this can be enabled.
 
10353
  hardcode_into_libs=yes
 
10354
 
 
10355
  # Append ld.so.conf contents to the search path
 
10356
  if test -f /etc/ld.so.conf; then
 
10357
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
10358
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10359
  fi
 
10360
 
 
10361
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10362
  # powerpc, because MkLinux only supported shared libraries with the
 
10363
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10364
  # most powerpc-linux boxes support dynamic linking these days and
 
10365
  # people can always --disable-shared, the test was removed, and we
 
10366
  # assume the GNU/Linux dynamic linker is in use.
 
10367
  dynamic_linker='GNU/Linux ld.so'
 
10368
  ;;
 
10369
 
 
10370
netbsdelf*-gnu)
 
10371
  version_type=linux
 
10372
  need_lib_prefix=no
 
10373
  need_version=no
 
10374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10375
  soname_spec='${libname}${release}${shared_ext}$major'
 
10376
  shlibpath_var=LD_LIBRARY_PATH
 
10377
  shlibpath_overrides_runpath=no
 
10378
  hardcode_into_libs=yes
 
10379
  dynamic_linker='NetBSD ld.elf_so'
 
10380
  ;;
 
10381
 
 
10382
netbsd*)
 
10383
  version_type=sunos
 
10384
  need_lib_prefix=no
 
10385
  need_version=no
 
10386
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10387
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10388
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10389
    dynamic_linker='NetBSD (a.out) ld.so'
 
10390
  else
 
10391
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10392
    soname_spec='${libname}${release}${shared_ext}$major'
 
10393
    dynamic_linker='NetBSD ld.elf_so'
 
10394
  fi
 
10395
  shlibpath_var=LD_LIBRARY_PATH
 
10396
  shlibpath_overrides_runpath=yes
 
10397
  hardcode_into_libs=yes
 
10398
  ;;
 
10399
 
 
10400
newsos6)
 
10401
  version_type=linux
 
10402
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10403
  shlibpath_var=LD_LIBRARY_PATH
 
10404
  shlibpath_overrides_runpath=yes
 
10405
  ;;
 
10406
 
 
10407
*nto* | *qnx*)
 
10408
  version_type=qnx
 
10409
  need_lib_prefix=no
 
10410
  need_version=no
 
10411
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10412
  soname_spec='${libname}${release}${shared_ext}$major'
 
10413
  shlibpath_var=LD_LIBRARY_PATH
 
10414
  shlibpath_overrides_runpath=no
 
10415
  hardcode_into_libs=yes
 
10416
  dynamic_linker='ldqnx.so'
 
10417
  ;;
 
10418
 
 
10419
openbsd*)
 
10420
  version_type=sunos
 
10421
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10422
  need_lib_prefix=no
 
10423
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10424
  case $host_os in
 
10425
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10426
    *)                          need_version=no  ;;
 
10427
  esac
 
10428
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10429
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10430
  shlibpath_var=LD_LIBRARY_PATH
 
10431
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10432
    case $host_os in
 
10433
      openbsd2.[89] | openbsd2.[89].*)
 
10434
        shlibpath_overrides_runpath=no
 
10435
        ;;
 
10436
      *)
 
10437
        shlibpath_overrides_runpath=yes
 
10438
        ;;
 
10439
      esac
 
10440
  else
 
10441
    shlibpath_overrides_runpath=yes
 
10442
  fi
 
10443
  ;;
 
10444
 
 
10445
os2*)
 
10446
  libname_spec='$name'
 
10447
  shrext_cmds=".dll"
 
10448
  need_lib_prefix=no
 
10449
  library_names_spec='$libname${shared_ext} $libname.a'
 
10450
  dynamic_linker='OS/2 ld.exe'
 
10451
  shlibpath_var=LIBPATH
 
10452
  ;;
 
10453
 
 
10454
osf3* | osf4* | osf5*)
 
10455
  version_type=osf
 
10456
  need_lib_prefix=no
 
10457
  need_version=no
 
10458
  soname_spec='${libname}${release}${shared_ext}$major'
 
10459
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10460
  shlibpath_var=LD_LIBRARY_PATH
 
10461
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10462
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10463
  ;;
 
10464
 
 
10465
rdos*)
 
10466
  dynamic_linker=no
 
10467
  ;;
 
10468
 
 
10469
solaris*)
 
10470
  version_type=linux
 
10471
  need_lib_prefix=no
 
10472
  need_version=no
 
10473
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10474
  soname_spec='${libname}${release}${shared_ext}$major'
 
10475
  shlibpath_var=LD_LIBRARY_PATH
 
10476
  shlibpath_overrides_runpath=yes
 
10477
  hardcode_into_libs=yes
 
10478
  # ldd complains unless libraries are executable
 
10479
  postinstall_cmds='chmod +x $lib'
 
10480
  ;;
 
10481
 
 
10482
sunos4*)
 
10483
  version_type=sunos
 
10484
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10485
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10486
  shlibpath_var=LD_LIBRARY_PATH
 
10487
  shlibpath_overrides_runpath=yes
 
10488
  if test "$with_gnu_ld" = yes; then
 
10489
    need_lib_prefix=no
 
10490
  fi
 
10491
  need_version=yes
 
10492
  ;;
 
10493
 
 
10494
sysv4 | sysv4.3*)
 
10495
  version_type=linux
 
10496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10497
  soname_spec='${libname}${release}${shared_ext}$major'
 
10498
  shlibpath_var=LD_LIBRARY_PATH
 
10499
  case $host_vendor in
 
10500
    sni)
 
10501
      shlibpath_overrides_runpath=no
 
10502
      need_lib_prefix=no
 
10503
      runpath_var=LD_RUN_PATH
 
10504
      ;;
 
10505
    siemens)
 
10506
      need_lib_prefix=no
 
10507
      ;;
 
10508
    motorola)
 
10509
      need_lib_prefix=no
 
10510
      need_version=no
 
10511
      shlibpath_overrides_runpath=no
 
10512
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10513
      ;;
 
10514
  esac
 
10515
  ;;
 
10516
 
 
10517
sysv4*MP*)
 
10518
  if test -d /usr/nec ;then
 
10519
    version_type=linux
 
10520
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10521
    soname_spec='$libname${shared_ext}.$major'
 
10522
    shlibpath_var=LD_LIBRARY_PATH
 
10523
  fi
 
10524
  ;;
 
10525
 
 
10526
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10527
  version_type=freebsd-elf
 
10528
  need_lib_prefix=no
 
10529
  need_version=no
 
10530
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10531
  soname_spec='${libname}${release}${shared_ext}$major'
 
10532
  shlibpath_var=LD_LIBRARY_PATH
 
10533
  shlibpath_overrides_runpath=yes
 
10534
  hardcode_into_libs=yes
 
10535
  if test "$with_gnu_ld" = yes; then
 
10536
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10537
  else
 
10538
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10539
    case $host_os in
 
10540
      sco3.2v5*)
 
10541
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10542
        ;;
 
10543
    esac
 
10544
  fi
 
10545
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10546
  ;;
 
10547
 
 
10548
tpf*)
 
10549
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10550
  version_type=linux
 
10551
  need_lib_prefix=no
 
10552
  need_version=no
 
10553
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10554
  shlibpath_var=LD_LIBRARY_PATH
 
10555
  shlibpath_overrides_runpath=no
 
10556
  hardcode_into_libs=yes
 
10557
  ;;
 
10558
 
 
10559
uts4*)
 
10560
  version_type=linux
 
10561
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10562
  soname_spec='${libname}${release}${shared_ext}$major'
 
10563
  shlibpath_var=LD_LIBRARY_PATH
 
10564
  ;;
 
10565
 
 
10566
*)
 
10567
  dynamic_linker=no
 
10568
  ;;
 
10569
esac
 
10570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
10571
$as_echo "$dynamic_linker" >&6; }
 
10572
test "$dynamic_linker" = no && can_build_shared=no
 
10573
 
 
10574
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10575
if test "$GCC" = yes; then
 
10576
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10577
fi
 
10578
 
 
10579
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10580
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10581
fi
 
10582
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10583
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10584
fi
 
10585
 
 
10586
 
 
10587
 
 
10588
 
 
10589
 
 
10590
 
 
10591
 
 
10592
 
 
10593
 
 
10594
 
 
10595
 
 
10596
 
 
10597
 
 
10598
 
 
10599
 
 
10600
 
 
10601
 
 
10602
 
 
10603
 
 
10604
 
 
10605
 
 
10606
 
 
10607
 
 
10608
 
 
10609
 
 
10610
 
 
10611
 
 
10612
 
 
10613
 
 
10614
 
 
10615
 
 
10616
 
 
10617
 
 
10618
 
 
10619
 
 
10620
 
 
10621
 
 
10622
 
 
10623
 
 
10624
 
 
10625
 
 
10626
 
 
10627
 
 
10628
 
 
10629
 
 
10630
 
 
10631
 
 
10632
 
 
10633
 
 
10634
 
 
10635
 
 
10636
 
 
10637
 
 
10638
 
 
10639
 
 
10640
 
 
10641
 
 
10642
 
 
10643
 
 
10644
 
 
10645
 
 
10646
 
 
10647
 
 
10648
 
 
10649
 
 
10650
 
 
10651
 
 
10652
 
 
10653
 
 
10654
 
 
10655
 
 
10656
 
 
10657
 
 
10658
 
 
10659
 
 
10660
 
 
10661
 
 
10662
 
 
10663
 
 
10664
 
 
10665
 
 
10666
 
 
10667
 
 
10668
 
 
10669
 
 
10670
 
 
10671
 
 
10672
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
10673
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10674
hardcode_action=
 
10675
if test -n "$hardcode_libdir_flag_spec" ||
 
10676
   test -n "$runpath_var" ||
 
10677
   test "X$hardcode_automatic" = "Xyes" ; then
 
10678
 
 
10679
  # We can hardcode non-existent directories.
 
10680
  if test "$hardcode_direct" != no &&
 
10681
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10682
     # have to relink, otherwise we might link with an installed library
 
10683
     # when we should be linking with a yet-to-be-installed one
 
10684
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10685
     test "$hardcode_minus_L" != no; then
 
10686
    # Linking always hardcodes the temporary library directory.
 
10687
    hardcode_action=relink
 
10688
  else
 
10689
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10690
    hardcode_action=immediate
 
10691
  fi
 
10692
else
 
10693
  # We cannot hardcode anything, or else we can only hardcode existing
 
10694
  # directories.
 
10695
  hardcode_action=unsupported
 
10696
fi
 
10697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
10698
$as_echo "$hardcode_action" >&6; }
 
10699
 
 
10700
if test "$hardcode_action" = relink ||
 
10701
   test "$inherit_rpath" = yes; then
 
10702
  # Fast installation is not supported
 
10703
  enable_fast_install=no
 
10704
elif test "$shlibpath_overrides_runpath" = yes ||
 
10705
     test "$enable_shared" = no; then
 
10706
  # Fast installation is not necessary
 
10707
  enable_fast_install=needless
 
10708
fi
 
10709
 
 
10710
 
 
10711
 
 
10712
 
 
10713
 
 
10714
 
 
10715
  if test "x$enable_dlopen" != xyes; then
 
10716
  enable_dlopen=unknown
 
10717
  enable_dlopen_self=unknown
 
10718
  enable_dlopen_self_static=unknown
 
10719
else
 
10720
  lt_cv_dlopen=no
 
10721
  lt_cv_dlopen_libs=
 
10722
 
 
10723
  case $host_os in
 
10724
  beos*)
 
10725
    lt_cv_dlopen="load_add_on"
 
10726
    lt_cv_dlopen_libs=
 
10727
    lt_cv_dlopen_self=yes
 
10728
    ;;
 
10729
 
 
10730
  mingw* | pw32* | cegcc*)
 
10731
    lt_cv_dlopen="LoadLibrary"
 
10732
    lt_cv_dlopen_libs=
 
10733
    ;;
 
10734
 
 
10735
  cygwin*)
 
10736
    lt_cv_dlopen="dlopen"
 
10737
    lt_cv_dlopen_libs=
 
10738
    ;;
 
10739
 
 
10740
  darwin*)
 
10741
  # if libdl is installed we need to link against it
 
10742
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10743
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10744
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10745
  $as_echo_n "(cached) " >&6
 
10746
else
 
10747
  ac_check_lib_save_LIBS=$LIBS
 
10748
LIBS="-ldl  $LIBS"
 
10749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10750
/* end confdefs.h.  */
 
10751
 
 
10752
/* Override any GCC internal prototype to avoid an error.
 
10753
   Use char because int might match the return type of a GCC
 
10754
   builtin and then its argument prototype would still apply.  */
 
10755
#ifdef __cplusplus
 
10756
extern "C"
 
10757
#endif
 
10758
char dlopen ();
 
10759
int
 
10760
main ()
 
10761
{
 
10762
return dlopen ();
 
10763
  ;
 
10764
  return 0;
 
10765
}
 
10766
_ACEOF
 
10767
if ac_fn_c_try_link "$LINENO"; then :
 
10768
  ac_cv_lib_dl_dlopen=yes
 
10769
else
 
10770
  ac_cv_lib_dl_dlopen=no
 
10771
fi
 
10772
rm -f core conftest.err conftest.$ac_objext \
 
10773
    conftest$ac_exeext conftest.$ac_ext
 
10774
LIBS=$ac_check_lib_save_LIBS
 
10775
fi
 
10776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10777
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10778
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
10779
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10780
else
 
10781
 
 
10782
    lt_cv_dlopen="dyld"
 
10783
    lt_cv_dlopen_libs=
 
10784
    lt_cv_dlopen_self=yes
 
10785
 
 
10786
fi
 
10787
 
 
10788
    ;;
 
10789
 
 
10790
  *)
 
10791
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
10792
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
10793
  lt_cv_dlopen="shl_load"
 
10794
else
 
10795
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
10796
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10797
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
10798
  $as_echo_n "(cached) " >&6
 
10799
else
 
10800
  ac_check_lib_save_LIBS=$LIBS
 
10801
LIBS="-ldld  $LIBS"
 
10802
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10803
/* end confdefs.h.  */
 
10804
 
 
10805
/* Override any GCC internal prototype to avoid an error.
 
10806
   Use char because int might match the return type of a GCC
 
10807
   builtin and then its argument prototype would still apply.  */
 
10808
#ifdef __cplusplus
 
10809
extern "C"
 
10810
#endif
 
10811
char shl_load ();
 
10812
int
 
10813
main ()
 
10814
{
 
10815
return shl_load ();
 
10816
  ;
 
10817
  return 0;
 
10818
}
 
10819
_ACEOF
 
10820
if ac_fn_c_try_link "$LINENO"; then :
 
10821
  ac_cv_lib_dld_shl_load=yes
 
10822
else
 
10823
  ac_cv_lib_dld_shl_load=no
 
10824
fi
 
10825
rm -f core conftest.err conftest.$ac_objext \
 
10826
    conftest$ac_exeext conftest.$ac_ext
 
10827
LIBS=$ac_check_lib_save_LIBS
 
10828
fi
 
10829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
10830
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10831
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
10832
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10833
else
 
10834
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
10835
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
10836
  lt_cv_dlopen="dlopen"
 
10837
else
 
10838
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10839
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10840
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
10841
  $as_echo_n "(cached) " >&6
 
10842
else
 
10843
  ac_check_lib_save_LIBS=$LIBS
 
10844
LIBS="-ldl  $LIBS"
 
10845
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10846
/* end confdefs.h.  */
 
10847
 
 
10848
/* Override any GCC internal prototype to avoid an error.
 
10849
   Use char because int might match the return type of a GCC
 
10850
   builtin and then its argument prototype would still apply.  */
 
10851
#ifdef __cplusplus
 
10852
extern "C"
 
10853
#endif
 
10854
char dlopen ();
 
10855
int
 
10856
main ()
 
10857
{
 
10858
return dlopen ();
 
10859
  ;
 
10860
  return 0;
 
10861
}
 
10862
_ACEOF
 
10863
if ac_fn_c_try_link "$LINENO"; then :
 
10864
  ac_cv_lib_dl_dlopen=yes
 
10865
else
 
10866
  ac_cv_lib_dl_dlopen=no
 
10867
fi
 
10868
rm -f core conftest.err conftest.$ac_objext \
 
10869
    conftest$ac_exeext conftest.$ac_ext
 
10870
LIBS=$ac_check_lib_save_LIBS
 
10871
fi
 
10872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10873
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10874
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
10875
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10876
else
 
10877
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
10878
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10879
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
10880
  $as_echo_n "(cached) " >&6
 
10881
else
 
10882
  ac_check_lib_save_LIBS=$LIBS
 
10883
LIBS="-lsvld  $LIBS"
 
10884
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10885
/* end confdefs.h.  */
 
10886
 
 
10887
/* Override any GCC internal prototype to avoid an error.
 
10888
   Use char because int might match the return type of a GCC
 
10889
   builtin and then its argument prototype would still apply.  */
 
10890
#ifdef __cplusplus
 
10891
extern "C"
 
10892
#endif
 
10893
char dlopen ();
 
10894
int
 
10895
main ()
 
10896
{
 
10897
return dlopen ();
 
10898
  ;
 
10899
  return 0;
 
10900
}
 
10901
_ACEOF
 
10902
if ac_fn_c_try_link "$LINENO"; then :
 
10903
  ac_cv_lib_svld_dlopen=yes
 
10904
else
 
10905
  ac_cv_lib_svld_dlopen=no
 
10906
fi
 
10907
rm -f core conftest.err conftest.$ac_objext \
 
10908
    conftest$ac_exeext conftest.$ac_ext
 
10909
LIBS=$ac_check_lib_save_LIBS
 
10910
fi
 
10911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
10912
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10913
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
10914
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10915
else
 
10916
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
10917
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10918
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
10919
  $as_echo_n "(cached) " >&6
 
10920
else
 
10921
  ac_check_lib_save_LIBS=$LIBS
 
10922
LIBS="-ldld  $LIBS"
 
10923
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10924
/* end confdefs.h.  */
 
10925
 
 
10926
/* Override any GCC internal prototype to avoid an error.
 
10927
   Use char because int might match the return type of a GCC
 
10928
   builtin and then its argument prototype would still apply.  */
 
10929
#ifdef __cplusplus
 
10930
extern "C"
 
10931
#endif
 
10932
char dld_link ();
 
10933
int
 
10934
main ()
 
10935
{
 
10936
return dld_link ();
 
10937
  ;
 
10938
  return 0;
 
10939
}
 
10940
_ACEOF
 
10941
if ac_fn_c_try_link "$LINENO"; then :
 
10942
  ac_cv_lib_dld_dld_link=yes
 
10943
else
 
10944
  ac_cv_lib_dld_dld_link=no
 
10945
fi
 
10946
rm -f core conftest.err conftest.$ac_objext \
 
10947
    conftest$ac_exeext conftest.$ac_ext
 
10948
LIBS=$ac_check_lib_save_LIBS
 
10949
fi
 
10950
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
10951
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10952
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
10953
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10954
fi
 
10955
 
 
10956
 
 
10957
fi
 
10958
 
 
10959
 
 
10960
fi
 
10961
 
 
10962
 
 
10963
fi
 
10964
 
 
10965
 
 
10966
fi
 
10967
 
 
10968
 
 
10969
fi
 
10970
 
 
10971
    ;;
 
10972
  esac
 
10973
 
 
10974
  if test "x$lt_cv_dlopen" != xno; then
 
10975
    enable_dlopen=yes
 
10976
  else
 
10977
    enable_dlopen=no
 
10978
  fi
 
10979
 
 
10980
  case $lt_cv_dlopen in
 
10981
  dlopen)
 
10982
    save_CPPFLAGS="$CPPFLAGS"
 
10983
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10984
 
 
10985
    save_LDFLAGS="$LDFLAGS"
 
10986
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10987
 
 
10988
    save_LIBS="$LIBS"
 
10989
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10990
 
 
10991
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
10992
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10993
if test "${lt_cv_dlopen_self+set}" = set; then :
 
10994
  $as_echo_n "(cached) " >&6
 
10995
else
 
10996
          if test "$cross_compiling" = yes; then :
 
10997
  lt_cv_dlopen_self=cross
 
10998
else
 
10999
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11000
  lt_status=$lt_dlunknown
 
11001
  cat > conftest.$ac_ext <<_LT_EOF
 
11002
#line 11002 "configure"
 
11003
#include "confdefs.h"
 
11004
 
 
11005
#if HAVE_DLFCN_H
 
11006
#include <dlfcn.h>
 
11007
#endif
 
11008
 
 
11009
#include <stdio.h>
 
11010
 
 
11011
#ifdef RTLD_GLOBAL
 
11012
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11013
#else
 
11014
#  ifdef DL_GLOBAL
 
11015
#    define LT_DLGLOBAL         DL_GLOBAL
 
11016
#  else
 
11017
#    define LT_DLGLOBAL         0
 
11018
#  endif
 
11019
#endif
 
11020
 
 
11021
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11022
   find out it does not work in some platform. */
 
11023
#ifndef LT_DLLAZY_OR_NOW
 
11024
#  ifdef RTLD_LAZY
 
11025
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11026
#  else
 
11027
#    ifdef DL_LAZY
 
11028
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11029
#    else
 
11030
#      ifdef RTLD_NOW
 
11031
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11032
#      else
 
11033
#        ifdef DL_NOW
 
11034
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11035
#        else
 
11036
#          define LT_DLLAZY_OR_NOW      0
 
11037
#        endif
 
11038
#      endif
 
11039
#    endif
 
11040
#  endif
 
11041
#endif
 
11042
 
 
11043
void fnord() { int i=42;}
 
11044
int main ()
 
11045
{
 
11046
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11047
  int status = $lt_dlunknown;
 
11048
 
 
11049
  if (self)
 
11050
    {
 
11051
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11052
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11053
      /* dlclose (self); */
 
11054
    }
 
11055
  else
 
11056
    puts (dlerror ());
 
11057
 
 
11058
  return status;
 
11059
}
 
11060
_LT_EOF
 
11061
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11062
  (eval $ac_link) 2>&5
 
11063
  ac_status=$?
 
11064
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11065
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11066
    (./conftest; exit; ) >&5 2>/dev/null
 
11067
    lt_status=$?
 
11068
    case x$lt_status in
 
11069
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11070
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11071
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11072
    esac
 
11073
  else :
 
11074
    # compilation failed
 
11075
    lt_cv_dlopen_self=no
 
11076
  fi
 
11077
fi
 
11078
rm -fr conftest*
 
11079
 
 
11080
 
 
11081
fi
 
11082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11083
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11084
 
 
11085
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11086
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11087
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11088
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11089
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
11090
  $as_echo_n "(cached) " >&6
 
11091
else
 
11092
          if test "$cross_compiling" = yes; then :
 
11093
  lt_cv_dlopen_self_static=cross
 
11094
else
 
11095
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11096
  lt_status=$lt_dlunknown
 
11097
  cat > conftest.$ac_ext <<_LT_EOF
 
11098
#line 11098 "configure"
 
11099
#include "confdefs.h"
 
11100
 
 
11101
#if HAVE_DLFCN_H
 
11102
#include <dlfcn.h>
 
11103
#endif
 
11104
 
 
11105
#include <stdio.h>
 
11106
 
 
11107
#ifdef RTLD_GLOBAL
 
11108
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11109
#else
 
11110
#  ifdef DL_GLOBAL
 
11111
#    define LT_DLGLOBAL         DL_GLOBAL
 
11112
#  else
 
11113
#    define LT_DLGLOBAL         0
 
11114
#  endif
 
11115
#endif
 
11116
 
 
11117
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11118
   find out it does not work in some platform. */
 
11119
#ifndef LT_DLLAZY_OR_NOW
 
11120
#  ifdef RTLD_LAZY
 
11121
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11122
#  else
 
11123
#    ifdef DL_LAZY
 
11124
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11125
#    else
 
11126
#      ifdef RTLD_NOW
 
11127
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11128
#      else
 
11129
#        ifdef DL_NOW
 
11130
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11131
#        else
 
11132
#          define LT_DLLAZY_OR_NOW      0
 
11133
#        endif
 
11134
#      endif
 
11135
#    endif
 
11136
#  endif
 
11137
#endif
 
11138
 
 
11139
void fnord() { int i=42;}
 
11140
int main ()
 
11141
{
 
11142
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11143
  int status = $lt_dlunknown;
 
11144
 
 
11145
  if (self)
 
11146
    {
 
11147
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11148
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11149
      /* dlclose (self); */
 
11150
    }
 
11151
  else
 
11152
    puts (dlerror ());
 
11153
 
 
11154
  return status;
 
11155
}
 
11156
_LT_EOF
 
11157
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11158
  (eval $ac_link) 2>&5
 
11159
  ac_status=$?
 
11160
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11161
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11162
    (./conftest; exit; ) >&5 2>/dev/null
 
11163
    lt_status=$?
 
11164
    case x$lt_status in
 
11165
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11166
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11167
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11168
    esac
 
11169
  else :
 
11170
    # compilation failed
 
11171
    lt_cv_dlopen_self_static=no
 
11172
  fi
 
11173
fi
 
11174
rm -fr conftest*
 
11175
 
 
11176
 
 
11177
fi
 
11178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11179
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11180
    fi
 
11181
 
 
11182
    CPPFLAGS="$save_CPPFLAGS"
 
11183
    LDFLAGS="$save_LDFLAGS"
 
11184
    LIBS="$save_LIBS"
 
11185
    ;;
 
11186
  esac
 
11187
 
 
11188
  case $lt_cv_dlopen_self in
 
11189
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11190
  *) enable_dlopen_self=unknown ;;
 
11191
  esac
 
11192
 
 
11193
  case $lt_cv_dlopen_self_static in
 
11194
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11195
  *) enable_dlopen_self_static=unknown ;;
 
11196
  esac
 
11197
fi
 
11198
 
 
11199
 
 
11200
 
 
11201
 
 
11202
 
 
11203
 
 
11204
 
 
11205
 
 
11206
 
 
11207
 
 
11208
 
 
11209
 
 
11210
 
 
11211
 
 
11212
 
 
11213
 
 
11214
 
 
11215
striplib=
 
11216
old_striplib=
 
11217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11218
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11219
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11220
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11221
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11222
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11223
$as_echo "yes" >&6; }
 
11224
else
 
11225
# FIXME - insert some real tests, host_os isn't really good enough
 
11226
  case $host_os in
 
11227
  darwin*)
 
11228
    if test -n "$STRIP" ; then
 
11229
      striplib="$STRIP -x"
 
11230
      old_striplib="$STRIP -S"
 
11231
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11232
$as_echo "yes" >&6; }
 
11233
    else
 
11234
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11235
$as_echo "no" >&6; }
 
11236
    fi
 
11237
    ;;
 
11238
  *)
 
11239
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11240
$as_echo "no" >&6; }
 
11241
    ;;
 
11242
  esac
 
11243
fi
 
11244
 
 
11245
 
 
11246
 
 
11247
 
 
11248
 
 
11249
 
 
11250
 
 
11251
 
 
11252
 
 
11253
 
 
11254
 
 
11255
 
 
11256
  # Report which library types will actually be built
 
11257
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11258
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11260
$as_echo "$can_build_shared" >&6; }
 
11261
 
 
11262
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11263
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11264
  test "$can_build_shared" = "no" && enable_shared=no
 
11265
 
 
11266
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11267
  # are all built from PIC.
 
11268
  case $host_os in
 
11269
  aix3*)
 
11270
    test "$enable_shared" = yes && enable_static=no
 
11271
    if test -n "$RANLIB"; then
 
11272
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11273
      postinstall_cmds='$RANLIB $lib'
 
11274
    fi
 
11275
    ;;
 
11276
 
 
11277
  aix[4-9]*)
 
11278
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11279
      test "$enable_shared" = yes && enable_static=no
 
11280
    fi
 
11281
    ;;
 
11282
  esac
 
11283
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11284
$as_echo "$enable_shared" >&6; }
 
11285
 
 
11286
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11287
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11288
  # Make sure either enable_shared or enable_static is yes.
 
11289
  test "$enable_shared" = yes || enable_static=yes
 
11290
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11291
$as_echo "$enable_static" >&6; }
 
11292
 
 
11293
 
 
11294
 
 
11295
 
 
11296
fi
 
11297
ac_ext=c
 
11298
ac_cpp='$CPP $CPPFLAGS'
 
11299
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11300
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11301
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11302
 
 
11303
CC="$lt_save_CC"
 
11304
 
 
11305
 
 
11306
 
 
11307
 
 
11308
 
 
11309
 
 
11310
 
 
11311
 
 
11312
 
 
11313
 
 
11314
 
 
11315
 
 
11316
 
 
11317
        ac_config_commands="$ac_config_commands libtool"
 
11318
 
 
11319
 
 
11320
 
 
11321
 
 
11322
# Only expand once:
 
11323
 
 
11324
 
 
11325
 
 
11326
CPPFLAGS="${CPPFLAGS} -D_REENTRANT -D__EXTENSIONS__"
 
11327
 
 
11328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
11329
$as_echo_n "checking for ANSI C header files... " >&6; }
 
11330
if test "${ac_cv_header_stdc+set}" = set; then :
 
11331
  $as_echo_n "(cached) " >&6
 
11332
else
 
11333
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11334
/* end confdefs.h.  */
 
11335
#include <stdlib.h>
 
11336
#include <stdarg.h>
 
11337
#include <string.h>
 
11338
#include <float.h>
 
11339
 
 
11340
int
 
11341
main ()
 
11342
{
 
11343
 
 
11344
  ;
 
11345
  return 0;
 
11346
}
 
11347
_ACEOF
 
11348
if ac_fn_c_try_compile "$LINENO"; then :
 
11349
  ac_cv_header_stdc=yes
 
11350
else
 
11351
  ac_cv_header_stdc=no
 
11352
fi
 
11353
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11354
 
 
11355
if test $ac_cv_header_stdc = yes; then
 
11356
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
11357
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11358
/* end confdefs.h.  */
 
11359
#include <string.h>
 
11360
 
 
11361
_ACEOF
 
11362
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11363
  $EGREP "memchr" >/dev/null 2>&1; then :
 
11364
 
 
11365
else
 
11366
  ac_cv_header_stdc=no
 
11367
fi
 
11368
rm -f conftest*
 
11369
 
 
11370
fi
 
11371
 
 
11372
if test $ac_cv_header_stdc = yes; then
 
11373
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
11374
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11375
/* end confdefs.h.  */
 
11376
#include <stdlib.h>
 
11377
 
 
11378
_ACEOF
 
11379
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11380
  $EGREP "free" >/dev/null 2>&1; then :
 
11381
 
 
11382
else
 
11383
  ac_cv_header_stdc=no
 
11384
fi
 
11385
rm -f conftest*
 
11386
 
 
11387
fi
 
11388
 
 
11389
if test $ac_cv_header_stdc = yes; then
 
11390
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
11391
  if test "$cross_compiling" = yes; then :
 
11392
  :
 
11393
else
 
11394
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11395
/* end confdefs.h.  */
 
11396
#include <ctype.h>
 
11397
#include <stdlib.h>
 
11398
#if ((' ' & 0x0FF) == 0x020)
 
11399
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
11400
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
11401
#else
 
11402
# define ISLOWER(c) \
 
11403
                   (('a' <= (c) && (c) <= 'i') \
 
11404
                     || ('j' <= (c) && (c) <= 'r') \
 
11405
                     || ('s' <= (c) && (c) <= 'z'))
 
11406
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
11407
#endif
 
11408
 
 
11409
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
11410
int
 
11411
main ()
 
11412
{
 
11413
  int i;
 
11414
  for (i = 0; i < 256; i++)
 
11415
    if (XOR (islower (i), ISLOWER (i))
 
11416
        || toupper (i) != TOUPPER (i))
 
11417
      return 2;
 
11418
  return 0;
 
11419
}
 
11420
_ACEOF
 
11421
if ac_fn_c_try_run "$LINENO"; then :
 
11422
 
 
11423
else
 
11424
  ac_cv_header_stdc=no
 
11425
fi
 
11426
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11427
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11428
fi
 
11429
 
 
11430
fi
 
11431
fi
 
11432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
11433
$as_echo "$ac_cv_header_stdc" >&6; }
 
11434
if test $ac_cv_header_stdc = yes; then
 
11435
 
 
11436
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
11437
 
 
11438
fi
 
11439
 
 
11440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
11441
$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
 
11442
if test "${ac_cv_header_sys_wait_h+set}" = set; then :
 
11443
  $as_echo_n "(cached) " >&6
 
11444
else
 
11445
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11446
/* end confdefs.h.  */
 
11447
#include <sys/types.h>
 
11448
#include <sys/wait.h>
 
11449
#ifndef WEXITSTATUS
 
11450
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
 
11451
#endif
 
11452
#ifndef WIFEXITED
 
11453
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
11454
#endif
 
11455
 
 
11456
int
 
11457
main ()
 
11458
{
 
11459
  int s;
 
11460
  wait (&s);
 
11461
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
11462
  ;
 
11463
  return 0;
 
11464
}
 
11465
_ACEOF
 
11466
if ac_fn_c_try_compile "$LINENO"; then :
 
11467
  ac_cv_header_sys_wait_h=yes
 
11468
else
 
11469
  ac_cv_header_sys_wait_h=no
 
11470
fi
 
11471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11472
fi
 
11473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
 
11474
$as_echo "$ac_cv_header_sys_wait_h" >&6; }
 
11475
if test $ac_cv_header_sys_wait_h = yes; then
 
11476
 
 
11477
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
 
11478
 
 
11479
fi
 
11480
 
 
11481
for ac_header in arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h \
 
11482
sys/socket.h sys/time.h unistd.h sys/sendfile.h sys/uio.h \
 
11483
getopt.h sys/epoll.h sys/select.h poll.h sys/poll.h sys/devpoll.h sys/filio.h \
 
11484
sys/mman.h sys/event.h sys/port.h pwd.h sys/syslimits.h \
 
11485
sys/resource.h sys/un.h syslog.h sys/prctl.h uuid/uuid.h
 
11486
do :
 
11487
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11488
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
11489
eval as_val=\$$as_ac_Header
 
11490
   if test "x$as_val" = x""yes; then :
 
11491
  cat >>confdefs.h <<_ACEOF
 
11492
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11493
_ACEOF
 
11494
 
 
11495
fi
 
11496
 
 
11497
done
 
11498
 
 
11499
 
 
11500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
11501
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
11502
if test "${ac_cv_c_const+set}" = set; then :
 
11503
  $as_echo_n "(cached) " >&6
 
11504
else
 
11505
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11506
/* end confdefs.h.  */
 
11507
 
 
11508
int
 
11509
main ()
 
11510
{
 
11511
/* FIXME: Include the comments suggested by Paul. */
 
11512
#ifndef __cplusplus
 
11513
  /* Ultrix mips cc rejects this.  */
 
11514
  typedef int charset[2];
 
11515
  const charset cs;
 
11516
  /* SunOS 4.1.1 cc rejects this.  */
 
11517
  char const *const *pcpcc;
 
11518
  char **ppc;
 
11519
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
11520
  struct point {int x, y;};
 
11521
  static struct point const zero = {0,0};
 
11522
  /* AIX XL C 1.02.0.0 rejects this.
 
11523
     It does not let you subtract one const X* pointer from another in
 
11524
     an arm of an if-expression whose if-part is not a constant
 
11525
     expression */
 
11526
  const char *g = "string";
 
11527
  pcpcc = &g + (g ? g-g : 0);
 
11528
  /* HPUX 7.0 cc rejects these. */
 
11529
  ++pcpcc;
 
11530
  ppc = (char**) pcpcc;
 
11531
  pcpcc = (char const *const *) ppc;
 
11532
  { /* SCO 3.2v4 cc rejects this.  */
 
11533
    char *t;
 
11534
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
11535
 
 
11536
    *t++ = 0;
 
11537
    if (s) return 0;
 
11538
  }
 
11539
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
11540
    int x[] = {25, 17};
 
11541
    const int *foo = &x[0];
 
11542
    ++foo;
 
11543
  }
 
11544
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
11545
    typedef const int *iptr;
 
11546
    iptr p = 0;
 
11547
    ++p;
 
11548
  }
 
11549
  { /* AIX XL C 1.02.0.0 rejects this saying
 
11550
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
11551
    struct s { int j; const int *ap[3]; };
 
11552
    struct s *b; b->j = 5;
 
11553
  }
 
11554
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
11555
    const int foo = 10;
 
11556
    if (!foo) return 0;
 
11557
  }
 
11558
  return !cs[0] && !zero.x;
 
11559
#endif
 
11560
 
 
11561
  ;
 
11562
  return 0;
 
11563
}
 
11564
_ACEOF
 
11565
if ac_fn_c_try_compile "$LINENO"; then :
 
11566
  ac_cv_c_const=yes
 
11567
else
 
11568
  ac_cv_c_const=no
 
11569
fi
 
11570
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11571
fi
 
11572
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
11573
$as_echo "$ac_cv_c_const" >&6; }
 
11574
if test $ac_cv_c_const = no; then
 
11575
 
 
11576
$as_echo "#define const /**/" >>confdefs.h
 
11577
 
 
11578
fi
 
11579
 
 
11580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
11581
$as_echo_n "checking for inline... " >&6; }
 
11582
if test "${ac_cv_c_inline+set}" = set; then :
 
11583
  $as_echo_n "(cached) " >&6
 
11584
else
 
11585
  ac_cv_c_inline=no
 
11586
for ac_kw in inline __inline__ __inline; do
 
11587
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11588
/* end confdefs.h.  */
 
11589
#ifndef __cplusplus
 
11590
typedef int foo_t;
 
11591
static $ac_kw foo_t static_foo () {return 0; }
 
11592
$ac_kw foo_t foo () {return 0; }
 
11593
#endif
 
11594
 
 
11595
_ACEOF
 
11596
if ac_fn_c_try_compile "$LINENO"; then :
 
11597
  ac_cv_c_inline=$ac_kw
 
11598
fi
 
11599
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11600
  test "$ac_cv_c_inline" != no && break
 
11601
done
 
11602
 
 
11603
fi
 
11604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
11605
$as_echo "$ac_cv_c_inline" >&6; }
 
11606
 
 
11607
case $ac_cv_c_inline in
 
11608
  inline | yes) ;;
 
11609
  *)
 
11610
    case $ac_cv_c_inline in
 
11611
      no) ac_val=;;
 
11612
      *) ac_val=$ac_cv_c_inline;;
 
11613
    esac
 
11614
    cat >>confdefs.h <<_ACEOF
 
11615
#ifndef __cplusplus
 
11616
#define inline $ac_val
 
11617
#endif
 
11618
_ACEOF
 
11619
    ;;
 
11620
esac
 
11621
 
 
11622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
 
11623
$as_echo_n "checking whether char is unsigned... " >&6; }
 
11624
if test "${ac_cv_c_char_unsigned+set}" = set; then :
 
11625
  $as_echo_n "(cached) " >&6
 
11626
else
 
11627
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11628
/* end confdefs.h.  */
 
11629
$ac_includes_default
 
11630
int
 
11631
main ()
 
11632
{
 
11633
static int test_array [1 - 2 * !(((char) -1) < 0)];
 
11634
test_array [0] = 0
 
11635
 
 
11636
  ;
 
11637
  return 0;
 
11638
}
 
11639
_ACEOF
 
11640
if ac_fn_c_try_compile "$LINENO"; then :
 
11641
  ac_cv_c_char_unsigned=no
 
11642
else
 
11643
  ac_cv_c_char_unsigned=yes
 
11644
fi
 
11645
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11646
fi
 
11647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
 
11648
$as_echo "$ac_cv_c_char_unsigned" >&6; }
 
11649
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
 
11650
  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
 
11651
 
 
11652
fi
 
11653
 
 
11654
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
 
11655
if test "x$ac_cv_type_off_t" = x""yes; then :
 
11656
 
 
11657
else
 
11658
 
 
11659
cat >>confdefs.h <<_ACEOF
 
11660
#define off_t long int
 
11661
_ACEOF
 
11662
 
 
11663
fi
 
11664
 
 
11665
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
 
11666
if test "x$ac_cv_type_pid_t" = x""yes; then :
 
11667
 
 
11668
else
 
11669
 
 
11670
cat >>confdefs.h <<_ACEOF
 
11671
#define pid_t int
 
11672
_ACEOF
 
11673
 
 
11674
fi
 
11675
 
 
11676
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
11677
if test "x$ac_cv_type_size_t" = x""yes; then :
 
11678
 
 
11679
else
 
11680
 
 
11681
cat >>confdefs.h <<_ACEOF
 
11682
#define size_t unsigned int
 
11683
_ACEOF
 
11684
 
 
11685
fi
 
11686
 
 
11687
 
 
11688
ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
 
11689
"
 
11690
if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
 
11691
 
 
11692
$as_echo "#define HAVE_STRUCT_TM_GMTOFF 1" >>confdefs.h
 
11693
 
 
11694
fi
 
11695
 
 
11696
ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/socket.h>
 
11697
"
 
11698
if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
 
11699
 
 
11700
cat >>confdefs.h <<_ACEOF
 
11701
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
 
11702
_ACEOF
 
11703
 
 
11704
 
 
11705
fi
 
11706
 
 
11707
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
 
11708
#include <sys/socket.h>
 
11709
"
 
11710
if test "x$ac_cv_type_socklen_t" = x""yes; then :
 
11711
 
 
11712
cat >>confdefs.h <<_ACEOF
 
11713
#define HAVE_SOCKLEN_T 1
 
11714
_ACEOF
 
11715
 
 
11716
 
 
11717
fi
 
11718
 
 
11719
 
 
11720
for ac_header in vfork.h
 
11721
do :
 
11722
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
 
11723
if test "x$ac_cv_header_vfork_h" = x""yes; then :
 
11724
  cat >>confdefs.h <<_ACEOF
 
11725
#define HAVE_VFORK_H 1
 
11726
_ACEOF
 
11727
 
 
11728
fi
 
11729
 
 
11730
done
 
11731
 
 
11732
for ac_func in fork vfork
 
11733
do :
 
11734
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
11735
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
11736
eval as_val=\$$as_ac_var
 
11737
   if test "x$as_val" = x""yes; then :
 
11738
  cat >>confdefs.h <<_ACEOF
 
11739
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
11740
_ACEOF
 
11741
 
 
11742
fi
 
11743
done
 
11744
 
 
11745
if test "x$ac_cv_func_fork" = xyes; then
 
11746
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
 
11747
$as_echo_n "checking for working fork... " >&6; }
 
11748
if test "${ac_cv_func_fork_works+set}" = set; then :
 
11749
  $as_echo_n "(cached) " >&6
 
11750
else
 
11751
  if test "$cross_compiling" = yes; then :
 
11752
  ac_cv_func_fork_works=cross
 
11753
else
 
11754
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11755
/* end confdefs.h.  */
 
11756
$ac_includes_default
 
11757
int
 
11758
main ()
 
11759
{
 
11760
 
 
11761
          /* By Ruediger Kuhlmann. */
 
11762
          return fork () < 0;
 
11763
 
 
11764
  ;
 
11765
  return 0;
 
11766
}
 
11767
_ACEOF
 
11768
if ac_fn_c_try_run "$LINENO"; then :
 
11769
  ac_cv_func_fork_works=yes
 
11770
else
 
11771
  ac_cv_func_fork_works=no
 
11772
fi
 
11773
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11774
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11775
fi
 
11776
 
 
11777
fi
 
11778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
 
11779
$as_echo "$ac_cv_func_fork_works" >&6; }
 
11780
 
 
11781
else
 
11782
  ac_cv_func_fork_works=$ac_cv_func_fork
 
11783
fi
 
11784
if test "x$ac_cv_func_fork_works" = xcross; then
 
11785
  case $host in
 
11786
    *-*-amigaos* | *-*-msdosdjgpp*)
 
11787
      # Override, as these systems have only a dummy fork() stub
 
11788
      ac_cv_func_fork_works=no
 
11789
      ;;
 
11790
    *)
 
11791
      ac_cv_func_fork_works=yes
 
11792
      ;;
 
11793
  esac
 
11794
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 
11795
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 
11796
fi
 
11797
ac_cv_func_vfork_works=$ac_cv_func_vfork
 
11798
if test "x$ac_cv_func_vfork" = xyes; then
 
11799
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
 
11800
$as_echo_n "checking for working vfork... " >&6; }
 
11801
if test "${ac_cv_func_vfork_works+set}" = set; then :
 
11802
  $as_echo_n "(cached) " >&6
 
11803
else
 
11804
  if test "$cross_compiling" = yes; then :
 
11805
  ac_cv_func_vfork_works=cross
 
11806
else
 
11807
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11808
/* end confdefs.h.  */
 
11809
/* Thanks to Paul Eggert for this test.  */
 
11810
$ac_includes_default
 
11811
#include <sys/wait.h>
 
11812
#ifdef HAVE_VFORK_H
 
11813
# include <vfork.h>
 
11814
#endif
 
11815
/* On some sparc systems, changes by the child to local and incoming
 
11816
   argument registers are propagated back to the parent.  The compiler
 
11817
   is told about this with #include <vfork.h>, but some compilers
 
11818
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
 
11819
   static variable whose address is put into a register that is
 
11820
   clobbered by the vfork.  */
 
11821
static void
 
11822
#ifdef __cplusplus
 
11823
sparc_address_test (int arg)
 
11824
# else
 
11825
sparc_address_test (arg) int arg;
 
11826
#endif
 
11827
{
 
11828
  static pid_t child;
 
11829
  if (!child) {
 
11830
    child = vfork ();
 
11831
    if (child < 0) {
 
11832
      perror ("vfork");
 
11833
      _exit(2);
 
11834
    }
 
11835
    if (!child) {
 
11836
      arg = getpid();
 
11837
      write(-1, "", 0);
 
11838
      _exit (arg);
 
11839
    }
 
11840
  }
 
11841
}
 
11842
 
 
11843
int
 
11844
main ()
 
11845
{
 
11846
  pid_t parent = getpid ();
 
11847
  pid_t child;
 
11848
 
 
11849
  sparc_address_test (0);
 
11850
 
 
11851
  child = vfork ();
 
11852
 
 
11853
  if (child == 0) {
 
11854
    /* Here is another test for sparc vfork register problems.  This
 
11855
       test uses lots of local variables, at least as many local
 
11856
       variables as main has allocated so far including compiler
 
11857
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
 
11858
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
 
11859
       reuse the register of parent for one of the local variables,
 
11860
       since it will think that parent can't possibly be used any more
 
11861
       in this routine.  Assigning to the local variable will thus
 
11862
       munge parent in the parent process.  */
 
11863
    pid_t
 
11864
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 
11865
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 
11866
    /* Convince the compiler that p..p7 are live; otherwise, it might
 
11867
       use the same hardware register for all 8 local variables.  */
 
11868
    if (p != p1 || p != p2 || p != p3 || p != p4
 
11869
        || p != p5 || p != p6 || p != p7)
 
11870
      _exit(1);
 
11871
 
 
11872
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
 
11873
       from child file descriptors.  If the child closes a descriptor
 
11874
       before it execs or exits, this munges the parent's descriptor
 
11875
       as well.  Test for this by closing stdout in the child.  */
 
11876
    _exit(close(fileno(stdout)) != 0);
 
11877
  } else {
 
11878
    int status;
 
11879
    struct stat st;
 
11880
 
 
11881
    while (wait(&status) != child)
 
11882
      ;
 
11883
    return (
 
11884
         /* Was there some problem with vforking?  */
 
11885
         child < 0
 
11886
 
 
11887
         /* Did the child fail?  (This shouldn't happen.)  */
 
11888
         || status
 
11889
 
 
11890
         /* Did the vfork/compiler bug occur?  */
 
11891
         || parent != getpid()
 
11892
 
 
11893
         /* Did the file descriptor bug occur?  */
 
11894
         || fstat(fileno(stdout), &st) != 0
 
11895
         );
 
11896
  }
 
11897
}
 
11898
_ACEOF
 
11899
if ac_fn_c_try_run "$LINENO"; then :
 
11900
  ac_cv_func_vfork_works=yes
 
11901
else
 
11902
  ac_cv_func_vfork_works=no
 
11903
fi
 
11904
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11905
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
11906
fi
 
11907
 
 
11908
fi
 
11909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
 
11910
$as_echo "$ac_cv_func_vfork_works" >&6; }
 
11911
 
 
11912
fi;
 
11913
if test "x$ac_cv_func_fork_works" = xcross; then
 
11914
  ac_cv_func_vfork_works=$ac_cv_func_vfork
 
11915
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 
11916
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 
11917
fi
 
11918
 
 
11919
if test "x$ac_cv_func_vfork_works" = xyes; then
 
11920
 
 
11921
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
 
11922
 
 
11923
else
 
11924
 
 
11925
$as_echo "#define vfork fork" >>confdefs.h
 
11926
 
 
11927
fi
 
11928
if test "x$ac_cv_func_fork_works" = xyes; then
 
11929
 
 
11930
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
 
11931
 
 
11932
fi
 
11933
 
 
11934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
 
11935
$as_echo_n "checking return type of signal handlers... " >&6; }
 
11936
if test "${ac_cv_type_signal+set}" = set; then :
 
11937
  $as_echo_n "(cached) " >&6
 
11938
else
 
11939
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11940
/* end confdefs.h.  */
 
11941
#include <sys/types.h>
 
11942
#include <signal.h>
 
11943
 
 
11944
int
 
11945
main ()
 
11946
{
 
11947
return *(signal (0, 0)) (0) == 1;
 
11948
  ;
 
11949
  return 0;
 
11950
}
 
11951
_ACEOF
 
11952
if ac_fn_c_try_compile "$LINENO"; then :
 
11953
  ac_cv_type_signal=int
 
11954
else
 
11955
  ac_cv_type_signal=void
 
11956
fi
 
11957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11958
fi
 
11959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
 
11960
$as_echo "$ac_cv_type_signal" >&6; }
 
11961
 
 
11962
cat >>confdefs.h <<_ACEOF
 
11963
#define RETSIGTYPE $ac_cv_type_signal
 
11964
_ACEOF
 
11965
 
 
11966
 
 
11967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
 
11968
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
 
11969
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
 
11970
  $as_echo_n "(cached) " >&6
 
11971
else
 
11972
  rm -f conftest.sym conftest.file
 
11973
echo >conftest.file
 
11974
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
 
11975
  if test "$cross_compiling" = yes; then :
 
11976
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
11977
else
 
11978
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11979
/* end confdefs.h.  */
 
11980
$ac_includes_default
 
11981
int
 
11982
main ()
 
11983
{
 
11984
struct stat sbuf;
 
11985
     /* Linux will dereference the symlink and fail, as required by POSIX.
 
11986
        That is better in the sense that it means we will not
 
11987
        have to compile and use the lstat wrapper.  */
 
11988
     return lstat ("conftest.sym/", &sbuf) == 0;
 
11989
  ;
 
11990
  return 0;
 
11991
}
 
11992
_ACEOF
 
11993
if ac_fn_c_try_run "$LINENO"; then :
 
11994
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
 
11995
else
 
11996
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
11997
fi
 
11998
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
11999
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12000
fi
 
12001
 
 
12002
else
 
12003
  # If the `ln -s' command failed, then we probably don't even
 
12004
  # have an lstat function.
 
12005
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
12006
fi
 
12007
rm -f conftest.sym conftest.file
 
12008
 
 
12009
fi
 
12010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
12011
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
 
12012
 
 
12013
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
 
12014
 
 
12015
cat >>confdefs.h <<_ACEOF
 
12016
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
 
12017
_ACEOF
 
12018
 
 
12019
 
 
12020
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
 
12021
  case " $LIBOBJS " in
 
12022
  *" lstat.$ac_objext "* ) ;;
 
12023
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 
12024
 ;;
 
12025
esac
 
12026
 
 
12027
fi
 
12028
 
 
12029
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
 
12030
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
 
12031
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
 
12032
  $as_echo_n "(cached) " >&6
 
12033
else
 
12034
  if test "$cross_compiling" = yes; then :
 
12035
  ac_cv_func_stat_empty_string_bug=yes
 
12036
else
 
12037
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12038
/* end confdefs.h.  */
 
12039
$ac_includes_default
 
12040
int
 
12041
main ()
 
12042
{
 
12043
struct stat sbuf;
 
12044
  return stat ("", &sbuf) == 0;
 
12045
  ;
 
12046
  return 0;
 
12047
}
 
12048
_ACEOF
 
12049
if ac_fn_c_try_run "$LINENO"; then :
 
12050
  ac_cv_func_stat_empty_string_bug=no
 
12051
else
 
12052
  ac_cv_func_stat_empty_string_bug=yes
 
12053
fi
 
12054
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12055
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12056
fi
 
12057
 
 
12058
fi
 
12059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
 
12060
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
 
12061
if test $ac_cv_func_stat_empty_string_bug = yes; then
 
12062
  case " $LIBOBJS " in
 
12063
  *" stat.$ac_objext "* ) ;;
 
12064
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
 
12065
 ;;
 
12066
esac
 
12067
 
 
12068
 
 
12069
cat >>confdefs.h <<_ACEOF
 
12070
#define HAVE_STAT_EMPTY_STRING_BUG 1
 
12071
_ACEOF
 
12072
 
 
12073
fi
 
12074
 
 
12075
for ac_func in strftime
 
12076
do :
 
12077
  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
 
12078
if test "x$ac_cv_func_strftime" = x""yes; then :
 
12079
  cat >>confdefs.h <<_ACEOF
 
12080
#define HAVE_STRFTIME 1
 
12081
_ACEOF
 
12082
 
 
12083
else
 
12084
  # strftime is in -lintl on SCO UNIX.
 
12085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
 
12086
$as_echo_n "checking for strftime in -lintl... " >&6; }
 
12087
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
 
12088
  $as_echo_n "(cached) " >&6
 
12089
else
 
12090
  ac_check_lib_save_LIBS=$LIBS
 
12091
LIBS="-lintl  $LIBS"
 
12092
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12093
/* end confdefs.h.  */
 
12094
 
 
12095
/* Override any GCC internal prototype to avoid an error.
 
12096
   Use char because int might match the return type of a GCC
 
12097
   builtin and then its argument prototype would still apply.  */
 
12098
#ifdef __cplusplus
 
12099
extern "C"
 
12100
#endif
 
12101
char strftime ();
 
12102
int
 
12103
main ()
 
12104
{
 
12105
return strftime ();
 
12106
  ;
 
12107
  return 0;
 
12108
}
 
12109
_ACEOF
 
12110
if ac_fn_c_try_link "$LINENO"; then :
 
12111
  ac_cv_lib_intl_strftime=yes
 
12112
else
 
12113
  ac_cv_lib_intl_strftime=no
 
12114
fi
 
12115
rm -f core conftest.err conftest.$ac_objext \
 
12116
    conftest$ac_exeext conftest.$ac_ext
 
12117
LIBS=$ac_check_lib_save_LIBS
 
12118
fi
 
12119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
 
12120
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
 
12121
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
 
12122
  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
 
12123
 
 
12124
LIBS="-lintl $LIBS"
 
12125
fi
 
12126
 
 
12127
fi
 
12128
done
 
12129
 
 
12130
for ac_func in issetugid inet_pton
 
12131
do :
 
12132
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
12133
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
12134
eval as_val=\$$as_ac_var
 
12135
   if test "x$as_val" = x""yes; then :
 
12136
  cat >>confdefs.h <<_ACEOF
 
12137
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
12138
_ACEOF
 
12139
 
 
12140
fi
 
12141
done
 
12142
 
 
12143
 
 
12144
MYSQL_INCLUDE=""
 
12145
MYSQL_LIBS=""
 
12146
 
 
12147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
 
12148
$as_echo_n "checking for MySQL support... " >&6; }
 
12149
 
 
12150
# Check whether --with-mysql was given.
 
12151
if test "${with_mysql+set}" = set; then :
 
12152
  withval=$with_mysql; WITH_MYSQL=$withval
 
12153
else
 
12154
  WITH_MYSQL=no
 
12155
fi
 
12156
 
 
12157
 
 
12158
if test "$WITH_MYSQL" != "no"; then
 
12159
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12160
$as_echo "yes" >&6; }
 
12161
  if test "$WITH_MYSQL" = "yes"; then
 
12162
    # Extract the first word of "mysql_config", so it can be a program name with args.
 
12163
set dummy mysql_config; ac_word=$2
 
12164
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12165
$as_echo_n "checking for $ac_word... " >&6; }
 
12166
if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then :
 
12167
  $as_echo_n "(cached) " >&6
 
12168
else
 
12169
  case $MYSQL_CONFIG in
 
12170
  [\\/]* | ?:[\\/]*)
 
12171
  ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
 
12172
  ;;
 
12173
  *)
 
12174
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12175
for as_dir in $PATH
 
12176
do
 
12177
  IFS=$as_save_IFS
 
12178
  test -z "$as_dir" && as_dir=.
 
12179
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12180
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12181
    ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
12182
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12183
    break 2
 
12184
  fi
 
12185
done
 
12186
  done
 
12187
IFS=$as_save_IFS
 
12188
 
 
12189
  ;;
 
12190
esac
 
12191
fi
 
12192
MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
 
12193
if test -n "$MYSQL_CONFIG"; then
 
12194
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
 
12195
$as_echo "$MYSQL_CONFIG" >&6; }
 
12196
else
 
12197
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12198
$as_echo "no" >&6; }
 
12199
fi
 
12200
 
 
12201
 
 
12202
  else
 
12203
    MYSQL_CONFIG=$WITH_MYSQL
 
12204
  fi
 
12205
 
 
12206
  if test "$MYSQL_CONFIG" = ""; then
 
12207
    as_fn_error "mysql_config is not found" "$LINENO" 5
 
12208
  fi
 
12209
  if test \! -x $MYSQL_CONFIG; then
 
12210
    { as_fn_set_status use --with-mysql=path-to-mysql_config
 
12211
as_fn_error "mysql_config not exists or not executable" "$LINENO" 5; }
 
12212
  fi
 
12213
 
 
12214
  if $MYSQL_CONFIG | grep -- '--include' > /dev/null ; then
 
12215
    MYSQL_INCLUDE="`$MYSQL_CONFIG --include | sed s/\'//g`"
 
12216
  else
 
12217
    MYSQL_INCLUDE="`$MYSQL_CONFIG --cflags | sed s/\'//g`"
 
12218
  fi
 
12219
  MYSQL_LIBS="`$MYSQL_CONFIG --libs | sed s/\'//g`"
 
12220
 
 
12221
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL includes at" >&5
 
12222
$as_echo_n "checking for MySQL includes at... " >&6; }
 
12223
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_INCLUDE" >&5
 
12224
$as_echo "$MYSQL_INCLUDE" >&6; }
 
12225
 
 
12226
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL libraries at" >&5
 
12227
$as_echo_n "checking for MySQL libraries at... " >&6; }
 
12228
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_LIBS" >&5
 
12229
$as_echo "$MYSQL_LIBS" >&6; }
 
12230
  old_CPPFLAGS="$CPPFLAGS"
 
12231
  CPPFLAGS="$CPPFLAGS $MYSQL_INCLUDE"
 
12232
  for ac_header in errmsg.h mysql.h
 
12233
do :
 
12234
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12235
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
12236
eval as_val=\$$as_ac_Header
 
12237
   if test "x$as_val" = x""yes; then :
 
12238
  cat >>confdefs.h <<_ACEOF
 
12239
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12240
_ACEOF
 
12241
 
 
12242
fi
 
12243
 
 
12244
done
 
12245
 
 
12246
  CPPFLAGS="$old_CPPFLAGS"
 
12247
 
 
12248
 
 
12249
$as_echo "#define HAVE_MYSQL 1" >>confdefs.h
 
12250
 
 
12251
else
 
12252
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12253
$as_echo "no" >&6; }
 
12254
fi
 
12255
 
 
12256
 
 
12257
 
 
12258
 
 
12259
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5
 
12260
$as_echo_n "checking for LDAP support... " >&6; }
 
12261
 
 
12262
# Check whether --with-ldap was given.
 
12263
if test "${with_ldap+set}" = set; then :
 
12264
  withval=$with_ldap; WITH_LDAP=$withval
 
12265
else
 
12266
  WITH_LDAP=no
 
12267
fi
 
12268
 
 
12269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
 
12270
$as_echo "$withval" >&6; }
 
12271
if test "$WITH_LDAP" != "no"; then
 
12272
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
 
12273
$as_echo_n "checking for ldap_bind in -lldap... " >&6; }
 
12274
if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then :
 
12275
  $as_echo_n "(cached) " >&6
 
12276
else
 
12277
  ac_check_lib_save_LIBS=$LIBS
 
12278
LIBS="-lldap  $LIBS"
 
12279
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12280
/* end confdefs.h.  */
 
12281
 
 
12282
/* Override any GCC internal prototype to avoid an error.
 
12283
   Use char because int might match the return type of a GCC
 
12284
   builtin and then its argument prototype would still apply.  */
 
12285
#ifdef __cplusplus
 
12286
extern "C"
 
12287
#endif
 
12288
char ldap_bind ();
 
12289
int
 
12290
main ()
 
12291
{
 
12292
return ldap_bind ();
 
12293
  ;
 
12294
  return 0;
 
12295
}
 
12296
_ACEOF
 
12297
if ac_fn_c_try_link "$LINENO"; then :
 
12298
  ac_cv_lib_ldap_ldap_bind=yes
 
12299
else
 
12300
  ac_cv_lib_ldap_ldap_bind=no
 
12301
fi
 
12302
rm -f core conftest.err conftest.$ac_objext \
 
12303
    conftest$ac_exeext conftest.$ac_ext
 
12304
LIBS=$ac_check_lib_save_LIBS
 
12305
fi
 
12306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
 
12307
$as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
 
12308
if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then :
 
12309
 
 
12310
  for ac_header in ldap.h
 
12311
do :
 
12312
  ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
 
12313
if test "x$ac_cv_header_ldap_h" = x""yes; then :
 
12314
  cat >>confdefs.h <<_ACEOF
 
12315
#define HAVE_LDAP_H 1
 
12316
_ACEOF
 
12317
 
 
12318
    LDAP_LIB=-lldap
 
12319
 
 
12320
$as_echo "#define HAVE_LIBLDAP 1" >>confdefs.h
 
12321
 
 
12322
    $as_echo "#define HAVE_LDAP_H 1" >>confdefs.h
 
12323
 
 
12324
 
 
12325
$as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
 
12326
 
 
12327
 
 
12328
fi
 
12329
 
 
12330
done
 
12331
 
 
12332
 
 
12333
fi
 
12334
 
 
12335
 
 
12336
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_printf in -llber" >&5
 
12337
$as_echo_n "checking for ber_printf in -llber... " >&6; }
 
12338
if test "${ac_cv_lib_lber_ber_printf+set}" = set; then :
 
12339
  $as_echo_n "(cached) " >&6
 
12340
else
 
12341
  ac_check_lib_save_LIBS=$LIBS
 
12342
LIBS="-llber  $LIBS"
 
12343
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12344
/* end confdefs.h.  */
 
12345
 
 
12346
/* Override any GCC internal prototype to avoid an error.
 
12347
   Use char because int might match the return type of a GCC
 
12348
   builtin and then its argument prototype would still apply.  */
 
12349
#ifdef __cplusplus
 
12350
extern "C"
 
12351
#endif
 
12352
char ber_printf ();
 
12353
int
 
12354
main ()
 
12355
{
 
12356
return ber_printf ();
 
12357
  ;
 
12358
  return 0;
 
12359
}
 
12360
_ACEOF
 
12361
if ac_fn_c_try_link "$LINENO"; then :
 
12362
  ac_cv_lib_lber_ber_printf=yes
 
12363
else
 
12364
  ac_cv_lib_lber_ber_printf=no
 
12365
fi
 
12366
rm -f core conftest.err conftest.$ac_objext \
 
12367
    conftest$ac_exeext conftest.$ac_ext
 
12368
LIBS=$ac_check_lib_save_LIBS
 
12369
fi
 
12370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_printf" >&5
 
12371
$as_echo "$ac_cv_lib_lber_ber_printf" >&6; }
 
12372
if test "x$ac_cv_lib_lber_ber_printf" = x""yes; then :
 
12373
 
 
12374
  for ac_header in lber.h
 
12375
do :
 
12376
  ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
 
12377
if test "x$ac_cv_header_lber_h" = x""yes; then :
 
12378
  cat >>confdefs.h <<_ACEOF
 
12379
#define HAVE_LBER_H 1
 
12380
_ACEOF
 
12381
 
 
12382
    LBER_LIB=-llber
 
12383
 
 
12384
$as_echo "#define HAVE_LIBLBER 1" >>confdefs.h
 
12385
 
 
12386
    $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
 
12387
 
 
12388
 
 
12389
fi
 
12390
 
 
12391
done
 
12392
 
 
12393
 
 
12394
fi
 
12395
 
 
12396
 
 
12397
fi
 
12398
 
 
12399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5
 
12400
$as_echo_n "checking for extended attributes support... " >&6; }
 
12401
 
 
12402
# Check whether --with-attr was given.
 
12403
if test "${with_attr+set}" = set; then :
 
12404
  withval=$with_attr; WITH_ATTR=$withval
 
12405
else
 
12406
  WITH_ATTR=no
 
12407
fi
 
12408
 
 
12409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
 
12410
$as_echo "$withval" >&6; }
 
12411
if test "$WITH_ATTR" != "no"; then
 
12412
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for attr_get in -lattr" >&5
 
12413
$as_echo_n "checking for attr_get in -lattr... " >&6; }
 
12414
if test "${ac_cv_lib_attr_attr_get+set}" = set; then :
 
12415
  $as_echo_n "(cached) " >&6
 
12416
else
 
12417
  ac_check_lib_save_LIBS=$LIBS
 
12418
LIBS="-lattr  $LIBS"
 
12419
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12420
/* end confdefs.h.  */
 
12421
 
 
12422
/* Override any GCC internal prototype to avoid an error.
 
12423
   Use char because int might match the return type of a GCC
 
12424
   builtin and then its argument prototype would still apply.  */
 
12425
#ifdef __cplusplus
 
12426
extern "C"
 
12427
#endif
 
12428
char attr_get ();
 
12429
int
 
12430
main ()
 
12431
{
 
12432
return attr_get ();
 
12433
  ;
 
12434
  return 0;
 
12435
}
 
12436
_ACEOF
 
12437
if ac_fn_c_try_link "$LINENO"; then :
 
12438
  ac_cv_lib_attr_attr_get=yes
 
12439
else
 
12440
  ac_cv_lib_attr_attr_get=no
 
12441
fi
 
12442
rm -f core conftest.err conftest.$ac_objext \
 
12443
    conftest$ac_exeext conftest.$ac_ext
 
12444
LIBS=$ac_check_lib_save_LIBS
 
12445
fi
 
12446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_attr_get" >&5
 
12447
$as_echo "$ac_cv_lib_attr_attr_get" >&6; }
 
12448
if test "x$ac_cv_lib_attr_attr_get" = x""yes; then :
 
12449
 
 
12450
        for ac_header in attr/attributes.h
 
12451
do :
 
12452
  ac_fn_c_check_header_mongrel "$LINENO" "attr/attributes.h" "ac_cv_header_attr_attributes_h" "$ac_includes_default"
 
12453
if test "x$ac_cv_header_attr_attributes_h" = x""yes; then :
 
12454
  cat >>confdefs.h <<_ACEOF
 
12455
#define HAVE_ATTR_ATTRIBUTES_H 1
 
12456
_ACEOF
 
12457
 
 
12458
                ATTR_LIB=-lattr
 
12459
 
 
12460
$as_echo "#define HAVE_XATTR 1" >>confdefs.h
 
12461
 
 
12462
                $as_echo "#define HAVE_ATTR_ATTRIBUTES_H 1" >>confdefs.h
 
12463
 
 
12464
 
 
12465
fi
 
12466
 
 
12467
done
 
12468
 
 
12469
 
 
12470
fi
 
12471
 
 
12472
 
 
12473
fi
 
12474
 
 
12475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
 
12476
$as_echo_n "checking for library containing socket... " >&6; }
 
12477
if test "${ac_cv_search_socket+set}" = set; then :
 
12478
  $as_echo_n "(cached) " >&6
 
12479
else
 
12480
  ac_func_search_save_LIBS=$LIBS
 
12481
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12482
/* end confdefs.h.  */
 
12483
 
 
12484
/* Override any GCC internal prototype to avoid an error.
 
12485
   Use char because int might match the return type of a GCC
 
12486
   builtin and then its argument prototype would still apply.  */
 
12487
#ifdef __cplusplus
 
12488
extern "C"
 
12489
#endif
 
12490
char socket ();
 
12491
int
 
12492
main ()
 
12493
{
 
12494
return socket ();
 
12495
  ;
 
12496
  return 0;
 
12497
}
 
12498
_ACEOF
 
12499
for ac_lib in '' socket; do
 
12500
  if test -z "$ac_lib"; then
 
12501
    ac_res="none required"
 
12502
  else
 
12503
    ac_res=-l$ac_lib
 
12504
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
12505
  fi
 
12506
  if ac_fn_c_try_link "$LINENO"; then :
 
12507
  ac_cv_search_socket=$ac_res
 
12508
fi
 
12509
rm -f core conftest.err conftest.$ac_objext \
 
12510
    conftest$ac_exeext
 
12511
  if test "${ac_cv_search_socket+set}" = set; then :
 
12512
  break
 
12513
fi
 
12514
done
 
12515
if test "${ac_cv_search_socket+set}" = set; then :
 
12516
 
 
12517
else
 
12518
  ac_cv_search_socket=no
 
12519
fi
 
12520
rm conftest.$ac_ext
 
12521
LIBS=$ac_func_search_save_LIBS
 
12522
fi
 
12523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
 
12524
$as_echo "$ac_cv_search_socket" >&6; }
 
12525
ac_res=$ac_cv_search_socket
 
12526
if test "$ac_res" != no; then :
 
12527
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
12528
 
 
12529
fi
 
12530
 
 
12531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
 
12532
$as_echo_n "checking for library containing gethostbyname... " >&6; }
 
12533
if test "${ac_cv_search_gethostbyname+set}" = set; then :
 
12534
  $as_echo_n "(cached) " >&6
 
12535
else
 
12536
  ac_func_search_save_LIBS=$LIBS
 
12537
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12538
/* end confdefs.h.  */
 
12539
 
 
12540
/* Override any GCC internal prototype to avoid an error.
 
12541
   Use char because int might match the return type of a GCC
 
12542
   builtin and then its argument prototype would still apply.  */
 
12543
#ifdef __cplusplus
 
12544
extern "C"
 
12545
#endif
 
12546
char gethostbyname ();
 
12547
int
 
12548
main ()
 
12549
{
 
12550
return gethostbyname ();
 
12551
  ;
 
12552
  return 0;
 
12553
}
 
12554
_ACEOF
 
12555
for ac_lib in '' nsl socket; do
 
12556
  if test -z "$ac_lib"; then
 
12557
    ac_res="none required"
 
12558
  else
 
12559
    ac_res=-l$ac_lib
 
12560
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
12561
  fi
 
12562
  if ac_fn_c_try_link "$LINENO"; then :
 
12563
  ac_cv_search_gethostbyname=$ac_res
 
12564
fi
 
12565
rm -f core conftest.err conftest.$ac_objext \
 
12566
    conftest$ac_exeext
 
12567
  if test "${ac_cv_search_gethostbyname+set}" = set; then :
 
12568
  break
 
12569
fi
 
12570
done
 
12571
if test "${ac_cv_search_gethostbyname+set}" = set; then :
 
12572
 
 
12573
else
 
12574
  ac_cv_search_gethostbyname=no
 
12575
fi
 
12576
rm conftest.$ac_ext
 
12577
LIBS=$ac_func_search_save_LIBS
 
12578
fi
 
12579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
 
12580
$as_echo "$ac_cv_search_gethostbyname" >&6; }
 
12581
ac_res=$ac_cv_search_gethostbyname
 
12582
if test "$ac_res" != no; then :
 
12583
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
12584
 
 
12585
fi
 
12586
 
 
12587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
 
12588
$as_echo_n "checking for library containing hstrerror... " >&6; }
 
12589
if test "${ac_cv_search_hstrerror+set}" = set; then :
 
12590
  $as_echo_n "(cached) " >&6
 
12591
else
 
12592
  ac_func_search_save_LIBS=$LIBS
 
12593
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12594
/* end confdefs.h.  */
 
12595
 
 
12596
/* Override any GCC internal prototype to avoid an error.
 
12597
   Use char because int might match the return type of a GCC
 
12598
   builtin and then its argument prototype would still apply.  */
 
12599
#ifdef __cplusplus
 
12600
extern "C"
 
12601
#endif
 
12602
char hstrerror ();
 
12603
int
 
12604
main ()
 
12605
{
 
12606
return hstrerror ();
 
12607
  ;
 
12608
  return 0;
 
12609
}
 
12610
_ACEOF
 
12611
for ac_lib in '' resolv; do
 
12612
  if test -z "$ac_lib"; then
 
12613
    ac_res="none required"
 
12614
  else
 
12615
    ac_res=-l$ac_lib
 
12616
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
12617
  fi
 
12618
  if ac_fn_c_try_link "$LINENO"; then :
 
12619
  ac_cv_search_hstrerror=$ac_res
 
12620
fi
 
12621
rm -f core conftest.err conftest.$ac_objext \
 
12622
    conftest$ac_exeext
 
12623
  if test "${ac_cv_search_hstrerror+set}" = set; then :
 
12624
  break
 
12625
fi
 
12626
done
 
12627
if test "${ac_cv_search_hstrerror+set}" = set; then :
 
12628
 
 
12629
else
 
12630
  ac_cv_search_hstrerror=no
 
12631
fi
 
12632
rm conftest.$ac_ext
 
12633
LIBS=$ac_func_search_save_LIBS
 
12634
fi
 
12635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
 
12636
$as_echo "$ac_cv_search_hstrerror" >&6; }
 
12637
ac_res=$ac_cv_search_hstrerror
 
12638
if test "$ac_res" != no; then :
 
12639
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
12640
 
 
12641
fi
 
12642
 
 
12643
 
 
12644
save_LIBS=$LIBS
 
12645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
 
12646
$as_echo_n "checking for library containing dlopen... " >&6; }
 
12647
if test "${ac_cv_search_dlopen+set}" = set; then :
 
12648
  $as_echo_n "(cached) " >&6
 
12649
else
 
12650
  ac_func_search_save_LIBS=$LIBS
 
12651
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12652
/* end confdefs.h.  */
 
12653
 
 
12654
/* Override any GCC internal prototype to avoid an error.
 
12655
   Use char because int might match the return type of a GCC
 
12656
   builtin and then its argument prototype would still apply.  */
 
12657
#ifdef __cplusplus
 
12658
extern "C"
 
12659
#endif
 
12660
char dlopen ();
 
12661
int
 
12662
main ()
 
12663
{
 
12664
return dlopen ();
 
12665
  ;
 
12666
  return 0;
 
12667
}
 
12668
_ACEOF
 
12669
for ac_lib in '' dl; do
 
12670
  if test -z "$ac_lib"; then
 
12671
    ac_res="none required"
 
12672
  else
 
12673
    ac_res=-l$ac_lib
 
12674
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
12675
  fi
 
12676
  if ac_fn_c_try_link "$LINENO"; then :
 
12677
  ac_cv_search_dlopen=$ac_res
 
12678
fi
 
12679
rm -f core conftest.err conftest.$ac_objext \
 
12680
    conftest$ac_exeext
 
12681
  if test "${ac_cv_search_dlopen+set}" = set; then :
 
12682
  break
 
12683
fi
 
12684
done
 
12685
if test "${ac_cv_search_dlopen+set}" = set; then :
 
12686
 
 
12687
else
 
12688
  ac_cv_search_dlopen=no
 
12689
fi
 
12690
rm conftest.$ac_ext
 
12691
LIBS=$ac_func_search_save_LIBS
 
12692
fi
 
12693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
 
12694
$as_echo "$ac_cv_search_dlopen" >&6; }
 
12695
ac_res=$ac_cv_search_dlopen
 
12696
if test "$ac_res" != no; then :
 
12697
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
12698
 
 
12699
  for ac_header in dlfcn.h
 
12700
do :
 
12701
  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
 
12702
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
12703
  cat >>confdefs.h <<_ACEOF
 
12704
#define HAVE_DLFCN_H 1
 
12705
_ACEOF
 
12706
 
 
12707
    if test "$ac_cv_search_dlopen" != no; then
 
12708
      test "$ac_cv_search_dlopen" = "none required" || DL_LIB="$ac_cv_search_dlopen"
 
12709
    fi
 
12710
 
 
12711
 
 
12712
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
 
12713
 
 
12714
    $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
 
12715
 
 
12716
 
 
12717
fi
 
12718
 
 
12719
done
 
12720
 
 
12721
 
 
12722
fi
 
12723
 
 
12724
LIBS=$save_LIBS
 
12725
 
 
12726
 
 
12727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5
 
12728
$as_echo_n "checking for valgrind... " >&6; }
 
12729
 
 
12730
# Check whether --with-valgrind was given.
 
12731
if test "${with_valgrind+set}" = set; then :
 
12732
  withval=$with_valgrind; WITH_VALGRIND=$withval
 
12733
else
 
12734
  WITH_VALGRIND=no
 
12735
fi
 
12736
 
 
12737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_VALGRIND" >&5
 
12738
$as_echo "$WITH_VALGRIND" >&6; }
 
12739
if test "$WITH_VALGRIND" != "no"; then
 
12740
 for ac_header in valgrind/valgrind.h
 
12741
do :
 
12742
  ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
 
12743
if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
 
12744
  cat >>confdefs.h <<_ACEOF
 
12745
#define HAVE_VALGRIND_VALGRIND_H 1
 
12746
_ACEOF
 
12747
 
 
12748
fi
 
12749
 
 
12750
done
 
12751
 
 
12752
fi
 
12753
 
 
12754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
 
12755
$as_echo_n "checking for OpenSSL... " >&6; }
 
12756
 
 
12757
# Check whether --with-openssl was given.
 
12758
if test "${with_openssl+set}" = set; then :
 
12759
  withval=$with_openssl; WITH_OPENSSL=$withval
 
12760
else
 
12761
  WITH_OPENSSL=no
 
12762
fi
 
12763
 
 
12764
 
 
12765
if test "$WITH_OPENSSL" != "no"; then
 
12766
    use_openssl=yes
 
12767
    if test "$WITH_OPENSSL" != "yes"; then
 
12768
        CPPFLAGS="$CPPFLAGS -I$WITH_OPENSSL/include"
 
12769
        LDFLAGS="$LDFLAGS -L$WITH_OPENSSL/lib"
 
12770
    fi
 
12771
else
 
12772
    use_openssl=no
 
12773
fi
 
12774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_openssl" >&5
 
12775
$as_echo "$use_openssl" >&6; }
 
12776
 
 
12777
 
 
12778
# Check whether --with-openssl-includes was given.
 
12779
if test "${with_openssl_includes+set}" = set; then :
 
12780
  withval=$with_openssl_includes;  use_openssl=yes CPPFLAGS="$CPPFLAGS -I$withval"
 
12781
 
 
12782
fi
 
12783
 
 
12784
 
 
12785
 
 
12786
# Check whether --with-openssl-libs was given.
 
12787
if test "${with_openssl_libs+set}" = set; then :
 
12788
  withval=$with_openssl_libs;  use_openssl=yes LDFLAGS="$LDFLAGS -L$withval"
 
12789
 
 
12790
fi
 
12791
 
 
12792
 
 
12793
 
 
12794
# Check whether --with-kerberos5 was given.
 
12795
if test "${with_kerberos5+set}" = set; then :
 
12796
  withval=$with_kerberos5;  use_kerberos=yes
 
12797
else
 
12798
  use_kerberos=no
 
12799
 
 
12800
fi
 
12801
 
 
12802
 
 
12803
if test "x$use_openssl" = "xyes"; then
 
12804
    if test "x$use_kerberos" != "xyes"; then
 
12805
        CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
 
12806
    fi
 
12807
 
 
12808
    for ac_header in openssl/ssl.h
 
12809
do :
 
12810
  ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
 
12811
if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
 
12812
  cat >>confdefs.h <<_ACEOF
 
12813
#define HAVE_OPENSSL_SSL_H 1
 
12814
_ACEOF
 
12815
 
 
12816
fi
 
12817
 
 
12818
done
 
12819
 
 
12820
    OLDLIBS="$LIBS"
 
12821
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_f_base64 in -lcrypto" >&5
 
12822
$as_echo_n "checking for BIO_f_base64 in -lcrypto... " >&6; }
 
12823
if test "${ac_cv_lib_crypto_BIO_f_base64+set}" = set; then :
 
12824
  $as_echo_n "(cached) " >&6
 
12825
else
 
12826
  ac_check_lib_save_LIBS=$LIBS
 
12827
LIBS="-lcrypto  $LIBS"
 
12828
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12829
/* end confdefs.h.  */
 
12830
 
 
12831
/* Override any GCC internal prototype to avoid an error.
 
12832
   Use char because int might match the return type of a GCC
 
12833
   builtin and then its argument prototype would still apply.  */
 
12834
#ifdef __cplusplus
 
12835
extern "C"
 
12836
#endif
 
12837
char BIO_f_base64 ();
 
12838
int
 
12839
main ()
 
12840
{
 
12841
return BIO_f_base64 ();
 
12842
  ;
 
12843
  return 0;
 
12844
}
 
12845
_ACEOF
 
12846
if ac_fn_c_try_link "$LINENO"; then :
 
12847
  ac_cv_lib_crypto_BIO_f_base64=yes
 
12848
else
 
12849
  ac_cv_lib_crypto_BIO_f_base64=no
 
12850
fi
 
12851
rm -f core conftest.err conftest.$ac_objext \
 
12852
    conftest$ac_exeext conftest.$ac_ext
 
12853
LIBS=$ac_check_lib_save_LIBS
 
12854
fi
 
12855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_f_base64" >&5
 
12856
$as_echo "$ac_cv_lib_crypto_BIO_f_base64" >&6; }
 
12857
if test "x$ac_cv_lib_crypto_BIO_f_base64" = x""yes; then :
 
12858
 
 
12859
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
 
12860
$as_echo_n "checking for SSL_new in -lssl... " >&6; }
 
12861
if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then :
 
12862
  $as_echo_n "(cached) " >&6
 
12863
else
 
12864
  ac_check_lib_save_LIBS=$LIBS
 
12865
LIBS="-lssl  -lcrypto "$DL_LIB"  $LIBS"
 
12866
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12867
/* end confdefs.h.  */
 
12868
 
 
12869
/* Override any GCC internal prototype to avoid an error.
 
12870
   Use char because int might match the return type of a GCC
 
12871
   builtin and then its argument prototype would still apply.  */
 
12872
#ifdef __cplusplus
 
12873
extern "C"
 
12874
#endif
 
12875
char SSL_new ();
 
12876
int
 
12877
main ()
 
12878
{
 
12879
return SSL_new ();
 
12880
  ;
 
12881
  return 0;
 
12882
}
 
12883
_ACEOF
 
12884
if ac_fn_c_try_link "$LINENO"; then :
 
12885
  ac_cv_lib_ssl_SSL_new=yes
 
12886
else
 
12887
  ac_cv_lib_ssl_SSL_new=no
 
12888
fi
 
12889
rm -f core conftest.err conftest.$ac_objext \
 
12890
    conftest$ac_exeext conftest.$ac_ext
 
12891
LIBS=$ac_check_lib_save_LIBS
 
12892
fi
 
12893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
 
12894
$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
 
12895
if test "x$ac_cv_lib_ssl_SSL_new" = x""yes; then :
 
12896
   SSL_LIB="-lssl -lcrypto"
 
12897
 
 
12898
$as_echo "#define HAVE_LIBSSL /**/" >>confdefs.h
 
12899
 
 
12900
fi
 
12901
 
 
12902
 
 
12903
fi
 
12904
 
 
12905
    LIBS="$OLDLIBS"
 
12906
 
 
12907
fi
 
12908
 
 
12909
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl regular expressions support" >&5
 
12910
$as_echo_n "checking for perl regular expressions support... " >&6; }
 
12911
 
 
12912
# Check whether --with-pcre was given.
 
12913
if test "${with_pcre+set}" = set; then :
 
12914
  withval=$with_pcre; WITH_PCRE=$withval
 
12915
else
 
12916
  WITH_PCRE=yes
 
12917
fi
 
12918
 
 
12919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_PCRE" >&5
 
12920
$as_echo "$WITH_PCRE" >&6; }
 
12921
 
 
12922
if test "$WITH_PCRE" != "no"; then
 
12923
  # Extract the first word of "pcre-config", so it can be a program name with args.
 
12924
set dummy pcre-config; ac_word=$2
 
12925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12926
$as_echo_n "checking for $ac_word... " >&6; }
 
12927
if test "${ac_cv_path_PCRECONFIG+set}" = set; then :
 
12928
  $as_echo_n "(cached) " >&6
 
12929
else
 
12930
  case $PCRECONFIG in
 
12931
  [\\/]* | ?:[\\/]*)
 
12932
  ac_cv_path_PCRECONFIG="$PCRECONFIG" # Let the user override the test with a path.
 
12933
  ;;
 
12934
  *)
 
12935
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12936
for as_dir in $PATH
 
12937
do
 
12938
  IFS=$as_save_IFS
 
12939
  test -z "$as_dir" && as_dir=.
 
12940
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12941
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12942
    ac_cv_path_PCRECONFIG="$as_dir/$ac_word$ac_exec_ext"
 
12943
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12944
    break 2
 
12945
  fi
 
12946
done
 
12947
  done
 
12948
IFS=$as_save_IFS
 
12949
 
 
12950
  ;;
 
12951
esac
 
12952
fi
 
12953
PCRECONFIG=$ac_cv_path_PCRECONFIG
 
12954
if test -n "$PCRECONFIG"; then
 
12955
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRECONFIG" >&5
 
12956
$as_echo "$PCRECONFIG" >&6; }
 
12957
else
 
12958
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12959
$as_echo "no" >&6; }
 
12960
fi
 
12961
 
 
12962
 
 
12963
 
 
12964
  if test x"$PCRECONFIG" != x; then
 
12965
    PCRE_LIB=`$PCRECONFIG --libs`
 
12966
    CPPFLAGS="$CPPFLAGS `$PCRECONFIG --cflags`"
 
12967
 
 
12968
$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
 
12969
 
 
12970
 
 
12971
$as_echo "#define HAVE_PCRE_H 1" >>confdefs.h
 
12972
 
 
12973
  else
 
12974
     as_fn_error "pcre-config not found, install the pcre-devel package or build with --without-pcre" "$LINENO" 5
 
12975
  fi
 
12976
fi
 
12977
 
 
12978
 
 
12979
 
 
12980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
 
12981
$as_echo_n "checking for zlib support... " >&6; }
 
12982
 
 
12983
# Check whether --with-zlib was given.
 
12984
if test "${with_zlib+set}" = set; then :
 
12985
  withval=$with_zlib; WITH_ZLIB=$withval
 
12986
else
 
12987
  WITH_ZLIB=yes
 
12988
fi
 
12989
 
 
12990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_ZLIB" >&5
 
12991
$as_echo "$WITH_ZLIB" >&6; }
 
12992
 
 
12993
if test "$WITH_ZLIB" != "no"; then
 
12994
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
 
12995
$as_echo_n "checking for deflate in -lz... " >&6; }
 
12996
if test "${ac_cv_lib_z_deflate+set}" = set; then :
 
12997
  $as_echo_n "(cached) " >&6
 
12998
else
 
12999
  ac_check_lib_save_LIBS=$LIBS
 
13000
LIBS="-lz  $LIBS"
 
13001
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13002
/* end confdefs.h.  */
 
13003
 
 
13004
/* Override any GCC internal prototype to avoid an error.
 
13005
   Use char because int might match the return type of a GCC
 
13006
   builtin and then its argument prototype would still apply.  */
 
13007
#ifdef __cplusplus
 
13008
extern "C"
 
13009
#endif
 
13010
char deflate ();
 
13011
int
 
13012
main ()
 
13013
{
 
13014
return deflate ();
 
13015
  ;
 
13016
  return 0;
 
13017
}
 
13018
_ACEOF
 
13019
if ac_fn_c_try_link "$LINENO"; then :
 
13020
  ac_cv_lib_z_deflate=yes
 
13021
else
 
13022
  ac_cv_lib_z_deflate=no
 
13023
fi
 
13024
rm -f core conftest.err conftest.$ac_objext \
 
13025
    conftest$ac_exeext conftest.$ac_ext
 
13026
LIBS=$ac_check_lib_save_LIBS
 
13027
fi
 
13028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
 
13029
$as_echo "$ac_cv_lib_z_deflate" >&6; }
 
13030
if test "x$ac_cv_lib_z_deflate" = x""yes; then :
 
13031
 
 
13032
    for ac_header in zlib.h
 
13033
do :
 
13034
  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
 
13035
if test "x$ac_cv_header_zlib_h" = x""yes; then :
 
13036
  cat >>confdefs.h <<_ACEOF
 
13037
#define HAVE_ZLIB_H 1
 
13038
_ACEOF
 
13039
 
 
13040
      Z_LIB=-lz
 
13041
 
 
13042
$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
 
13043
 
 
13044
      $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
 
13045
 
 
13046
 
 
13047
fi
 
13048
 
 
13049
done
 
13050
 
 
13051
 
 
13052
fi
 
13053
 
 
13054
  if test x$Z_LIB = x; then
 
13055
     as_fn_error "zlib-headers and/or libs where not found, install them or build with --without-zlib" "$LINENO" 5
 
13056
  fi
 
13057
fi
 
13058
 
 
13059
 
 
13060
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzip2 support" >&5
 
13061
$as_echo_n "checking for bzip2 support... " >&6; }
 
13062
 
 
13063
# Check whether --with-bzip2 was given.
 
13064
if test "${with_bzip2+set}" = set; then :
 
13065
  withval=$with_bzip2; WITH_BZIP2=$withval
 
13066
else
 
13067
  WITH_BZIP2=yes
 
13068
fi
 
13069
 
 
13070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_BZIP2" >&5
 
13071
$as_echo "$WITH_BZIP2" >&6; }
 
13072
 
 
13073
if test "$WITH_BZIP2" != "no"; then
 
13074
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
 
13075
$as_echo_n "checking for BZ2_bzCompress in -lbz2... " >&6; }
 
13076
if test "${ac_cv_lib_bz2_BZ2_bzCompress+set}" = set; then :
 
13077
  $as_echo_n "(cached) " >&6
 
13078
else
 
13079
  ac_check_lib_save_LIBS=$LIBS
 
13080
LIBS="-lbz2  $LIBS"
 
13081
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13082
/* end confdefs.h.  */
 
13083
 
 
13084
/* Override any GCC internal prototype to avoid an error.
 
13085
   Use char because int might match the return type of a GCC
 
13086
   builtin and then its argument prototype would still apply.  */
 
13087
#ifdef __cplusplus
 
13088
extern "C"
 
13089
#endif
 
13090
char BZ2_bzCompress ();
 
13091
int
 
13092
main ()
 
13093
{
 
13094
return BZ2_bzCompress ();
 
13095
  ;
 
13096
  return 0;
 
13097
}
 
13098
_ACEOF
 
13099
if ac_fn_c_try_link "$LINENO"; then :
 
13100
  ac_cv_lib_bz2_BZ2_bzCompress=yes
 
13101
else
 
13102
  ac_cv_lib_bz2_BZ2_bzCompress=no
 
13103
fi
 
13104
rm -f core conftest.err conftest.$ac_objext \
 
13105
    conftest$ac_exeext conftest.$ac_ext
 
13106
LIBS=$ac_check_lib_save_LIBS
 
13107
fi
 
13108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
 
13109
$as_echo "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
 
13110
if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = x""yes; then :
 
13111
 
 
13112
    for ac_header in bzlib.h
 
13113
do :
 
13114
  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
 
13115
if test "x$ac_cv_header_bzlib_h" = x""yes; then :
 
13116
  cat >>confdefs.h <<_ACEOF
 
13117
#define HAVE_BZLIB_H 1
 
13118
_ACEOF
 
13119
 
 
13120
      BZ_LIB=-lbz2
 
13121
 
 
13122
$as_echo "#define HAVE_LIBBZ2 1" >>confdefs.h
 
13123
 
 
13124
      $as_echo "#define HAVE_BZLIB_H 1" >>confdefs.h
 
13125
 
 
13126
 
 
13127
fi
 
13128
 
 
13129
done
 
13130
 
 
13131
 
 
13132
fi
 
13133
 
 
13134
  if test x$BZ_LIB = x; then
 
13135
     as_fn_error "bzip2-headers and/or libs where not found, install them or build with --without-bzip2" "$LINENO" 5
 
13136
  fi
 
13137
fi
 
13138
 
 
13139
 
 
13140
if test -z "$PKG_CONFIG"; then
 
13141
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
13142
set dummy pkg-config; ac_word=$2
 
13143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13144
$as_echo_n "checking for $ac_word... " >&6; }
 
13145
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
 
13146
  $as_echo_n "(cached) " >&6
 
13147
else
 
13148
  case $PKG_CONFIG in
 
13149
  [\\/]* | ?:[\\/]*)
 
13150
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
13151
  ;;
 
13152
  *)
 
13153
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13154
for as_dir in $PATH
 
13155
do
 
13156
  IFS=$as_save_IFS
 
13157
  test -z "$as_dir" && as_dir=.
 
13158
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13159
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
13160
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
13161
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13162
    break 2
 
13163
  fi
 
13164
done
 
13165
  done
 
13166
IFS=$as_save_IFS
 
13167
 
 
13168
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
13169
  ;;
 
13170
esac
 
13171
fi
 
13172
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
13173
if test -n "$PKG_CONFIG"; then
 
13174
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
13175
$as_echo "$PKG_CONFIG" >&6; }
 
13176
else
 
13177
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13178
$as_echo "no" >&6; }
 
13179
fi
 
13180
 
 
13181
 
 
13182
fi
 
13183
 
 
13184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
 
13185
$as_echo_n "checking for FAM... " >&6; }
 
13186
 
 
13187
# Check whether --with-fam was given.
 
13188
if test "${with_fam+set}" = set; then :
 
13189
  withval=$with_fam; WITH_FAM=$withval
 
13190
else
 
13191
  WITH_FAM=no
 
13192
fi
 
13193
 
 
13194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FAM" >&5
 
13195
$as_echo "$WITH_FAM" >&6; }
 
13196
 
 
13197
if test "$WITH_FAM" != "no"; then
 
13198
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen2 in -lfam" >&5
 
13199
$as_echo_n "checking for FAMOpen2 in -lfam... " >&6; }
 
13200
if test "${ac_cv_lib_fam_FAMOpen2+set}" = set; then :
 
13201
  $as_echo_n "(cached) " >&6
 
13202
else
 
13203
  ac_check_lib_save_LIBS=$LIBS
 
13204
LIBS="-lfam  $LIBS"
 
13205
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13206
/* end confdefs.h.  */
 
13207
 
 
13208
/* Override any GCC internal prototype to avoid an error.
 
13209
   Use char because int might match the return type of a GCC
 
13210
   builtin and then its argument prototype would still apply.  */
 
13211
#ifdef __cplusplus
 
13212
extern "C"
 
13213
#endif
 
13214
char FAMOpen2 ();
 
13215
int
 
13216
main ()
 
13217
{
 
13218
return FAMOpen2 ();
 
13219
  ;
 
13220
  return 0;
 
13221
}
 
13222
_ACEOF
 
13223
if ac_fn_c_try_link "$LINENO"; then :
 
13224
  ac_cv_lib_fam_FAMOpen2=yes
 
13225
else
 
13226
  ac_cv_lib_fam_FAMOpen2=no
 
13227
fi
 
13228
rm -f core conftest.err conftest.$ac_objext \
 
13229
    conftest$ac_exeext conftest.$ac_ext
 
13230
LIBS=$ac_check_lib_save_LIBS
 
13231
fi
 
13232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen2" >&5
 
13233
$as_echo "$ac_cv_lib_fam_FAMOpen2" >&6; }
 
13234
if test "x$ac_cv_lib_fam_FAMOpen2" = x""yes; then :
 
13235
 
 
13236
    for ac_header in fam.h
 
13237
do :
 
13238
  ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
 
13239
if test "x$ac_cv_header_fam_h" = x""yes; then :
 
13240
  cat >>confdefs.h <<_ACEOF
 
13241
#define HAVE_FAM_H 1
 
13242
_ACEOF
 
13243
 
 
13244
      FAM_LIBS=-lfam
 
13245
 
 
13246
$as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
 
13247
 
 
13248
 
 
13249
$as_echo "#define HAVE_FAM_H 1" >>confdefs.h
 
13250
 
 
13251
 
 
13252
fi
 
13253
 
 
13254
done
 
13255
 
 
13256
 
 
13257
fi
 
13258
 
 
13259
  if test "x$FAM_LIBS" = x; then
 
13260
 
 
13261
 
 
13262
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
13263
        if test -n "$ac_tool_prefix"; then
 
13264
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
13265
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
13266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13267
$as_echo_n "checking for $ac_word... " >&6; }
 
13268
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
 
13269
  $as_echo_n "(cached) " >&6
 
13270
else
 
13271
  case $PKG_CONFIG in
 
13272
  [\\/]* | ?:[\\/]*)
 
13273
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
13274
  ;;
 
13275
  *)
 
13276
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13277
for as_dir in $PATH
 
13278
do
 
13279
  IFS=$as_save_IFS
 
13280
  test -z "$as_dir" && as_dir=.
 
13281
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13282
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
13283
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
13284
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13285
    break 2
 
13286
  fi
 
13287
done
 
13288
  done
 
13289
IFS=$as_save_IFS
 
13290
 
 
13291
  ;;
 
13292
esac
 
13293
fi
 
13294
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
13295
if test -n "$PKG_CONFIG"; then
 
13296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
13297
$as_echo "$PKG_CONFIG" >&6; }
 
13298
else
 
13299
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13300
$as_echo "no" >&6; }
 
13301
fi
 
13302
 
 
13303
 
 
13304
fi
 
13305
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
13306
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
13307
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
13308
set dummy pkg-config; ac_word=$2
 
13309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13310
$as_echo_n "checking for $ac_word... " >&6; }
 
13311
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
 
13312
  $as_echo_n "(cached) " >&6
 
13313
else
 
13314
  case $ac_pt_PKG_CONFIG in
 
13315
  [\\/]* | ?:[\\/]*)
 
13316
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
13317
  ;;
 
13318
  *)
 
13319
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13320
for as_dir in $PATH
 
13321
do
 
13322
  IFS=$as_save_IFS
 
13323
  test -z "$as_dir" && as_dir=.
 
13324
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13325
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
13326
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
13327
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13328
    break 2
 
13329
  fi
 
13330
done
 
13331
  done
 
13332
IFS=$as_save_IFS
 
13333
 
 
13334
  ;;
 
13335
esac
 
13336
fi
 
13337
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
13338
if test -n "$ac_pt_PKG_CONFIG"; then
 
13339
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
13340
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
13341
else
 
13342
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13343
$as_echo "no" >&6; }
 
13344
fi
 
13345
 
 
13346
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
13347
    PKG_CONFIG=""
 
13348
  else
 
13349
    case $cross_compiling:$ac_tool_warned in
 
13350
yes:)
 
13351
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13352
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13353
ac_tool_warned=yes ;;
 
13354
esac
 
13355
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
13356
  fi
 
13357
else
 
13358
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
13359
fi
 
13360
 
 
13361
fi
 
13362
if test -n "$PKG_CONFIG"; then
 
13363
        _pkg_min_version=0.9.0
 
13364
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
13365
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
13366
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
13367
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13368
$as_echo "yes" >&6; }
 
13369
        else
 
13370
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13371
$as_echo "no" >&6; }
 
13372
                PKG_CONFIG=""
 
13373
        fi
 
13374
 
 
13375
fi
 
13376
 
 
13377
pkg_failed=no
 
13378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
 
13379
$as_echo_n "checking for FAM... " >&6; }
 
13380
 
 
13381
if test -n "$PKG_CONFIG"; then
 
13382
    if test -n "$FAM_CFLAGS"; then
 
13383
        pkg_cv_FAM_CFLAGS="$FAM_CFLAGS"
 
13384
    else
 
13385
        if test -n "$PKG_CONFIG" && \
 
13386
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
 
13387
  ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
 
13388
  ac_status=$?
 
13389
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13390
  test $ac_status = 0; }; then
 
13391
  pkg_cv_FAM_CFLAGS=`$PKG_CONFIG --cflags "gamin >= 0.1.0" 2>/dev/null`
 
13392
else
 
13393
  pkg_failed=yes
 
13394
fi
 
13395
    fi
 
13396
else
 
13397
        pkg_failed=untried
 
13398
fi
 
13399
if test -n "$PKG_CONFIG"; then
 
13400
    if test -n "$FAM_LIBS"; then
 
13401
        pkg_cv_FAM_LIBS="$FAM_LIBS"
 
13402
    else
 
13403
        if test -n "$PKG_CONFIG" && \
 
13404
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
 
13405
  ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
 
13406
  ac_status=$?
 
13407
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13408
  test $ac_status = 0; }; then
 
13409
  pkg_cv_FAM_LIBS=`$PKG_CONFIG --libs "gamin >= 0.1.0" 2>/dev/null`
 
13410
else
 
13411
  pkg_failed=yes
 
13412
fi
 
13413
    fi
 
13414
else
 
13415
        pkg_failed=untried
 
13416
fi
 
13417
 
 
13418
 
 
13419
 
 
13420
if test $pkg_failed = yes; then
 
13421
 
 
13422
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
13423
        _pkg_short_errors_supported=yes
 
13424
else
 
13425
        _pkg_short_errors_supported=no
 
13426
fi
 
13427
        if test $_pkg_short_errors_supported = yes; then
 
13428
                FAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gamin >= 0.1.0"`
 
13429
        else
 
13430
                FAM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gamin >= 0.1.0"`
 
13431
        fi
 
13432
        # Put the nasty error message in config.log where it belongs
 
13433
        echo "$FAM_PKG_ERRORS" >&5
 
13434
 
 
13435
        as_fn_error "Package requirements (gamin >= 0.1.0) were not met:
 
13436
 
 
13437
$FAM_PKG_ERRORS
 
13438
 
 
13439
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
13440
installed software in a non-standard prefix.
 
13441
 
 
13442
Alternatively, you may set the environment variables FAM_CFLAGS
 
13443
and FAM_LIBS to avoid the need to call pkg-config.
 
13444
See the pkg-config man page for more details.
 
13445
" "$LINENO" 5
 
13446
elif test $pkg_failed = untried; then
 
13447
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13448
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13449
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
13450
is in your PATH or set the PKG_CONFIG environment variable to the full
 
13451
path to pkg-config.
 
13452
 
 
13453
Alternatively, you may set the environment variables FAM_CFLAGS
 
13454
and FAM_LIBS to avoid the need to call pkg-config.
 
13455
See the pkg-config man page for more details.
 
13456
 
 
13457
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
13458
See \`config.log' for more details." "$LINENO" 5; }
 
13459
else
 
13460
        FAM_CFLAGS=$pkg_cv_FAM_CFLAGS
 
13461
        FAM_LIBS=$pkg_cv_FAM_LIBS
 
13462
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13463
$as_echo "yes" >&6; }
 
13464
 
 
13465
 
 
13466
$as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
 
13467
 
 
13468
 
 
13469
$as_echo "#define HAVE_FAM_H 1" >>confdefs.h
 
13470
 
 
13471
 
 
13472
fi
 
13473
  fi
 
13474
  OLD_LIBS=$LIBS
 
13475
  LIBS=$FAM_LIBS
 
13476
  for ac_func in FAMNoExists
 
13477
do :
 
13478
  ac_fn_c_check_func "$LINENO" "FAMNoExists" "ac_cv_func_FAMNoExists"
 
13479
if test "x$ac_cv_func_FAMNoExists" = x""yes; then :
 
13480
  cat >>confdefs.h <<_ACEOF
 
13481
#define HAVE_FAMNOEXISTS 1
 
13482
_ACEOF
 
13483
 
 
13484
fi
 
13485
done
 
13486
 
 
13487
  LIBS=$OLD_LIBS
 
13488
 
 
13489
  if test x$FAM_LIBS = x; then
 
13490
     as_fn_error "fam/gamin-headers and/or libs where not found, install them or build with --without-fam" "$LINENO" 5
 
13491
  fi
 
13492
fi
 
13493
 
 
13494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for properties in mod_webdav" >&5
 
13495
$as_echo_n "checking for properties in mod_webdav... " >&6; }
 
13496
 
 
13497
# Check whether --with-webdav-props was given.
 
13498
if test "${with_webdav_props+set}" = set; then :
 
13499
  withval=$with_webdav_props; WITH_WEBDAV_PROPS=$withval
 
13500
else
 
13501
  WITH_WEBDAV_PROPS=no
 
13502
fi
 
13503
 
 
13504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_PROPS" >&5
 
13505
$as_echo "$WITH_WEBDAV_PROPS" >&6; }
 
13506
 
 
13507
if test "$WITH_WEBDAV_PROPS" != "no"; then
 
13508
 
 
13509
pkg_failed=no
 
13510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
 
13511
$as_echo_n "checking for XML... " >&6; }
 
13512
 
 
13513
if test -n "$PKG_CONFIG"; then
 
13514
    if test -n "$XML_CFLAGS"; then
 
13515
        pkg_cv_XML_CFLAGS="$XML_CFLAGS"
 
13516
    else
 
13517
        if test -n "$PKG_CONFIG" && \
 
13518
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
 
13519
  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
 
13520
  ac_status=$?
 
13521
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13522
  test $ac_status = 0; }; then
 
13523
  pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
 
13524
else
 
13525
  pkg_failed=yes
 
13526
fi
 
13527
    fi
 
13528
else
 
13529
        pkg_failed=untried
 
13530
fi
 
13531
if test -n "$PKG_CONFIG"; then
 
13532
    if test -n "$XML_LIBS"; then
 
13533
        pkg_cv_XML_LIBS="$XML_LIBS"
 
13534
    else
 
13535
        if test -n "$PKG_CONFIG" && \
 
13536
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
 
13537
  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
 
13538
  ac_status=$?
 
13539
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13540
  test $ac_status = 0; }; then
 
13541
  pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
 
13542
else
 
13543
  pkg_failed=yes
 
13544
fi
 
13545
    fi
 
13546
else
 
13547
        pkg_failed=untried
 
13548
fi
 
13549
 
 
13550
 
 
13551
 
 
13552
if test $pkg_failed = yes; then
 
13553
 
 
13554
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
13555
        _pkg_short_errors_supported=yes
 
13556
else
 
13557
        _pkg_short_errors_supported=no
 
13558
fi
 
13559
        if test $_pkg_short_errors_supported = yes; then
 
13560
                XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0"`
 
13561
        else
 
13562
                XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"`
 
13563
        fi
 
13564
        # Put the nasty error message in config.log where it belongs
 
13565
        echo "$XML_PKG_ERRORS" >&5
 
13566
 
 
13567
        as_fn_error "Package requirements (libxml-2.0) were not met:
 
13568
 
 
13569
$XML_PKG_ERRORS
 
13570
 
 
13571
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
13572
installed software in a non-standard prefix.
 
13573
 
 
13574
Alternatively, you may set the environment variables XML_CFLAGS
 
13575
and XML_LIBS to avoid the need to call pkg-config.
 
13576
See the pkg-config man page for more details.
 
13577
" "$LINENO" 5
 
13578
elif test $pkg_failed = untried; then
 
13579
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13580
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13581
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
13582
is in your PATH or set the PKG_CONFIG environment variable to the full
 
13583
path to pkg-config.
 
13584
 
 
13585
Alternatively, you may set the environment variables XML_CFLAGS
 
13586
and XML_LIBS to avoid the need to call pkg-config.
 
13587
See the pkg-config man page for more details.
 
13588
 
 
13589
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
13590
See \`config.log' for more details." "$LINENO" 5; }
 
13591
else
 
13592
        XML_CFLAGS=$pkg_cv_XML_CFLAGS
 
13593
        XML_LIBS=$pkg_cv_XML_LIBS
 
13594
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13595
$as_echo "yes" >&6; }
 
13596
 
 
13597
 
 
13598
$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
 
13599
 
 
13600
 
 
13601
$as_echo "#define HAVE_LIBXML_H 1" >>confdefs.h
 
13602
 
 
13603
 
 
13604
fi
 
13605
 
 
13606
pkg_failed=no
 
13607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
 
13608
$as_echo_n "checking for SQLITE... " >&6; }
 
13609
 
 
13610
if test -n "$PKG_CONFIG"; then
 
13611
    if test -n "$SQLITE_CFLAGS"; then
 
13612
        pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
 
13613
    else
 
13614
        if test -n "$PKG_CONFIG" && \
 
13615
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
 
13616
  ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
 
13617
  ac_status=$?
 
13618
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13619
  test $ac_status = 0; }; then
 
13620
  pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
 
13621
else
 
13622
  pkg_failed=yes
 
13623
fi
 
13624
    fi
 
13625
else
 
13626
        pkg_failed=untried
 
13627
fi
 
13628
if test -n "$PKG_CONFIG"; then
 
13629
    if test -n "$SQLITE_LIBS"; then
 
13630
        pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
 
13631
    else
 
13632
        if test -n "$PKG_CONFIG" && \
 
13633
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
 
13634
  ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
 
13635
  ac_status=$?
 
13636
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13637
  test $ac_status = 0; }; then
 
13638
  pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
 
13639
else
 
13640
  pkg_failed=yes
 
13641
fi
 
13642
    fi
 
13643
else
 
13644
        pkg_failed=untried
 
13645
fi
 
13646
 
 
13647
 
 
13648
 
 
13649
if test $pkg_failed = yes; then
 
13650
 
 
13651
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
13652
        _pkg_short_errors_supported=yes
 
13653
else
 
13654
        _pkg_short_errors_supported=no
 
13655
fi
 
13656
        if test $_pkg_short_errors_supported = yes; then
 
13657
                SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
 
13658
        else
 
13659
                SQLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
 
13660
        fi
 
13661
        # Put the nasty error message in config.log where it belongs
 
13662
        echo "$SQLITE_PKG_ERRORS" >&5
 
13663
 
 
13664
        as_fn_error "Package requirements (sqlite3) were not met:
 
13665
 
 
13666
$SQLITE_PKG_ERRORS
 
13667
 
 
13668
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
13669
installed software in a non-standard prefix.
 
13670
 
 
13671
Alternatively, you may set the environment variables SQLITE_CFLAGS
 
13672
and SQLITE_LIBS to avoid the need to call pkg-config.
 
13673
See the pkg-config man page for more details.
 
13674
" "$LINENO" 5
 
13675
elif test $pkg_failed = untried; then
 
13676
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13677
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13678
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
13679
is in your PATH or set the PKG_CONFIG environment variable to the full
 
13680
path to pkg-config.
 
13681
 
 
13682
Alternatively, you may set the environment variables SQLITE_CFLAGS
 
13683
and SQLITE_LIBS to avoid the need to call pkg-config.
 
13684
See the pkg-config man page for more details.
 
13685
 
 
13686
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
13687
See \`config.log' for more details." "$LINENO" 5; }
 
13688
else
 
13689
        SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
 
13690
        SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
 
13691
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13692
$as_echo "yes" >&6; }
 
13693
 
 
13694
 
 
13695
$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
 
13696
 
 
13697
 
 
13698
$as_echo "#define HAVE_SQLITE3_H 1" >>confdefs.h
 
13699
 
 
13700
 
 
13701
fi
 
13702
 
 
13703
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locks in mod_webdav" >&5
 
13704
$as_echo_n "checking for locks in mod_webdav... " >&6; }
 
13705
 
 
13706
# Check whether --with-webdav-locks was given.
 
13707
if test "${with_webdav_locks+set}" = set; then :
 
13708
  withval=$with_webdav_locks; WITH_WEBDAV_LOCKS=$withval
 
13709
else
 
13710
  WITH_WEBDAV_LOCKS=no
 
13711
fi
 
13712
 
 
13713
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_LOCKS" >&5
 
13714
$as_echo "$WITH_WEBDAV_LOCKS" >&6; }
 
13715
 
 
13716
 if test "$WITH_WEBDAV_LOCKS" != "no"; then
 
13717
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_unparse in -luuid" >&5
 
13718
$as_echo_n "checking for uuid_unparse in -luuid... " >&6; }
 
13719
if test "${ac_cv_lib_uuid_uuid_unparse+set}" = set; then :
 
13720
  $as_echo_n "(cached) " >&6
 
13721
else
 
13722
  ac_check_lib_save_LIBS=$LIBS
 
13723
LIBS="-luuid  $LIBS"
 
13724
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13725
/* end confdefs.h.  */
 
13726
 
 
13727
/* Override any GCC internal prototype to avoid an error.
 
13728
   Use char because int might match the return type of a GCC
 
13729
   builtin and then its argument prototype would still apply.  */
 
13730
#ifdef __cplusplus
 
13731
extern "C"
 
13732
#endif
 
13733
char uuid_unparse ();
 
13734
int
 
13735
main ()
 
13736
{
 
13737
return uuid_unparse ();
 
13738
  ;
 
13739
  return 0;
 
13740
}
 
13741
_ACEOF
 
13742
if ac_fn_c_try_link "$LINENO"; then :
 
13743
  ac_cv_lib_uuid_uuid_unparse=yes
 
13744
else
 
13745
  ac_cv_lib_uuid_uuid_unparse=no
 
13746
fi
 
13747
rm -f core conftest.err conftest.$ac_objext \
 
13748
    conftest$ac_exeext conftest.$ac_ext
 
13749
LIBS=$ac_check_lib_save_LIBS
 
13750
fi
 
13751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_unparse" >&5
 
13752
$as_echo "$ac_cv_lib_uuid_uuid_unparse" >&6; }
 
13753
if test "x$ac_cv_lib_uuid_uuid_unparse" = x""yes; then :
 
13754
 
 
13755
         for ac_header in uuid/uuid.h
 
13756
do :
 
13757
  ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
 
13758
if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
 
13759
  cat >>confdefs.h <<_ACEOF
 
13760
#define HAVE_UUID_UUID_H 1
 
13761
_ACEOF
 
13762
 
 
13763
                 UUID_LIBS=-luuid
 
13764
 
 
13765
$as_echo "#define HAVE_UUID 1" >>confdefs.h
 
13766
 
 
13767
 
 
13768
$as_echo "#define HAVE_UUID_H 1" >>confdefs.h
 
13769
 
 
13770
 
 
13771
fi
 
13772
 
 
13773
done
 
13774
 
 
13775
 
 
13776
fi
 
13777
 
 
13778
 
 
13779
 fi
 
13780
fi
 
13781
 
 
13782
 
 
13783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm" >&5
 
13784
$as_echo_n "checking for gdbm... " >&6; }
 
13785
 
 
13786
# Check whether --with-gdbm was given.
 
13787
if test "${with_gdbm+set}" = set; then :
 
13788
  withval=$with_gdbm; WITH_GDBM=$withval
 
13789
else
 
13790
  WITH_GDBM=no
 
13791
fi
 
13792
 
 
13793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_GDBM" >&5
 
13794
$as_echo "$WITH_GDBM" >&6; }
 
13795
 
 
13796
if test "$WITH_GDBM" != "no"; then
 
13797
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
 
13798
$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
 
13799
if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then :
 
13800
  $as_echo_n "(cached) " >&6
 
13801
else
 
13802
  ac_check_lib_save_LIBS=$LIBS
 
13803
LIBS="-lgdbm  $LIBS"
 
13804
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13805
/* end confdefs.h.  */
 
13806
 
 
13807
/* Override any GCC internal prototype to avoid an error.
 
13808
   Use char because int might match the return type of a GCC
 
13809
   builtin and then its argument prototype would still apply.  */
 
13810
#ifdef __cplusplus
 
13811
extern "C"
 
13812
#endif
 
13813
char gdbm_open ();
 
13814
int
 
13815
main ()
 
13816
{
 
13817
return gdbm_open ();
 
13818
  ;
 
13819
  return 0;
 
13820
}
 
13821
_ACEOF
 
13822
if ac_fn_c_try_link "$LINENO"; then :
 
13823
  ac_cv_lib_gdbm_gdbm_open=yes
 
13824
else
 
13825
  ac_cv_lib_gdbm_gdbm_open=no
 
13826
fi
 
13827
rm -f core conftest.err conftest.$ac_objext \
 
13828
    conftest$ac_exeext conftest.$ac_ext
 
13829
LIBS=$ac_check_lib_save_LIBS
 
13830
fi
 
13831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
 
13832
$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
 
13833
if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then :
 
13834
 
 
13835
         for ac_header in gdbm.h
 
13836
do :
 
13837
  ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
 
13838
if test "x$ac_cv_header_gdbm_h" = x""yes; then :
 
13839
  cat >>confdefs.h <<_ACEOF
 
13840
#define HAVE_GDBM_H 1
 
13841
_ACEOF
 
13842
 
 
13843
                 GDBM_LIB=-lgdbm
 
13844
 
 
13845
$as_echo "#define HAVE_GDBM 1" >>confdefs.h
 
13846
 
 
13847
                 $as_echo "#define HAVE_GDBM_H 1" >>confdefs.h
 
13848
 
 
13849
 
 
13850
fi
 
13851
 
 
13852
done
 
13853
 
 
13854
 
 
13855
fi
 
13856
 
 
13857
 
 
13858
fi
 
13859
 
 
13860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcache" >&5
 
13861
$as_echo_n "checking for memcache... " >&6; }
 
13862
 
 
13863
# Check whether --with-memcache was given.
 
13864
if test "${with_memcache+set}" = set; then :
 
13865
  withval=$with_memcache; WITH_MEMCACHE=$withval
 
13866
else
 
13867
  WITH_MEMCACHE=no
 
13868
fi
 
13869
 
 
13870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_MEMCACHE" >&5
 
13871
$as_echo "$WITH_MEMCACHE" >&6; }
 
13872
if test "$WITH_MEMCACHE" != "no"; then
 
13873
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mc_new in -lmemcache" >&5
 
13874
$as_echo_n "checking for mc_new in -lmemcache... " >&6; }
 
13875
if test "${ac_cv_lib_memcache_mc_new+set}" = set; then :
 
13876
  $as_echo_n "(cached) " >&6
 
13877
else
 
13878
  ac_check_lib_save_LIBS=$LIBS
 
13879
LIBS="-lmemcache  $LIBS"
 
13880
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13881
/* end confdefs.h.  */
 
13882
 
 
13883
/* Override any GCC internal prototype to avoid an error.
 
13884
   Use char because int might match the return type of a GCC
 
13885
   builtin and then its argument prototype would still apply.  */
 
13886
#ifdef __cplusplus
 
13887
extern "C"
 
13888
#endif
 
13889
char mc_new ();
 
13890
int
 
13891
main ()
 
13892
{
 
13893
return mc_new ();
 
13894
  ;
 
13895
  return 0;
 
13896
}
 
13897
_ACEOF
 
13898
if ac_fn_c_try_link "$LINENO"; then :
 
13899
  ac_cv_lib_memcache_mc_new=yes
 
13900
else
 
13901
  ac_cv_lib_memcache_mc_new=no
 
13902
fi
 
13903
rm -f core conftest.err conftest.$ac_objext \
 
13904
    conftest$ac_exeext conftest.$ac_ext
 
13905
LIBS=$ac_check_lib_save_LIBS
 
13906
fi
 
13907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcache_mc_new" >&5
 
13908
$as_echo "$ac_cv_lib_memcache_mc_new" >&6; }
 
13909
if test "x$ac_cv_lib_memcache_mc_new" = x""yes; then :
 
13910
 
 
13911
         for ac_header in memcache.h
 
13912
do :
 
13913
  ac_fn_c_check_header_mongrel "$LINENO" "memcache.h" "ac_cv_header_memcache_h" "$ac_includes_default"
 
13914
if test "x$ac_cv_header_memcache_h" = x""yes; then :
 
13915
  cat >>confdefs.h <<_ACEOF
 
13916
#define HAVE_MEMCACHE_H 1
 
13917
_ACEOF
 
13918
 
 
13919
                 MEMCACHE_LIB=-lmemcache
 
13920
 
 
13921
$as_echo "#define HAVE_MEMCACHE 1" >>confdefs.h
 
13922
 
 
13923
 
 
13924
$as_echo "#define HAVE_MEMCACHE_H 1" >>confdefs.h
 
13925
 
 
13926
 
 
13927
fi
 
13928
 
 
13929
done
 
13930
 
 
13931
 
 
13932
fi
 
13933
 
 
13934
 
 
13935
fi
 
13936
 
 
13937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua-support is requested" >&5
 
13938
$as_echo_n "checking if lua-support is requested... " >&6; }
 
13939
 
 
13940
# Check whether --with-lua was given.
 
13941
if test "${with_lua+set}" = set; then :
 
13942
  withval=$with_lua; WITH_LUA=$withval
 
13943
else
 
13944
  WITH_LUA=no
 
13945
fi
 
13946
 
 
13947
 
 
13948
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LUA" >&5
 
13949
$as_echo "$WITH_LUA" >&6; }
 
13950
if test "$WITH_LUA" != "no"; then
 
13951
 if test "$WITH_LUA" = "yes"; then
 
13952
  WITH_LUA=lua
 
13953
 fi
 
13954
 
 
13955
pkg_failed=no
 
13956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
 
13957
$as_echo_n "checking for LUA... " >&6; }
 
13958
 
 
13959
if test -n "$PKG_CONFIG"; then
 
13960
    if test -n "$LUA_CFLAGS"; then
 
13961
        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
 
13962
    else
 
13963
        if test -n "$PKG_CONFIG" && \
 
13964
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
 
13965
  ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
 
13966
  ac_status=$?
 
13967
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13968
  test $ac_status = 0; }; then
 
13969
  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
 
13970
else
 
13971
  pkg_failed=yes
 
13972
fi
 
13973
    fi
 
13974
else
 
13975
        pkg_failed=untried
 
13976
fi
 
13977
if test -n "$PKG_CONFIG"; then
 
13978
    if test -n "$LUA_LIBS"; then
 
13979
        pkg_cv_LUA_LIBS="$LUA_LIBS"
 
13980
    else
 
13981
        if test -n "$PKG_CONFIG" && \
 
13982
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
 
13983
  ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
 
13984
  ac_status=$?
 
13985
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13986
  test $ac_status = 0; }; then
 
13987
  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
 
13988
else
 
13989
  pkg_failed=yes
 
13990
fi
 
13991
    fi
 
13992
else
 
13993
        pkg_failed=untried
 
13994
fi
 
13995
 
 
13996
 
 
13997
 
 
13998
if test $pkg_failed = yes; then
 
13999
 
 
14000
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14001
        _pkg_short_errors_supported=yes
 
14002
else
 
14003
        _pkg_short_errors_supported=no
 
14004
fi
 
14005
        if test $_pkg_short_errors_supported = yes; then
 
14006
                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$WITH_LUA >= 5.1"`
 
14007
        else
 
14008
                LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$WITH_LUA >= 5.1"`
 
14009
        fi
 
14010
        # Put the nasty error message in config.log where it belongs
 
14011
        echo "$LUA_PKG_ERRORS" >&5
 
14012
 
 
14013
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14014
$as_echo "no" >&6; }
 
14015
 
 
14016
 
 
14017
pkg_failed=no
 
14018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
 
14019
$as_echo_n "checking for LUA... " >&6; }
 
14020
 
 
14021
if test -n "$PKG_CONFIG"; then
 
14022
    if test -n "$LUA_CFLAGS"; then
 
14023
        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
 
14024
    else
 
14025
        if test -n "$PKG_CONFIG" && \
 
14026
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
 
14027
  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
 
14028
  ac_status=$?
 
14029
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14030
  test $ac_status = 0; }; then
 
14031
  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
 
14032
else
 
14033
  pkg_failed=yes
 
14034
fi
 
14035
    fi
 
14036
else
 
14037
        pkg_failed=untried
 
14038
fi
 
14039
if test -n "$PKG_CONFIG"; then
 
14040
    if test -n "$LUA_LIBS"; then
 
14041
        pkg_cv_LUA_LIBS="$LUA_LIBS"
 
14042
    else
 
14043
        if test -n "$PKG_CONFIG" && \
 
14044
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
 
14045
  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
 
14046
  ac_status=$?
 
14047
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14048
  test $ac_status = 0; }; then
 
14049
  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
 
14050
else
 
14051
  pkg_failed=yes
 
14052
fi
 
14053
    fi
 
14054
else
 
14055
        pkg_failed=untried
 
14056
fi
 
14057
 
 
14058
 
 
14059
 
 
14060
if test $pkg_failed = yes; then
 
14061
 
 
14062
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14063
        _pkg_short_errors_supported=yes
 
14064
else
 
14065
        _pkg_short_errors_supported=no
 
14066
fi
 
14067
        if test $_pkg_short_errors_supported = yes; then
 
14068
                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
 
14069
        else
 
14070
                LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
 
14071
        fi
 
14072
        # Put the nasty error message in config.log where it belongs
 
14073
        echo "$LUA_PKG_ERRORS" >&5
 
14074
 
 
14075
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14076
$as_echo "no" >&6; }
 
14077
 
 
14078
 
 
14079
pkg_failed=no
 
14080
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
 
14081
$as_echo_n "checking for LUA... " >&6; }
 
14082
 
 
14083
if test -n "$PKG_CONFIG"; then
 
14084
    if test -n "$LUA_CFLAGS"; then
 
14085
        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
 
14086
    else
 
14087
        if test -n "$PKG_CONFIG" && \
 
14088
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
14089
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
14090
  ac_status=$?
 
14091
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14092
  test $ac_status = 0; }; then
 
14093
  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
 
14094
else
 
14095
  pkg_failed=yes
 
14096
fi
 
14097
    fi
 
14098
else
 
14099
        pkg_failed=untried
 
14100
fi
 
14101
if test -n "$PKG_CONFIG"; then
 
14102
    if test -n "$LUA_LIBS"; then
 
14103
        pkg_cv_LUA_LIBS="$LUA_LIBS"
 
14104
    else
 
14105
        if test -n "$PKG_CONFIG" && \
 
14106
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
14107
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
14108
  ac_status=$?
 
14109
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14110
  test $ac_status = 0; }; then
 
14111
  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
 
14112
else
 
14113
  pkg_failed=yes
 
14114
fi
 
14115
    fi
 
14116
else
 
14117
        pkg_failed=untried
 
14118
fi
 
14119
 
 
14120
 
 
14121
 
 
14122
if test $pkg_failed = yes; then
 
14123
 
 
14124
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14125
        _pkg_short_errors_supported=yes
 
14126
else
 
14127
        _pkg_short_errors_supported=no
 
14128
fi
 
14129
        if test $_pkg_short_errors_supported = yes; then
 
14130
                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
 
14131
        else
 
14132
                LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
 
14133
        fi
 
14134
        # Put the nasty error message in config.log where it belongs
 
14135
        echo "$LUA_PKG_ERRORS" >&5
 
14136
 
 
14137
        as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
 
14138
 
 
14139
$LUA_PKG_ERRORS
 
14140
 
 
14141
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
14142
installed software in a non-standard prefix.
 
14143
 
 
14144
Alternatively, you may set the environment variables LUA_CFLAGS
 
14145
and LUA_LIBS to avoid the need to call pkg-config.
 
14146
See the pkg-config man page for more details.
 
14147
" "$LINENO" 5
 
14148
elif test $pkg_failed = untried; then
 
14149
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
14150
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
14151
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
14152
is in your PATH or set the PKG_CONFIG environment variable to the full
 
14153
path to pkg-config.
 
14154
 
 
14155
Alternatively, you may set the environment variables LUA_CFLAGS
 
14156
and LUA_LIBS to avoid the need to call pkg-config.
 
14157
See the pkg-config man page for more details.
 
14158
 
 
14159
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
14160
See \`config.log' for more details." "$LINENO" 5; }
 
14161
else
 
14162
        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
 
14163
        LUA_LIBS=$pkg_cv_LUA_LIBS
 
14164
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14165
$as_echo "yes" >&6; }
 
14166
 
 
14167
 
 
14168
$as_echo "#define HAVE_LUA 1" >>confdefs.h
 
14169
 
 
14170
 
 
14171
$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
 
14172
 
 
14173
 
 
14174
fi
 
14175
 
 
14176
elif test $pkg_failed = untried; then
 
14177
 
 
14178
 
 
14179
pkg_failed=no
 
14180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
 
14181
$as_echo_n "checking for LUA... " >&6; }
 
14182
 
 
14183
if test -n "$PKG_CONFIG"; then
 
14184
    if test -n "$LUA_CFLAGS"; then
 
14185
        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
 
14186
    else
 
14187
        if test -n "$PKG_CONFIG" && \
 
14188
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
14189
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
14190
  ac_status=$?
 
14191
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14192
  test $ac_status = 0; }; then
 
14193
  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
 
14194
else
 
14195
  pkg_failed=yes
 
14196
fi
 
14197
    fi
 
14198
else
 
14199
        pkg_failed=untried
 
14200
fi
 
14201
if test -n "$PKG_CONFIG"; then
 
14202
    if test -n "$LUA_LIBS"; then
 
14203
        pkg_cv_LUA_LIBS="$LUA_LIBS"
 
14204
    else
 
14205
        if test -n "$PKG_CONFIG" && \
 
14206
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
14207
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
14208
  ac_status=$?
 
14209
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14210
  test $ac_status = 0; }; then
 
14211
  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
 
14212
else
 
14213
  pkg_failed=yes
 
14214
fi
 
14215
    fi
 
14216
else
 
14217
        pkg_failed=untried
 
14218
fi
 
14219
 
 
14220
 
 
14221
 
 
14222
if test $pkg_failed = yes; then
 
14223
 
 
14224
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14225
        _pkg_short_errors_supported=yes
 
14226
else
 
14227
        _pkg_short_errors_supported=no
 
14228
fi
 
14229
        if test $_pkg_short_errors_supported = yes; then
 
14230
                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
 
14231
        else
 
14232
                LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
 
14233
        fi
 
14234
        # Put the nasty error message in config.log where it belongs
 
14235
        echo "$LUA_PKG_ERRORS" >&5
 
14236
 
 
14237
        as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
 
14238
 
 
14239
$LUA_PKG_ERRORS
 
14240
 
 
14241
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
14242
installed software in a non-standard prefix.
 
14243
 
 
14244
Alternatively, you may set the environment variables LUA_CFLAGS
 
14245
and LUA_LIBS to avoid the need to call pkg-config.
 
14246
See the pkg-config man page for more details.
 
14247
" "$LINENO" 5
 
14248
elif test $pkg_failed = untried; then
 
14249
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
14250
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
14251
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
14252
is in your PATH or set the PKG_CONFIG environment variable to the full
 
14253
path to pkg-config.
 
14254
 
 
14255
Alternatively, you may set the environment variables LUA_CFLAGS
 
14256
and LUA_LIBS to avoid the need to call pkg-config.
 
14257
See the pkg-config man page for more details.
 
14258
 
 
14259
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
14260
See \`config.log' for more details." "$LINENO" 5; }
 
14261
else
 
14262
        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
 
14263
        LUA_LIBS=$pkg_cv_LUA_LIBS
 
14264
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14265
$as_echo "yes" >&6; }
 
14266
 
 
14267
 
 
14268
$as_echo "#define HAVE_LUA 1" >>confdefs.h
 
14269
 
 
14270
 
 
14271
$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
 
14272
 
 
14273
 
 
14274
fi
 
14275
 
 
14276
else
 
14277
        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
 
14278
        LUA_LIBS=$pkg_cv_LUA_LIBS
 
14279
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14280
$as_echo "yes" >&6; }
 
14281
 
 
14282
 
 
14283
$as_echo "#define HAVE_LUA 1" >>confdefs.h
 
14284
 
 
14285
 
 
14286
$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
 
14287
 
 
14288
 
 
14289
fi
 
14290
 
 
14291
elif test $pkg_failed = untried; then
 
14292
 
 
14293
 
 
14294
pkg_failed=no
 
14295
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
 
14296
$as_echo_n "checking for LUA... " >&6; }
 
14297
 
 
14298
if test -n "$PKG_CONFIG"; then
 
14299
    if test -n "$LUA_CFLAGS"; then
 
14300
        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
 
14301
    else
 
14302
        if test -n "$PKG_CONFIG" && \
 
14303
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
 
14304
  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
 
14305
  ac_status=$?
 
14306
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14307
  test $ac_status = 0; }; then
 
14308
  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
 
14309
else
 
14310
  pkg_failed=yes
 
14311
fi
 
14312
    fi
 
14313
else
 
14314
        pkg_failed=untried
 
14315
fi
 
14316
if test -n "$PKG_CONFIG"; then
 
14317
    if test -n "$LUA_LIBS"; then
 
14318
        pkg_cv_LUA_LIBS="$LUA_LIBS"
 
14319
    else
 
14320
        if test -n "$PKG_CONFIG" && \
 
14321
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
 
14322
  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
 
14323
  ac_status=$?
 
14324
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14325
  test $ac_status = 0; }; then
 
14326
  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
 
14327
else
 
14328
  pkg_failed=yes
 
14329
fi
 
14330
    fi
 
14331
else
 
14332
        pkg_failed=untried
 
14333
fi
 
14334
 
 
14335
 
 
14336
 
 
14337
if test $pkg_failed = yes; then
 
14338
 
 
14339
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14340
        _pkg_short_errors_supported=yes
 
14341
else
 
14342
        _pkg_short_errors_supported=no
 
14343
fi
 
14344
        if test $_pkg_short_errors_supported = yes; then
 
14345
                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
 
14346
        else
 
14347
                LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
 
14348
        fi
 
14349
        # Put the nasty error message in config.log where it belongs
 
14350
        echo "$LUA_PKG_ERRORS" >&5
 
14351
 
 
14352
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14353
$as_echo "no" >&6; }
 
14354
 
 
14355
 
 
14356
pkg_failed=no
 
14357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
 
14358
$as_echo_n "checking for LUA... " >&6; }
 
14359
 
 
14360
if test -n "$PKG_CONFIG"; then
 
14361
    if test -n "$LUA_CFLAGS"; then
 
14362
        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
 
14363
    else
 
14364
        if test -n "$PKG_CONFIG" && \
 
14365
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
14366
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
14367
  ac_status=$?
 
14368
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14369
  test $ac_status = 0; }; then
 
14370
  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
 
14371
else
 
14372
  pkg_failed=yes
 
14373
fi
 
14374
    fi
 
14375
else
 
14376
        pkg_failed=untried
 
14377
fi
 
14378
if test -n "$PKG_CONFIG"; then
 
14379
    if test -n "$LUA_LIBS"; then
 
14380
        pkg_cv_LUA_LIBS="$LUA_LIBS"
 
14381
    else
 
14382
        if test -n "$PKG_CONFIG" && \
 
14383
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
14384
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
14385
  ac_status=$?
 
14386
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14387
  test $ac_status = 0; }; then
 
14388
  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
 
14389
else
 
14390
  pkg_failed=yes
 
14391
fi
 
14392
    fi
 
14393
else
 
14394
        pkg_failed=untried
 
14395
fi
 
14396
 
 
14397
 
 
14398
 
 
14399
if test $pkg_failed = yes; then
 
14400
 
 
14401
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14402
        _pkg_short_errors_supported=yes
 
14403
else
 
14404
        _pkg_short_errors_supported=no
 
14405
fi
 
14406
        if test $_pkg_short_errors_supported = yes; then
 
14407
                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
 
14408
        else
 
14409
                LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
 
14410
        fi
 
14411
        # Put the nasty error message in config.log where it belongs
 
14412
        echo "$LUA_PKG_ERRORS" >&5
 
14413
 
 
14414
        as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
 
14415
 
 
14416
$LUA_PKG_ERRORS
 
14417
 
 
14418
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
14419
installed software in a non-standard prefix.
 
14420
 
 
14421
Alternatively, you may set the environment variables LUA_CFLAGS
 
14422
and LUA_LIBS to avoid the need to call pkg-config.
 
14423
See the pkg-config man page for more details.
 
14424
" "$LINENO" 5
 
14425
elif test $pkg_failed = untried; then
 
14426
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
14427
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
14428
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
14429
is in your PATH or set the PKG_CONFIG environment variable to the full
 
14430
path to pkg-config.
 
14431
 
 
14432
Alternatively, you may set the environment variables LUA_CFLAGS
 
14433
and LUA_LIBS to avoid the need to call pkg-config.
 
14434
See the pkg-config man page for more details.
 
14435
 
 
14436
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
14437
See \`config.log' for more details." "$LINENO" 5; }
 
14438
else
 
14439
        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
 
14440
        LUA_LIBS=$pkg_cv_LUA_LIBS
 
14441
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14442
$as_echo "yes" >&6; }
 
14443
 
 
14444
 
 
14445
$as_echo "#define HAVE_LUA 1" >>confdefs.h
 
14446
 
 
14447
 
 
14448
$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
 
14449
 
 
14450
 
 
14451
fi
 
14452
 
 
14453
elif test $pkg_failed = untried; then
 
14454
 
 
14455
 
 
14456
pkg_failed=no
 
14457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
 
14458
$as_echo_n "checking for LUA... " >&6; }
 
14459
 
 
14460
if test -n "$PKG_CONFIG"; then
 
14461
    if test -n "$LUA_CFLAGS"; then
 
14462
        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
 
14463
    else
 
14464
        if test -n "$PKG_CONFIG" && \
 
14465
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
14466
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
14467
  ac_status=$?
 
14468
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14469
  test $ac_status = 0; }; then
 
14470
  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
 
14471
else
 
14472
  pkg_failed=yes
 
14473
fi
 
14474
    fi
 
14475
else
 
14476
        pkg_failed=untried
 
14477
fi
 
14478
if test -n "$PKG_CONFIG"; then
 
14479
    if test -n "$LUA_LIBS"; then
 
14480
        pkg_cv_LUA_LIBS="$LUA_LIBS"
 
14481
    else
 
14482
        if test -n "$PKG_CONFIG" && \
 
14483
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
 
14484
  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
 
14485
  ac_status=$?
 
14486
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14487
  test $ac_status = 0; }; then
 
14488
  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
 
14489
else
 
14490
  pkg_failed=yes
 
14491
fi
 
14492
    fi
 
14493
else
 
14494
        pkg_failed=untried
 
14495
fi
 
14496
 
 
14497
 
 
14498
 
 
14499
if test $pkg_failed = yes; then
 
14500
 
 
14501
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
14502
        _pkg_short_errors_supported=yes
 
14503
else
 
14504
        _pkg_short_errors_supported=no
 
14505
fi
 
14506
        if test $_pkg_short_errors_supported = yes; then
 
14507
                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
 
14508
        else
 
14509
                LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
 
14510
        fi
 
14511
        # Put the nasty error message in config.log where it belongs
 
14512
        echo "$LUA_PKG_ERRORS" >&5
 
14513
 
 
14514
        as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
 
14515
 
 
14516
$LUA_PKG_ERRORS
 
14517
 
 
14518
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
14519
installed software in a non-standard prefix.
 
14520
 
 
14521
Alternatively, you may set the environment variables LUA_CFLAGS
 
14522
and LUA_LIBS to avoid the need to call pkg-config.
 
14523
See the pkg-config man page for more details.
 
14524
" "$LINENO" 5
 
14525
elif test $pkg_failed = untried; then
 
14526
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
14527
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
14528
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
 
14529
is in your PATH or set the PKG_CONFIG environment variable to the full
 
14530
path to pkg-config.
 
14531
 
 
14532
Alternatively, you may set the environment variables LUA_CFLAGS
 
14533
and LUA_LIBS to avoid the need to call pkg-config.
 
14534
See the pkg-config man page for more details.
 
14535
 
 
14536
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
14537
See \`config.log' for more details." "$LINENO" 5; }
 
14538
else
 
14539
        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
 
14540
        LUA_LIBS=$pkg_cv_LUA_LIBS
 
14541
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14542
$as_echo "yes" >&6; }
 
14543
 
 
14544
 
 
14545
$as_echo "#define HAVE_LUA 1" >>confdefs.h
 
14546
 
 
14547
 
 
14548
$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
 
14549
 
 
14550
 
 
14551
fi
 
14552
 
 
14553
else
 
14554
        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
 
14555
        LUA_LIBS=$pkg_cv_LUA_LIBS
 
14556
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14557
$as_echo "yes" >&6; }
 
14558
 
 
14559
 
 
14560
$as_echo "#define HAVE_LUA 1" >>confdefs.h
 
14561
 
 
14562
 
 
14563
$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
 
14564
 
 
14565
 
 
14566
fi
 
14567
 
 
14568
else
 
14569
        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
 
14570
        LUA_LIBS=$pkg_cv_LUA_LIBS
 
14571
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14572
$as_echo "yes" >&6; }
 
14573
 
 
14574
 
 
14575
$as_echo "#define HAVE_LUA 1" >>confdefs.h
 
14576
 
 
14577
 
 
14578
$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
 
14579
 
 
14580
 
 
14581
fi
 
14582
 
 
14583
 
 
14584
 
 
14585
fi
 
14586
 
 
14587
save_LIBS=$LIBS
 
14588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
 
14589
$as_echo_n "checking for library containing crypt... " >&6; }
 
14590
if test "${ac_cv_search_crypt+set}" = set; then :
 
14591
  $as_echo_n "(cached) " >&6
 
14592
else
 
14593
  ac_func_search_save_LIBS=$LIBS
 
14594
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14595
/* end confdefs.h.  */
 
14596
 
 
14597
/* Override any GCC internal prototype to avoid an error.
 
14598
   Use char because int might match the return type of a GCC
 
14599
   builtin and then its argument prototype would still apply.  */
 
14600
#ifdef __cplusplus
 
14601
extern "C"
 
14602
#endif
 
14603
char crypt ();
 
14604
int
 
14605
main ()
 
14606
{
 
14607
return crypt ();
 
14608
  ;
 
14609
  return 0;
 
14610
}
 
14611
_ACEOF
 
14612
for ac_lib in '' crypt; do
 
14613
  if test -z "$ac_lib"; then
 
14614
    ac_res="none required"
 
14615
  else
 
14616
    ac_res=-l$ac_lib
 
14617
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
14618
  fi
 
14619
  if ac_fn_c_try_link "$LINENO"; then :
 
14620
  ac_cv_search_crypt=$ac_res
 
14621
fi
 
14622
rm -f core conftest.err conftest.$ac_objext \
 
14623
    conftest$ac_exeext
 
14624
  if test "${ac_cv_search_crypt+set}" = set; then :
 
14625
  break
 
14626
fi
 
14627
done
 
14628
if test "${ac_cv_search_crypt+set}" = set; then :
 
14629
 
 
14630
else
 
14631
  ac_cv_search_crypt=no
 
14632
fi
 
14633
rm conftest.$ac_ext
 
14634
LIBS=$ac_func_search_save_LIBS
 
14635
fi
 
14636
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
 
14637
$as_echo "$ac_cv_search_crypt" >&6; }
 
14638
ac_res=$ac_cv_search_crypt
 
14639
if test "$ac_res" != no; then :
 
14640
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
14641
 
 
14642
  for ac_header in crypt.h
 
14643
do :
 
14644
  ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
 
14645
if test "x$ac_cv_header_crypt_h" = x""yes; then :
 
14646
  cat >>confdefs.h <<_ACEOF
 
14647
#define HAVE_CRYPT_H 1
 
14648
_ACEOF
 
14649
 
 
14650
    $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
 
14651
 
 
14652
 
 
14653
fi
 
14654
 
 
14655
done
 
14656
 
 
14657
 
 
14658
 
 
14659
$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h
 
14660
 
 
14661
  if test "$ac_cv_search_crypt" != no; then
 
14662
    test "$ac_cv_search_crypt" = "none required" || CRYPT_LIB="$ac_cv_search_crypt"
 
14663
  fi
 
14664
 
 
14665
fi
 
14666
 
 
14667
LIBS=$save_LIBS
 
14668
 
 
14669
 
 
14670
save_LIBS=$LIBS
 
14671
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfilev" >&5
 
14672
$as_echo_n "checking for library containing sendfilev... " >&6; }
 
14673
if test "${ac_cv_search_sendfilev+set}" = set; then :
 
14674
  $as_echo_n "(cached) " >&6
 
14675
else
 
14676
  ac_func_search_save_LIBS=$LIBS
 
14677
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14678
/* end confdefs.h.  */
 
14679
 
 
14680
/* Override any GCC internal prototype to avoid an error.
 
14681
   Use char because int might match the return type of a GCC
 
14682
   builtin and then its argument prototype would still apply.  */
 
14683
#ifdef __cplusplus
 
14684
extern "C"
 
14685
#endif
 
14686
char sendfilev ();
 
14687
int
 
14688
main ()
 
14689
{
 
14690
return sendfilev ();
 
14691
  ;
 
14692
  return 0;
 
14693
}
 
14694
_ACEOF
 
14695
for ac_lib in '' sendfile; do
 
14696
  if test -z "$ac_lib"; then
 
14697
    ac_res="none required"
 
14698
  else
 
14699
    ac_res=-l$ac_lib
 
14700
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
14701
  fi
 
14702
  if ac_fn_c_try_link "$LINENO"; then :
 
14703
  ac_cv_search_sendfilev=$ac_res
 
14704
fi
 
14705
rm -f core conftest.err conftest.$ac_objext \
 
14706
    conftest$ac_exeext
 
14707
  if test "${ac_cv_search_sendfilev+set}" = set; then :
 
14708
  break
 
14709
fi
 
14710
done
 
14711
if test "${ac_cv_search_sendfilev+set}" = set; then :
 
14712
 
 
14713
else
 
14714
  ac_cv_search_sendfilev=no
 
14715
fi
 
14716
rm conftest.$ac_ext
 
14717
LIBS=$ac_func_search_save_LIBS
 
14718
fi
 
14719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfilev" >&5
 
14720
$as_echo "$ac_cv_search_sendfilev" >&6; }
 
14721
ac_res=$ac_cv_search_sendfilev
 
14722
if test "$ac_res" != no; then :
 
14723
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
14724
 
 
14725
  if test "$ac_cv_search_sendfilev" != no; then
 
14726
    test "$ac_cv_search_sendfilev" = "none required" || SENDFILE_LIB="$ac_cv_search_sendfilev"
 
14727
 
 
14728
$as_echo "#define HAVE_SENDFILEV 1" >>confdefs.h
 
14729
 
 
14730
  fi
 
14731
 
 
14732
fi
 
14733
 
 
14734
LIBS=$save_LIBS
 
14735
 
 
14736
 
 
14737
case $host_os in
 
14738
        *mingw* ) LIBS="$LIBS -lwsock32";;
 
14739
        * ) ;;
 
14740
esac
 
14741
 
 
14742
for ac_func in dup2 getcwd inet_ntoa inet_ntop memset mmap munmap strchr \
 
14743
                  strdup strerror strstr strtol sendfile  getopt socket lstat \
 
14744
                  gethostbyname poll sigtimedwait epoll_ctl getrlimit chroot \
 
14745
                  getuid select signal pathconf madvise posix_fadvise posix_madvise \
 
14746
                  writev sigaction sendfile64 send_file kqueue port_create localtime_r gmtime_r
 
14747
do :
 
14748
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14749
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
14750
eval as_val=\$$as_ac_var
 
14751
   if test "x$as_val" = x""yes; then :
 
14752
  cat >>confdefs.h <<_ACEOF
 
14753
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14754
_ACEOF
 
14755
 
 
14756
fi
 
14757
done
 
14758
 
 
14759
 
 
14760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Large File System support" >&5
 
14761
$as_echo_n "checking for Large File System support... " >&6; }
 
14762
# Check whether --enable-lfs was given.
 
14763
if test "${enable_lfs+set}" = set; then :
 
14764
  enableval=$enable_lfs; case "${enableval}" in
 
14765
   yes) CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES" ;;
 
14766
    no) ;;
 
14767
     *) as_fn_error "bad value ${enableval} for --enable-lfs" "$LINENO" 5 ;;
 
14768
  esac
 
14769
else
 
14770
  CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES"
 
14771
         enable_lfs=yes
 
14772
fi
 
14773
 
 
14774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
 
14775
$as_echo "$enableval" >&6; }
 
14776
 
 
14777
# The cast to long int works around a bug in the HP C Compiler
 
14778
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
14779
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
14780
# This bug is HP SR number 8606223364.
 
14781
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
 
14782
$as_echo_n "checking size of long... " >&6; }
 
14783
if test "${ac_cv_sizeof_long+set}" = set; then :
 
14784
  $as_echo_n "(cached) " >&6
 
14785
else
 
14786
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
 
14787
 
 
14788
else
 
14789
  if test "$ac_cv_type_long" = yes; then
 
14790
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
14791
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
14792
{ as_fn_set_status 77
 
14793
as_fn_error "cannot compute sizeof (long)
 
14794
See \`config.log' for more details." "$LINENO" 5; }; }
 
14795
   else
 
14796
     ac_cv_sizeof_long=0
 
14797
   fi
 
14798
fi
 
14799
 
 
14800
fi
 
14801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
 
14802
$as_echo "$ac_cv_sizeof_long" >&6; }
 
14803
 
 
14804
 
 
14805
 
 
14806
cat >>confdefs.h <<_ACEOF
 
14807
#define SIZEOF_LONG $ac_cv_sizeof_long
 
14808
_ACEOF
 
14809
 
 
14810
 
 
14811
# The cast to long int works around a bug in the HP C Compiler
 
14812
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
14813
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
14814
# This bug is HP SR number 8606223364.
 
14815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
 
14816
$as_echo_n "checking size of off_t... " >&6; }
 
14817
if test "${ac_cv_sizeof_off_t+set}" = set; then :
 
14818
  $as_echo_n "(cached) " >&6
 
14819
else
 
14820
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
 
14821
 
 
14822
else
 
14823
  if test "$ac_cv_type_off_t" = yes; then
 
14824
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
14825
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
14826
{ as_fn_set_status 77
 
14827
as_fn_error "cannot compute sizeof (off_t)
 
14828
See \`config.log' for more details." "$LINENO" 5; }; }
 
14829
   else
 
14830
     ac_cv_sizeof_off_t=0
 
14831
   fi
 
14832
fi
 
14833
 
 
14834
fi
 
14835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
 
14836
$as_echo "$ac_cv_sizeof_off_t" >&6; }
 
14837
 
 
14838
 
 
14839
 
 
14840
cat >>confdefs.h <<_ACEOF
 
14841
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
 
14842
_ACEOF
 
14843
 
 
14844
 
 
14845
 
 
14846
if test "x$ac_cv_func_sendfile" = xyes; then
 
14847
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sendfile works" >&5
 
14848
$as_echo_n "checking if sendfile works... " >&6; }
 
14849
        if test "x$cross_compiling" = xno; then
 
14850
        if test "$cross_compiling" = yes; then :
 
14851
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
14852
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
14853
as_fn_error "cannot run test program while cross compiling
 
14854
See \`config.log' for more details." "$LINENO" 5; }
 
14855
else
 
14856
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14857
/* end confdefs.h.  */
 
14858
 
 
14859
                    #ifdef HAVE_SYS_SENDFILE_H
 
14860
                    #include <sys/sendfile.h>
 
14861
                    #endif /* HAVE_SYS_SENDFILE_H */
 
14862
                    #include <errno.h>
 
14863
                    int main() {
 
14864
                      int o = 0;
 
14865
                      if (-1 == sendfile(-1, 0, &o, 0) && errno == ENOSYS) return -1;
 
14866
                      return 0;
 
14867
                    }
 
14868
_ACEOF
 
14869
if ac_fn_c_try_run "$LINENO"; then :
 
14870
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14871
$as_echo "yes" >&6; }
 
14872
else
 
14873
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14874
$as_echo "no" >&6; }
 
14875
 
 
14876
$as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
 
14877
 
 
14878
fi
 
14879
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14880
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14881
fi
 
14882
 
 
14883
        else
 
14884
              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14885
$as_echo "no" >&6; }
 
14886
 
 
14887
$as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
 
14888
 
 
14889
        fi
 
14890
fi
 
14891
 
 
14892
 
 
14893
# Check whether --enable-ipv6 was given.
 
14894
if test "${enable_ipv6+set}" = set; then :
 
14895
  enableval=$enable_ipv6; case "${enableval}" in
 
14896
   yes) ipv6=true ;;
 
14897
    no) ipv6=false ;;
 
14898
     *) as_fn_error "bad value ${enableval} for --enable-ipv6" "$LINENO" 5 ;;
 
14899
  esac
 
14900
else
 
14901
  ipv6=true
 
14902
fi
 
14903
 
 
14904
 
 
14905
if test x$ipv6 = xtrue; then
 
14906
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
 
14907
$as_echo_n "checking for IPv6 support... " >&6; }
 
14908
if test "${ac_cv_ipv6_support+set}" = set; then :
 
14909
  $as_echo_n "(cached) " >&6
 
14910
else
 
14911
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14912
/* end confdefs.h.  */
 
14913
 #include <sys/types.h>
 
14914
#include <sys/socket.h>
 
14915
#include <netinet/in.h>
 
14916
int
 
14917
main ()
 
14918
{
 
14919
struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
 
14920
  ;
 
14921
  return 0;
 
14922
}
 
14923
_ACEOF
 
14924
if ac_fn_c_try_link "$LINENO"; then :
 
14925
  ac_cv_ipv6_support=yes
 
14926
else
 
14927
  ac_cv_ipv6_support=no
 
14928
fi
 
14929
rm -f core conftest.err conftest.$ac_objext \
 
14930
    conftest$ac_exeext conftest.$ac_ext
 
14931
fi
 
14932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5
 
14933
$as_echo "$ac_cv_ipv6_support" >&6; }
 
14934
 
 
14935
  if test "$ac_cv_ipv6_support" = yes; then
 
14936
 
 
14937
$as_echo "#define HAVE_IPV6 1" >>confdefs.h
 
14938
 
 
14939
  fi
 
14940
fi
 
14941
 
 
14942
 
 
14943
 if test "x$cross_compiling" = xyes; then
 
14944
  CROSS_COMPILING_TRUE=
 
14945
  CROSS_COMPILING_FALSE='#'
 
14946
else
 
14947
  CROSS_COMPILING_TRUE='#'
 
14948
  CROSS_COMPILING_FALSE=
 
14949
fi
 
14950
 
 
14951
 
 
14952
fastcgi_found=no
 
14953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCGI_Accept in -lfcgi" >&5
 
14954
$as_echo_n "checking for FCGI_Accept in -lfcgi... " >&6; }
 
14955
if test "${ac_cv_lib_fcgi_FCGI_Accept+set}" = set; then :
 
14956
  $as_echo_n "(cached) " >&6
 
14957
else
 
14958
  ac_check_lib_save_LIBS=$LIBS
 
14959
LIBS="-lfcgi  $LIBS"
 
14960
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14961
/* end confdefs.h.  */
 
14962
 
 
14963
/* Override any GCC internal prototype to avoid an error.
 
14964
   Use char because int might match the return type of a GCC
 
14965
   builtin and then its argument prototype would still apply.  */
 
14966
#ifdef __cplusplus
 
14967
extern "C"
 
14968
#endif
 
14969
char FCGI_Accept ();
 
14970
int
 
14971
main ()
 
14972
{
 
14973
return FCGI_Accept ();
 
14974
  ;
 
14975
  return 0;
 
14976
}
 
14977
_ACEOF
 
14978
if ac_fn_c_try_link "$LINENO"; then :
 
14979
  ac_cv_lib_fcgi_FCGI_Accept=yes
 
14980
else
 
14981
  ac_cv_lib_fcgi_FCGI_Accept=no
 
14982
fi
 
14983
rm -f core conftest.err conftest.$ac_objext \
 
14984
    conftest$ac_exeext conftest.$ac_ext
 
14985
LIBS=$ac_check_lib_save_LIBS
 
14986
fi
 
14987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcgi_FCGI_Accept" >&5
 
14988
$as_echo "$ac_cv_lib_fcgi_FCGI_Accept" >&6; }
 
14989
if test "x$ac_cv_lib_fcgi_FCGI_Accept" = x""yes; then :
 
14990
 
 
14991
 for ac_header in fastcgi.h fastcgi/fastcgi.h
 
14992
do :
 
14993
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
14994
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
14995
eval as_val=\$$as_ac_Header
 
14996
   if test "x$as_val" = x""yes; then :
 
14997
  cat >>confdefs.h <<_ACEOF
 
14998
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
14999
_ACEOF
 
15000
 
 
15001
   fastcgi_found=yes
 
15002
 
 
15003
fi
 
15004
 
 
15005
done
 
15006
 
 
15007
 
 
15008
fi
 
15009
 
 
15010
 
 
15011
 if test "x$fastcgi_found" = xyes; then
 
15012
  CHECK_WITH_FASTCGI_TRUE=
 
15013
  CHECK_WITH_FASTCGI_FALSE='#'
 
15014
else
 
15015
  CHECK_WITH_FASTCGI_TRUE='#'
 
15016
  CHECK_WITH_FASTCGI_FALSE=
 
15017
fi
 
15018
 
 
15019
 
 
15020
 
 
15021
if test "${GCC}" = "yes"; then
 
15022
    CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic -std=gnu99"
 
15023
fi
 
15024
 
 
15025
# Check whether --enable-extra-warnings was given.
 
15026
if test "${enable_extra_warnings+set}" = set; then :
 
15027
  enableval=$enable_extra_warnings; case "${enableval}" in
 
15028
   yes) extrawarnings=true ;;
 
15029
    no) extrawarnings=false ;;
 
15030
     *) as_fn_error "bad value ${enableval} for --enable-extra-warnings" "$LINENO" 5 ;;
 
15031
  esac
 
15032
else
 
15033
  extrawarnings=false
 
15034
fi
 
15035
 
 
15036
 
 
15037
if test x$extrawarnings = xtrue; then
 
15038
    CFLAGS="${CFLAGS} -g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wno-pointer-sign -Wcast-align -Winline -Wsign-compare -Wnested-externs -Wpointer-arith -Wl,--as-needed -Wformat-security"
 
15039
fi
 
15040
 
 
15041
LIGHTTPD_VERSION_ID=`echo $PACKAGE_VERSION | $AWK -F '.' '{print "(" $1 " << 16 | " $2 " << 8 | " $3 ")"}'`
 
15042
 
 
15043
cat >>confdefs.h <<_ACEOF
 
15044
#define LIGHTTPD_VERSION_ID $LIGHTTPD_VERSION_ID
 
15045
_ACEOF
 
15046
 
 
15047
 
 
15048
ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile tests/Makefile tests/docroot/Makefile tests/docroot/123/Makefile tests/docroot/www/Makefile tests/docroot/www/go/Makefile tests/docroot/www/indexfile/Makefile tests/docroot/www/expire/Makefile distribute.sh"
 
15049
 
 
15050
cat >confcache <<\_ACEOF
 
15051
# This file is a shell script that caches the results of configure
 
15052
# tests run on this system so they can be shared between configure
 
15053
# scripts and configure runs, see configure's option --config-cache.
 
15054
# It is not useful on other systems.  If it contains results you don't
 
15055
# want to keep, you may remove or edit it.
 
15056
#
 
15057
# config.status only pays attention to the cache file if you give it
 
15058
# the --recheck option to rerun configure.
 
15059
#
 
15060
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
15061
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
15062
# following values.
 
15063
 
 
15064
_ACEOF
 
15065
 
 
15066
# The following way of writing the cache mishandles newlines in values,
 
15067
# but we know of no workaround that is simple, portable, and efficient.
 
15068
# So, we kill variables containing newlines.
 
15069
# Ultrix sh set writes to stderr and can't be redirected directly,
 
15070
# and sets the high bit in the cache file unless we assign to the vars.
 
15071
(
 
15072
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
15073
    eval ac_val=\$$ac_var
 
15074
    case $ac_val in #(
 
15075
    *${as_nl}*)
 
15076
      case $ac_var in #(
 
15077
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
15078
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
15079
      esac
 
15080
      case $ac_var in #(
 
15081
      _ | IFS | as_nl) ;; #(
 
15082
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
15083
      *) { eval $ac_var=; unset $ac_var;} ;;
 
15084
      esac ;;
 
15085
    esac
 
15086
  done
 
15087
 
 
15088
  (set) 2>&1 |
 
15089
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
15090
    *${as_nl}ac_space=\ *)
 
15091
      # `set' does not quote correctly, so add quotes: double-quote
 
15092
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
15093
      sed -n \
 
15094
        "s/'/'\\\\''/g;
 
15095
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
15096
      ;; #(
 
15097
    *)
 
15098
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
15099
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
15100
      ;;
 
15101
    esac |
 
15102
    sort
 
15103
) |
 
15104
  sed '
 
15105
     /^ac_cv_env_/b end
 
15106
     t clear
 
15107
     :clear
 
15108
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
15109
     t end
 
15110
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
15111
     :end' >>confcache
 
15112
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
15113
  if test -w "$cache_file"; then
 
15114
    test "x$cache_file" != "x/dev/null" &&
 
15115
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
15116
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
15117
    cat confcache >$cache_file
 
15118
  else
 
15119
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
15120
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
15121
  fi
 
15122
fi
 
15123
rm -f confcache
 
15124
 
 
15125
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
15126
# Let make expand exec_prefix.
 
15127
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
15128
 
 
15129
DEFS=-DHAVE_CONFIG_H
 
15130
 
 
15131
ac_libobjs=
 
15132
ac_ltlibobjs=
 
15133
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
15134
  # 1. Remove the extension, and $U if already installed.
 
15135
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
15136
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
15137
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
15138
  #    will be set to the directory where LIBOBJS objects are built.
 
15139
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
15140
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
15141
done
 
15142
LIBOBJS=$ac_libobjs
 
15143
 
 
15144
LTLIBOBJS=$ac_ltlibobjs
 
15145
 
 
15146
 
 
15147
 if test -n "$EXEEXT"; then
 
15148
  am__EXEEXT_TRUE=
 
15149
  am__EXEEXT_FALSE='#'
 
15150
else
 
15151
  am__EXEEXT_TRUE='#'
 
15152
  am__EXEEXT_FALSE=
 
15153
fi
 
15154
 
 
15155
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
15156
  as_fn_error "conditional \"AMDEP\" was never defined.
 
15157
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15158
fi
 
15159
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
15160
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
15161
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15162
fi
 
15163
if test -z "${NO_RDYNAMIC_TRUE}" && test -z "${NO_RDYNAMIC_FALSE}"; then
 
15164
  as_fn_error "conditional \"NO_RDYNAMIC\" was never defined.
 
15165
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15166
fi
 
15167
if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
 
15168
  as_fn_error "conditional \"CROSS_COMPILING\" was never defined.
 
15169
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15170
fi
 
15171
if test -z "${CHECK_WITH_FASTCGI_TRUE}" && test -z "${CHECK_WITH_FASTCGI_FALSE}"; then
 
15172
  as_fn_error "conditional \"CHECK_WITH_FASTCGI\" was never defined.
 
15173
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
15174
fi
 
15175
 
 
15176
: ${CONFIG_STATUS=./config.status}
 
15177
ac_write_fail=0
 
15178
ac_clean_files_save=$ac_clean_files
 
15179
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
15180
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
15181
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
15182
as_write_fail=0
 
15183
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
15184
#! $SHELL
 
15185
# Generated by $as_me.
 
15186
# Run this file to recreate the current configuration.
 
15187
# Compiler output produced by configure, useful for debugging
 
15188
# configure, is in config.log if it exists.
 
15189
 
 
15190
debug=false
 
15191
ac_cs_recheck=false
 
15192
ac_cs_silent=false
 
15193
 
 
15194
SHELL=\${CONFIG_SHELL-$SHELL}
 
15195
export SHELL
 
15196
_ASEOF
 
15197
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
15198
## -------------------- ##
 
15199
## M4sh Initialization. ##
 
15200
## -------------------- ##
 
15201
 
 
15202
# Be more Bourne compatible
 
15203
DUALCASE=1; export DUALCASE # for MKS sh
 
15204
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
15205
  emulate sh
 
15206
  NULLCMD=:
 
15207
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
15208
  # is contrary to our usage.  Disable this feature.
 
15209
  alias -g '${1+"$@"}'='"$@"'
 
15210
  setopt NO_GLOB_SUBST
 
15211
else
 
15212
  case `(set -o) 2>/dev/null` in #(
 
15213
  *posix*) :
 
15214
    set -o posix ;; #(
 
15215
  *) :
 
15216
     ;;
 
15217
esac
 
15218
fi
 
15219
 
 
15220
 
 
15221
as_nl='
 
15222
'
 
15223
export as_nl
 
15224
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
15225
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
15226
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
15227
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
15228
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
15229
# but without wasting forks for bash or zsh.
 
15230
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
15231
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
15232
  as_echo='print -r --'
 
15233
  as_echo_n='print -rn --'
 
15234
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
15235
  as_echo='printf %s\n'
 
15236
  as_echo_n='printf %s'
 
15237
else
 
15238
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
15239
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
15240
    as_echo_n='/usr/ucb/echo -n'
 
15241
  else
 
15242
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
15243
    as_echo_n_body='eval
 
15244
      arg=$1;
 
15245
      case $arg in #(
 
15246
      *"$as_nl"*)
 
15247
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
15248
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
15249
      esac;
 
15250
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
15251
    '
 
15252
    export as_echo_n_body
 
15253
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
15254
  fi
 
15255
  export as_echo_body
 
15256
  as_echo='sh -c $as_echo_body as_echo'
 
15257
fi
 
15258
 
 
15259
# The user is always right.
 
15260
if test "${PATH_SEPARATOR+set}" != set; then
 
15261
  PATH_SEPARATOR=:
 
15262
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
15263
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
15264
      PATH_SEPARATOR=';'
 
15265
  }
 
15266
fi
 
15267
 
 
15268
 
 
15269
# IFS
 
15270
# We need space, tab and new line, in precisely that order.  Quoting is
 
15271
# there to prevent editors from complaining about space-tab.
 
15272
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
15273
# splitting by setting IFS to empty value.)
 
15274
IFS=" ""        $as_nl"
 
15275
 
 
15276
# Find who we are.  Look in the path if we contain no directory separator.
 
15277
case $0 in #((
 
15278
  *[\\/]* ) as_myself=$0 ;;
 
15279
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15280
for as_dir in $PATH
 
15281
do
 
15282
  IFS=$as_save_IFS
 
15283
  test -z "$as_dir" && as_dir=.
 
15284
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
15285
  done
 
15286
IFS=$as_save_IFS
 
15287
 
 
15288
     ;;
 
15289
esac
 
15290
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
15291
# in which case we are not to be found in the path.
 
15292
if test "x$as_myself" = x; then
 
15293
  as_myself=$0
 
15294
fi
 
15295
if test ! -f "$as_myself"; then
 
15296
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
15297
  exit 1
 
15298
fi
 
15299
 
 
15300
# Unset variables that we do not need and which cause bugs (e.g. in
 
15301
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
15302
# suppresses any "Segmentation fault" message there.  '((' could
 
15303
# trigger a bug in pdksh 5.2.14.
 
15304
for as_var in BASH_ENV ENV MAIL MAILPATH
 
15305
do eval test x\${$as_var+set} = xset \
 
15306
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
15307
done
 
15308
PS1='$ '
 
15309
PS2='> '
 
15310
PS4='+ '
 
15311
 
 
15312
# NLS nuisances.
 
15313
LC_ALL=C
 
15314
export LC_ALL
 
15315
LANGUAGE=C
 
15316
export LANGUAGE
 
15317
 
 
15318
# CDPATH.
 
15319
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
15320
 
 
15321
 
 
15322
# as_fn_error ERROR [LINENO LOG_FD]
 
15323
# ---------------------------------
 
15324
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
15325
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
15326
# script with status $?, using 1 if that was 0.
 
15327
as_fn_error ()
 
15328
{
 
15329
  as_status=$?; test $as_status -eq 0 && as_status=1
 
15330
  if test "$3"; then
 
15331
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
15332
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
15333
  fi
 
15334
  $as_echo "$as_me: error: $1" >&2
 
15335
  as_fn_exit $as_status
 
15336
} # as_fn_error
 
15337
 
 
15338
 
 
15339
# as_fn_set_status STATUS
 
15340
# -----------------------
 
15341
# Set $? to STATUS, without forking.
 
15342
as_fn_set_status ()
 
15343
{
 
15344
  return $1
 
15345
} # as_fn_set_status
 
15346
 
 
15347
# as_fn_exit STATUS
 
15348
# -----------------
 
15349
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
15350
as_fn_exit ()
 
15351
{
 
15352
  set +e
 
15353
  as_fn_set_status $1
 
15354
  exit $1
 
15355
} # as_fn_exit
 
15356
 
 
15357
# as_fn_unset VAR
 
15358
# ---------------
 
15359
# Portably unset VAR.
 
15360
as_fn_unset ()
 
15361
{
 
15362
  { eval $1=; unset $1;}
 
15363
}
 
15364
as_unset=as_fn_unset
 
15365
# as_fn_append VAR VALUE
 
15366
# ----------------------
 
15367
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
15368
# advantage of any shell optimizations that allow amortized linear growth over
 
15369
# repeated appends, instead of the typical quadratic growth present in naive
 
15370
# implementations.
 
15371
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
15372
  eval 'as_fn_append ()
 
15373
  {
 
15374
    eval $1+=\$2
 
15375
  }'
 
15376
else
 
15377
  as_fn_append ()
 
15378
  {
 
15379
    eval $1=\$$1\$2
 
15380
  }
 
15381
fi # as_fn_append
 
15382
 
 
15383
# as_fn_arith ARG...
 
15384
# ------------------
 
15385
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
15386
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
15387
# must be portable across $(()) and expr.
 
15388
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
15389
  eval 'as_fn_arith ()
 
15390
  {
 
15391
    as_val=$(( $* ))
 
15392
  }'
 
15393
else
 
15394
  as_fn_arith ()
 
15395
  {
 
15396
    as_val=`expr "$@" || test $? -eq 1`
 
15397
  }
 
15398
fi # as_fn_arith
 
15399
 
 
15400
 
 
15401
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
15402
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
15403
  as_expr=expr
 
15404
else
 
15405
  as_expr=false
 
15406
fi
 
15407
 
 
15408
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
15409
  as_basename=basename
 
15410
else
 
15411
  as_basename=false
 
15412
fi
 
15413
 
 
15414
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
15415
  as_dirname=dirname
 
15416
else
 
15417
  as_dirname=false
 
15418
fi
 
15419
 
 
15420
as_me=`$as_basename -- "$0" ||
 
15421
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
15422
         X"$0" : 'X\(//\)$' \| \
 
15423
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
15424
$as_echo X/"$0" |
 
15425
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
15426
            s//\1/
 
15427
            q
 
15428
          }
 
15429
          /^X\/\(\/\/\)$/{
 
15430
            s//\1/
 
15431
            q
 
15432
          }
 
15433
          /^X\/\(\/\).*/{
 
15434
            s//\1/
 
15435
            q
 
15436
          }
 
15437
          s/.*/./; q'`
 
15438
 
 
15439
# Avoid depending upon Character Ranges.
 
15440
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
15441
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
15442
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
15443
as_cr_digits='0123456789'
 
15444
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
15445
 
 
15446
ECHO_C= ECHO_N= ECHO_T=
 
15447
case `echo -n x` in #(((((
 
15448
-n*)
 
15449
  case `echo 'xy\c'` in
 
15450
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
15451
  xy)  ECHO_C='\c';;
 
15452
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
15453
       ECHO_T=' ';;
 
15454
  esac;;
 
15455
*)
 
15456
  ECHO_N='-n';;
 
15457
esac
 
15458
 
 
15459
rm -f conf$$ conf$$.exe conf$$.file
 
15460
if test -d conf$$.dir; then
 
15461
  rm -f conf$$.dir/conf$$.file
 
15462
else
 
15463
  rm -f conf$$.dir
 
15464
  mkdir conf$$.dir 2>/dev/null
 
15465
fi
 
15466
if (echo >conf$$.file) 2>/dev/null; then
 
15467
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
15468
    as_ln_s='ln -s'
 
15469
    # ... but there are two gotchas:
 
15470
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
15471
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
15472
    # In both cases, we have to default to `cp -p'.
 
15473
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
15474
      as_ln_s='cp -p'
 
15475
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
15476
    as_ln_s=ln
 
15477
  else
 
15478
    as_ln_s='cp -p'
 
15479
  fi
 
15480
else
 
15481
  as_ln_s='cp -p'
 
15482
fi
 
15483
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
15484
rmdir conf$$.dir 2>/dev/null
 
15485
 
 
15486
 
 
15487
# as_fn_mkdir_p
 
15488
# -------------
 
15489
# Create "$as_dir" as a directory, including parents if necessary.
 
15490
as_fn_mkdir_p ()
 
15491
{
 
15492
 
 
15493
  case $as_dir in #(
 
15494
  -*) as_dir=./$as_dir;;
 
15495
  esac
 
15496
  test -d "$as_dir" || eval $as_mkdir_p || {
 
15497
    as_dirs=
 
15498
    while :; do
 
15499
      case $as_dir in #(
 
15500
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
15501
      *) as_qdir=$as_dir;;
 
15502
      esac
 
15503
      as_dirs="'$as_qdir' $as_dirs"
 
15504
      as_dir=`$as_dirname -- "$as_dir" ||
 
15505
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
15506
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
15507
         X"$as_dir" : 'X\(//\)$' \| \
 
15508
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
15509
$as_echo X"$as_dir" |
 
15510
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
15511
            s//\1/
 
15512
            q
 
15513
          }
 
15514
          /^X\(\/\/\)[^/].*/{
 
15515
            s//\1/
 
15516
            q
 
15517
          }
 
15518
          /^X\(\/\/\)$/{
 
15519
            s//\1/
 
15520
            q
 
15521
          }
 
15522
          /^X\(\/\).*/{
 
15523
            s//\1/
 
15524
            q
 
15525
          }
 
15526
          s/.*/./; q'`
 
15527
      test -d "$as_dir" && break
 
15528
    done
 
15529
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
15530
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
15531
 
 
15532
 
 
15533
} # as_fn_mkdir_p
 
15534
if mkdir -p . 2>/dev/null; then
 
15535
  as_mkdir_p='mkdir -p "$as_dir"'
 
15536
else
 
15537
  test -d ./-p && rmdir ./-p
 
15538
  as_mkdir_p=false
 
15539
fi
 
15540
 
 
15541
if test -x / >/dev/null 2>&1; then
 
15542
  as_test_x='test -x'
 
15543
else
 
15544
  if ls -dL / >/dev/null 2>&1; then
 
15545
    as_ls_L_option=L
 
15546
  else
 
15547
    as_ls_L_option=
 
15548
  fi
 
15549
  as_test_x='
 
15550
    eval sh -c '\''
 
15551
      if test -d "$1"; then
 
15552
        test -d "$1/.";
 
15553
      else
 
15554
        case $1 in #(
 
15555
        -*)set "./$1";;
 
15556
        esac;
 
15557
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
15558
        ???[sx]*):;;*)false;;esac;fi
 
15559
    '\'' sh
 
15560
  '
 
15561
fi
 
15562
as_executable_p=$as_test_x
 
15563
 
 
15564
# Sed expression to map a string onto a valid CPP name.
 
15565
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
15566
 
 
15567
# Sed expression to map a string onto a valid variable name.
 
15568
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
15569
 
 
15570
 
 
15571
exec 6>&1
 
15572
## ----------------------------------- ##
 
15573
## Main body of $CONFIG_STATUS script. ##
 
15574
## ----------------------------------- ##
 
15575
_ASEOF
 
15576
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
15577
 
 
15578
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15579
# Save the log message, to keep $0 and so on meaningful, and to
 
15580
# report actual input values of CONFIG_FILES etc. instead of their
 
15581
# values after options handling.
 
15582
ac_log="
 
15583
This file was extended by lighttpd $as_me 1.4.26, which was
 
15584
generated by GNU Autoconf 2.65.  Invocation command line was
 
15585
 
 
15586
  CONFIG_FILES    = $CONFIG_FILES
 
15587
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
15588
  CONFIG_LINKS    = $CONFIG_LINKS
 
15589
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
15590
  $ $0 $@
 
15591
 
 
15592
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
15593
"
 
15594
 
 
15595
_ACEOF
 
15596
 
 
15597
case $ac_config_files in *"
 
15598
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
15599
esac
 
15600
 
 
15601
case $ac_config_headers in *"
 
15602
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
15603
esac
 
15604
 
 
15605
 
 
15606
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15607
# Files that config.status was made for.
 
15608
config_files="$ac_config_files"
 
15609
config_headers="$ac_config_headers"
 
15610
config_commands="$ac_config_commands"
 
15611
 
 
15612
_ACEOF
 
15613
 
 
15614
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15615
ac_cs_usage="\
 
15616
\`$as_me' instantiates files and other configuration actions
 
15617
from templates according to the current configuration.  Unless the files
 
15618
and actions are specified as TAGs, all are instantiated by default.
 
15619
 
 
15620
Usage: $0 [OPTION]... [TAG]...
 
15621
 
 
15622
  -h, --help       print this help, then exit
 
15623
  -V, --version    print version number and configuration settings, then exit
 
15624
      --config     print configuration, then exit
 
15625
  -q, --quiet, --silent
 
15626
                   do not print progress messages
 
15627
  -d, --debug      don't remove temporary files
 
15628
      --recheck    update $as_me by reconfiguring in the same conditions
 
15629
      --file=FILE[:TEMPLATE]
 
15630
                   instantiate the configuration file FILE
 
15631
      --header=FILE[:TEMPLATE]
 
15632
                   instantiate the configuration header FILE
 
15633
 
 
15634
Configuration files:
 
15635
$config_files
 
15636
 
 
15637
Configuration headers:
 
15638
$config_headers
 
15639
 
 
15640
Configuration commands:
 
15641
$config_commands
 
15642
 
 
15643
Report bugs to <contact@lighttpd.net>."
 
15644
 
 
15645
_ACEOF
 
15646
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15647
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
15648
ac_cs_version="\\
 
15649
lighttpd config.status 1.4.26
 
15650
configured by $0, generated by GNU Autoconf 2.65,
 
15651
  with options \\"\$ac_cs_config\\"
 
15652
 
 
15653
Copyright (C) 2009 Free Software Foundation, Inc.
 
15654
This config.status script is free software; the Free Software Foundation
 
15655
gives unlimited permission to copy, distribute and modify it."
 
15656
 
 
15657
ac_pwd='$ac_pwd'
 
15658
srcdir='$srcdir'
 
15659
INSTALL='$INSTALL'
 
15660
MKDIR_P='$MKDIR_P'
 
15661
AWK='$AWK'
 
15662
test -n "\$AWK" || AWK=awk
 
15663
_ACEOF
 
15664
 
 
15665
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15666
# The default lists apply if the user does not specify any file.
 
15667
ac_need_defaults=:
 
15668
while test $# != 0
 
15669
do
 
15670
  case $1 in
 
15671
  --*=*)
 
15672
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
15673
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
15674
    ac_shift=:
 
15675
    ;;
 
15676
  *)
 
15677
    ac_option=$1
 
15678
    ac_optarg=$2
 
15679
    ac_shift=shift
 
15680
    ;;
 
15681
  esac
 
15682
 
 
15683
  case $ac_option in
 
15684
  # Handling of the options.
 
15685
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
15686
    ac_cs_recheck=: ;;
 
15687
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
15688
    $as_echo "$ac_cs_version"; exit ;;
 
15689
  --config | --confi | --conf | --con | --co | --c )
 
15690
    $as_echo "$ac_cs_config"; exit ;;
 
15691
  --debug | --debu | --deb | --de | --d | -d )
 
15692
    debug=: ;;
 
15693
  --file | --fil | --fi | --f )
 
15694
    $ac_shift
 
15695
    case $ac_optarg in
 
15696
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
15697
    esac
 
15698
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
15699
    ac_need_defaults=false;;
 
15700
  --header | --heade | --head | --hea )
 
15701
    $ac_shift
 
15702
    case $ac_optarg in
 
15703
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
15704
    esac
 
15705
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
15706
    ac_need_defaults=false;;
 
15707
  --he | --h)
 
15708
    # Conflict between --help and --header
 
15709
    as_fn_error "ambiguous option: \`$1'
 
15710
Try \`$0 --help' for more information.";;
 
15711
  --help | --hel | -h )
 
15712
    $as_echo "$ac_cs_usage"; exit ;;
 
15713
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
15714
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
15715
    ac_cs_silent=: ;;
 
15716
 
 
15717
  # This is an error.
 
15718
  -*) as_fn_error "unrecognized option: \`$1'
 
15719
Try \`$0 --help' for more information." ;;
 
15720
 
 
15721
  *) as_fn_append ac_config_targets " $1"
 
15722
     ac_need_defaults=false ;;
 
15723
 
 
15724
  esac
 
15725
  shift
 
15726
done
 
15727
 
 
15728
ac_configure_extra_args=
 
15729
 
 
15730
if $ac_cs_silent; then
 
15731
  exec 6>/dev/null
 
15732
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
15733
fi
 
15734
 
 
15735
_ACEOF
 
15736
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15737
if \$ac_cs_recheck; then
 
15738
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
15739
  shift
 
15740
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
15741
  CONFIG_SHELL='$SHELL'
 
15742
  export CONFIG_SHELL
 
15743
  exec "\$@"
 
15744
fi
 
15745
 
 
15746
_ACEOF
 
15747
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
15748
exec 5>>config.log
 
15749
{
 
15750
  echo
 
15751
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
15752
## Running $as_me. ##
 
15753
_ASBOX
 
15754
  $as_echo "$ac_log"
 
15755
} >&5
 
15756
 
 
15757
_ACEOF
 
15758
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
15759
#
 
15760
# INIT-COMMANDS
 
15761
#
 
15762
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
15763
 
 
15764
 
 
15765
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
15766
# if CDPATH is set.
 
15767
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
15768
 
 
15769
sed_quote_subst='$sed_quote_subst'
 
15770
double_quote_subst='$double_quote_subst'
 
15771
delay_variable_subst='$delay_variable_subst'
 
15772
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
15773
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
15774
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
15775
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
15776
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
15777
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
15778
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
15779
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
15780
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
15781
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
15782
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
15783
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
15784
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
15785
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
15786
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
15787
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
15788
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
15789
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
15790
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
15791
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
15792
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
15793
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
15794
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
15795
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
15796
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
15797
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
15798
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15799
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15800
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
15801
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
15802
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
15803
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
15804
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
15805
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
15806
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
15807
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15808
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15809
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15810
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
15811
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
15812
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
15813
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
15814
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
15815
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
15816
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
15817
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
15818
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
15819
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
15820
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
15821
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
15822
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15823
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
15824
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
15825
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
15826
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
15827
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
15828
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
15829
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
15830
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
15831
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
15832
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
15833
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
15834
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15835
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15836
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
15837
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
15838
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15839
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15840
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
15841
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15842
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15843
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15844
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15845
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15846
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15847
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
15848
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15849
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
15850
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15851
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
15852
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
15853
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
15854
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
15855
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
15856
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
15857
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
15858
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
15859
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
15860
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
15861
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
15862
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15863
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
15864
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
15865
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15866
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15867
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
15868
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
15869
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
15870
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
15871
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
15872
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
15873
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
15874
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15875
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15876
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15877
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15878
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15879
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
15880
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
15881
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
15882
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15883
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
15884
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
15885
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
15886
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
15887
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
15888
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
15889
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
15890
 
 
15891
LTCC='$LTCC'
 
15892
LTCFLAGS='$LTCFLAGS'
 
15893
compiler='$compiler_DEFAULT'
 
15894
 
 
15895
# Quote evaled strings.
 
15896
for var in SED \
 
15897
GREP \
 
15898
EGREP \
 
15899
FGREP \
 
15900
LD \
 
15901
NM \
 
15902
LN_S \
 
15903
lt_SP2NL \
 
15904
lt_NL2SP \
 
15905
reload_flag \
 
15906
OBJDUMP \
 
15907
deplibs_check_method \
 
15908
file_magic_cmd \
 
15909
AR \
 
15910
AR_FLAGS \
 
15911
STRIP \
 
15912
RANLIB \
 
15913
CC \
 
15914
CFLAGS \
 
15915
compiler \
 
15916
lt_cv_sys_global_symbol_pipe \
 
15917
lt_cv_sys_global_symbol_to_cdecl \
 
15918
lt_cv_sys_global_symbol_to_c_name_address \
 
15919
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
15920
SHELL \
 
15921
ECHO \
 
15922
lt_prog_compiler_no_builtin_flag \
 
15923
lt_prog_compiler_wl \
 
15924
lt_prog_compiler_pic \
 
15925
lt_prog_compiler_static \
 
15926
lt_cv_prog_compiler_c_o \
 
15927
need_locks \
 
15928
DSYMUTIL \
 
15929
NMEDIT \
 
15930
LIPO \
 
15931
OTOOL \
 
15932
OTOOL64 \
 
15933
shrext_cmds \
 
15934
export_dynamic_flag_spec \
 
15935
whole_archive_flag_spec \
 
15936
compiler_needs_object \
 
15937
with_gnu_ld \
 
15938
allow_undefined_flag \
 
15939
no_undefined_flag \
 
15940
hardcode_libdir_flag_spec \
 
15941
hardcode_libdir_flag_spec_ld \
 
15942
hardcode_libdir_separator \
 
15943
fix_srcfile_path \
 
15944
exclude_expsyms \
 
15945
include_expsyms \
 
15946
file_list_spec \
 
15947
variables_saved_for_relink \
 
15948
libname_spec \
 
15949
library_names_spec \
 
15950
soname_spec \
 
15951
finish_eval \
 
15952
old_striplib \
 
15953
striplib; do
 
15954
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
15955
    *[\\\\\\\`\\"\\\$]*)
 
15956
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
15957
      ;;
 
15958
    *)
 
15959
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
15960
      ;;
 
15961
    esac
 
15962
done
 
15963
 
 
15964
# Double-quote double-evaled strings.
 
15965
for var in reload_cmds \
 
15966
old_postinstall_cmds \
 
15967
old_postuninstall_cmds \
 
15968
old_archive_cmds \
 
15969
extract_expsyms_cmds \
 
15970
old_archive_from_new_cmds \
 
15971
old_archive_from_expsyms_cmds \
 
15972
archive_cmds \
 
15973
archive_expsym_cmds \
 
15974
module_cmds \
 
15975
module_expsym_cmds \
 
15976
export_symbols_cmds \
 
15977
prelink_cmds \
 
15978
postinstall_cmds \
 
15979
postuninstall_cmds \
 
15980
finish_cmds \
 
15981
sys_lib_search_path_spec \
 
15982
sys_lib_dlsearch_path_spec; do
 
15983
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
15984
    *[\\\\\\\`\\"\\\$]*)
 
15985
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
15986
      ;;
 
15987
    *)
 
15988
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
15989
      ;;
 
15990
    esac
 
15991
done
 
15992
 
 
15993
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
15994
case \$lt_ECHO in
 
15995
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
15996
  ;;
 
15997
esac
 
15998
 
 
15999
ac_aux_dir='$ac_aux_dir'
 
16000
xsi_shell='$xsi_shell'
 
16001
lt_shell_append='$lt_shell_append'
 
16002
 
 
16003
# See if we are running on zsh, and set the options which allow our
 
16004
# commands through without removal of \ escapes INIT.
 
16005
if test -n "\${ZSH_VERSION+set}" ; then
 
16006
   setopt NO_GLOB_SUBST
 
16007
fi
 
16008
 
 
16009
 
 
16010
    PACKAGE='$PACKAGE'
 
16011
    VERSION='$VERSION'
 
16012
    TIMESTAMP='$TIMESTAMP'
 
16013
    RM='$RM'
 
16014
    ofile='$ofile'
 
16015
 
 
16016
 
 
16017
 
 
16018
 
 
16019
_ACEOF
 
16020
 
 
16021
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16022
 
 
16023
# Handling of arguments.
 
16024
for ac_config_target in $ac_config_targets
 
16025
do
 
16026
  case $ac_config_target in
 
16027
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
16028
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
16029
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
16030
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
16031
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
16032
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
16033
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
16034
    "tests/docroot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/Makefile" ;;
 
16035
    "tests/docroot/123/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/123/Makefile" ;;
 
16036
    "tests/docroot/www/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/Makefile" ;;
 
16037
    "tests/docroot/www/go/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/go/Makefile" ;;
 
16038
    "tests/docroot/www/indexfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/indexfile/Makefile" ;;
 
16039
    "tests/docroot/www/expire/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/expire/Makefile" ;;
 
16040
    "distribute.sh") CONFIG_FILES="$CONFIG_FILES distribute.sh" ;;
 
16041
 
 
16042
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
16043
  esac
 
16044
done
 
16045
 
 
16046
 
 
16047
# If the user did not use the arguments to specify the items to instantiate,
 
16048
# then the envvar interface is used.  Set only those that are not.
 
16049
# We use the long form for the default assignment because of an extremely
 
16050
# bizarre bug on SunOS 4.1.3.
 
16051
if $ac_need_defaults; then
 
16052
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
16053
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
16054
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
16055
fi
 
16056
 
 
16057
# Have a temporary directory for convenience.  Make it in the build tree
 
16058
# simply because there is no reason against having it here, and in addition,
 
16059
# creating and moving files from /tmp can sometimes cause problems.
 
16060
# Hook for its removal unless debugging.
 
16061
# Note that there is a small window in which the directory will not be cleaned:
 
16062
# after its creation but before its name has been assigned to `$tmp'.
 
16063
$debug ||
 
16064
{
 
16065
  tmp=
 
16066
  trap 'exit_status=$?
 
16067
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
16068
' 0
 
16069
  trap 'as_fn_exit 1' 1 2 13 15
 
16070
}
 
16071
# Create a (secure) tmp directory for tmp files.
 
16072
 
 
16073
{
 
16074
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
16075
  test -n "$tmp" && test -d "$tmp"
 
16076
}  ||
 
16077
{
 
16078
  tmp=./conf$$-$RANDOM
 
16079
  (umask 077 && mkdir "$tmp")
 
16080
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
16081
 
 
16082
# Set up the scripts for CONFIG_FILES section.
 
16083
# No need to generate them if there are no CONFIG_FILES.
 
16084
# This happens for instance with `./config.status config.h'.
 
16085
if test -n "$CONFIG_FILES"; then
 
16086
 
 
16087
 
 
16088
ac_cr=`echo X | tr X '\015'`
 
16089
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
16090
# But we know of no other shell where ac_cr would be empty at this
 
16091
# point, so we can use a bashism as a fallback.
 
16092
if test "x$ac_cr" = x; then
 
16093
  eval ac_cr=\$\'\\r\'
 
16094
fi
 
16095
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
16096
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
16097
  ac_cs_awk_cr='\r'
 
16098
else
 
16099
  ac_cs_awk_cr=$ac_cr
 
16100
fi
 
16101
 
 
16102
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
16103
_ACEOF
 
16104
 
 
16105
 
 
16106
{
 
16107
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
16108
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
16109
  echo "_ACEOF"
 
16110
} >conf$$subs.sh ||
 
16111
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
16112
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
16113
ac_delim='%!_!# '
 
16114
for ac_last_try in false false false false false :; do
 
16115
  . ./conf$$subs.sh ||
 
16116
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
16117
 
 
16118
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
16119
  if test $ac_delim_n = $ac_delim_num; then
 
16120
    break
 
16121
  elif $ac_last_try; then
 
16122
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
16123
  else
 
16124
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
16125
  fi
 
16126
done
 
16127
rm -f conf$$subs.sh
 
16128
 
 
16129
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16130
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
16131
_ACEOF
 
16132
sed -n '
 
16133
h
 
16134
s/^/S["/; s/!.*/"]=/
 
16135
p
 
16136
g
 
16137
s/^[^!]*!//
 
16138
:repl
 
16139
t repl
 
16140
s/'"$ac_delim"'$//
 
16141
t delim
 
16142
:nl
 
16143
h
 
16144
s/\(.\{148\}\)..*/\1/
 
16145
t more1
 
16146
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
16147
p
 
16148
n
 
16149
b repl
 
16150
:more1
 
16151
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
16152
p
 
16153
g
 
16154
s/.\{148\}//
 
16155
t nl
 
16156
:delim
 
16157
h
 
16158
s/\(.\{148\}\)..*/\1/
 
16159
t more2
 
16160
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
16161
p
 
16162
b
 
16163
:more2
 
16164
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
16165
p
 
16166
g
 
16167
s/.\{148\}//
 
16168
t delim
 
16169
' <conf$$subs.awk | sed '
 
16170
/^[^""]/{
 
16171
  N
 
16172
  s/\n//
 
16173
}
 
16174
' >>$CONFIG_STATUS || ac_write_fail=1
 
16175
rm -f conf$$subs.awk
 
16176
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16177
_ACAWK
 
16178
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
16179
  for (key in S) S_is_set[key] = 1
 
16180
  FS = ""
 
16181
 
 
16182
}
 
16183
{
 
16184
  line = $ 0
 
16185
  nfields = split(line, field, "@")
 
16186
  substed = 0
 
16187
  len = length(field[1])
 
16188
  for (i = 2; i < nfields; i++) {
 
16189
    key = field[i]
 
16190
    keylen = length(key)
 
16191
    if (S_is_set[key]) {
 
16192
      value = S[key]
 
16193
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
16194
      len += length(value) + length(field[++i])
 
16195
      substed = 1
 
16196
    } else
 
16197
      len += 1 + keylen
 
16198
  }
 
16199
 
 
16200
  print line
 
16201
}
 
16202
 
 
16203
_ACAWK
 
16204
_ACEOF
 
16205
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16206
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
16207
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
16208
else
 
16209
  cat
 
16210
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
16211
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
16212
_ACEOF
 
16213
 
 
16214
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
16215
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
16216
# trailing colons and then remove the whole line if VPATH becomes empty
 
16217
# (actually we leave an empty line to preserve line numbers).
 
16218
if test "x$srcdir" = x.; then
 
16219
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
16220
s/:*\$(srcdir):*/:/
 
16221
s/:*\${srcdir}:*/:/
 
16222
s/:*@srcdir@:*/:/
 
16223
s/^\([^=]*=[     ]*\):*/\1/
 
16224
s/:*$//
 
16225
s/^[^=]*=[       ]*$//
 
16226
}'
 
16227
fi
 
16228
 
 
16229
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16230
fi # test -n "$CONFIG_FILES"
 
16231
 
 
16232
# Set up the scripts for CONFIG_HEADERS section.
 
16233
# No need to generate them if there are no CONFIG_HEADERS.
 
16234
# This happens for instance with `./config.status Makefile'.
 
16235
if test -n "$CONFIG_HEADERS"; then
 
16236
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
16237
BEGIN {
 
16238
_ACEOF
 
16239
 
 
16240
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
16241
# here-document in config.status, that substitutes the proper values into
 
16242
# config.h.in to produce config.h.
 
16243
 
 
16244
# Create a delimiter string that does not exist in confdefs.h, to ease
 
16245
# handling of long lines.
 
16246
ac_delim='%!_!# '
 
16247
for ac_last_try in false false :; do
 
16248
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
16249
  if test -z "$ac_t"; then
 
16250
    break
 
16251
  elif $ac_last_try; then
 
16252
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
16253
  else
 
16254
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
16255
  fi
 
16256
done
 
16257
 
 
16258
# For the awk script, D is an array of macro values keyed by name,
 
16259
# likewise P contains macro parameters if any.  Preserve backslash
 
16260
# newline sequences.
 
16261
 
 
16262
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
16263
sed -n '
 
16264
s/.\{148\}/&'"$ac_delim"'/g
 
16265
t rset
 
16266
:rset
 
16267
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
16268
t def
 
16269
d
 
16270
:def
 
16271
s/\\$//
 
16272
t bsnl
 
16273
s/["\\]/\\&/g
 
16274
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
16275
D["\1"]=" \3"/p
 
16276
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
16277
d
 
16278
:bsnl
 
16279
s/["\\]/\\&/g
 
16280
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
16281
D["\1"]=" \3\\\\\\n"\\/p
 
16282
t cont
 
16283
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
16284
t cont
 
16285
d
 
16286
:cont
 
16287
n
 
16288
s/.\{148\}/&'"$ac_delim"'/g
 
16289
t clear
 
16290
:clear
 
16291
s/\\$//
 
16292
t bsnlc
 
16293
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
16294
d
 
16295
:bsnlc
 
16296
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
16297
b cont
 
16298
' <confdefs.h | sed '
 
16299
s/'"$ac_delim"'/"\\\
 
16300
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
16301
 
 
16302
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16303
  for (key in D) D_is_set[key] = 1
 
16304
  FS = ""
 
16305
}
 
16306
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
16307
  line = \$ 0
 
16308
  split(line, arg, " ")
 
16309
  if (arg[1] == "#") {
 
16310
    defundef = arg[2]
 
16311
    mac1 = arg[3]
 
16312
  } else {
 
16313
    defundef = substr(arg[1], 2)
 
16314
    mac1 = arg[2]
 
16315
  }
 
16316
  split(mac1, mac2, "(") #)
 
16317
  macro = mac2[1]
 
16318
  prefix = substr(line, 1, index(line, defundef) - 1)
 
16319
  if (D_is_set[macro]) {
 
16320
    # Preserve the white space surrounding the "#".
 
16321
    print prefix "define", macro P[macro] D[macro]
 
16322
    next
 
16323
  } else {
 
16324
    # Replace #undef with comments.  This is necessary, for example,
 
16325
    # in the case of _POSIX_SOURCE, which is predefined and required
 
16326
    # on some systems where configure will not decide to define it.
 
16327
    if (defundef == "undef") {
 
16328
      print "/*", prefix defundef, macro, "*/"
 
16329
      next
 
16330
    }
 
16331
  }
 
16332
}
 
16333
{ print }
 
16334
_ACAWK
 
16335
_ACEOF
 
16336
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16337
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
16338
fi # test -n "$CONFIG_HEADERS"
 
16339
 
 
16340
 
 
16341
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
16342
shift
 
16343
for ac_tag
 
16344
do
 
16345
  case $ac_tag in
 
16346
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
16347
  esac
 
16348
  case $ac_mode$ac_tag in
 
16349
  :[FHL]*:*);;
 
16350
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
16351
  :[FH]-) ac_tag=-:-;;
 
16352
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
16353
  esac
 
16354
  ac_save_IFS=$IFS
 
16355
  IFS=:
 
16356
  set x $ac_tag
 
16357
  IFS=$ac_save_IFS
 
16358
  shift
 
16359
  ac_file=$1
 
16360
  shift
 
16361
 
 
16362
  case $ac_mode in
 
16363
  :L) ac_source=$1;;
 
16364
  :[FH])
 
16365
    ac_file_inputs=
 
16366
    for ac_f
 
16367
    do
 
16368
      case $ac_f in
 
16369
      -) ac_f="$tmp/stdin";;
 
16370
      *) # Look for the file first in the build tree, then in the source tree
 
16371
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
16372
         # because $ac_f cannot contain `:'.
 
16373
         test -f "$ac_f" ||
 
16374
           case $ac_f in
 
16375
           [\\/$]*) false;;
 
16376
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
16377
           esac ||
 
16378
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
16379
      esac
 
16380
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
16381
      as_fn_append ac_file_inputs " '$ac_f'"
 
16382
    done
 
16383
 
 
16384
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
16385
    # use $as_me), people would be surprised to read:
 
16386
    #    /* config.h.  Generated by config.status.  */
 
16387
    configure_input='Generated from '`
 
16388
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
16389
        `' by configure.'
 
16390
    if test x"$ac_file" != x-; then
 
16391
      configure_input="$ac_file.  $configure_input"
 
16392
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
16393
$as_echo "$as_me: creating $ac_file" >&6;}
 
16394
    fi
 
16395
    # Neutralize special characters interpreted by sed in replacement strings.
 
16396
    case $configure_input in #(
 
16397
    *\&* | *\|* | *\\* )
 
16398
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
16399
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
16400
    *) ac_sed_conf_input=$configure_input;;
 
16401
    esac
 
16402
 
 
16403
    case $ac_tag in
 
16404
    *:-:* | *:-) cat >"$tmp/stdin" \
 
16405
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
16406
    esac
 
16407
    ;;
 
16408
  esac
 
16409
 
 
16410
  ac_dir=`$as_dirname -- "$ac_file" ||
 
16411
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16412
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
16413
         X"$ac_file" : 'X\(//\)$' \| \
 
16414
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
16415
$as_echo X"$ac_file" |
 
16416
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16417
            s//\1/
 
16418
            q
 
16419
          }
 
16420
          /^X\(\/\/\)[^/].*/{
 
16421
            s//\1/
 
16422
            q
 
16423
          }
 
16424
          /^X\(\/\/\)$/{
 
16425
            s//\1/
 
16426
            q
 
16427
          }
 
16428
          /^X\(\/\).*/{
 
16429
            s//\1/
 
16430
            q
 
16431
          }
 
16432
          s/.*/./; q'`
 
16433
  as_dir="$ac_dir"; as_fn_mkdir_p
 
16434
  ac_builddir=.
 
16435
 
 
16436
case "$ac_dir" in
 
16437
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
16438
*)
 
16439
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
16440
  # A ".." for each directory in $ac_dir_suffix.
 
16441
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
16442
  case $ac_top_builddir_sub in
 
16443
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
16444
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
16445
  esac ;;
 
16446
esac
 
16447
ac_abs_top_builddir=$ac_pwd
 
16448
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
16449
# for backward compatibility:
 
16450
ac_top_builddir=$ac_top_build_prefix
 
16451
 
 
16452
case $srcdir in
 
16453
  .)  # We are building in place.
 
16454
    ac_srcdir=.
 
16455
    ac_top_srcdir=$ac_top_builddir_sub
 
16456
    ac_abs_top_srcdir=$ac_pwd ;;
 
16457
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
16458
    ac_srcdir=$srcdir$ac_dir_suffix;
 
16459
    ac_top_srcdir=$srcdir
 
16460
    ac_abs_top_srcdir=$srcdir ;;
 
16461
  *) # Relative name.
 
16462
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
16463
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
16464
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
16465
esac
 
16466
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
16467
 
 
16468
 
 
16469
  case $ac_mode in
 
16470
  :F)
 
16471
  #
 
16472
  # CONFIG_FILE
 
16473
  #
 
16474
 
 
16475
  case $INSTALL in
 
16476
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
16477
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
16478
  esac
 
16479
  ac_MKDIR_P=$MKDIR_P
 
16480
  case $MKDIR_P in
 
16481
  [\\/$]* | ?:[\\/]* ) ;;
 
16482
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
16483
  esac
 
16484
_ACEOF
 
16485
 
 
16486
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16487
# If the template does not know about datarootdir, expand it.
 
16488
# FIXME: This hack should be removed a few years after 2.60.
 
16489
ac_datarootdir_hack=; ac_datarootdir_seen=
 
16490
ac_sed_dataroot='
 
16491
/datarootdir/ {
 
16492
  p
 
16493
  q
 
16494
}
 
16495
/@datadir@/p
 
16496
/@docdir@/p
 
16497
/@infodir@/p
 
16498
/@localedir@/p
 
16499
/@mandir@/p'
 
16500
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
16501
*datarootdir*) ac_datarootdir_seen=yes;;
 
16502
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
16503
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
16504
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
16505
_ACEOF
 
16506
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16507
  ac_datarootdir_hack='
 
16508
  s&@datadir@&$datadir&g
 
16509
  s&@docdir@&$docdir&g
 
16510
  s&@infodir@&$infodir&g
 
16511
  s&@localedir@&$localedir&g
 
16512
  s&@mandir@&$mandir&g
 
16513
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
16514
esac
 
16515
_ACEOF
 
16516
 
 
16517
# Neutralize VPATH when `$srcdir' = `.'.
 
16518
# Shell code in configure.ac might set extrasub.
 
16519
# FIXME: do we really want to maintain this feature?
 
16520
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
16521
ac_sed_extra="$ac_vpsub
 
16522
$extrasub
 
16523
_ACEOF
 
16524
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
16525
:t
 
16526
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
16527
s|@configure_input@|$ac_sed_conf_input|;t t
 
16528
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
16529
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
16530
s&@srcdir@&$ac_srcdir&;t t
 
16531
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
16532
s&@top_srcdir@&$ac_top_srcdir&;t t
 
16533
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
16534
s&@builddir@&$ac_builddir&;t t
 
16535
s&@abs_builddir@&$ac_abs_builddir&;t t
 
16536
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
16537
s&@INSTALL@&$ac_INSTALL&;t t
 
16538
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
16539
$ac_datarootdir_hack
 
16540
"
 
16541
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
16542
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16543
 
 
16544
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
16545
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
16546
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
16547
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
16548
which seems to be undefined.  Please make sure it is defined." >&5
 
16549
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
16550
which seems to be undefined.  Please make sure it is defined." >&2;}
 
16551
 
 
16552
  rm -f "$tmp/stdin"
 
16553
  case $ac_file in
 
16554
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
16555
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
16556
  esac \
 
16557
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16558
 ;;
 
16559
  :H)
 
16560
  #
 
16561
  # CONFIG_HEADER
 
16562
  #
 
16563
  if test x"$ac_file" != x-; then
 
16564
    {
 
16565
      $as_echo "/* $configure_input  */" \
 
16566
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
16567
    } >"$tmp/config.h" \
 
16568
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16569
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
16570
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
16571
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
16572
    else
 
16573
      rm -f "$ac_file"
 
16574
      mv "$tmp/config.h" "$ac_file" \
 
16575
        || as_fn_error "could not create $ac_file" "$LINENO" 5
 
16576
    fi
 
16577
  else
 
16578
    $as_echo "/* $configure_input  */" \
 
16579
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
16580
      || as_fn_error "could not create -" "$LINENO" 5
 
16581
  fi
 
16582
# Compute "$ac_file"'s index in $config_headers.
 
16583
_am_arg="$ac_file"
 
16584
_am_stamp_count=1
 
16585
for _am_header in $config_headers :; do
 
16586
  case $_am_header in
 
16587
    $_am_arg | $_am_arg:* )
 
16588
      break ;;
 
16589
    * )
 
16590
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
16591
  esac
 
16592
done
 
16593
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
16594
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16595
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
16596
         X"$_am_arg" : 'X\(//\)$' \| \
 
16597
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
16598
$as_echo X"$_am_arg" |
 
16599
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16600
            s//\1/
 
16601
            q
 
16602
          }
 
16603
          /^X\(\/\/\)[^/].*/{
 
16604
            s//\1/
 
16605
            q
 
16606
          }
 
16607
          /^X\(\/\/\)$/{
 
16608
            s//\1/
 
16609
            q
 
16610
          }
 
16611
          /^X\(\/\).*/{
 
16612
            s//\1/
 
16613
            q
 
16614
          }
 
16615
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
16616
 ;;
 
16617
 
 
16618
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
16619
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
16620
 ;;
 
16621
  esac
 
16622
 
 
16623
 
 
16624
  case $ac_file$ac_mode in
 
16625
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
16626
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
16627
  # are listed without --file.  Let's play safe and only enable the eval
 
16628
  # if we detect the quoting.
 
16629
  case $CONFIG_FILES in
 
16630
  *\'*) eval set x "$CONFIG_FILES" ;;
 
16631
  *)   set x $CONFIG_FILES ;;
 
16632
  esac
 
16633
  shift
 
16634
  for mf
 
16635
  do
 
16636
    # Strip MF so we end up with the name of the file.
 
16637
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
16638
    # Check whether this is an Automake generated Makefile or not.
 
16639
    # We used to match only the files named `Makefile.in', but
 
16640
    # some people rename them; so instead we look at the file content.
 
16641
    # Grep'ing the first line is not enough: some people post-process
 
16642
    # each Makefile.in and add a new line on top of each file to say so.
 
16643
    # Grep'ing the whole file is not good either: AIX grep has a line
 
16644
    # limit of 2048, but all sed's we know have understand at least 4000.
 
16645
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
16646
      dirpart=`$as_dirname -- "$mf" ||
 
16647
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16648
         X"$mf" : 'X\(//\)[^/]' \| \
 
16649
         X"$mf" : 'X\(//\)$' \| \
 
16650
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
16651
$as_echo X"$mf" |
 
16652
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16653
            s//\1/
 
16654
            q
 
16655
          }
 
16656
          /^X\(\/\/\)[^/].*/{
 
16657
            s//\1/
 
16658
            q
 
16659
          }
 
16660
          /^X\(\/\/\)$/{
 
16661
            s//\1/
 
16662
            q
 
16663
          }
 
16664
          /^X\(\/\).*/{
 
16665
            s//\1/
 
16666
            q
 
16667
          }
 
16668
          s/.*/./; q'`
 
16669
    else
 
16670
      continue
 
16671
    fi
 
16672
    # Extract the definition of DEPDIR, am__include, and am__quote
 
16673
    # from the Makefile without running `make'.
 
16674
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
16675
    test -z "$DEPDIR" && continue
 
16676
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
16677
    test -z "am__include" && continue
 
16678
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
16679
    # When using ansi2knr, U may be empty or an underscore; expand it
 
16680
    U=`sed -n 's/^U = //p' < "$mf"`
 
16681
    # Find all dependency output files, they are included files with
 
16682
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
16683
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
16684
    # expansion.
 
16685
    for file in `sed -n "
 
16686
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
16687
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
16688
      # Make sure the directory exists.
 
16689
      test -f "$dirpart/$file" && continue
 
16690
      fdir=`$as_dirname -- "$file" ||
 
16691
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
16692
         X"$file" : 'X\(//\)[^/]' \| \
 
16693
         X"$file" : 'X\(//\)$' \| \
 
16694
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
16695
$as_echo X"$file" |
 
16696
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
16697
            s//\1/
 
16698
            q
 
16699
          }
 
16700
          /^X\(\/\/\)[^/].*/{
 
16701
            s//\1/
 
16702
            q
 
16703
          }
 
16704
          /^X\(\/\/\)$/{
 
16705
            s//\1/
 
16706
            q
 
16707
          }
 
16708
          /^X\(\/\).*/{
 
16709
            s//\1/
 
16710
            q
 
16711
          }
 
16712
          s/.*/./; q'`
 
16713
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
16714
      # echo "creating $dirpart/$file"
 
16715
      echo '# dummy' > "$dirpart/$file"
 
16716
    done
 
16717
  done
 
16718
}
 
16719
 ;;
 
16720
    "libtool":C)
 
16721
 
 
16722
    # See if we are running on zsh, and set the options which allow our
 
16723
    # commands through without removal of \ escapes.
 
16724
    if test -n "${ZSH_VERSION+set}" ; then
 
16725
      setopt NO_GLOB_SUBST
 
16726
    fi
 
16727
 
 
16728
    cfgfile="${ofile}T"
 
16729
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
16730
    $RM "$cfgfile"
 
16731
 
 
16732
    cat <<_LT_EOF >> "$cfgfile"
 
16733
#! $SHELL
 
16734
 
 
16735
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
16736
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
16737
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16738
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
16739
#
 
16740
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
16741
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
16742
#   Written by Gordon Matzigkeit, 1996
 
16743
#
 
16744
#   This file is part of GNU Libtool.
 
16745
#
 
16746
# GNU Libtool is free software; you can redistribute it and/or
 
16747
# modify it under the terms of the GNU General Public License as
 
16748
# published by the Free Software Foundation; either version 2 of
 
16749
# the License, or (at your option) any later version.
 
16750
#
 
16751
# As a special exception to the GNU General Public License,
 
16752
# if you distribute this file as part of a program or library that
 
16753
# is built using GNU Libtool, you may include this file under the
 
16754
# same distribution terms that you use for the rest of that program.
 
16755
#
 
16756
# GNU Libtool is distributed in the hope that it will be useful,
 
16757
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16758
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16759
# GNU General Public License for more details.
 
16760
#
 
16761
# You should have received a copy of the GNU General Public License
 
16762
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
16763
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
16764
# obtained by writing to the Free Software Foundation, Inc.,
 
16765
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
16766
 
 
16767
 
 
16768
# The names of the tagged configurations supported by this script.
 
16769
available_tags=""
 
16770
 
 
16771
# ### BEGIN LIBTOOL CONFIG
 
16772
 
 
16773
# A sed program that does not truncate output.
 
16774
SED=$lt_SED
 
16775
 
 
16776
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
16777
Xsed="\$SED -e 1s/^X//"
 
16778
 
 
16779
# A grep program that handles long lines.
 
16780
GREP=$lt_GREP
 
16781
 
 
16782
# An ERE matcher.
 
16783
EGREP=$lt_EGREP
 
16784
 
 
16785
# A literal string matcher.
 
16786
FGREP=$lt_FGREP
 
16787
 
 
16788
# Whether or not to build static libraries.
 
16789
build_old_libs=$enable_static
 
16790
 
 
16791
# Whether or not to build shared libraries.
 
16792
build_libtool_libs=$enable_shared
 
16793
 
 
16794
# Which release of libtool.m4 was used?
 
16795
macro_version=$macro_version
 
16796
macro_revision=$macro_revision
 
16797
 
 
16798
# What type of objects to build.
 
16799
pic_mode=$pic_mode
 
16800
 
 
16801
# Whether or not to optimize for fast installation.
 
16802
fast_install=$enable_fast_install
 
16803
 
 
16804
# The host system.
 
16805
host_alias=$host_alias
 
16806
host=$host
 
16807
host_os=$host_os
 
16808
 
 
16809
# The build system.
 
16810
build_alias=$build_alias
 
16811
build=$build
 
16812
build_os=$build_os
 
16813
 
 
16814
# A BSD- or MS-compatible name lister.
 
16815
NM=$lt_NM
 
16816
 
 
16817
# Whether we need soft or hard links.
 
16818
LN_S=$lt_LN_S
 
16819
 
 
16820
# What is the maximum length of a command?
 
16821
max_cmd_len=$max_cmd_len
 
16822
 
 
16823
# Object file suffix (normally "o").
 
16824
objext=$ac_objext
 
16825
 
 
16826
# Executable file suffix (normally "").
 
16827
exeext=$exeext
 
16828
 
 
16829
# whether the shell understands "unset".
 
16830
lt_unset=$lt_unset
 
16831
 
 
16832
# turn spaces into newlines.
 
16833
SP2NL=$lt_lt_SP2NL
 
16834
 
 
16835
# turn newlines into spaces.
 
16836
NL2SP=$lt_lt_NL2SP
 
16837
 
 
16838
# How to create reloadable object files.
 
16839
reload_flag=$lt_reload_flag
 
16840
reload_cmds=$lt_reload_cmds
 
16841
 
 
16842
# An object symbol dumper.
 
16843
OBJDUMP=$lt_OBJDUMP
 
16844
 
 
16845
# Method to check whether dependent libraries are shared objects.
 
16846
deplibs_check_method=$lt_deplibs_check_method
 
16847
 
 
16848
# Command to use when deplibs_check_method == "file_magic".
 
16849
file_magic_cmd=$lt_file_magic_cmd
 
16850
 
 
16851
# The archiver.
 
16852
AR=$lt_AR
 
16853
AR_FLAGS=$lt_AR_FLAGS
 
16854
 
 
16855
# A symbol stripping program.
 
16856
STRIP=$lt_STRIP
 
16857
 
 
16858
# Commands used to install an old-style archive.
 
16859
RANLIB=$lt_RANLIB
 
16860
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16861
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16862
 
 
16863
# A C compiler.
 
16864
LTCC=$lt_CC
 
16865
 
 
16866
# LTCC compiler flags.
 
16867
LTCFLAGS=$lt_CFLAGS
 
16868
 
 
16869
# Take the output of nm and produce a listing of raw symbols and C names.
 
16870
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16871
 
 
16872
# Transform the output of nm in a proper C declaration.
 
16873
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16874
 
 
16875
# Transform the output of nm in a C name address pair.
 
16876
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16877
 
 
16878
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
16879
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
16880
 
 
16881
# The name of the directory that contains temporary libtool files.
 
16882
objdir=$objdir
 
16883
 
 
16884
# Shell to use when invoking shell scripts.
 
16885
SHELL=$lt_SHELL
 
16886
 
 
16887
# An echo program that does not interpret backslashes.
 
16888
ECHO=$lt_ECHO
 
16889
 
 
16890
# Used to examine libraries when file_magic_cmd begins with "file".
 
16891
MAGIC_CMD=$MAGIC_CMD
 
16892
 
 
16893
# Must we lock files when doing compilation?
 
16894
need_locks=$lt_need_locks
 
16895
 
 
16896
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
16897
DSYMUTIL=$lt_DSYMUTIL
 
16898
 
 
16899
# Tool to change global to local symbols on Mac OS X.
 
16900
NMEDIT=$lt_NMEDIT
 
16901
 
 
16902
# Tool to manipulate fat objects and archives on Mac OS X.
 
16903
LIPO=$lt_LIPO
 
16904
 
 
16905
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
16906
OTOOL=$lt_OTOOL
 
16907
 
 
16908
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
16909
OTOOL64=$lt_OTOOL64
 
16910
 
 
16911
# Old archive suffix (normally "a").
 
16912
libext=$libext
 
16913
 
 
16914
# Shared library suffix (normally ".so").
 
16915
shrext_cmds=$lt_shrext_cmds
 
16916
 
 
16917
# The commands to extract the exported symbol list from a shared archive.
 
16918
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16919
 
 
16920
# Variables whose values should be saved in libtool wrapper scripts and
 
16921
# restored at link time.
 
16922
variables_saved_for_relink=$lt_variables_saved_for_relink
 
16923
 
 
16924
# Do we need the "lib" prefix for modules?
 
16925
need_lib_prefix=$need_lib_prefix
 
16926
 
 
16927
# Do we need a version for libraries?
 
16928
need_version=$need_version
 
16929
 
 
16930
# Library versioning type.
 
16931
version_type=$version_type
 
16932
 
 
16933
# Shared library runtime path variable.
 
16934
runpath_var=$runpath_var
 
16935
 
 
16936
# Shared library path variable.
 
16937
shlibpath_var=$shlibpath_var
 
16938
 
 
16939
# Is shlibpath searched before the hard-coded library search path?
 
16940
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16941
 
 
16942
# Format of library name prefix.
 
16943
libname_spec=$lt_libname_spec
 
16944
 
 
16945
# List of archive names.  First name is the real one, the rest are links.
 
16946
# The last name is the one that the linker finds with -lNAME
 
16947
library_names_spec=$lt_library_names_spec
 
16948
 
 
16949
# The coded name of the library, if different from the real name.
 
16950
soname_spec=$lt_soname_spec
 
16951
 
 
16952
# Command to use after installation of a shared archive.
 
16953
postinstall_cmds=$lt_postinstall_cmds
 
16954
 
 
16955
# Command to use after uninstallation of a shared archive.
 
16956
postuninstall_cmds=$lt_postuninstall_cmds
 
16957
 
 
16958
# Commands used to finish a libtool library installation in a directory.
 
16959
finish_cmds=$lt_finish_cmds
 
16960
 
 
16961
# As "finish_cmds", except a single script fragment to be evaled but
 
16962
# not shown.
 
16963
finish_eval=$lt_finish_eval
 
16964
 
 
16965
# Whether we should hardcode library paths into libraries.
 
16966
hardcode_into_libs=$hardcode_into_libs
 
16967
 
 
16968
# Compile-time system search path for libraries.
 
16969
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16970
 
 
16971
# Run-time system search path for libraries.
 
16972
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16973
 
 
16974
# Whether dlopen is supported.
 
16975
dlopen_support=$enable_dlopen
 
16976
 
 
16977
# Whether dlopen of programs is supported.
 
16978
dlopen_self=$enable_dlopen_self
 
16979
 
 
16980
# Whether dlopen of statically linked programs is supported.
 
16981
dlopen_self_static=$enable_dlopen_self_static
 
16982
 
 
16983
# Commands to strip libraries.
 
16984
old_striplib=$lt_old_striplib
 
16985
striplib=$lt_striplib
 
16986
 
 
16987
 
 
16988
# The linker used to build libraries.
 
16989
LD=$lt_LD
 
16990
 
 
16991
# Commands used to build an old-style archive.
 
16992
old_archive_cmds=$lt_old_archive_cmds
 
16993
 
 
16994
# A language specific compiler.
 
16995
CC=$lt_compiler
 
16996
 
 
16997
# Is the compiler the GNU compiler?
 
16998
with_gcc=$GCC
 
16999
 
 
17000
# Compiler flag to turn off builtin functions.
 
17001
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
17002
 
 
17003
# How to pass a linker flag through the compiler.
 
17004
wl=$lt_lt_prog_compiler_wl
 
17005
 
 
17006
# Additional compiler flags for building library objects.
 
17007
pic_flag=$lt_lt_prog_compiler_pic
 
17008
 
 
17009
# Compiler flag to prevent dynamic linking.
 
17010
link_static_flag=$lt_lt_prog_compiler_static
 
17011
 
 
17012
# Does compiler simultaneously support -c and -o options?
 
17013
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
17014
 
 
17015
# Whether or not to add -lc for building shared libraries.
 
17016
build_libtool_need_lc=$archive_cmds_need_lc
 
17017
 
 
17018
# Whether or not to disallow shared libs when runtime libs are static.
 
17019
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
17020
 
 
17021
# Compiler flag to allow reflexive dlopens.
 
17022
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
17023
 
 
17024
# Compiler flag to generate shared objects directly from archives.
 
17025
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
17026
 
 
17027
# Whether the compiler copes with passing no objects directly.
 
17028
compiler_needs_object=$lt_compiler_needs_object
 
17029
 
 
17030
# Create an old-style archive from a shared archive.
 
17031
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
17032
 
 
17033
# Create a temporary old-style archive to link instead of a shared archive.
 
17034
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
17035
 
 
17036
# Commands used to build a shared archive.
 
17037
archive_cmds=$lt_archive_cmds
 
17038
archive_expsym_cmds=$lt_archive_expsym_cmds
 
17039
 
 
17040
# Commands used to build a loadable module if different from building
 
17041
# a shared archive.
 
17042
module_cmds=$lt_module_cmds
 
17043
module_expsym_cmds=$lt_module_expsym_cmds
 
17044
 
 
17045
# Whether we are building with GNU ld or not.
 
17046
with_gnu_ld=$lt_with_gnu_ld
 
17047
 
 
17048
# Flag that allows shared libraries with undefined symbols to be built.
 
17049
allow_undefined_flag=$lt_allow_undefined_flag
 
17050
 
 
17051
# Flag that enforces no undefined symbols.
 
17052
no_undefined_flag=$lt_no_undefined_flag
 
17053
 
 
17054
# Flag to hardcode \$libdir into a binary during linking.
 
17055
# This must work even if \$libdir does not exist
 
17056
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
17057
 
 
17058
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
17059
# during linking.  This must work even if \$libdir does not exist.
 
17060
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
17061
 
 
17062
# Whether we need a single "-rpath" flag with a separated argument.
 
17063
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
17064
 
 
17065
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
17066
# DIR into the resulting binary.
 
17067
hardcode_direct=$hardcode_direct
 
17068
 
 
17069
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
17070
# DIR into the resulting binary and the resulting library dependency is
 
17071
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
17072
# library is relocated.
 
17073
hardcode_direct_absolute=$hardcode_direct_absolute
 
17074
 
 
17075
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
17076
# into the resulting binary.
 
17077
hardcode_minus_L=$hardcode_minus_L
 
17078
 
 
17079
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
17080
# into the resulting binary.
 
17081
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
17082
 
 
17083
# Set to "yes" if building a shared library automatically hardcodes DIR
 
17084
# into the library and all subsequent libraries and executables linked
 
17085
# against it.
 
17086
hardcode_automatic=$hardcode_automatic
 
17087
 
 
17088
# Set to yes if linker adds runtime paths of dependent libraries
 
17089
# to runtime path list.
 
17090
inherit_rpath=$inherit_rpath
 
17091
 
 
17092
# Whether libtool must link a program against all its dependency libraries.
 
17093
link_all_deplibs=$link_all_deplibs
 
17094
 
 
17095
# Fix the shell variable \$srcfile for the compiler.
 
17096
fix_srcfile_path=$lt_fix_srcfile_path
 
17097
 
 
17098
# Set to "yes" if exported symbols are required.
 
17099
always_export_symbols=$always_export_symbols
 
17100
 
 
17101
# The commands to list exported symbols.
 
17102
export_symbols_cmds=$lt_export_symbols_cmds
 
17103
 
 
17104
# Symbols that should not be listed in the preloaded symbols.
 
17105
exclude_expsyms=$lt_exclude_expsyms
 
17106
 
 
17107
# Symbols that must always be exported.
 
17108
include_expsyms=$lt_include_expsyms
 
17109
 
 
17110
# Commands necessary for linking programs (against libraries) with templates.
 
17111
prelink_cmds=$lt_prelink_cmds
 
17112
 
 
17113
# Specify filename containing input files.
 
17114
file_list_spec=$lt_file_list_spec
 
17115
 
 
17116
# How to hardcode a shared library path into an executable.
 
17117
hardcode_action=$hardcode_action
 
17118
 
 
17119
# ### END LIBTOOL CONFIG
 
17120
 
 
17121
_LT_EOF
 
17122
 
 
17123
  case $host_os in
 
17124
  aix3*)
 
17125
    cat <<\_LT_EOF >> "$cfgfile"
 
17126
# AIX sometimes has problems with the GCC collect2 program.  For some
 
17127
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
17128
# vanish in a puff of smoke.
 
17129
if test "X${COLLECT_NAMES+set}" != Xset; then
 
17130
  COLLECT_NAMES=
 
17131
  export COLLECT_NAMES
 
17132
fi
 
17133
_LT_EOF
 
17134
    ;;
 
17135
  esac
 
17136
 
 
17137
 
 
17138
ltmain="$ac_aux_dir/ltmain.sh"
 
17139
 
 
17140
 
 
17141
  # We use sed instead of cat because bash on DJGPP gets confused if
 
17142
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
17143
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
17144
  # is reportedly fixed, but why not run on old versions too?
 
17145
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
17146
    || (rm -f "$cfgfile"; exit 1)
 
17147
 
 
17148
  case $xsi_shell in
 
17149
  yes)
 
17150
    cat << \_LT_EOF >> "$cfgfile"
 
17151
 
 
17152
# func_dirname file append nondir_replacement
 
17153
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
17154
# otherwise set result to NONDIR_REPLACEMENT.
 
17155
func_dirname ()
 
17156
{
 
17157
  case ${1} in
 
17158
    */*) func_dirname_result="${1%/*}${2}" ;;
 
17159
    *  ) func_dirname_result="${3}" ;;
 
17160
  esac
 
17161
}
 
17162
 
 
17163
# func_basename file
 
17164
func_basename ()
 
17165
{
 
17166
  func_basename_result="${1##*/}"
 
17167
}
 
17168
 
 
17169
# func_dirname_and_basename file append nondir_replacement
 
17170
# perform func_basename and func_dirname in a single function
 
17171
# call:
 
17172
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
17173
#             add APPEND to the result, otherwise set result
 
17174
#             to NONDIR_REPLACEMENT.
 
17175
#             value returned in "$func_dirname_result"
 
17176
#   basename: Compute filename of FILE.
 
17177
#             value retuned in "$func_basename_result"
 
17178
# Implementation must be kept synchronized with func_dirname
 
17179
# and func_basename. For efficiency, we do not delegate to
 
17180
# those functions but instead duplicate the functionality here.
 
17181
func_dirname_and_basename ()
 
17182
{
 
17183
  case ${1} in
 
17184
    */*) func_dirname_result="${1%/*}${2}" ;;
 
17185
    *  ) func_dirname_result="${3}" ;;
 
17186
  esac
 
17187
  func_basename_result="${1##*/}"
 
17188
}
 
17189
 
 
17190
# func_stripname prefix suffix name
 
17191
# strip PREFIX and SUFFIX off of NAME.
 
17192
# PREFIX and SUFFIX must not contain globbing or regex special
 
17193
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
17194
# dot (in which case that matches only a dot).
 
17195
func_stripname ()
 
17196
{
 
17197
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
17198
  # positional parameters, so assign one to ordinary parameter first.
 
17199
  func_stripname_result=${3}
 
17200
  func_stripname_result=${func_stripname_result#"${1}"}
 
17201
  func_stripname_result=${func_stripname_result%"${2}"}
 
17202
}
 
17203
 
 
17204
# func_opt_split
 
17205
func_opt_split ()
 
17206
{
 
17207
  func_opt_split_opt=${1%%=*}
 
17208
  func_opt_split_arg=${1#*=}
 
17209
}
 
17210
 
 
17211
# func_lo2o object
 
17212
func_lo2o ()
 
17213
{
 
17214
  case ${1} in
 
17215
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
17216
    *)    func_lo2o_result=${1} ;;
 
17217
  esac
 
17218
}
 
17219
 
 
17220
# func_xform libobj-or-source
 
17221
func_xform ()
 
17222
{
 
17223
  func_xform_result=${1%.*}.lo
 
17224
}
 
17225
 
 
17226
# func_arith arithmetic-term...
 
17227
func_arith ()
 
17228
{
 
17229
  func_arith_result=$(( $* ))
 
17230
}
 
17231
 
 
17232
# func_len string
 
17233
# STRING may not start with a hyphen.
 
17234
func_len ()
 
17235
{
 
17236
  func_len_result=${#1}
 
17237
}
 
17238
 
 
17239
_LT_EOF
 
17240
    ;;
 
17241
  *) # Bourne compatible functions.
 
17242
    cat << \_LT_EOF >> "$cfgfile"
 
17243
 
 
17244
# func_dirname file append nondir_replacement
 
17245
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
17246
# otherwise set result to NONDIR_REPLACEMENT.
 
17247
func_dirname ()
 
17248
{
 
17249
  # Extract subdirectory from the argument.
 
17250
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
17251
  if test "X$func_dirname_result" = "X${1}"; then
 
17252
    func_dirname_result="${3}"
 
17253
  else
 
17254
    func_dirname_result="$func_dirname_result${2}"
 
17255
  fi
 
17256
}
 
17257
 
 
17258
# func_basename file
 
17259
func_basename ()
 
17260
{
 
17261
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
17262
}
 
17263
 
 
17264
 
 
17265
# func_stripname prefix suffix name
 
17266
# strip PREFIX and SUFFIX off of NAME.
 
17267
# PREFIX and SUFFIX must not contain globbing or regex special
 
17268
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
17269
# dot (in which case that matches only a dot).
 
17270
# func_strip_suffix prefix name
 
17271
func_stripname ()
 
17272
{
 
17273
  case ${2} in
 
17274
    .*) func_stripname_result=`$ECHO "X${3}" \
 
17275
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
17276
    *)  func_stripname_result=`$ECHO "X${3}" \
 
17277
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
17278
  esac
 
17279
}
 
17280
 
 
17281
# sed scripts:
 
17282
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
17283
my_sed_long_arg='1s/^-[^=]*=//'
 
17284
 
 
17285
# func_opt_split
 
17286
func_opt_split ()
 
17287
{
 
17288
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
17289
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
17290
}
 
17291
 
 
17292
# func_lo2o object
 
17293
func_lo2o ()
 
17294
{
 
17295
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
17296
}
 
17297
 
 
17298
# func_xform libobj-or-source
 
17299
func_xform ()
 
17300
{
 
17301
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
17302
}
 
17303
 
 
17304
# func_arith arithmetic-term...
 
17305
func_arith ()
 
17306
{
 
17307
  func_arith_result=`expr "$@"`
 
17308
}
 
17309
 
 
17310
# func_len string
 
17311
# STRING may not start with a hyphen.
 
17312
func_len ()
 
17313
{
 
17314
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
17315
}
 
17316
 
 
17317
_LT_EOF
 
17318
esac
 
17319
 
 
17320
case $lt_shell_append in
 
17321
  yes)
 
17322
    cat << \_LT_EOF >> "$cfgfile"
 
17323
 
 
17324
# func_append var value
 
17325
# Append VALUE to the end of shell variable VAR.
 
17326
func_append ()
 
17327
{
 
17328
  eval "$1+=\$2"
 
17329
}
 
17330
_LT_EOF
 
17331
    ;;
 
17332
  *)
 
17333
    cat << \_LT_EOF >> "$cfgfile"
 
17334
 
 
17335
# func_append var value
 
17336
# Append VALUE to the end of shell variable VAR.
 
17337
func_append ()
 
17338
{
 
17339
  eval "$1=\$$1\$2"
 
17340
}
 
17341
 
 
17342
_LT_EOF
 
17343
    ;;
 
17344
  esac
 
17345
 
 
17346
 
 
17347
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
17348
    || (rm -f "$cfgfile"; exit 1)
 
17349
 
 
17350
  mv -f "$cfgfile" "$ofile" ||
 
17351
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
17352
  chmod +x "$ofile"
 
17353
 
 
17354
 ;;
 
17355
 
 
17356
  esac
 
17357
done # for ac_tag
 
17358
 
 
17359
 
 
17360
as_fn_exit 0
 
17361
_ACEOF
 
17362
ac_clean_files=$ac_clean_files_save
 
17363
 
 
17364
test $ac_write_fail = 0 ||
 
17365
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
17366
 
 
17367
 
 
17368
# configure is writing to config.log, and then calls config.status.
 
17369
# config.status does its own redirection, appending to config.log.
 
17370
# Unfortunately, on DOS this fails, as config.log is still kept open
 
17371
# by configure, so config.status won't be able to write to it; its
 
17372
# output is simply discarded.  So we exec the FD to /dev/null,
 
17373
# effectively closing config.log, so it can be properly (re)opened and
 
17374
# appended to by config.status.  When coming back to configure, we
 
17375
# need to make the FD available again.
 
17376
if test "$no_create" != yes; then
 
17377
  ac_cs_success=:
 
17378
  ac_config_status_args=
 
17379
  test "$silent" = yes &&
 
17380
    ac_config_status_args="$ac_config_status_args --quiet"
 
17381
  exec 5>/dev/null
 
17382
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
17383
  exec 5>>config.log
 
17384
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
17385
  # would make configure fail if this is the last instruction.
 
17386
  $ac_cs_success || as_fn_exit $?
 
17387
fi
 
17388
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
17389
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
17390
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
17391
fi
 
17392
 
 
17393
 
 
17394
 
 
17395
do_build="mod_cgi mod_fastcgi mod_extforward mod_proxy mod_evhost mod_simple_vhost mod_access mod_alias mod_setenv mod_usertrack mod_auth mod_status mod_accesslog"
 
17396
do_build="$do_build mod_rrdtool mod_secdownload mod_expire mod_compress mod_dirlisting mod_indexfile mod_userdir mod_webdav mod_staticfile mod_scgi mod_flv_streaming"
 
17397
 
 
17398
plugins="mod_rewrite mod_redirect mod_ssi mod_trigger_b4_dl"
 
17399
features="regex-conditionals"
 
17400
if test ! "x$PCRE_LIB" = x; then
 
17401
        do_build="$do_build $plugins"
 
17402
        enable_feature="$features"
 
17403
else
 
17404
        no_build="$no_build $plugins"
 
17405
        disable_feature="$features"
 
17406
fi
 
17407
 
 
17408
plugins="mod_mysql_vhost"
 
17409
if test ! "x$MYSQL_LIBS" = x; then
 
17410
        do_build="$do_build $plugins"
 
17411
else
 
17412
        no_build="$no_build $plugins"
 
17413
fi
 
17414
 
 
17415
plugins="mod_cml mod_magnet"
 
17416
if test ! "x$LUA_LIBS" = x; then
 
17417
        do_build="$do_build $plugins"
 
17418
else
 
17419
        no_build="$no_build $plugins"
 
17420
fi
 
17421
 
 
17422
features="storage-gdbm"
 
17423
if test ! "x$GDBM_LIB" = x; then
 
17424
        enable_feature="$enable_feature $features"
 
17425
else
 
17426
        disable_feature="$disable_feature $features"
 
17427
fi
 
17428
 
 
17429
features="storage-memcache"
 
17430
if test ! "x$MEMCACHE_LIB" = x; then
 
17431
        enable_feature="$enable_feature $features"
 
17432
else
 
17433
        disable_feature="$disable_feature $features"
 
17434
fi
 
17435
 
 
17436
features="compress-gzip compress-deflate"
 
17437
if test ! "x$Z_LIB" = x; then
 
17438
        enable_feature="$enable_feature $features"
 
17439
else
 
17440
        disable_feature="$disable_feature $features"
 
17441
fi
 
17442
 
 
17443
features="compress-bzip2"
 
17444
if test ! "x$BZ_LIB" = x; then
 
17445
        enable_feature="$enable_feature $features"
 
17446
else
 
17447
        disable_feature="$disable_feature $features"
 
17448
fi
 
17449
 
 
17450
features="auth-ldap"
 
17451
if test ! "x$LDAP_LIB" = x; then
 
17452
        enable_feature="$enable_feature $features"
 
17453
else
 
17454
        disable_feature="$disable_feature $features"
 
17455
fi
 
17456
 
 
17457
features="network-openssl"
 
17458
if test ! "x$SSL_LIB" = x; then
 
17459
        enable_feature="$enable_feature $features"
 
17460
else
 
17461
        disable_feature="$disable_feature $features"
 
17462
fi
 
17463
 
 
17464
features="auth-crypt"
 
17465
if test "$ac_cv_search_crypt" = no; then
 
17466
        disable_feature="$disable_feature $features"
 
17467
else
 
17468
        enable_feature="$enable_feature $features"
 
17469
fi
 
17470
 
 
17471
features="network-ipv6"
 
17472
if test "$ac_cv_ipv6_support" = yes; then
 
17473
        enable_feature="$enable_feature $features"
 
17474
else
 
17475
        disable_feature="$disable_feature $features"
 
17476
fi
 
17477
 
 
17478
features="large-files"
 
17479
if test "$enable_lfs" = yes; then
 
17480
        enable_feature="$enable_feature $features"
 
17481
else
 
17482
        disable_feature="$disable_feature $features"
 
17483
fi
 
17484
 
 
17485
features="stat-cache-fam"
 
17486
if test ! "x$FAM_LIBS" = x; then
 
17487
        enable_feature="$enable_feature $features"
 
17488
else
 
17489
        disable_feature="$disable_feature $features"
 
17490
fi
 
17491
 
 
17492
features="webdav-properties"
 
17493
if test "x$XML_LIBS" \!= x -a "x$SQLITE_LIBS" \!= x; then
 
17494
        enable_feature="$enable_feature $features"
 
17495
else
 
17496
        disable_feature="$disable_feature $features"
 
17497
fi
 
17498
 
 
17499
features="webdav-locks"
 
17500
if test "x$UUID_LIBS" \!= x; then
 
17501
        enable_feature="$enable_feature $features"
 
17502
else
 
17503
        disable_feature="$disable_feature $features"
 
17504
fi
 
17505
 
 
17506
 
 
17507
 
 
17508
$ECHO
 
17509
$ECHO "Plugins:"
 
17510
$ECHO
 
17511
 
 
17512
$ECHO "enabled: "
 
17513
for p in $do_build; do
 
17514
        $ECHO "  $p"
 
17515
done | sort
 
17516
 
 
17517
$ECHO "disabled: "
 
17518
for p in $no_build; do
 
17519
        $ECHO "  $p"
 
17520
done | sort
 
17521
 
 
17522
$ECHO
 
17523
$ECHO "Features:"
 
17524
$ECHO
 
17525
 
 
17526
$ECHO "enabled: "
 
17527
for p in $enable_feature; do
 
17528
        $ECHO "  $p"
 
17529
done | sort
 
17530
 
 
17531
$ECHO "disabled: "
 
17532
for p in $disable_feature; do
 
17533
        $ECHO "  $p"
 
17534
done | sort
 
17535
 
 
17536
$ECHO