2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.65 for lighttpd 1.4.26.
5
# Report bugs to <contact@lighttpd.net>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
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
## -------------------- ##
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 :
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+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
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
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
93
# Find who we are. Look in the path if we contain no directory separator.
95
*[\\/]* ) as_myself=$0 ;;
96
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
test -z "$as_dir" && as_dir=.
101
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
112
if test ! -f "$as_myself"; then
113
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 :
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+\"\$@\"}'='\"\$@\"'
147
case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
169
exitcode=1; echo positional parameters were not saved.
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 :
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190
test -z "$as_dir" && as_dir=.
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 :
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
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.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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."
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."
243
SHELL=${CONFIG_SHELL-/bin/sh}
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
254
# Portably unset VAR.
257
{ eval $1=; unset $1;}
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281
# Create "$as_dir" as a directory, including parents if necessary.
286
-*) as_dir=./$as_dir;;
288
test -d "$as_dir" || eval $as_mkdir_p || {
292
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
test -d "$as_dir" && break
321
test -z "$as_dirs" || eval "mkdir $as_dirs"
322
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
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
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
eval 'as_fn_append ()
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 :
357
as_val=`expr "$@" || test $? -eq 1`
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.
369
as_status=$?; test $as_status -eq 0 && as_status=1
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
374
$as_echo "$as_me: error: $1" >&2
375
as_fn_exit $as_status
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
test "X`expr 00001 : '.*\(...\)'`" = X001; then
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
X"$0" : 'X\(//\)$' \| \
400
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402
sed '/^.*\/\([^/][^/]*\)\/*$/{
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
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. :-)
440
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }
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).
451
# Exit status is that of the last command.
455
ECHO_C= ECHO_N= ECHO_T=
456
case `echo -n x` in #(((((
458
case `echo 'xy\c'` in
459
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
461
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468
rm -f conf$$ conf$$.exe conf$$.file
469
if test -d conf$$.dir; then
470
rm -f conf$$.dir/conf$$.file
473
mkdir conf$$.dir 2>/dev/null
475
if (echo >conf$$.file) 2>/dev/null; then
476
if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
484
elif ln conf$$.file conf$$ 2>/dev/null; then
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
rmdir conf$$.dir 2>/dev/null
495
if mkdir -p . 2>/dev/null; then
496
as_mkdir_p='mkdir -p "$as_dir"'
498
test -d ./-p && rmdir ./-p
502
if test -x / >/dev/null 2>&1; then
505
if ls -dL / >/dev/null 2>&1; then
512
if test -d "$1"; then
518
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519
???[sx]*):;;*)false;;esac;fi
523
as_executable_p=$as_test_x
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'"
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'"
533
# Check that we are running under the correct shell.
534
SHELL=${CONFIG_SHELL-/bin/sh}
538
# Remove one level of quotation (which was required for Make).
539
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544
if test "X$1" = X--no-reexec; then
545
# Discard the --no-reexec flag, and continue.
547
elif test "X$1" = X--fallback-echo; then
548
# Avoid inline document here, it may be left over
550
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551
# Yippee, $ECHO works!
554
# Restart under the correct shell.
555
exec $SHELL "$0" --no-reexec ${1+"$@"}
558
if test "X$1" = X--fallback-echo; then
559
# used as fallback echo
567
# The HP-UX ksh and POSIX shell print the target directory to stdout
569
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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
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'
593
# So, first we look for a working echo in the user's PATH.
595
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596
for dir in $PATH /usr/ucb; do
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
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.
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
622
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
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
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
637
SHELL="$CONFIG_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"
646
# maybe with a smaller string...
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
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+"$@"}
662
# Oops. We lost completely, so just stick with echo.
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.
674
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681
test -n "$DJDIR" || exec 7<&0 </dev/null
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`
692
ac_default_prefix=/usr/local
694
ac_config_libobj_dir=.
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'
709
ac_unique_file="src/server.c"
710
# Factoring default headers for most tests.
711
ac_includes_default="\
713
#ifdef HAVE_SYS_TYPES_H
714
# include <sys/types.h>
716
#ifdef HAVE_SYS_STAT_H
717
# include <sys/stat.h>
723
# ifdef HAVE_STDLIB_H
728
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733
#ifdef HAVE_STRINGS_H
734
# include <strings.h>
736
#ifdef HAVE_INTTYPES_H
737
# include <inttypes.h>
746
ac_subst_vars='am__EXEEXT_FALSE
749
CHECK_WITH_FASTCGI_FALSE
750
CHECK_WITH_FASTCGI_TRUE
751
CROSS_COMPILING_FALSE
830
INSTALL_STRIP_PROGRAM
884
program_transform_name
897
enable_option_checking
899
enable_dependency_tracking
911
with_openssl_includes
925
enable_extra_warnings
927
ac_precious_vars='build_alias
947
# Initialize some variables set by options.
949
ac_init_version=false
950
ac_unrecognized_opts=
952
# The variables have the same names as the options, with
953
# dashes changed to underlines.
961
program_transform_name=s,x,x,
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'
991
libdir='${exec_prefix}/lib'
992
localedir='${datarootdir}/locale'
993
mandir='${datarootdir}/man'
999
# If the previous option needs an argument, assign it.
1000
if test -n "$ac_prev"; then
1001
eval $ac_prev=\$ac_option
1007
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011
# Accept the important Cygnus configure options, so we can diagnose typos.
1013
case $ac_dashdash$ac_option in
1017
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1019
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020
bindir=$ac_optarg ;;
1022
-build | --build | --buil | --bui | --bu)
1023
ac_prev=build_alias ;;
1024
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025
build_alias=$ac_optarg ;;
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 ;;
1034
--config-cache | -C)
1035
cache_file=config.cache ;;
1037
-datadir | --datadir | --datadi | --datad)
1039
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1040
datadir=$ac_optarg ;;
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 ;;
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
1058
"enable_$ac_useropt"
1060
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061
ac_unrecognized_sep=', ';;
1063
eval enable_$ac_useropt=no ;;
1065
-docdir | --docdir | --docdi | --doc | --do)
1067
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068
docdir=$ac_optarg ;;
1070
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073
dvidir=$ac_optarg ;;
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
1084
"enable_$ac_useropt"
1086
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087
ac_unrecognized_sep=', ';;
1089
eval enable_$ac_useropt=\$ac_optarg ;;
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 ;;
1100
-gas | --gas | --ga | --g)
1101
# Obsolete; use --with-gas.
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 ;;
1111
-host | --host | --hos | --ho)
1112
ac_prev=host_alias ;;
1113
-host=* | --host=* | --hos=* | --ho=*)
1114
host_alias=$ac_optarg ;;
1116
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120
htmldir=$ac_optarg ;;
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 ;;
1129
-infodir | --infodir | --infodi | --infod | --info | --inf)
1131
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132
infodir=$ac_optarg ;;
1134
-libdir | --libdir | --libdi | --libd)
1136
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1137
libdir=$ac_optarg ;;
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 ;;
1146
-localedir | --localedir | --localedi | --localed | --locale)
1147
ac_prev=localedir ;;
1148
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149
localedir=$ac_optarg ;;
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 ;;
1158
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161
mandir=$ac_optarg ;;
1163
-nfp | --nfp | --nf)
1164
# Obsolete; use --without-fp.
1167
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168
| --no-cr | --no-c | -n)
1171
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
1184
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187
prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
1220
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223
pdfdir=$ac_optarg ;;
1225
-psdir | --psdir | --psdi | --psd | --ps)
1227
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231
| -silent | --silent | --silen | --sile | --sil)
1234
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238
sbindir=$ac_optarg ;;
1240
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1241
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242
| --sharedst | --shareds | --shared | --share | --shar \
1244
ac_prev=sharedstatedir ;;
1245
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249
sharedstatedir=$ac_optarg ;;
1251
-site | --site | --sit)
1253
-site=* | --site=* | --sit=*)
1256
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259
srcdir=$ac_optarg ;;
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 ;;
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 ;;
1273
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1276
-version | --version | --versio | --versi | --vers | -V)
1277
ac_init_version=: ;;
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
1290
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291
ac_unrecognized_sep=', ';;
1293
eval with_$ac_useropt=\$ac_optarg ;;
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
1306
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307
ac_unrecognized_sep=', ';;
1309
eval with_$ac_useropt=no ;;
1312
# Obsolete; use --with-x.
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 ;;
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 ;;
1329
-*) as_fn_error "unrecognized option: \`$ac_option'
1330
Try \`$0 --help' for more information."
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'" ;;
1340
eval $ac_envvar=\$ac_optarg
1341
export $ac_envvar ;;
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}
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"
1359
if test -n "$ac_unrecognized_opts"; then
1360
case $enable_option_checking in
1362
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1363
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
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
1373
eval ac_val=\$$ac_var
1374
# Remove trailing slashes.
1377
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378
eval $ac_var=\$ac_val;;
1380
# Be sure to have absolute directory names.
1382
[\\/$]* | ?:[\\/]* ) continue;;
1383
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
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.
1393
target=$target_alias
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
1407
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
test "$silent" = yes && exec 6>/dev/null
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"
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448
if test ! -r "$srcdir/$ac_unique_file"; then
1452
ac_srcdir_defaulted=no
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"
1458
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1462
# When building in place, set srcdir=.
1463
if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1470
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
1480
# Report the --help message.
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.
1486
\`configure' configures lighttpd 1.4.26 to adapt to many kinds of systems.
1488
Usage: $0 [OPTION]... [VAR=VALUE]...
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.
1493
Defaults for the options are specified in brackets.
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 \`..']
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
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'.
1517
For better control, use the options below.
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]
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
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]
1555
if test -n "$ac_init_help"; then
1556
case $ac_init_help in
1557
short | recursive ) echo "Configuration of lighttpd 1.4.26:";;
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)
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
1584
--with-mysql[=PATH] Include MySQL support. PATH is the path to
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
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
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>
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
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
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.
1627
Report bugs to <contact@lighttpd.net>.
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"; } ||
1641
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
1657
.) # We are building in place.
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 ;;
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 ;;
1670
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672
cd "$ac_dir" || { ac_status=$?; continue; }
1673
# Check for guested configure.
1674
if test -f "$ac_srcdir/configure.gnu"; then
1676
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677
elif test -f "$ac_srcdir/configure"; then
1679
$SHELL "$ac_srcdir/configure" --help=recursive
1681
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683
cd "$ac_pwd" || { ac_status=$?; break; }
1687
test -n "$ac_init_help" && exit $ac_status
1688
if $ac_init_version; then
1690
lighttpd configure 1.4.26
1691
generated by GNU Autoconf 2.65
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.
1700
## ------------------------ ##
1701
## Autoconf initialization. ##
1702
## ------------------------ ##
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 ()
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"
1713
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714
*) ac_try_echo=$ac_try;;
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
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
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 :
1732
$as_echo "$as_me: failed program was:" >&5
1733
sed 's/^/| /' conftest.$ac_ext >&5
1737
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738
as_fn_set_status $ac_retval
1740
} # ac_fn_c_try_compile
1742
# ac_fn_c_try_cpp LINENO
1743
# ----------------------
1744
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1747
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748
if { { ac_try="$ac_cpp conftest.$ac_ext"
1750
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751
*) ac_try_echo=$ac_try;;
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
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
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
1769
$as_echo "$as_me: failed program was:" >&5
1770
sed 's/^/| /' conftest.$ac_ext >&5
1774
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775
as_fn_set_status $ac_retval
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
1784
ac_fn_c_check_header_mongrel ()
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
1794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795
$as_echo "$ac_res" >&6; }
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. */
1805
if ac_fn_c_try_compile "$LINENO"; then :
1806
ac_header_compiler=yes
1808
ac_header_compiler=no
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; }
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. */
1821
if ac_fn_c_try_cpp "$LINENO"; then :
1822
ac_header_preproc=yes
1824
ac_header_preproc=no
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; }
1830
# So? What about this header?
1831
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
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;}
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;}
1850
## ----------------------------------- ##
1851
## Report this to contact@lighttpd.net ##
1852
## ----------------------------------- ##
1854
) | sed "s/^/$as_me: WARNING: /" >&2
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
1862
eval "$3=\$ac_header_compiler"
1865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866
$as_echo "$ac_res" >&6; }
1868
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870
} # ac_fn_c_check_header_mongrel
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.
1878
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879
if { { ac_try="$ac_link"
1881
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882
*) ac_try_echo=$ac_try;;
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
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;;
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
1898
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899
test $ac_status = 0; }; }; then :
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
1906
ac_retval=$ac_status
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
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 ()
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
1926
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927
/* end confdefs.h. */
1931
if ac_fn_c_try_compile "$LINENO"; then :
1936
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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;}
1943
} # ac_fn_c_check_header_compile
1945
# ac_fn_c_try_link LINENO
1946
# -----------------------
1947
# Try to link conftest.$ac_ext, and return whether this succeeded.
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"
1954
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955
*) ac_try_echo=$ac_try;;
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
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
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
1976
$as_echo "$as_me: failed program was:" >&5
1977
sed 's/^/| /' conftest.$ac_ext >&5
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
1989
} # ac_fn_c_try_link
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 ()
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
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
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. */
2014
# include <limits.h>
2016
# include <assert.h>
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. */
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
2043
if ac_fn_c_try_link "$LINENO"; then :
2048
rm -f core conftest.err conftest.$ac_objext \
2049
conftest$ac_exeext conftest.$ac_ext
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;}
2056
} # ac_fn_c_check_func
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 ()
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
2071
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072
/* end confdefs.h. */
2083
if ac_fn_c_try_compile "$LINENO"; then :
2084
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085
/* end confdefs.h. */
2096
if ac_fn_c_try_compile "$LINENO"; then :
2101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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;}
2110
} # ac_fn_c_check_type
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 ()
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
2124
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125
/* end confdefs.h. */
2137
if ac_fn_c_try_compile "$LINENO"; then :
2140
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141
/* end confdefs.h. */
2147
if (sizeof ac_aggr.$3)
2153
if ac_fn_c_try_compile "$LINENO"; then :
2158
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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;}
2167
} # ac_fn_c_check_member
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
2174
ac_fn_c_compute_int ()
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. */
2185
static int test_array [1 - 2 * !(($2) >= 0)];
2192
if ac_fn_c_try_compile "$LINENO"; then :
2195
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196
/* end confdefs.h. */
2201
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2208
if ac_fn_c_try_compile "$LINENO"; then :
2209
ac_hi=$ac_mid; break
2211
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2212
if test $ac_lo -le $ac_mid; then
2216
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2218
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222
/* end confdefs.h. */
2227
static int test_array [1 - 2 * !(($2) < 0)];
2234
if ac_fn_c_try_compile "$LINENO"; then :
2237
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238
/* end confdefs.h. */
2243
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2250
if ac_fn_c_try_compile "$LINENO"; then :
2251
ac_lo=$ac_mid; break
2253
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2254
if test $ac_mid -le $ac_hi; then
2258
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2260
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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. */
2277
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2284
if ac_fn_c_try_compile "$LINENO"; then :
2287
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2289
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2296
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297
/* end confdefs.h. */
2299
static long int longval () { return $2; }
2300
static unsigned long int ulongval () { return $2; }
2307
FILE *f = fopen ("conftest.val", "w");
2312
long int i = longval ();
2315
fprintf (f, "%ld", i);
2319
unsigned long int i = ulongval ();
2322
fprintf (f, "%lu", i);
2324
/* Do not output a trailing newline, as this causes \r\n confusion
2325
on some platforms. */
2326
return ferror (f) || fclose (f) != 0;
2332
if ac_fn_c_try_run "$LINENO"; then :
2333
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2337
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2338
conftest.$ac_objext conftest.beam conftest.$ac_ext
2342
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2343
as_fn_set_status $ac_retval
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.
2350
It was created by lighttpd $as_me 1.4.26, which was
2351
generated by GNU Autoconf 2.65. Invocation command line was
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`
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`
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`
2382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386
test -z "$as_dir" && as_dir=.
2387
$as_echo "PATH: $as_dir"
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.
2411
ac_must_keep_next=false
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)
2422
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2425
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
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.
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 ;;
2440
-* ) ac_must_keep_next=true ;;
2443
as_fn_append ac_configure_args " '$ac_arg'"
2448
{ ac_configure_args0=; unset ac_configure_args0;}
2449
{ ac_configure_args1=; unset ac_configure_args1;}
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.
2462
## ---------------- ##
2463
## Cache variables. ##
2464
## ---------------- ##
2467
# The following way of writing the cache mishandles newlines in values,
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
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;} ;;
2478
_ | IFS | as_nl) ;; #(
2479
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2480
*) { eval $ac_var=; unset $ac_var;} ;;
2485
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2486
*${as_nl}ac_space=\ *)
2488
"s/'\''/'\''\\\\'\'''\''/g;
2489
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2492
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2500
## ----------------- ##
2501
## Output variables. ##
2502
## ----------------- ##
2505
for ac_var in $ac_subst_vars
2507
eval ac_val=\$$ac_var
2509
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2511
$as_echo "$ac_var='\''$ac_val'\''"
2515
if test -n "$ac_subst_files"; then
2517
## ------------------- ##
2518
## File substitutions. ##
2519
## ------------------- ##
2522
for ac_var in $ac_subst_files
2524
eval ac_val=\$$ac_var
2526
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2528
$as_echo "$ac_var='\''$ac_val'\''"
2533
if test -s confdefs.h; then
2543
test "$ac_signal" != 0 &&
2544
$as_echo "$as_me: caught signal $ac_signal"
2545
$as_echo "$as_me: exit $exit_status"
2547
rm -f core *.core core.conftest.* &&
2548
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2551
for ac_signal in 1 2 13 15; do
2552
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2556
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2557
rm -f -r conftest* confdefs.h
2559
$as_echo "/* confdefs.h */" > confdefs.h
2561
# Predefined preprocessor variables.
2563
cat >>confdefs.h <<_ACEOF
2564
#define PACKAGE_NAME "$PACKAGE_NAME"
2567
cat >>confdefs.h <<_ACEOF
2568
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2571
cat >>confdefs.h <<_ACEOF
2572
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2575
cat >>confdefs.h <<_ACEOF
2576
#define PACKAGE_STRING "$PACKAGE_STRING"
2579
cat >>confdefs.h <<_ACEOF
2580
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2583
cat >>confdefs.h <<_ACEOF
2584
#define PACKAGE_URL "$PACKAGE_URL"
2588
# Let the site file select an alternate cache file if it wants to.
2589
# Prefer an explicitly selected file to automatically selected ones.
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
2598
ac_site_file1=$ac_default_prefix/share/config.site
2599
ac_site_file2=$ac_default_prefix/etc/config.site
2601
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
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
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;}
2619
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2620
*) . "./$cache_file";;
2624
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2625
$as_echo "$as_me: creating cache $cache_file" >&6;}
2629
# Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
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
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;}
2667
# Pass precious variables to config.status.
2668
if test "$ac_new_set" = set; then
2670
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2671
*) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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
2686
## -------------------- ##
2687
## Main body of script. ##
2688
## -------------------- ##
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
2698
ac_config_headers="$ac_config_headers config.h"
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
2707
ac_install_sh="$ac_aux_dir/$ac_t -c"
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
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.
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
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
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
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
2747
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2750
ac_save_IFS=$IFS; IFS='-'
2756
# Remember, the first character of IFS is used to create $*,
2757
# except with old shells:
2760
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
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
2768
if test "x$host_alias" = x; then
2769
ac_cv_host=$ac_cv_build
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
2776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2777
$as_echo "$ac_cv_host" >&6; }
2780
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2783
ac_save_IFS=$IFS; IFS='-'
2789
# Remember, the first character of IFS is used to create $*,
2790
# except with old shells:
2793
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
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
2801
if test "x$target_alias" = x; then
2802
ac_cv_target=$ac_cv_host
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
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
2813
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2815
target=$ac_cv_target
2816
ac_save_IFS=$IFS; IFS='-'
2822
# Remember, the first character of IFS is used to create $*,
2823
# except with old shells:
2826
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
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" = \
2834
program_prefix=${target_alias}-
2836
am__api_version='1.11'
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
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
2858
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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[\\/]* | \
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
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.
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.
2885
rm -rf conftest.one conftest.two conftest.dir
2886
echo one > conftest.one
2887
echo two > conftest.two
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
2894
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2907
rm -rf conftest.one conftest.two conftest.dir
2910
if test "${ac_cv_path_install+set}" = set; then
2911
INSTALL=$ac_cv_path_install
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
2920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2921
$as_echo "$INSTALL" >&6; }
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}'
2927
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2929
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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; }
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.
2941
*[\\\"\#\$\&\'\`$am_lf]*)
2942
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2945
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2946
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
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
2955
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2956
if test "$*" = "X"; then
2958
set X `ls -t "$srcdir/configure" conftest.file`
2961
if test "$*" != "X $srcdir/configure conftest.file" \
2962
&& test "$*" != "X conftest.file $srcdir/configure"; then
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
2972
test "$2" = conftest.file
2978
as_fn_error "newly created file is older than distributed files!
2979
Check your system clock" "$LINENO" 5
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"`
2993
# expand $ac_aux_dir to an absolute path
2994
am_aux_dir=`cd $ac_aux_dir && pwd`
2996
if test x"${MISSING+set}" != xset; then
2999
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3001
MISSING="\${SHELL} $am_aux_dir/missing" ;;
3004
# Use eval to expand $SHELL
3005
if eval "$MISSING --run true"; then
3006
am_missing_run="$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;}
3013
if test x"${install_sh}" != xset; then
3016
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3018
install_sh="\${SHELL} $am_aux_dir/install-sh"
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
3035
if test -n "$STRIP"; then
3036
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3038
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
3060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061
$as_echo "no" >&6; }
3066
if test -z "$ac_cv_prog_STRIP"; then
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
3075
if test -n "$ac_ct_STRIP"; then
3076
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3078
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
3100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101
$as_echo "no" >&6; }
3104
if test "x$ac_ct_STRIP" = x; then
3107
case $cross_compiling:$ac_tool_warned in
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 ;;
3116
STRIP="$ac_cv_prog_STRIP"
3120
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
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
3128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
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
3150
test -d ./--version && rmdir ./--version
3151
if test "${ac_cv_path_mkdir+set}" = set; then
3152
MKDIR_P="$ac_cv_path_mkdir -p"
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"
3161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3162
$as_echo "$MKDIR_P" >&6; }
3166
[\\/$]* | ?:[\\/]*) ;;
3167
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3170
for ac_prog in gawk mawk nawk awk
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
3179
if test -n "$AWK"; then
3180
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3200
if test -n "$AWK"; then
3201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3202
$as_echo "$AWK" >&6; }
3204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205
$as_echo "no" >&6; }
3209
test -n "$AWK" && break
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; }
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
3219
cat >conftest.make <<\_ACEOF
3222
@echo '@@@%%%=$(MAKE)=@@@%%%'
3224
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3225
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3227
eval ac_cv_prog_make_${ac_make}_set=yes;;
3229
eval ac_cv_prog_make_${ac_make}_set=no;;
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; }
3238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239
$as_echo "no" >&6; }
3240
SET_MAKE="MAKE=${MAKE-make}"
3243
rm -rf .tst 2>/dev/null
3244
mkdir .tst 2>/dev/null
3245
if test -d .tst; then
3250
rmdir .tst 2>/dev/null
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
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'
3272
# Define the identity of the package.
3277
cat >>confdefs.h <<_ACEOF
3278
#define PACKAGE "$PACKAGE"
3282
cat >>confdefs.h <<_ACEOF
3283
#define VERSION "$VERSION"
3286
# Some tools Automake needs.
3288
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3291
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3294
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3297
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3300
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3302
# We need awk for the "check" target. The system "awk" is bad on
3304
# Always define AMTAR for backward compatibility.
3306
AMTAR=${AMTAR-"${am_missing_run}tar"}
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
3320
for _am_tar in tar gnutar gtar;
3322
{ echo "$as_me:$LINENO: $_am_tar --version" >&5
3323
($_am_tar --version) >&5 2>&5
3325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326
(exit $ac_status); } && break
3328
am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3329
am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3330
am__untar="$_am_tar -xf -"
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 -'
3341
am__tar='pax -L -x ustar -w "$$tardir"'
3342
am__tar_='pax -L -x ustar -w "$tardir"'
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'
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
3361
# tar/untar a dummy directory, and stop if the command works
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
3368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369
(exit $ac_status); }
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
3375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376
(exit $ac_status); }
3377
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3382
if test "${am_cv_prog_tar_ustar+set}" = set; then :
3383
$as_echo_n "(cached) " >&6
3385
am_cv_prog_tar_ustar=$_am_tool
3388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3389
$as_echo "$am_cv_prog_tar_ustar" >&6; }
3396
# Check whether --enable-silent-rules was given.
3397
if test "${enable_silent_rules+set}" = set; then :
3398
enableval=$enable_silent_rules;
3401
case $enable_silent_rules in
3402
yes) AM_DEFAULT_VERBOSITY=0;;
3403
no) AM_DEFAULT_VERBOSITY=1;;
3404
*) AM_DEFAULT_VERBOSITY=1;;
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
3422
if test -n "$CC"; then
3423
ac_cv_prog_CC="$CC" # Let the user override the test.
3425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3443
if test -n "$CC"; then
3444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445
$as_echo "$CC" >&6; }
3447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448
$as_echo "no" >&6; }
3453
if test -z "$ac_cv_prog_CC"; then
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
3462
if test -n "$ac_ct_CC"; then
3463
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
3487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488
$as_echo "no" >&6; }
3491
if test "x$ac_ct_CC" = x; then
3494
case $cross_compiling:$ac_tool_warned in
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 ;;
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
3515
if test -n "$CC"; then
3516
ac_cv_prog_CC="$CC" # Let the user override the test.
3518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3536
if test -n "$CC"; then
3537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538
$as_echo "$CC" >&6; }
3540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541
$as_echo "no" >&6; }
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
3555
if test -n "$CC"; then
3556
ac_cv_prog_CC="$CC" # Let the user override the test.
3559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3571
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
3587
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3593
if test -n "$CC"; then
3594
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3595
$as_echo "$CC" >&6; }
3597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598
$as_echo "no" >&6; }
3603
if test -z "$CC"; then
3604
if test -n "$ac_tool_prefix"; then
3605
for ac_prog in cl.exe
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
3614
if test -n "$CC"; then
3615
ac_cv_prog_CC="$CC" # Let the user override the test.
3617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3635
if test -n "$CC"; then
3636
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637
$as_echo "$CC" >&6; }
3639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640
$as_echo "no" >&6; }
3644
test -n "$CC" && break
3647
if test -z "$CC"; then
3649
for ac_prog in cl.exe
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
3658
if test -n "$ac_ct_CC"; then
3659
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3661
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
3683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684
$as_echo "no" >&6; }
3688
test -n "$ac_ct_CC" && break
3691
if test "x$ac_ct_CC" = x; then
3694
case $cross_compiling:$ac_tool_warned in
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 ;;
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; }
3712
# Provide some information about the compiler.
3713
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3716
for ac_option in --version -v -V -qversion; do
3717
{ { ac_try="$ac_compiler $ac_option >&5"
3719
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720
*) ac_try_echo=$ac_try;;
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
3726
if test -s conftest.err; then
3728
... rest of stderr output deleted ...
3729
10q' conftest.err >conftest.er1
3730
cat conftest.er1 >&5
3732
rm -f conftest.er1 conftest.err
3733
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734
test $ac_status = 0; }
3737
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738
/* end confdefs.h. */
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
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[^ ]*//'`
3757
# The possible output files:
3758
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3761
for ac_file in $ac_files
3764
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3765
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3770
if { { ac_try="$ac_link_default"
3772
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773
*) ac_try_echo=$ac_try;;
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
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
3786
for ac_file in $ac_files ''
3788
test -f "$ac_file" || continue
3790
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3793
# We found the default executable, but exeext='' is most
3797
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3799
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
3811
test "$ac_cv_exeext" = no && ac_cv_exeext=
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
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; }; }
3828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3829
$as_echo "yes" >&6; }
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
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"
3843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844
*) ac_try_echo=$ac_try;;
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
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
3856
for ac_file in conftest.exe conftest conftest.*; do
3857
test -f "$ac_file" || continue
3859
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3860
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }
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; }
3875
rm -f conftest.$ac_ext
3876
EXEEXT=$ac_cv_exeext
3878
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879
/* end confdefs.h. */
3884
FILE *f = fopen ("conftest.out", "w");
3885
return ferror (f) || fclose (f) != 0;
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"
3899
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900
*) ac_try_echo=$ac_try;;
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
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;;
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
3917
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918
test $ac_status = 0; }; }; then
3921
if test "$cross_compiling" = maybe; then
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; }
3932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3933
$as_echo "$cross_compiling" >&6; }
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
3942
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943
/* end confdefs.h. */
3953
rm -f conftest.o conftest.obj
3954
if { { ac_try="$ac_compile"
3956
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957
*) ac_try_echo=$ac_try;;
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
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;
3968
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3969
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3974
$as_echo "$as_me: failed program was:" >&5
3975
sed 's/^/| /' conftest.$ac_ext >&5
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; }
3982
rm -f conftest.$ac_cv_objext conftest.$ac_ext
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
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
3993
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994
/* end confdefs.h. */
4007
if ac_fn_c_try_compile "$LINENO"; then :
4012
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013
ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
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
4030
ac_save_c_werror_flag=$ac_c_werror_flag
4031
ac_c_werror_flag=yes
4034
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035
/* end confdefs.h. */
4045
if ac_fn_c_try_compile "$LINENO"; then :
4049
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050
/* end confdefs.h. */
4060
if ac_fn_c_try_compile "$LINENO"; then :
4063
ac_c_werror_flag=$ac_save_c_werror_flag
4065
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066
/* end confdefs.h. */
4076
if ac_fn_c_try_compile "$LINENO"; then :
4079
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084
ac_c_werror_flag=$ac_save_c_werror_flag
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
4097
if test "$GCC" = yes; then
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
4108
ac_cv_prog_cc_c89=no
4110
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111
/* end confdefs.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)
4125
static char *f (char * (*g) (char **, int), char **p, ...)
4130
s = g (p, va_arg (v,int));
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];
4144
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4145
inside strings and character constants. */
4147
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
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);
4158
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4163
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4164
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4166
CC="$ac_save_CC $ac_arg"
4167
if ac_fn_c_try_compile "$LINENO"; then :
4168
ac_cv_prog_cc_c89=$ac_arg
4170
rm -f core conftest.err conftest.$ac_objext
4171
test "x$ac_cv_prog_cc_c89" != "xno" && break
4173
rm -f conftest.$ac_ext
4178
case "x$ac_cv_prog_cc_c89" in
4180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4181
$as_echo "none needed" >&6; } ;;
4183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4184
$as_echo "unsupported" >&6; } ;;
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; } ;;
4190
if test "x$ac_cv_prog_cc_c89" != xno; then :
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"
4201
ac_config_commands="$ac_config_commands depfiles"
4204
am_make=${MAKE-make}
4205
cat > confinc << 'END'
4207
@echo this is the am__doit target
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; }
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*)
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
4239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4240
$as_echo "$_am_result" >&6; }
4241
rm -f confinc confmf
4243
# Check whether --enable-dependency-tracking was given.
4244
if test "${enable_dependency_tracking+set}" = set; then :
4245
enableval=$enable_dependency_tracking;
4248
if test "x$enable_dependency_tracking" != xno; then
4249
am_depcomp="$ac_aux_dir/depcomp"
4252
if test "x$enable_dependency_tracking" != xno; then
4262
depcc="$CC" am_compiler_list=
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
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
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
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
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`
4293
case " $depcc " in #(
4294
*\ -arch\ *\ -arch\ *) am__universal=true ;;
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.
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.
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
4312
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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"
4322
# This depmode causes a compiler race in universal mode.
4323
test "$am__universal" = false || continue
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
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}
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
4370
am_cv_CC_dependencies_compiler_type=none
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
4379
test "x$enable_dependency_tracking" != xno \
4380
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4382
am__fastdepCC_FALSE='#'
4384
am__fastdepCC_TRUE='#'
4385
am__fastdepCC_FALSE=
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; }
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; }
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
4401
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402
/* end confdefs.h. */
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'
4417
if { { case "(($ac_try" in
4418
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419
*) ac_try_echo=$ac_try;;
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
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;;
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
4435
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436
test $ac_status = 0; };
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;;
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
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'
4454
if { { case "(($ac_try" in
4455
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456
*) ac_try_echo=$ac_try;;
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
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;;
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
4472
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473
test $ac_status = 0; };
4478
# cc exists but doesn't like -o.
4479
eval ac_cv_prog_cc_${ac_cc}_c_o=no
4484
eval ac_cv_prog_cc_${ac_cc}_c_o=no
4486
rm -f core conftest*
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; }
4493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494
$as_echo "no" >&6; }
4496
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4500
# FIXME: we rely on the cache variable name because
4501
# there is no other way.
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"
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
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"
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
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
4542
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4545
$as_echo_n 0123456789 >"conftest.in"
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
4560
# 10*(2^10) chars as input seems more than enough
4561
test $ac_count -gt 10 && break
4563
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4566
$ac_path_SED_found && break 3
4571
if test -z "$ac_cv_path_SED"; then
4572
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
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"
4584
test -z "$SED" && SED=sed
4585
Xsed="$SED -e 1s/^X//"
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
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
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
4618
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4621
$as_echo_n 0123456789 >"conftest.in"
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
4636
# 10*(2^10) chars as input seems more than enough
4637
test $ac_count -gt 10 && break
4639
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4642
$ac_path_GREP_found && break 3
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
4651
ac_cv_path_GREP=$GREP
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"
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
4665
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4666
then ac_cv_path_EGREP="$GREP -E"
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
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
4684
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4687
$as_echo_n 0123456789 >"conftest.in"
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
4702
# 10*(2^10) chars as input seems more than enough
4703
test $ac_count -gt 10 && break
4705
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4708
$ac_path_EGREP_found && break 3
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
4717
ac_cv_path_EGREP=$EGREP
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"
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
4732
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4733
then ac_cv_path_FGREP="$GREP -F"
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
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
4751
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4754
$as_echo_n 0123456789 >"conftest.in"
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
4769
# 10*(2^10) chars as input seems more than enough
4770
test $ac_count -gt 10 && break
4772
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4775
$ac_path_FGREP_found && break 3
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
4784
ac_cv_path_FGREP=$FGREP
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"
4794
test -z "$GREP" && GREP=grep
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
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; }
4828
# gcc leaves a trailing carriage return which upsets mingw
4829
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4831
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4834
# Accept absolute paths.
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%/%"`
4842
test -z "$LD" && LD="$ac_prog"
4845
# If it fails, then pretend we aren't using GCC.
4849
# If it is relative, then search for the first ld in PATH.
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; }
4857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4858
$as_echo_n "checking for non-GNU ld... " >&6; }
4860
if test "${lt_cv_path_LD+set}" = set; then :
4861
$as_echo_n "(cached) " >&6
4863
if test -z "$LD"; then
4864
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4865
for ac_dir in $PATH; do
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
4878
test "$with_gnu_ld" != yes && break
4885
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4890
if test -n "$LD"; then
4891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4892
$as_echo "$LD" >&6; }
4894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895
$as_echo "no" >&6; }
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
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
4909
lt_cv_prog_gnu_ld=no
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
4926
for ac_prog in gawk mawk nawk awk
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
4935
if test -n "$AWK"; then
4936
ac_cv_prog_AWK="$AWK" # Let the user override the test.
4938
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4956
if test -n "$AWK"; then
4957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4958
$as_echo "$AWK" >&6; }
4960
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961
$as_echo "no" >&6; }
4965
test -n "$AWK" && break
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
4979
if test -z "$CPP"; then
4980
if test "${ac_cv_prog_CPP+set}" = set; then :
4981
$as_echo_n "(cached) " >&6
4983
# Double quotes because CPP needs to be expanded
4984
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4987
for ac_c_preproc_warn_flag in '' yes
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. */
4998
# include <limits.h>
5000
# include <assert.h>
5004
if ac_fn_c_try_cpp "$LINENO"; then :
5007
# Broken: fails on valid input.
5010
rm -f conftest.err conftest.$ac_ext
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>
5018
if ac_fn_c_try_cpp "$LINENO"; then :
5019
# Broken: success on invalid input.
5022
# Passes both tests.
5026
rm -f conftest.err conftest.$ac_ext
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 :
5043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5044
$as_echo "$CPP" >&6; }
5046
for ac_c_preproc_warn_flag in '' yes
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. */
5057
# include <limits.h>
5059
# include <assert.h>
5063
if ac_fn_c_try_cpp "$LINENO"; then :
5066
# Broken: fails on valid input.
5069
rm -f conftest.err conftest.$ac_ext
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>
5077
if ac_fn_c_try_cpp "$LINENO"; then :
5078
# Broken: success on invalid input.
5081
# Passes both tests.
5085
rm -f conftest.err conftest.$ac_ext
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 :
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; }
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
5105
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5106
$as_echo_n "checking whether ln -s works... " >&6; }
5108
if test "$LN_S" = "ln -s"; then
5109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5110
$as_echo "yes" >&6; }
5112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5113
$as_echo "no, using $LN_S" >&6; }
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; }
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
5123
cat >conftest.make <<\_ACEOF
5126
@echo '@@@%%%=$(MAKE)=@@@%%%'
5128
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5129
case `${MAKE-make} -f conftest.make 2>/dev/null` in
5131
eval ac_cv_prog_make_${ac_make}_set=yes;;
5133
eval ac_cv_prog_make_${ac_make}_set=no;;
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; }
5142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143
$as_echo "no" >&6; }
5144
SET_MAKE="MAKE=${MAKE-make}"
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
5155
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156
/* end confdefs.h. */
5170
if ac_fn_c_try_compile "$LINENO"; then :
5171
ac_cv_header_stdc=yes
5173
ac_cv_header_stdc=no
5175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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. */
5184
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5185
$EGREP "memchr" >/dev/null 2>&1; then :
5188
ac_cv_header_stdc=no
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. */
5201
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5202
$EGREP "free" >/dev/null 2>&1; then :
5205
ac_cv_header_stdc=no
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 :
5216
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217
/* end confdefs.h. */
5220
#if ((' ' & 0x0FF) == 0x020)
5221
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5222
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
5231
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5236
for (i = 0; i < 256; i++)
5237
if (XOR (islower (i), ISLOWER (i))
5238
|| toupper (i) != TOUPPER (i))
5243
if ac_fn_c_try_run "$LINENO"; then :
5246
ac_cv_header_stdc=no
5248
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5249
conftest.$ac_objext conftest.beam conftest.$ac_ext
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
5258
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
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
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
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
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 :
5289
if test "$MINIX" = yes; then
5291
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5294
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5297
$as_echo "#define _MINIX 1" >>confdefs.h
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
5307
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308
/* end confdefs.h. */
5310
# define __EXTENSIONS__ 1
5311
$ac_includes_default
5320
if ac_fn_c_try_compile "$LINENO"; then :
5321
ac_cv_safe_to_define___extensions__=yes
5323
ac_cv_safe_to_define___extensions__=no
5325
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
5332
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5334
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5336
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5338
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
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
5347
ac_func_search_save_LIBS=$LIBS
5348
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349
/* end confdefs.h. */
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. */
5366
for ac_lib in '' cposix; do
5367
if test -z "$ac_lib"; then
5368
ac_res="none required"
5371
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5373
if ac_fn_c_try_link "$LINENO"; then :
5374
ac_cv_search_strerror=$ac_res
5376
rm -f core conftest.err conftest.$ac_objext \
5378
if test "${ac_cv_search_strerror+set}" = set; then :
5382
if test "${ac_cv_search_strerror+set}" = set; then :
5385
ac_cv_search_strerror=no
5388
LIBS=$ac_func_search_save_LIBS
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"
5401
*darwin*|*cygwin*|*aix*|*mingw* ) NO_RDYNAMIC=yes;;
5402
* ) NO_RDYNAMIC=no;;
5404
if test x$NO_RDYNAMIC = xyes; then
5406
NO_RDYNAMIC_FALSE='#'
5408
NO_RDYNAMIC_TRUE='#'
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; }
5421
$as_echo "#define PROTOTYPES 1" >>confdefs.h
5424
$as_echo "#define __PROTOTYPES 1" >>confdefs.h
5427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428
$as_echo "no" >&6; }
5432
if test "$ac_cv_prog_cc_stdc" != no; then
5435
U=_ ANSI2KNR=./ansi2knr
5437
# Ensure some checks needed by ansi2knr itself.
5439
for ac_header in string.h
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
5453
# Check whether --enable-static was given.
5454
if test "${enable_static+set}" = set; then :
5455
enableval=$enable_static; p=${PACKAGE-default}
5457
yes) enable_static=yes ;;
5458
no) 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
5465
if test "X$pkg" = "X$p"; then
5484
# Check whether --enable-shared was given.
5485
if test "${enable_shared+set}" = set; then :
5486
enableval=$enable_shared; p=${PACKAGE-default}
5488
yes) enable_shared=yes ;;
5489
no) 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
5496
if test "X$pkg" = "X$p"; then
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;} ;;
5528
macro_version='2.2.6b'
5529
macro_revision='1.3017'
5543
ltmain="$ac_aux_dir/ltmain.sh"
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
5550
if test -n "$NM"; then
5551
# Let the user override the test.
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"
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
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"
5575
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5577
lt_cv_path_NM="$tmp_nm -p"
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
5591
: ${lt_cv_path_NM=no}
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
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"
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
5610
if test -n "$DUMPBIN"; then
5611
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636
$as_echo "no" >&6; }
5640
test -n "$DUMPBIN" && break
5643
if test -z "$DUMPBIN"; then
5644
ac_ct_DUMPBIN=$DUMPBIN
5645
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
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
5654
if test -n "$ac_ct_DUMPBIN"; then
5655
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680
$as_echo "no" >&6; }
5684
test -n "$ac_ct_DUMPBIN" && break
5687
if test "x$ac_ct_DUMPBIN" = x; then
5690
case $cross_compiling:$ac_tool_warned in
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 ;;
5696
DUMPBIN=$ac_ct_DUMPBIN
5701
if test "$DUMPBIN" != ":"; then
5705
test -z "$NM" && NM=nm
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
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"
5732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5733
$as_echo "$lt_cv_nm_interface" >&6; }
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
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
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;
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;
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;
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`
5784
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
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`
5792
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5793
lt_cv_sys_max_cmd_len=196608
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
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 ;;
5810
lt_cv_sys_max_cmd_len=102400
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/.*[ ]//'`
5817
lt_cv_sys_max_cmd_len=32768
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`
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
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
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
5840
teststring=$teststring$teststring
5842
# Only check the string length outside the loop.
5843
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
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`
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; }
5859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5860
$as_echo "none" >&6; }
5862
max_cmd_len=$lt_cv_sys_max_cmd_len
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
5878
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5880
&& eval 'test $(( 1 + 1 )) -eq 2 \
5881
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5884
$as_echo "$xsi_shell" >&6; }
5887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5888
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5890
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
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; }
5897
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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'
5914
*) # EBCDIC based system
5915
lt_SP2NL='tr \100 \n'
5916
lt_NL2SP='tr \r\n \100\100'
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
5933
lt_cv_ld_reload_flag='-r'
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
5940
*) reload_flag=" $reload_flag" ;;
5942
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5945
if test "$GCC" = yes; then
5946
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5948
reload_cmds='$LD$reload_flag -o $output$reload_objs'
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
5969
if test -n "$OBJDUMP"; then
5970
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995
$as_echo "no" >&6; }
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
6009
if test -n "$ac_ct_OBJDUMP"; then
6010
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6012
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035
$as_echo "no" >&6; }
6038
if test "x$ac_ct_OBJDUMP" = x; then
6041
case $cross_compiling:$ac_tool_warned in
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 ;;
6047
OBJDUMP=$ac_ct_OBJDUMP
6050
OBJDUMP="$ac_cv_prog_OBJDUMP"
6053
test -z "$OBJDUMP" && OBJDUMP=objdump
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
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.
6084
lt_cv_deplibs_check_method=pass_all
6088
lt_cv_deplibs_check_method=pass_all
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
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'
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'
6111
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6112
lt_cv_file_magic_cmd='$OBJDUMP -f'
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'
6122
darwin* | rhapsody*)
6123
lt_cv_deplibs_check_method=pass_all
6126
freebsd* | dragonfly*)
6127
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
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.*`
6138
lt_cv_deplibs_check_method=pass_all
6143
lt_cv_deplibs_check_method=pass_all
6146
hpux10.20* | hpux11*)
6147
lt_cv_file_magic_cmd=/usr/bin/file
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
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
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
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)$'
6169
irix5* | irix6* | nonstopux*)
6171
*-32|*"-32 ") libmagic=32-bit;;
6172
*-n32|*"-n32 ") libmagic=N32;;
6173
*-64|*"-64 ") libmagic=64-bit;;
6174
*) libmagic=never-match;;
6176
lt_cv_deplibs_check_method=pass_all
6179
# This must be Linux ELF.
6180
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6181
lt_cv_deplibs_check_method=pass_all
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)$'
6188
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
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
6199
lt_cv_deplibs_check_method=pass_all
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)$'
6206
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6210
osf3* | osf4* | osf5*)
6211
lt_cv_deplibs_check_method=pass_all
6215
lt_cv_deplibs_check_method=pass_all
6219
lt_cv_deplibs_check_method=pass_all
6222
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6223
lt_cv_deplibs_check_method=pass_all
6227
case $host_vendor in
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*`
6233
lt_cv_deplibs_check_method=pass_all
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 )'
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
6245
lt_cv_deplibs_check_method=pass_all
6248
lt_cv_deplibs_check_method=pass_all
6254
lt_cv_deplibs_check_method=pass_all
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
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
6284
if test -n "$AR"; then
6285
ac_cv_prog_AR="$AR" # Let the user override the test.
6287
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
6305
if test -n "$AR"; then
6306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6307
$as_echo "$AR" >&6; }
6309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310
$as_echo "no" >&6; }
6315
if test -z "$ac_cv_prog_AR"; then
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
6324
if test -n "$ac_ct_AR"; then
6325
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6327
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350
$as_echo "no" >&6; }
6353
if test "x$ac_ct_AR" = x; then
6356
case $cross_compiling:$ac_tool_warned in
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 ;;
6368
test -z "$AR" && AR=ar
6369
test -z "$AR_FLAGS" && AR_FLAGS=cru
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
6389
if test -n "$STRIP"; then
6390
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415
$as_echo "no" >&6; }
6420
if test -z "$ac_cv_prog_STRIP"; then
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
6429
if test -n "$ac_ct_STRIP"; then
6430
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455
$as_echo "no" >&6; }
6458
if test "x$ac_ct_STRIP" = x; then
6461
case $cross_compiling:$ac_tool_warned in
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 ;;
6470
STRIP="$ac_cv_prog_STRIP"
6473
test -z "$STRIP" && STRIP=:
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
6488
if test -n "$RANLIB"; then
6489
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514
$as_echo "no" >&6; }
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
6528
if test -n "$ac_ct_RANLIB"; then
6529
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554
$as_echo "no" >&6; }
6557
if test "x$ac_ct_RANLIB" = x; then
6560
case $cross_compiling:$ac_tool_warned in
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 ;;
6566
RANLIB=$ac_ct_RANLIB
6569
RANLIB="$ac_cv_prog_RANLIB"
6572
test -z "$RANLIB" && RANLIB=:
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=
6584
if test -n "$RANLIB"; then
6587
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6590
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6593
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6629
# If no C compiler was specified, use CC.
6632
# If no C compiler flags were specified, use CFLAGS.
6633
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6635
# Allow CC to be a program name with arguments.
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
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?!! ;)]
6649
# Character class describing NM global symbol codes.
6650
symcode='[BCDEGRST]'
6652
# Regexp to match symbols that can be accessed directly from C.
6653
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6655
# Define system-specific variables.
6660
cygwin* | mingw* | pw32* | cegcc*)
6661
symcode='[ABCDGISTW]'
6664
if test "$host_cpu" = ia64; then
6665
symcode='[ABCDEGRST]'
6669
symcode='[BCDEGRST]'
6672
symcode='[BCDEGQRST]'
6683
sysv5* | sco5v6* | unixware* | OpenUNIX*)
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]' ;;
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'"
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'"
6706
# Handle CRLF in mingw tool chain
6710
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6714
# Try without a prefix underscore, then with it.
6715
for ac_symprfx in "" "_"; do
6717
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6718
symxfrm="\\1 $ac_symprfx\\2 \\2"
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"
6738
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6741
# Check to see that the pipe works correctly.
6745
cat > conftest.$ac_ext <<_LT_EOF
6750
void nm_test_func(void);
6751
void nm_test_func(void){}
6755
int main(){nm_test_var='a';nm_test_func();return(0);}
6758
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6759
(eval $ac_compile) 2>&5
6761
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6762
test $ac_status = 0; }; then
6763
# Now try to grab the symbols.
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
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"
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
6786
# Now generate the symbol file.
6787
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6789
cat <<_LT_EOF >> conftest.$ac_ext
6791
/* The mapping between symbol names and symbols. */
6796
lt__PROGRAM__LTX_preloaded_symbols[] =
6798
{ "@PROGRAM@", (void *) 0 },
6800
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6801
cat <<\_LT_EOF >> conftest.$ac_ext
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;
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
6825
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6826
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6829
LIBS="$lt_save_LIBS"
6830
CFLAGS="$lt_save_CFLAGS"
6832
echo "cannot find nm_test_func in $nlist" >&5
6835
echo "cannot find nm_test_var in $nlist" >&5
6838
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6841
echo "$progname: failed program was:" >&5
6842
cat conftest.$ac_ext >&5
6844
rm -rf conftest* conftst*
6846
# Do not use the global_symbol_pipe unless it works.
6847
if test "$pipe_works" = yes; then
6850
lt_cv_sys_global_symbol_pipe=
6856
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6857
lt_cv_sys_global_symbol_to_cdecl=
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; }
6863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6864
$as_echo "ok" >&6; }
6888
# Check whether --enable-libtool-lock was given.
6889
if test "${enable_libtool_lock+set}" = set; then :
6890
enableval=$enable_libtool_lock;
6893
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6895
# Some flags need to be propagated to the compiler or linker for good
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
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
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
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
6928
LD="${LD-ld} -melf32bsmip"
6931
LD="${LD-ld} -melf32bmipn32"
6934
LD="${LD-ld} -melf64bmip"
6938
case `/usr/bin/file conftest.$ac_objext` in
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
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
6966
x86_64-*kfreebsd*-gnu)
6967
LD="${LD-ld} -m elf_i386_fbsd"
6970
LD="${LD-ld} -m elf_i386"
6972
ppc64-*linux*|powerpc64-*linux*)
6973
LD="${LD-ld} -m elf32ppclinux"
6976
LD="${LD-ld} -m elf_s390"
6979
LD="${LD-ld} -m elf32_sparc"
6985
x86_64-*kfreebsd*-gnu)
6986
LD="${LD-ld} -m elf_x86_64_fbsd"
6989
LD="${LD-ld} -m elf_x86_64"
6991
ppc*-*linux*|powerpc*-*linux*)
6992
LD="${LD-ld} -m elf64ppc"
6994
s390*-*linux*|s390*-*tpf*)
6995
LD="${LD-ld} -m elf64_s390"
6998
LD="${LD-ld} -m elf64_sparc"
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
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
7022
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023
/* end confdefs.h. */
7033
if ac_fn_c_try_link "$LINENO"; then :
7034
lt_cv_cc_needs_belf=yes
7036
lt_cv_cc_needs_belf=no
7038
rm -f core conftest.err conftest.$ac_objext \
7039
conftest$ac_exeext conftest.$ac_ext
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
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"
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
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
7064
case $lt_cv_prog_gnu_ld in
7065
yes*) LD="${LD-ld} -m elf64_sparc" ;;
7067
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7079
need_locks="$enable_libtool_lock"
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
7092
if test -n "$DSYMUTIL"; then
7093
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118
$as_echo "no" >&6; }
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
7132
if test -n "$ac_ct_DSYMUTIL"; then
7133
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7135
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158
$as_echo "no" >&6; }
7161
if test "x$ac_ct_DSYMUTIL" = x; then
7164
case $cross_compiling:$ac_tool_warned in
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 ;;
7170
DSYMUTIL=$ac_ct_DSYMUTIL
7173
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
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
7184
if test -n "$NMEDIT"; then
7185
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210
$as_echo "no" >&6; }
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
7224
if test -n "$ac_ct_NMEDIT"; then
7225
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250
$as_echo "no" >&6; }
7253
if test "x$ac_ct_NMEDIT" = x; then
7256
case $cross_compiling:$ac_tool_warned in
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 ;;
7262
NMEDIT=$ac_ct_NMEDIT
7265
NMEDIT="$ac_cv_prog_NMEDIT"
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
7276
if test -n "$LIPO"; then
7277
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7301
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302
$as_echo "no" >&6; }
7307
if test -z "$ac_cv_prog_LIPO"; then
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
7316
if test -n "$ac_ct_LIPO"; then
7317
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342
$as_echo "no" >&6; }
7345
if test "x$ac_ct_LIPO" = x; then
7348
case $cross_compiling:$ac_tool_warned in
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 ;;
7357
LIPO="$ac_cv_prog_LIPO"
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
7368
if test -n "$OTOOL"; then
7369
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394
$as_echo "no" >&6; }
7399
if test -z "$ac_cv_prog_OTOOL"; then
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
7408
if test -n "$ac_ct_OTOOL"; then
7409
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434
$as_echo "no" >&6; }
7437
if test "x$ac_ct_OTOOL" = x; then
7440
case $cross_compiling:$ac_tool_warned in
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 ;;
7449
OTOOL="$ac_cv_prog_OTOOL"
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
7460
if test -n "$OTOOL64"; then
7461
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486
$as_echo "no" >&6; }
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
7500
if test -n "$ac_ct_OTOOL64"; then
7501
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7503
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
7525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526
$as_echo "no" >&6; }
7529
if test "x$ac_ct_OTOOL64" = x; then
7532
case $cross_compiling:$ac_tool_warned in
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 ;;
7538
OTOOL64=$ac_ct_OTOOL64
7541
OTOOL64="$ac_cv_prog_OTOOL64"
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
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
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
7588
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7589
lt_cv_apple_cc_single_mod=yes
7591
cat conftest.err >&5
7593
rm -rf libconftest.dylib*
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
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. */
7619
if ac_fn_c_try_link "$LINENO"; then :
7620
lt_cv_ld_exported_symbols_list=yes
7622
lt_cv_ld_exported_symbols_list=no
7624
rm -f core conftest.err conftest.$ac_objext \
7625
conftest$ac_exeext conftest.$ac_ext
7626
LDFLAGS="$save_LDFLAGS"
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; }
7632
rhapsody* | darwin1.[012])
7633
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
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' ;;
7644
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7646
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7650
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7651
_lt_dar_single_mod='$single_module'
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'
7656
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7658
if test "$DSYMUTIL" != ":"; then
7659
_lt_dsymutil='~$DSYMUTIL $lib || :'
7666
for ac_header in dlfcn.h
7668
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7670
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7671
cat >>confdefs.h <<_ACEOF
7672
#define HAVE_DLFCN_H 1
7692
# Check whether --with-pic was given.
7693
if test "${with_pic+set}" = set; then :
7694
withval=$with_pic; pic_mode="$withval"
7700
test -z "$pic_mode" && pic_mode=default
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}
7712
yes) enable_fast_install=yes ;;
7713
no) enable_fast_install=no ;;
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
7720
if test "X$pkg" = "X$p"; then
7721
enable_fast_install=yes
7728
enable_fast_install=yes
7741
# This can be used to rebuild libtool when needed
7742
LIBTOOL_DEPS="$ltmain"
7744
# Always use our own libtool.
7745
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7771
test -z "$LN_S" && LN_S="ln -s"
7786
if test -n "${ZSH_VERSION+set}" ; then
7787
setopt NO_GLOB_SUBST
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
7795
rm -f .libs 2>/dev/null
7796
mkdir .libs 2>/dev/null
7797
if test -d .libs; then
7800
# MS-DOS does not allow filenames that begin with a dot.
7803
rmdir .libs 2>/dev/null
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
7813
cat >>confdefs.h <<_ACEOF
7814
#define LT_OBJDIR "$lt_cv_objdir/"
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
7840
export COLLECT_NAMES
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'
7849
# Same as above, but do not quote variable references.
7850
double_quote_subst='s/\(["`\\]\)/\\\1/g'
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'
7856
# Sed substitution to delay expansion of an escaped single quote.
7857
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7859
# Sed substitution to avoid accidental globbing in evaled expressions
7860
no_glob_subst='s/\*/\\\*/g'
7864
can_build_shared=yes
7866
# All known linkers require a `.a' archive for static linking (except MSVC,
7867
# which needs '.lib').
7870
with_gnu_ld="$lt_cv_prog_gnu_ld"
7873
old_CFLAGS="$CFLAGS"
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
7882
for cc_temp in $compiler""; do
7884
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7885
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7890
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
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
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
7905
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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
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
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
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
7944
MAGIC_CMD="$lt_save_MAGIC_CMD"
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; }
7954
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955
$as_echo "no" >&6; }
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
7971
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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
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
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
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
8010
MAGIC_CMD="$lt_save_MAGIC_CMD"
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; }
8020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021
$as_echo "no" >&6; }
8034
# Use C for the default configuration in the libtool script
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
8044
# Source file extension for C test sources.
8047
# Object file extension for compiled C test sources.
8051
# Code to be used in simple compile tests
8052
lt_simple_compile_test_code="int some_variable = 0;"
8054
# Code to be used in simple link tests
8055
lt_simple_link_test_code='int main(){return(0);}'
8063
# If no C compiler was specified, use CC.
8066
# If no C compiler flags were specified, use CFLAGS.
8067
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8069
# Allow CC to be a program name with arguments.
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
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`
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`
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
8096
lt_prog_compiler_no_builtin_flag=
8098
if test "$GCC" = yes; then
8099
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
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
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)
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
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; }
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"
8152
lt_prog_compiler_wl=
8153
lt_prog_compiler_pic=
8154
lt_prog_compiler_static=
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; }
8159
if test "$GCC" = yes; then
8160
lt_prog_compiler_wl='-Wl,'
8161
lt_prog_compiler_static='-static'
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'
8175
# see comment about AmigaOS4 .so support
8176
lt_prog_compiler_pic='-fPIC'
8179
# FIXME: we need at least 68020 code to build shared libraries, but
8180
# adding the `-m68020' flag to GCC prevents building anything better,
8182
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8187
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8188
# PIC is the default for these OSes.
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'
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'
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.
8214
lt_prog_compiler_pic='-fPIC'
8220
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8221
# Instead, we relocate shared libraries at runtime.
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
8232
# QNX uses GNU C++, but need to define -shared option too, otherwise
8234
lt_prog_compiler_pic='-fPIC -shared'
8238
if test -d /usr/nec; then
8239
lt_prog_compiler_pic=-Kconform_pic
8244
lt_prog_compiler_pic='-fPIC'
8248
# PORTME Check for flag to pass linker flags through the system compiler.
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'
8256
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
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'
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
8275
lt_prog_compiler_pic='+Z'
8278
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8279
lt_prog_compiler_static='${wl}-a ${wl}archive'
8282
irix5* | irix6* | nonstopux*)
8283
lt_prog_compiler_wl='-Wl,'
8284
# PIC (with -KPIC) is the default.
8285
lt_prog_compiler_static='-non_shared'
8288
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8289
case $cc_basename in
8290
# old Intel for x86_64 which still supported -KPIC.
8292
lt_prog_compiler_wl='-Wl,'
8293
lt_prog_compiler_pic='-KPIC'
8294
lt_prog_compiler_static='-static'
8296
# icc used to be incompatible with GCC.
8297
# ICC 10 doesn't accept -KPIC any more.
8299
lt_prog_compiler_wl='-Wl,'
8300
lt_prog_compiler_pic='-fPIC'
8301
lt_prog_compiler_static='-static'
8303
# Lahey Fortran 8.1.
8305
lt_prog_compiler_wl='-Wl,'
8306
lt_prog_compiler_pic='--shared'
8307
lt_prog_compiler_static='--static'
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'
8317
lt_prog_compiler_wl='-Wl,'
8318
# All Alpha code is PIC.
8319
lt_prog_compiler_static='-non_shared'
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'
8328
case `$CC -V 2>&1 | sed 5q` in
8331
lt_prog_compiler_pic='-KPIC'
8332
lt_prog_compiler_static='-Bstatic'
8333
lt_prog_compiler_wl='-Wl,'
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=''
8347
lt_prog_compiler_pic='-KPIC'
8348
lt_prog_compiler_static='-Bstatic'
8352
# QNX uses GNU C++, but need to define -shared option too, otherwise
8354
lt_prog_compiler_pic='-fPIC -shared'
8357
osf3* | osf4* | osf5*)
8358
lt_prog_compiler_wl='-Wl,'
8359
# All OSF/1 code is PIC.
8360
lt_prog_compiler_static='-non_shared'
8364
lt_prog_compiler_static='-non_shared'
8368
lt_prog_compiler_pic='-KPIC'
8369
lt_prog_compiler_static='-Bstatic'
8370
case $cc_basename in
8372
lt_prog_compiler_wl='-Qoption ld ';;
8374
lt_prog_compiler_wl='-Wl,';;
8379
lt_prog_compiler_wl='-Qoption ld '
8380
lt_prog_compiler_pic='-PIC'
8381
lt_prog_compiler_static='-Bstatic'
8384
sysv4 | sysv4.2uw2* | sysv4.3*)
8385
lt_prog_compiler_wl='-Wl,'
8386
lt_prog_compiler_pic='-KPIC'
8387
lt_prog_compiler_static='-Bstatic'
8391
if test -d /usr/nec ;then
8392
lt_prog_compiler_pic='-Kconform_pic'
8393
lt_prog_compiler_static='-Bstatic'
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'
8404
lt_prog_compiler_wl='-Wl,'
8405
lt_prog_compiler_can_build_shared=no
8409
lt_prog_compiler_pic='-pic'
8410
lt_prog_compiler_static='-Bstatic'
8414
lt_prog_compiler_can_build_shared=no
8420
# For platforms which do not support PIC, -DPIC is meaningless:
8422
lt_prog_compiler_pic=
8425
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8429
$as_echo "$lt_prog_compiler_pic" >&6; }
8437
# Check to make sure the PIC flag actually works.
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
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)
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
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; }
8478
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8479
case $lt_prog_compiler_pic in
8481
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8484
lt_prog_compiler_pic=
8485
lt_prog_compiler_can_build_shared=no
8496
# Check to make sure the static flag actually works.
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
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
8520
lt_cv_prog_compiler_static_works=yes
8524
LDFLAGS="$save_LDFLAGS"
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; }
8530
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8533
lt_prog_compiler_static=
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
8547
lt_cv_prog_compiler_c_o=no
8548
$RM -r conftest 2>/dev/null
8552
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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)
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
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
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
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; }
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
8602
lt_cv_prog_compiler_c_o=no
8603
$RM -r conftest 2>/dev/null
8607
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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)
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
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
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
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; }
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; }
8657
ln conftest.a conftest.b 2>/dev/null && hard_links=no
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;}
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; }
8681
allow_undefined_flag=
8682
always_export_symbols=no
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
8691
hardcode_direct_absolute=no
8692
hardcode_libdir_flag_spec=
8693
hardcode_libdir_flag_spec_ld=
8694
hardcode_libdir_separator=
8696
hardcode_shlibpath_var=unsupported
8698
link_all_deplibs=unknown
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
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=
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
8731
# we just hope/assume this is gcc and not c89 (= MSVC++)
8737
linux* | k*bsd*-gnu)
8743
if test "$with_gnu_ld" = yes; then
8744
# If archive_cmds runs LD, not CC, wlarc should be empty
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'
8757
whole_archive_flag_spec=
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 ;;
8769
# See if GNU ld supports shared libraries.
8772
# On AIX/PPC, the GNU linker is very broken
8773
if test "$host_cpu" != ia64; then
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.
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=''
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
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'
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'
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;
8829
echo EXPORTS > $output_objdir/$soname.def;
8830
cat $export_symbols >> $output_objdir/$soname.def;
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'
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'
8853
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
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)
8860
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8861
&& test "$tmp_diet" = no
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'
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'
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' ;;
8894
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
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'
8903
case $cc_basename in
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'
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'
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'
8934
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
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.
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'
8954
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8955
case `$LD -v 2>&1` in
8956
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
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.
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'
8986
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8989
hardcode_shlibpath_var=no
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'
9002
if test "$ld_shlibs" = no; then
9004
hardcode_libdir_flag_spec=
9005
export_dynamic_flag_spec=
9006
whole_archive_flag_spec=
9009
# PORTME fill in a description of your system's linker (not GNU ld)
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
9021
hardcode_direct=unsupported
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'
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'
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'
9040
aix_use_runtimelinking=no
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
9055
exp_sym_flag='-bexport'
9056
no_entry_flag='-bnoentry'
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.
9067
hardcode_direct_absolute=yes
9068
hardcode_libdir_separator=':'
9069
link_all_deplibs=yes
9070
file_list_spec='${wl}-f,'
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
9080
# We have reworked collect2
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=
9094
shared_flag='-shared'
9095
if test "$aix_use_runtimelinking" = yes; then
9096
shared_flag="$shared_flag "'${wl}-G'
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:
9106
if test "$aix_use_runtimelinking" = yes; then
9107
shared_flag='${wl}-G'
9109
shared_flag='${wl}-bM:SRE'
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
9124
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125
/* end confdefs.h. */
9135
if ac_fn_c_try_link "$LINENO"; then :
9137
lt_aix_libpath_sed='
9138
/Import File Strings/,/^$/ {
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"`
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
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"
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"
9162
# Determine the default libpath from the value encoded in an
9164
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165
/* end confdefs.h. */
9175
if ac_fn_c_try_link "$LINENO"; then :
9177
lt_aix_libpath_sed='
9178
/Import File Strings/,/^$/ {
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"`
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
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'
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=''
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
9224
export_dynamic_flag_spec=-rdynamic
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.
9236
# Tell ltmain to make .dll files, not .so files.
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
9248
darwin* | rhapsody*)
9251
archive_cmds_need_lc=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 ;;
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}"
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
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
9290
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9291
hardcode_libdir_flag_spec='-R$libdir'
9293
hardcode_shlibpath_var=no
9296
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9298
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9300
hardcode_minus_L=yes
9301
hardcode_shlibpath_var=no
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'
9309
hardcode_shlibpath_var=no
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'
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'
9318
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9319
hardcode_libdir_separator=:
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'
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'
9332
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
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=:
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
9348
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9351
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9354
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9357
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9363
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9366
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9369
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9373
if test "$with_gnu_ld" = no; then
9374
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9375
hardcode_libdir_separator=:
9380
hardcode_shlibpath_var=no
9384
hardcode_direct_absolute=yes
9385
export_dynamic_flag_spec='${wl}-E'
9387
# hardcode_minus_L: Not really in the search PATH,
9388
# but as the default location of the library.
9389
hardcode_minus_L=yes
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. */
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'
9411
rm -f core conftest.err conftest.$ac_objext \
9412
conftest$ac_exeext conftest.$ac_ext
9413
LDFLAGS="$save_LDFLAGS"
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'
9418
archive_cmds_need_lc='no'
9419
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9420
hardcode_libdir_separator=:
9422
link_all_deplibs=yes
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
9429
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9431
hardcode_libdir_flag_spec='-R$libdir'
9433
hardcode_shlibpath_var=no
9437
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9439
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9440
hardcode_libdir_separator=:
9441
hardcode_shlibpath_var=no
9448
if test -f /usr/libexec/ld.so; then
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'
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'
9464
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9465
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
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'
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'
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'
9490
archive_cmds_need_lc='no'
9491
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9492
hardcode_libdir_separator=:
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'
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'
9506
# Both c and cxx compiler support -rpath directly
9507
hardcode_libdir_flag_spec='-rpath $libdir'
9509
archive_cmds_need_lc='no'
9510
hardcode_libdir_separator=:
9514
no_undefined_flag=' -z defs'
9515
if test "$GCC" = yes; then
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'
9521
case `$CC -V 2>&1` in
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'
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'
9536
hardcode_libdir_flag_spec='-R$libdir'
9537
hardcode_shlibpath_var=no
9539
solaris2.[0-5] | solaris2.[0-5].*) ;;
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'
9548
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9552
link_all_deplibs=yes
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'
9561
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9563
hardcode_libdir_flag_spec='-L$libdir'
9565
hardcode_minus_L=yes
9566
hardcode_shlibpath_var=no
9570
case $host_vendor in
9572
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9573
hardcode_direct=yes # is this really true???
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'
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
9587
runpath_var='LD_RUN_PATH'
9588
hardcode_shlibpath_var=no
9592
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9593
hardcode_shlibpath_var=no
9594
export_dynamic_flag_spec='-Bexport'
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
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'
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'
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'
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
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'
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'
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'
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
9659
if test x$host_vendor = xsni; then
9661
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9662
export_dynamic_flag_spec='${wl}-Blargedynsym'
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
9672
with_gnu_ld=$with_gnu_ld
9689
# Do we need to explicitly link libc?
9691
case "x$archive_cmds_need_lc" in
9693
# Assume -lc should be added
9694
archive_cmds_need_lc=yes
9696
if test "$enable_shared" = yes && test "$GCC" = yes; then
9697
case $archive_cmds in
9699
# FIXME: we may have to deal with multi-command sequences.
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; }
9708
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9710
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9711
(eval $ac_compile) 2>&5
9713
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9714
test $ac_status = 0; } 2>conftest.err; then
9717
libobjs=conftest.$ac_objext
9719
wl=$lt_prog_compiler_wl
9720
pic_flag=$lt_prog_compiler_pic
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
9731
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9732
test $ac_status = 0; }
9734
archive_cmds_need_lc=no
9736
archive_cmds_need_lc=yes
9738
allow_undefined_flag=$lt_save_allow_undefined_flag
9740
cat conftest.err 1>&5
9743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9744
$as_echo "$archive_cmds_need_lc" >&6; }
9907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9908
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9910
if test "$GCC" = yes; then
9912
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9913
*) lt_awk_arg="/^libraries:/" ;;
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'`
9923
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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"
9933
test -d "$lt_sys_path" && \
9934
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9937
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9938
BEGIN {RS=" "; FS="/|\n";} {
9941
for (lt_i = NF; lt_i > 0; lt_i--) {
9942
if ($lt_i != "" && $lt_i != ".") {
9943
if ($lt_i == "..") {
9946
if (lt_count == 0) {
9947
lt_foo="/" $lt_i lt_foo;
9954
if (lt_foo != "") { lt_freq[lt_foo]++; }
9955
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9957
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9959
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9962
libname_spec='lib$name'
9970
shlibpath_overrides_runpath=unknown
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
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
9984
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9985
shlibpath_var=LIBPATH
9987
# AIX 3 has no versioning support, so we append a major version to the name.
9988
soname_spec='${libname}${release}${shared_ext}$major'
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
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.
10007
aix4 | aix4.[01] | aix4.[01].*)
10008
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10010
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10013
can_build_shared=no
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}'
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'
10031
shlibpath_var=LIBPATH
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}'
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'
10051
library_names_spec='${libname}${shared_ext}'
10052
dynamic_linker="$host_os ld.so"
10053
shlibpath_var=LIBRARY_PATH
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
10070
cygwin* | mingw* | pw32* | cegcc*)
10071
version_type=windows
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 \$?;
10089
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10090
dlpath=$dir/\$dldll~
10092
shlibpath_overrides_runpath=yes
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"
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'`
10113
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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}'
10124
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10127
dynamic_linker='Win32 ld.exe'
10128
# FIXME: first we should search . and the directory the executable is in
10132
darwin* | rhapsody*)
10133
dynamic_linker="$host_os dyld"
10134
version_type=darwin
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`'
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'
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
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`
10167
freebsd[123]*) objformat=aout ;;
10168
*) objformat=elf ;;
10171
version_type=freebsd-$objformat
10172
case $version_type in
10174
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10179
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10183
shlibpath_var=LD_LIBRARY_PATH
10186
shlibpath_overrides_runpath=yes
10188
freebsd3.[01]* | freebsdelf3.[01]*)
10189
shlibpath_overrides_runpath=yes
10190
hardcode_into_libs=yes
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
10197
*) # from 4.6 on, and DragonFly
10198
shlibpath_overrides_runpath=yes
10199
hardcode_into_libs=yes
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
10214
hpux9* | hpux10* | hpux11*)
10215
# Give a soname corresponding to the major version so that dld.sl refuses to
10216
# link against other versions.
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"
10232
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10234
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
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
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'
10256
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10257
postinstall_cmds='chmod 555 $lib'
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
10272
irix5* | irix6* | nonstopux*)
10274
nonstopux*) version_type=nonstopux ;;
10276
if test "$lt_cv_prog_gnu_ld" = yes; then
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}'
10287
irix5* | nonstopux*)
10288
libsuff= shlibsuff=
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;;
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
10309
# No shared lib support for Linux oldld, aout, or coff.
10310
linux*oldld* | linux*aout* | linux*coff*)
10314
# This must be Linux ELF.
10315
linux* | k*bsd*-gnu | kopensolaris*-gnu)
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. */
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
10345
rm -f core conftest.err conftest.$ac_objext \
10346
conftest$ac_exeext conftest.$ac_ext
10347
LDFLAGS=$save_LDFLAGS
10348
libdir=$save_libdir
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
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"
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'
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'
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'
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'
10395
shlibpath_var=LD_LIBRARY_PATH
10396
shlibpath_overrides_runpath=yes
10397
hardcode_into_libs=yes
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
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'
10421
sys_lib_dlsearch_path_spec="/usr/lib"
10423
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10425
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10426
*) need_version=no ;;
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
10433
openbsd2.[89] | openbsd2.[89].*)
10434
shlibpath_overrides_runpath=no
10437
shlibpath_overrides_runpath=yes
10441
shlibpath_overrides_runpath=yes
10446
libname_spec='$name'
10449
library_names_spec='$libname${shared_ext} $libname.a'
10450
dynamic_linker='OS/2 ld.exe'
10451
shlibpath_var=LIBPATH
10454
osf3* | osf4* | osf5*)
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"
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'
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
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
10501
shlibpath_overrides_runpath=no
10503
runpath_var=LD_RUN_PATH
10511
shlibpath_overrides_runpath=no
10512
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10518
if test -d /usr/nec ;then
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
10526
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10527
version_type=freebsd-elf
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'
10538
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10541
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10545
sys_lib_dlsearch_path_spec='/usr/lib'
10549
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
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
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
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
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"
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"
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"
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; }
10675
if test -n "$hardcode_libdir_flag_spec" ||
10676
test -n "$runpath_var" ||
10677
test "X$hardcode_automatic" = "Xyes" ; then
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
10689
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10690
hardcode_action=immediate
10693
# We cannot hardcode anything, or else we can only hardcode existing
10695
hardcode_action=unsupported
10697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10698
$as_echo "$hardcode_action" >&6; }
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
10715
if test "x$enable_dlopen" != xyes; then
10716
enable_dlopen=unknown
10717
enable_dlopen_self=unknown
10718
enable_dlopen_self_static=unknown
10725
lt_cv_dlopen="load_add_on"
10727
lt_cv_dlopen_self=yes
10730
mingw* | pw32* | cegcc*)
10731
lt_cv_dlopen="LoadLibrary"
10736
lt_cv_dlopen="dlopen"
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
10747
ac_check_lib_save_LIBS=$LIBS
10749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750
/* end confdefs.h. */
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. */
10767
if ac_fn_c_try_link "$LINENO"; then :
10768
ac_cv_lib_dl_dlopen=yes
10770
ac_cv_lib_dl_dlopen=no
10772
rm -f core conftest.err conftest.$ac_objext \
10773
conftest$ac_exeext conftest.$ac_ext
10774
LIBS=$ac_check_lib_save_LIBS
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"
10782
lt_cv_dlopen="dyld"
10784
lt_cv_dlopen_self=yes
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"
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
10800
ac_check_lib_save_LIBS=$LIBS
10802
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803
/* end confdefs.h. */
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. */
10815
return shl_load ();
10820
if ac_fn_c_try_link "$LINENO"; then :
10821
ac_cv_lib_dld_shl_load=yes
10823
ac_cv_lib_dld_shl_load=no
10825
rm -f core conftest.err conftest.$ac_objext \
10826
conftest$ac_exeext conftest.$ac_ext
10827
LIBS=$ac_check_lib_save_LIBS
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"
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"
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
10843
ac_check_lib_save_LIBS=$LIBS
10845
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846
/* end confdefs.h. */
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. */
10863
if ac_fn_c_try_link "$LINENO"; then :
10864
ac_cv_lib_dl_dlopen=yes
10866
ac_cv_lib_dl_dlopen=no
10868
rm -f core conftest.err conftest.$ac_objext \
10869
conftest$ac_exeext conftest.$ac_ext
10870
LIBS=$ac_check_lib_save_LIBS
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"
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
10882
ac_check_lib_save_LIBS=$LIBS
10883
LIBS="-lsvld $LIBS"
10884
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885
/* end confdefs.h. */
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. */
10902
if ac_fn_c_try_link "$LINENO"; then :
10903
ac_cv_lib_svld_dlopen=yes
10905
ac_cv_lib_svld_dlopen=no
10907
rm -f core conftest.err conftest.$ac_objext \
10908
conftest$ac_exeext conftest.$ac_ext
10909
LIBS=$ac_check_lib_save_LIBS
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"
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
10921
ac_check_lib_save_LIBS=$LIBS
10923
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924
/* end confdefs.h. */
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. */
10936
return dld_link ();
10941
if ac_fn_c_try_link "$LINENO"; then :
10942
ac_cv_lib_dld_dld_link=yes
10944
ac_cv_lib_dld_dld_link=no
10946
rm -f core conftest.err conftest.$ac_objext \
10947
conftest$ac_exeext conftest.$ac_ext
10948
LIBS=$ac_check_lib_save_LIBS
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"
10974
if test "x$lt_cv_dlopen" != xno; then
10980
case $lt_cv_dlopen in
10982
save_CPPFLAGS="$CPPFLAGS"
10983
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10985
save_LDFLAGS="$LDFLAGS"
10986
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10989
LIBS="$lt_cv_dlopen_libs $LIBS"
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
10996
if test "$cross_compiling" = yes; then :
10997
lt_cv_dlopen_self=cross
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"
11012
# define LT_DLGLOBAL RTLD_GLOBAL
11015
# define LT_DLGLOBAL DL_GLOBAL
11017
# define LT_DLGLOBAL 0
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
11025
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11028
# define LT_DLLAZY_OR_NOW DL_LAZY
11031
# define LT_DLLAZY_OR_NOW RTLD_NOW
11034
# define LT_DLLAZY_OR_NOW DL_NOW
11036
# define LT_DLLAZY_OR_NOW 0
11043
void fnord() { int i=42;}
11046
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11047
int status = $lt_dlunknown;
11051
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11052
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11053
/* dlclose (self); */
11061
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11062
(eval $ac_link) 2>&5
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
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 ;;
11074
# compilation failed
11075
lt_cv_dlopen_self=no
11082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11083
$as_echo "$lt_cv_dlopen_self" >&6; }
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
11092
if test "$cross_compiling" = yes; then :
11093
lt_cv_dlopen_self_static=cross
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"
11108
# define LT_DLGLOBAL RTLD_GLOBAL
11111
# define LT_DLGLOBAL DL_GLOBAL
11113
# define LT_DLGLOBAL 0
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
11121
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11124
# define LT_DLLAZY_OR_NOW DL_LAZY
11127
# define LT_DLLAZY_OR_NOW RTLD_NOW
11130
# define LT_DLLAZY_OR_NOW DL_NOW
11132
# define LT_DLLAZY_OR_NOW 0
11139
void fnord() { int i=42;}
11142
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11143
int status = $lt_dlunknown;
11147
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11148
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11149
/* dlclose (self); */
11157
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11158
(eval $ac_link) 2>&5
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
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 ;;
11170
# compilation failed
11171
lt_cv_dlopen_self_static=no
11178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11179
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11182
CPPFLAGS="$save_CPPFLAGS"
11183
LDFLAGS="$save_LDFLAGS"
11188
case $lt_cv_dlopen_self in
11189
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11190
*) enable_dlopen_self=unknown ;;
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 ;;
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; }
11225
# FIXME - insert some real tests, host_os isn't really good enough
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; }
11234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235
$as_echo "no" >&6; }
11239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240
$as_echo "no" >&6; }
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; }
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
11266
# On AIX, shared libraries and static libraries use the same namespace, and
11267
# are all built from PIC.
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'
11278
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11279
test "$enable_shared" = yes && enable_static=no
11283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11284
$as_echo "$enable_shared" >&6; }
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; }
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
11317
ac_config_commands="$ac_config_commands libtool"
11322
# Only expand once:
11326
CPPFLAGS="${CPPFLAGS} -D_REENTRANT -D__EXTENSIONS__"
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
11333
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334
/* end confdefs.h. */
11335
#include <stdlib.h>
11336
#include <stdarg.h>
11337
#include <string.h>
11348
if ac_fn_c_try_compile "$LINENO"; then :
11349
ac_cv_header_stdc=yes
11351
ac_cv_header_stdc=no
11353
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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>
11362
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11363
$EGREP "memchr" >/dev/null 2>&1; then :
11366
ac_cv_header_stdc=no
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>
11379
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11380
$EGREP "free" >/dev/null 2>&1; then :
11383
ac_cv_header_stdc=no
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 :
11394
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395
/* end confdefs.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))
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))
11409
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11414
for (i = 0; i < 256; i++)
11415
if (XOR (islower (i), ISLOWER (i))
11416
|| toupper (i) != TOUPPER (i))
11421
if ac_fn_c_try_run "$LINENO"; then :
11424
ac_cv_header_stdc=no
11426
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11427
conftest.$ac_objext conftest.beam conftest.$ac_ext
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
11436
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
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
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)
11453
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11461
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11466
if ac_fn_c_try_compile "$LINENO"; then :
11467
ac_cv_header_sys_wait_h=yes
11469
ac_cv_header_sys_wait_h=no
11471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
11477
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
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
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
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
11505
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506
/* end confdefs.h. */
11511
/* FIXME: Include the comments suggested by Paul. */
11512
#ifndef __cplusplus
11513
/* Ultrix mips cc rejects this. */
11514
typedef int charset[2];
11516
/* SunOS 4.1.1 cc rejects this. */
11517
char const *const *pcpcc;
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
11526
const char *g = "string";
11527
pcpcc = &g + (g ? g-g : 0);
11528
/* HPUX 7.0 cc rejects these. */
11530
ppc = (char**) pcpcc;
11531
pcpcc = (char const *const *) ppc;
11532
{ /* SCO 3.2v4 cc rejects this. */
11534
char const *s = 0 ? (char *) 0 : (char const *) 0;
11539
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11540
int x[] = {25, 17};
11541
const int *foo = &x[0];
11544
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11545
typedef const int *iptr;
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;
11554
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11555
const int foo = 10;
11556
if (!foo) return 0;
11558
return !cs[0] && !zero.x;
11565
if ac_fn_c_try_compile "$LINENO"; then :
11570
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
11576
$as_echo "#define const /**/" >>confdefs.h
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
11586
for ac_kw in inline __inline__ __inline; do
11587
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588
/* end confdefs.h. */
11589
#ifndef __cplusplus
11591
static $ac_kw foo_t static_foo () {return 0; }
11592
$ac_kw foo_t foo () {return 0; }
11596
if ac_fn_c_try_compile "$LINENO"; then :
11597
ac_cv_c_inline=$ac_kw
11599
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11600
test "$ac_cv_c_inline" != no && break
11604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11605
$as_echo "$ac_cv_c_inline" >&6; }
11607
case $ac_cv_c_inline in
11610
case $ac_cv_c_inline in
11612
*) ac_val=$ac_cv_c_inline;;
11614
cat >>confdefs.h <<_ACEOF
11615
#ifndef __cplusplus
11616
#define inline $ac_val
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
11627
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628
/* end confdefs.h. */
11629
$ac_includes_default
11633
static int test_array [1 - 2 * !(((char) -1) < 0)];
11640
if ac_fn_c_try_compile "$LINENO"; then :
11641
ac_cv_c_char_unsigned=no
11643
ac_cv_c_char_unsigned=yes
11645
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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 :
11659
cat >>confdefs.h <<_ACEOF
11660
#define off_t long int
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 :
11670
cat >>confdefs.h <<_ACEOF
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 :
11681
cat >>confdefs.h <<_ACEOF
11682
#define size_t unsigned int
11688
ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
11690
if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
11692
$as_echo "#define HAVE_STRUCT_TM_GMTOFF 1" >>confdefs.h
11696
ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/socket.h>
11698
if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
11700
cat >>confdefs.h <<_ACEOF
11701
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
11707
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11708
#include <sys/socket.h>
11710
if test "x$ac_cv_type_socklen_t" = x""yes; then :
11712
cat >>confdefs.h <<_ACEOF
11713
#define HAVE_SOCKLEN_T 1
11720
for ac_header in vfork.h
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
11732
for ac_func in fork vfork
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
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
11751
if test "$cross_compiling" = yes; then :
11752
ac_cv_func_fork_works=cross
11754
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755
/* end confdefs.h. */
11756
$ac_includes_default
11761
/* By Ruediger Kuhlmann. */
11762
return fork () < 0;
11768
if ac_fn_c_try_run "$LINENO"; then :
11769
ac_cv_func_fork_works=yes
11771
ac_cv_func_fork_works=no
11773
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11774
conftest.$ac_objext conftest.beam conftest.$ac_ext
11778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11779
$as_echo "$ac_cv_func_fork_works" >&6; }
11782
ac_cv_func_fork_works=$ac_cv_func_fork
11784
if test "x$ac_cv_func_fork_works" = xcross; then
11786
*-*-amigaos* | *-*-msdosdjgpp*)
11787
# Override, as these systems have only a dummy fork() stub
11788
ac_cv_func_fork_works=no
11791
ac_cv_func_fork_works=yes
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;}
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
11804
if test "$cross_compiling" = yes; then :
11805
ac_cv_func_vfork_works=cross
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>
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. */
11823
sparc_address_test (int arg)
11825
sparc_address_test (arg) int arg;
11828
static pid_t child;
11846
pid_t parent = getpid ();
11849
sparc_address_test (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. */
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)
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);
11881
while (wait(&status) != child)
11884
/* Was there some problem with vforking? */
11887
/* Did the child fail? (This shouldn't happen.) */
11890
/* Did the vfork/compiler bug occur? */
11891
|| parent != getpid()
11893
/* Did the file descriptor bug occur? */
11894
|| fstat(fileno(stdout), &st) != 0
11899
if ac_fn_c_try_run "$LINENO"; then :
11900
ac_cv_func_vfork_works=yes
11902
ac_cv_func_vfork_works=no
11904
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11905
conftest.$ac_objext conftest.beam conftest.$ac_ext
11909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11910
$as_echo "$ac_cv_func_vfork_works" >&6; }
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;}
11919
if test "x$ac_cv_func_vfork_works" = xyes; then
11921
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11925
$as_echo "#define vfork fork" >>confdefs.h
11928
if test "x$ac_cv_func_fork_works" = xyes; then
11930
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
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
11939
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940
/* end confdefs.h. */
11941
#include <sys/types.h>
11942
#include <signal.h>
11947
return *(signal (0, 0)) (0) == 1;
11952
if ac_fn_c_try_compile "$LINENO"; then :
11953
ac_cv_type_signal=int
11955
ac_cv_type_signal=void
11957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11960
$as_echo "$ac_cv_type_signal" >&6; }
11962
cat >>confdefs.h <<_ACEOF
11963
#define RETSIGTYPE $ac_cv_type_signal
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
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
11978
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979
/* end confdefs.h. */
11980
$ac_includes_default
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;
11993
if ac_fn_c_try_run "$LINENO"; then :
11994
ac_cv_func_lstat_dereferences_slashed_symlink=yes
11996
ac_cv_func_lstat_dereferences_slashed_symlink=no
11998
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11999
conftest.$ac_objext conftest.beam conftest.$ac_ext
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
12007
rm -f conftest.sym conftest.file
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; }
12013
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12015
cat >>confdefs.h <<_ACEOF
12016
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
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"
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
12034
if test "$cross_compiling" = yes; then :
12035
ac_cv_func_stat_empty_string_bug=yes
12037
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038
/* end confdefs.h. */
12039
$ac_includes_default
12044
return stat ("", &sbuf) == 0;
12049
if ac_fn_c_try_run "$LINENO"; then :
12050
ac_cv_func_stat_empty_string_bug=no
12052
ac_cv_func_stat_empty_string_bug=yes
12054
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12055
conftest.$ac_objext conftest.beam conftest.$ac_ext
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"
12069
cat >>confdefs.h <<_ACEOF
12070
#define HAVE_STAT_EMPTY_STRING_BUG 1
12075
for ac_func in strftime
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
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
12090
ac_check_lib_save_LIBS=$LIBS
12091
LIBS="-lintl $LIBS"
12092
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093
/* end confdefs.h. */
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. */
12105
return strftime ();
12110
if ac_fn_c_try_link "$LINENO"; then :
12111
ac_cv_lib_intl_strftime=yes
12113
ac_cv_lib_intl_strftime=no
12115
rm -f core conftest.err conftest.$ac_objext \
12116
conftest$ac_exeext conftest.$ac_ext
12117
LIBS=$ac_check_lib_save_LIBS
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
12124
LIBS="-lintl $LIBS"
12130
for ac_func in issetugid inet_pton
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
12147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
12148
$as_echo_n "checking for MySQL support... " >&6; }
12150
# Check whether --with-mysql was given.
12151
if test "${with_mysql+set}" = set; then :
12152
withval=$with_mysql; WITH_MYSQL=$withval
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
12169
case $MYSQL_CONFIG in
12171
ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
12174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12175
for as_dir in $PATH
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
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; }
12197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198
$as_echo "no" >&6; }
12203
MYSQL_CONFIG=$WITH_MYSQL
12206
if test "$MYSQL_CONFIG" = ""; then
12207
as_fn_error "mysql_config is not found" "$LINENO" 5
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; }
12214
if $MYSQL_CONFIG | grep -- '--include' > /dev/null ; then
12215
MYSQL_INCLUDE="`$MYSQL_CONFIG --include | sed s/\'//g`"
12217
MYSQL_INCLUDE="`$MYSQL_CONFIG --cflags | sed s/\'//g`"
12219
MYSQL_LIBS="`$MYSQL_CONFIG --libs | sed s/\'//g`"
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; }
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
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
12246
CPPFLAGS="$old_CPPFLAGS"
12249
$as_echo "#define HAVE_MYSQL 1" >>confdefs.h
12252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253
$as_echo "no" >&6; }
12259
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5
12260
$as_echo_n "checking for LDAP support... " >&6; }
12262
# Check whether --with-ldap was given.
12263
if test "${with_ldap+set}" = set; then :
12264
withval=$with_ldap; WITH_LDAP=$withval
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
12277
ac_check_lib_save_LIBS=$LIBS
12278
LIBS="-lldap $LIBS"
12279
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280
/* end confdefs.h. */
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. */
12292
return ldap_bind ();
12297
if ac_fn_c_try_link "$LINENO"; then :
12298
ac_cv_lib_ldap_ldap_bind=yes
12300
ac_cv_lib_ldap_ldap_bind=no
12302
rm -f core conftest.err conftest.$ac_objext \
12303
conftest$ac_exeext conftest.$ac_ext
12304
LIBS=$ac_check_lib_save_LIBS
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 :
12310
for ac_header in ldap.h
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
12320
$as_echo "#define HAVE_LIBLDAP 1" >>confdefs.h
12322
$as_echo "#define HAVE_LDAP_H 1" >>confdefs.h
12325
$as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
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
12341
ac_check_lib_save_LIBS=$LIBS
12342
LIBS="-llber $LIBS"
12343
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344
/* end confdefs.h. */
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. */
12352
char ber_printf ();
12356
return ber_printf ();
12361
if ac_fn_c_try_link "$LINENO"; then :
12362
ac_cv_lib_lber_ber_printf=yes
12364
ac_cv_lib_lber_ber_printf=no
12366
rm -f core conftest.err conftest.$ac_objext \
12367
conftest$ac_exeext conftest.$ac_ext
12368
LIBS=$ac_check_lib_save_LIBS
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 :
12374
for ac_header in lber.h
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
12384
$as_echo "#define HAVE_LIBLBER 1" >>confdefs.h
12386
$as_echo "#define HAVE_LBER_H 1" >>confdefs.h
12399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5
12400
$as_echo_n "checking for extended attributes support... " >&6; }
12402
# Check whether --with-attr was given.
12403
if test "${with_attr+set}" = set; then :
12404
withval=$with_attr; WITH_ATTR=$withval
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
12417
ac_check_lib_save_LIBS=$LIBS
12418
LIBS="-lattr $LIBS"
12419
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420
/* end confdefs.h. */
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. */
12432
return attr_get ();
12437
if ac_fn_c_try_link "$LINENO"; then :
12438
ac_cv_lib_attr_attr_get=yes
12440
ac_cv_lib_attr_attr_get=no
12442
rm -f core conftest.err conftest.$ac_objext \
12443
conftest$ac_exeext conftest.$ac_ext
12444
LIBS=$ac_check_lib_save_LIBS
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 :
12450
for ac_header in attr/attributes.h
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
12460
$as_echo "#define HAVE_XATTR 1" >>confdefs.h
12462
$as_echo "#define HAVE_ATTR_ATTRIBUTES_H 1" >>confdefs.h
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
12480
ac_func_search_save_LIBS=$LIBS
12481
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482
/* end confdefs.h. */
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. */
12499
for ac_lib in '' socket; do
12500
if test -z "$ac_lib"; then
12501
ac_res="none required"
12504
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12506
if ac_fn_c_try_link "$LINENO"; then :
12507
ac_cv_search_socket=$ac_res
12509
rm -f core conftest.err conftest.$ac_objext \
12511
if test "${ac_cv_search_socket+set}" = set; then :
12515
if test "${ac_cv_search_socket+set}" = set; then :
12518
ac_cv_search_socket=no
12520
rm conftest.$ac_ext
12521
LIBS=$ac_func_search_save_LIBS
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"
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
12536
ac_func_search_save_LIBS=$LIBS
12537
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538
/* end confdefs.h. */
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. */
12546
char gethostbyname ();
12550
return gethostbyname ();
12555
for ac_lib in '' nsl socket; do
12556
if test -z "$ac_lib"; then
12557
ac_res="none required"
12560
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12562
if ac_fn_c_try_link "$LINENO"; then :
12563
ac_cv_search_gethostbyname=$ac_res
12565
rm -f core conftest.err conftest.$ac_objext \
12567
if test "${ac_cv_search_gethostbyname+set}" = set; then :
12571
if test "${ac_cv_search_gethostbyname+set}" = set; then :
12574
ac_cv_search_gethostbyname=no
12576
rm conftest.$ac_ext
12577
LIBS=$ac_func_search_save_LIBS
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"
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
12592
ac_func_search_save_LIBS=$LIBS
12593
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594
/* end confdefs.h. */
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. */
12606
return hstrerror ();
12611
for ac_lib in '' resolv; do
12612
if test -z "$ac_lib"; then
12613
ac_res="none required"
12616
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12618
if ac_fn_c_try_link "$LINENO"; then :
12619
ac_cv_search_hstrerror=$ac_res
12621
rm -f core conftest.err conftest.$ac_objext \
12623
if test "${ac_cv_search_hstrerror+set}" = set; then :
12627
if test "${ac_cv_search_hstrerror+set}" = set; then :
12630
ac_cv_search_hstrerror=no
12632
rm conftest.$ac_ext
12633
LIBS=$ac_func_search_save_LIBS
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"
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
12650
ac_func_search_save_LIBS=$LIBS
12651
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652
/* end confdefs.h. */
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. */
12669
for ac_lib in '' dl; do
12670
if test -z "$ac_lib"; then
12671
ac_res="none required"
12674
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12676
if ac_fn_c_try_link "$LINENO"; then :
12677
ac_cv_search_dlopen=$ac_res
12679
rm -f core conftest.err conftest.$ac_objext \
12681
if test "${ac_cv_search_dlopen+set}" = set; then :
12685
if test "${ac_cv_search_dlopen+set}" = set; then :
12688
ac_cv_search_dlopen=no
12690
rm conftest.$ac_ext
12691
LIBS=$ac_func_search_save_LIBS
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"
12699
for ac_header in dlfcn.h
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
12707
if test "$ac_cv_search_dlopen" != no; then
12708
test "$ac_cv_search_dlopen" = "none required" || DL_LIB="$ac_cv_search_dlopen"
12712
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12714
$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
12727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5
12728
$as_echo_n "checking for valgrind... " >&6; }
12730
# Check whether --with-valgrind was given.
12731
if test "${with_valgrind+set}" = set; then :
12732
withval=$with_valgrind; WITH_VALGRIND=$withval
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
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
12754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12755
$as_echo_n "checking for OpenSSL... " >&6; }
12757
# Check whether --with-openssl was given.
12758
if test "${with_openssl+set}" = set; then :
12759
withval=$with_openssl; WITH_OPENSSL=$withval
12765
if test "$WITH_OPENSSL" != "no"; then
12767
if test "$WITH_OPENSSL" != "yes"; then
12768
CPPFLAGS="$CPPFLAGS -I$WITH_OPENSSL/include"
12769
LDFLAGS="$LDFLAGS -L$WITH_OPENSSL/lib"
12774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_openssl" >&5
12775
$as_echo "$use_openssl" >&6; }
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"
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"
12794
# Check whether --with-kerberos5 was given.
12795
if test "${with_kerberos5+set}" = set; then :
12796
withval=$with_kerberos5; use_kerberos=yes
12803
if test "x$use_openssl" = "xyes"; then
12804
if test "x$use_kerberos" != "xyes"; then
12805
CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
12808
for ac_header in openssl/ssl.h
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
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
12826
ac_check_lib_save_LIBS=$LIBS
12827
LIBS="-lcrypto $LIBS"
12828
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12829
/* end confdefs.h. */
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. */
12837
char BIO_f_base64 ();
12841
return BIO_f_base64 ();
12846
if ac_fn_c_try_link "$LINENO"; then :
12847
ac_cv_lib_crypto_BIO_f_base64=yes
12849
ac_cv_lib_crypto_BIO_f_base64=no
12851
rm -f core conftest.err conftest.$ac_objext \
12852
conftest$ac_exeext conftest.$ac_ext
12853
LIBS=$ac_check_lib_save_LIBS
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 :
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
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. */
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. */
12884
if ac_fn_c_try_link "$LINENO"; then :
12885
ac_cv_lib_ssl_SSL_new=yes
12887
ac_cv_lib_ssl_SSL_new=no
12889
rm -f core conftest.err conftest.$ac_objext \
12890
conftest$ac_exeext conftest.$ac_ext
12891
LIBS=$ac_check_lib_save_LIBS
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"
12898
$as_echo "#define HAVE_LIBSSL /**/" >>confdefs.h
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; }
12912
# Check whether --with-pcre was given.
12913
if test "${with_pcre+set}" = set; then :
12914
withval=$with_pcre; WITH_PCRE=$withval
12919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_PCRE" >&5
12920
$as_echo "$WITH_PCRE" >&6; }
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
12930
case $PCRECONFIG in
12932
ac_cv_path_PCRECONFIG="$PCRECONFIG" # Let the user override the test with a path.
12935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936
for as_dir in $PATH
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
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; }
12958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959
$as_echo "no" >&6; }
12964
if test x"$PCRECONFIG" != x; then
12965
PCRE_LIB=`$PCRECONFIG --libs`
12966
CPPFLAGS="$CPPFLAGS `$PCRECONFIG --cflags`"
12968
$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
12971
$as_echo "#define HAVE_PCRE_H 1" >>confdefs.h
12974
as_fn_error "pcre-config not found, install the pcre-devel package or build with --without-pcre" "$LINENO" 5
12980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
12981
$as_echo_n "checking for zlib support... " >&6; }
12983
# Check whether --with-zlib was given.
12984
if test "${with_zlib+set}" = set; then :
12985
withval=$with_zlib; WITH_ZLIB=$withval
12990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_ZLIB" >&5
12991
$as_echo "$WITH_ZLIB" >&6; }
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
12999
ac_check_lib_save_LIBS=$LIBS
13001
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002
/* end confdefs.h. */
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. */
13019
if ac_fn_c_try_link "$LINENO"; then :
13020
ac_cv_lib_z_deflate=yes
13022
ac_cv_lib_z_deflate=no
13024
rm -f core conftest.err conftest.$ac_objext \
13025
conftest$ac_exeext conftest.$ac_ext
13026
LIBS=$ac_check_lib_save_LIBS
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 :
13032
for ac_header in zlib.h
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
13042
$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
13044
$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
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
13060
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzip2 support" >&5
13061
$as_echo_n "checking for bzip2 support... " >&6; }
13063
# Check whether --with-bzip2 was given.
13064
if test "${with_bzip2+set}" = set; then :
13065
withval=$with_bzip2; WITH_BZIP2=$withval
13070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_BZIP2" >&5
13071
$as_echo "$WITH_BZIP2" >&6; }
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
13079
ac_check_lib_save_LIBS=$LIBS
13081
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082
/* end confdefs.h. */
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. */
13090
char BZ2_bzCompress ();
13094
return BZ2_bzCompress ();
13099
if ac_fn_c_try_link "$LINENO"; then :
13100
ac_cv_lib_bz2_BZ2_bzCompress=yes
13102
ac_cv_lib_bz2_BZ2_bzCompress=no
13104
rm -f core conftest.err conftest.$ac_objext \
13105
conftest$ac_exeext conftest.$ac_ext
13106
LIBS=$ac_check_lib_save_LIBS
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 :
13112
for ac_header in bzlib.h
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
13122
$as_echo "#define HAVE_LIBBZ2 1" >>confdefs.h
13124
$as_echo "#define HAVE_BZLIB_H 1" >>confdefs.h
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
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
13148
case $PKG_CONFIG in
13150
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154
for as_dir in $PATH
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
13168
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
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; }
13177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178
$as_echo "no" >&6; }
13184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
13185
$as_echo_n "checking for FAM... " >&6; }
13187
# Check whether --with-fam was given.
13188
if test "${with_fam+set}" = set; then :
13189
withval=$with_fam; WITH_FAM=$withval
13194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FAM" >&5
13195
$as_echo "$WITH_FAM" >&6; }
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
13203
ac_check_lib_save_LIBS=$LIBS
13205
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206
/* end confdefs.h. */
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. */
13218
return FAMOpen2 ();
13223
if ac_fn_c_try_link "$LINENO"; then :
13224
ac_cv_lib_fam_FAMOpen2=yes
13226
ac_cv_lib_fam_FAMOpen2=no
13228
rm -f core conftest.err conftest.$ac_objext \
13229
conftest$ac_exeext conftest.$ac_ext
13230
LIBS=$ac_check_lib_save_LIBS
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 :
13236
for ac_header in fam.h
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
13246
$as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
13249
$as_echo "#define HAVE_FAM_H 1" >>confdefs.h
13259
if test "x$FAM_LIBS" = x; then
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
13271
case $PKG_CONFIG in
13273
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277
for as_dir in $PATH
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
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; }
13299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300
$as_echo "no" >&6; }
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
13314
case $ac_pt_PKG_CONFIG in
13316
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320
for as_dir in $PATH
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
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; }
13342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343
$as_echo "no" >&6; }
13346
if test "x$ac_pt_PKG_CONFIG" = x; then
13349
case $cross_compiling:$ac_tool_warned in
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 ;;
13355
PKG_CONFIG=$ac_pt_PKG_CONFIG
13358
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
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; }
13370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371
$as_echo "no" >&6; }
13378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
13379
$as_echo_n "checking for FAM... " >&6; }
13381
if test -n "$PKG_CONFIG"; then
13382
if test -n "$FAM_CFLAGS"; then
13383
pkg_cv_FAM_CFLAGS="$FAM_CFLAGS"
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
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`
13399
if test -n "$PKG_CONFIG"; then
13400
if test -n "$FAM_LIBS"; then
13401
pkg_cv_FAM_LIBS="$FAM_LIBS"
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
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`
13420
if test $pkg_failed = yes; then
13422
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13423
_pkg_short_errors_supported=yes
13425
_pkg_short_errors_supported=no
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"`
13430
FAM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gamin >= 0.1.0"`
13432
# Put the nasty error message in config.log where it belongs
13433
echo "$FAM_PKG_ERRORS" >&5
13435
as_fn_error "Package requirements (gamin >= 0.1.0) were not met:
13439
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13440
installed software in a non-standard prefix.
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.
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.
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.
13457
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13458
See \`config.log' for more details." "$LINENO" 5; }
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; }
13466
$as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
13469
$as_echo "#define HAVE_FAM_H 1" >>confdefs.h
13476
for ac_func in FAMNoExists
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
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
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; }
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
13501
WITH_WEBDAV_PROPS=no
13504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_PROPS" >&5
13505
$as_echo "$WITH_WEBDAV_PROPS" >&6; }
13507
if test "$WITH_WEBDAV_PROPS" != "no"; then
13510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
13511
$as_echo_n "checking for XML... " >&6; }
13513
if test -n "$PKG_CONFIG"; then
13514
if test -n "$XML_CFLAGS"; then
13515
pkg_cv_XML_CFLAGS="$XML_CFLAGS"
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
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`
13531
if test -n "$PKG_CONFIG"; then
13532
if test -n "$XML_LIBS"; then
13533
pkg_cv_XML_LIBS="$XML_LIBS"
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
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`
13552
if test $pkg_failed = yes; then
13554
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13555
_pkg_short_errors_supported=yes
13557
_pkg_short_errors_supported=no
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"`
13562
XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"`
13564
# Put the nasty error message in config.log where it belongs
13565
echo "$XML_PKG_ERRORS" >&5
13567
as_fn_error "Package requirements (libxml-2.0) were not met:
13571
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13572
installed software in a non-standard prefix.
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.
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.
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.
13589
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13590
See \`config.log' for more details." "$LINENO" 5; }
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; }
13598
$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13601
$as_echo "#define HAVE_LIBXML_H 1" >>confdefs.h
13607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
13608
$as_echo_n "checking for SQLITE... " >&6; }
13610
if test -n "$PKG_CONFIG"; then
13611
if test -n "$SQLITE_CFLAGS"; then
13612
pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
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
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`
13628
if test -n "$PKG_CONFIG"; then
13629
if test -n "$SQLITE_LIBS"; then
13630
pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
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
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`
13649
if test $pkg_failed = yes; then
13651
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13652
_pkg_short_errors_supported=yes
13654
_pkg_short_errors_supported=no
13656
if test $_pkg_short_errors_supported = yes; then
13657
SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
13659
SQLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
13661
# Put the nasty error message in config.log where it belongs
13662
echo "$SQLITE_PKG_ERRORS" >&5
13664
as_fn_error "Package requirements (sqlite3) were not met:
13668
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13669
installed software in a non-standard prefix.
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.
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.
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.
13686
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13687
See \`config.log' for more details." "$LINENO" 5; }
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; }
13695
$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
13698
$as_echo "#define HAVE_SQLITE3_H 1" >>confdefs.h
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; }
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
13710
WITH_WEBDAV_LOCKS=no
13713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_LOCKS" >&5
13714
$as_echo "$WITH_WEBDAV_LOCKS" >&6; }
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
13722
ac_check_lib_save_LIBS=$LIBS
13723
LIBS="-luuid $LIBS"
13724
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725
/* end confdefs.h. */
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. */
13733
char uuid_unparse ();
13737
return uuid_unparse ();
13742
if ac_fn_c_try_link "$LINENO"; then :
13743
ac_cv_lib_uuid_uuid_unparse=yes
13745
ac_cv_lib_uuid_uuid_unparse=no
13747
rm -f core conftest.err conftest.$ac_objext \
13748
conftest$ac_exeext conftest.$ac_ext
13749
LIBS=$ac_check_lib_save_LIBS
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 :
13755
for ac_header in uuid/uuid.h
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
13765
$as_echo "#define HAVE_UUID 1" >>confdefs.h
13768
$as_echo "#define HAVE_UUID_H 1" >>confdefs.h
13783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm" >&5
13784
$as_echo_n "checking for gdbm... " >&6; }
13786
# Check whether --with-gdbm was given.
13787
if test "${with_gdbm+set}" = set; then :
13788
withval=$with_gdbm; WITH_GDBM=$withval
13793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_GDBM" >&5
13794
$as_echo "$WITH_GDBM" >&6; }
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
13802
ac_check_lib_save_LIBS=$LIBS
13803
LIBS="-lgdbm $LIBS"
13804
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805
/* end confdefs.h. */
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. */
13817
return gdbm_open ();
13822
if ac_fn_c_try_link "$LINENO"; then :
13823
ac_cv_lib_gdbm_gdbm_open=yes
13825
ac_cv_lib_gdbm_gdbm_open=no
13827
rm -f core conftest.err conftest.$ac_objext \
13828
conftest$ac_exeext conftest.$ac_ext
13829
LIBS=$ac_check_lib_save_LIBS
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 :
13835
for ac_header in gdbm.h
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
13845
$as_echo "#define HAVE_GDBM 1" >>confdefs.h
13847
$as_echo "#define HAVE_GDBM_H 1" >>confdefs.h
13860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcache" >&5
13861
$as_echo_n "checking for memcache... " >&6; }
13863
# Check whether --with-memcache was given.
13864
if test "${with_memcache+set}" = set; then :
13865
withval=$with_memcache; WITH_MEMCACHE=$withval
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
13878
ac_check_lib_save_LIBS=$LIBS
13879
LIBS="-lmemcache $LIBS"
13880
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881
/* end confdefs.h. */
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. */
13898
if ac_fn_c_try_link "$LINENO"; then :
13899
ac_cv_lib_memcache_mc_new=yes
13901
ac_cv_lib_memcache_mc_new=no
13903
rm -f core conftest.err conftest.$ac_objext \
13904
conftest$ac_exeext conftest.$ac_ext
13905
LIBS=$ac_check_lib_save_LIBS
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 :
13911
for ac_header in memcache.h
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
13919
MEMCACHE_LIB=-lmemcache
13921
$as_echo "#define HAVE_MEMCACHE 1" >>confdefs.h
13924
$as_echo "#define HAVE_MEMCACHE_H 1" >>confdefs.h
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; }
13940
# Check whether --with-lua was given.
13941
if test "${with_lua+set}" = set; then :
13942
withval=$with_lua; WITH_LUA=$withval
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
13956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
13957
$as_echo_n "checking for LUA... " >&6; }
13959
if test -n "$PKG_CONFIG"; then
13960
if test -n "$LUA_CFLAGS"; then
13961
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
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
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`
13977
if test -n "$PKG_CONFIG"; then
13978
if test -n "$LUA_LIBS"; then
13979
pkg_cv_LUA_LIBS="$LUA_LIBS"
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
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`
13998
if test $pkg_failed = yes; then
14000
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14001
_pkg_short_errors_supported=yes
14003
_pkg_short_errors_supported=no
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"`
14008
LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$WITH_LUA >= 5.1"`
14010
# Put the nasty error message in config.log where it belongs
14011
echo "$LUA_PKG_ERRORS" >&5
14013
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014
$as_echo "no" >&6; }
14018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
14019
$as_echo_n "checking for LUA... " >&6; }
14021
if test -n "$PKG_CONFIG"; then
14022
if test -n "$LUA_CFLAGS"; then
14023
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
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
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`
14039
if test -n "$PKG_CONFIG"; then
14040
if test -n "$LUA_LIBS"; then
14041
pkg_cv_LUA_LIBS="$LUA_LIBS"
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
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`
14060
if test $pkg_failed = yes; then
14062
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14063
_pkg_short_errors_supported=yes
14065
_pkg_short_errors_supported=no
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"`
14070
LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
14072
# Put the nasty error message in config.log where it belongs
14073
echo "$LUA_PKG_ERRORS" >&5
14075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076
$as_echo "no" >&6; }
14080
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
14081
$as_echo_n "checking for LUA... " >&6; }
14083
if test -n "$PKG_CONFIG"; then
14084
if test -n "$LUA_CFLAGS"; then
14085
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
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
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`
14101
if test -n "$PKG_CONFIG"; then
14102
if test -n "$LUA_LIBS"; then
14103
pkg_cv_LUA_LIBS="$LUA_LIBS"
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
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`
14122
if test $pkg_failed = yes; then
14124
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14125
_pkg_short_errors_supported=yes
14127
_pkg_short_errors_supported=no
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"`
14132
LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
14134
# Put the nasty error message in config.log where it belongs
14135
echo "$LUA_PKG_ERRORS" >&5
14137
as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
14141
Consider adjusting the PKG_CONFIG_PATH environment variable if you
14142
installed software in a non-standard prefix.
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.
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.
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.
14159
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14160
See \`config.log' for more details." "$LINENO" 5; }
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; }
14168
$as_echo "#define HAVE_LUA 1" >>confdefs.h
14171
$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
14176
elif test $pkg_failed = untried; then
14180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
14181
$as_echo_n "checking for LUA... " >&6; }
14183
if test -n "$PKG_CONFIG"; then
14184
if test -n "$LUA_CFLAGS"; then
14185
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
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
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`
14201
if test -n "$PKG_CONFIG"; then
14202
if test -n "$LUA_LIBS"; then
14203
pkg_cv_LUA_LIBS="$LUA_LIBS"
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
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`
14222
if test $pkg_failed = yes; then
14224
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14225
_pkg_short_errors_supported=yes
14227
_pkg_short_errors_supported=no
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"`
14232
LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
14234
# Put the nasty error message in config.log where it belongs
14235
echo "$LUA_PKG_ERRORS" >&5
14237
as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
14241
Consider adjusting the PKG_CONFIG_PATH environment variable if you
14242
installed software in a non-standard prefix.
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.
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.
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.
14259
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14260
See \`config.log' for more details." "$LINENO" 5; }
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; }
14268
$as_echo "#define HAVE_LUA 1" >>confdefs.h
14271
$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
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; }
14283
$as_echo "#define HAVE_LUA 1" >>confdefs.h
14286
$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
14291
elif test $pkg_failed = untried; then
14295
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
14296
$as_echo_n "checking for LUA... " >&6; }
14298
if test -n "$PKG_CONFIG"; then
14299
if test -n "$LUA_CFLAGS"; then
14300
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
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
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`
14316
if test -n "$PKG_CONFIG"; then
14317
if test -n "$LUA_LIBS"; then
14318
pkg_cv_LUA_LIBS="$LUA_LIBS"
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
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`
14337
if test $pkg_failed = yes; then
14339
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14340
_pkg_short_errors_supported=yes
14342
_pkg_short_errors_supported=no
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"`
14347
LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
14349
# Put the nasty error message in config.log where it belongs
14350
echo "$LUA_PKG_ERRORS" >&5
14352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14353
$as_echo "no" >&6; }
14357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
14358
$as_echo_n "checking for LUA... " >&6; }
14360
if test -n "$PKG_CONFIG"; then
14361
if test -n "$LUA_CFLAGS"; then
14362
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
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
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`
14378
if test -n "$PKG_CONFIG"; then
14379
if test -n "$LUA_LIBS"; then
14380
pkg_cv_LUA_LIBS="$LUA_LIBS"
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
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`
14399
if test $pkg_failed = yes; then
14401
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14402
_pkg_short_errors_supported=yes
14404
_pkg_short_errors_supported=no
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"`
14409
LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
14411
# Put the nasty error message in config.log where it belongs
14412
echo "$LUA_PKG_ERRORS" >&5
14414
as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
14418
Consider adjusting the PKG_CONFIG_PATH environment variable if you
14419
installed software in a non-standard prefix.
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.
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.
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.
14436
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14437
See \`config.log' for more details." "$LINENO" 5; }
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; }
14445
$as_echo "#define HAVE_LUA 1" >>confdefs.h
14448
$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
14453
elif test $pkg_failed = untried; then
14457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
14458
$as_echo_n "checking for LUA... " >&6; }
14460
if test -n "$PKG_CONFIG"; then
14461
if test -n "$LUA_CFLAGS"; then
14462
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
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
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`
14478
if test -n "$PKG_CONFIG"; then
14479
if test -n "$LUA_LIBS"; then
14480
pkg_cv_LUA_LIBS="$LUA_LIBS"
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
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`
14499
if test $pkg_failed = yes; then
14501
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14502
_pkg_short_errors_supported=yes
14504
_pkg_short_errors_supported=no
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"`
14509
LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
14511
# Put the nasty error message in config.log where it belongs
14512
echo "$LUA_PKG_ERRORS" >&5
14514
as_fn_error "Package requirements (lua-5.1 >= 5.1) were not met:
14518
Consider adjusting the PKG_CONFIG_PATH environment variable if you
14519
installed software in a non-standard prefix.
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.
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.
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.
14536
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14537
See \`config.log' for more details." "$LINENO" 5; }
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; }
14545
$as_echo "#define HAVE_LUA 1" >>confdefs.h
14548
$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
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; }
14560
$as_echo "#define HAVE_LUA 1" >>confdefs.h
14563
$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
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; }
14575
$as_echo "#define HAVE_LUA 1" >>confdefs.h
14578
$as_echo "#define HAVE_LUA_H 1" >>confdefs.h
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
14593
ac_func_search_save_LIBS=$LIBS
14594
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595
/* end confdefs.h. */
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. */
14612
for ac_lib in '' crypt; do
14613
if test -z "$ac_lib"; then
14614
ac_res="none required"
14617
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14619
if ac_fn_c_try_link "$LINENO"; then :
14620
ac_cv_search_crypt=$ac_res
14622
rm -f core conftest.err conftest.$ac_objext \
14624
if test "${ac_cv_search_crypt+set}" = set; then :
14628
if test "${ac_cv_search_crypt+set}" = set; then :
14631
ac_cv_search_crypt=no
14633
rm conftest.$ac_ext
14634
LIBS=$ac_func_search_save_LIBS
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"
14642
for ac_header in crypt.h
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
14650
$as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
14659
$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h
14661
if test "$ac_cv_search_crypt" != no; then
14662
test "$ac_cv_search_crypt" = "none required" || CRYPT_LIB="$ac_cv_search_crypt"
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
14676
ac_func_search_save_LIBS=$LIBS
14677
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678
/* end confdefs.h. */
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. */
14690
return sendfilev ();
14695
for ac_lib in '' sendfile; do
14696
if test -z "$ac_lib"; then
14697
ac_res="none required"
14700
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14702
if ac_fn_c_try_link "$LINENO"; then :
14703
ac_cv_search_sendfilev=$ac_res
14705
rm -f core conftest.err conftest.$ac_objext \
14707
if test "${ac_cv_search_sendfilev+set}" = set; then :
14711
if test "${ac_cv_search_sendfilev+set}" = set; then :
14714
ac_cv_search_sendfilev=no
14716
rm conftest.$ac_ext
14717
LIBS=$ac_func_search_save_LIBS
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"
14725
if test "$ac_cv_search_sendfilev" != no; then
14726
test "$ac_cv_search_sendfilev" = "none required" || SENDFILE_LIB="$ac_cv_search_sendfilev"
14728
$as_echo "#define HAVE_SENDFILEV 1" >>confdefs.h
14738
*mingw* ) LIBS="$LIBS -lwsock32";;
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
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
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" ;;
14767
*) as_fn_error "bad value ${enableval} for --enable-lfs" "$LINENO" 5 ;;
14770
CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES"
14774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
14775
$as_echo "$enableval" >&6; }
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
14786
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
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; }; }
14796
ac_cv_sizeof_long=0
14801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14802
$as_echo "$ac_cv_sizeof_long" >&6; }
14806
cat >>confdefs.h <<_ACEOF
14807
#define SIZEOF_LONG $ac_cv_sizeof_long
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
14820
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
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; }; }
14830
ac_cv_sizeof_off_t=0
14835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14836
$as_echo "$ac_cv_sizeof_off_t" >&6; }
14840
cat >>confdefs.h <<_ACEOF
14841
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
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; }
14856
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14857
/* end confdefs.h. */
14859
#ifdef HAVE_SYS_SENDFILE_H
14860
#include <sys/sendfile.h>
14861
#endif /* HAVE_SYS_SENDFILE_H */
14865
if (-1 == sendfile(-1, 0, &o, 0) && errno == ENOSYS) return -1;
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; }
14873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14874
$as_echo "no" >&6; }
14876
$as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
14879
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14880
conftest.$ac_objext conftest.beam conftest.$ac_ext
14884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14885
$as_echo "no" >&6; }
14887
$as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
14893
# Check whether --enable-ipv6 was given.
14894
if test "${enable_ipv6+set}" = set; then :
14895
enableval=$enable_ipv6; case "${enableval}" in
14898
*) as_fn_error "bad value ${enableval} for --enable-ipv6" "$LINENO" 5 ;;
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
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>
14919
struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
14924
if ac_fn_c_try_link "$LINENO"; then :
14925
ac_cv_ipv6_support=yes
14927
ac_cv_ipv6_support=no
14929
rm -f core conftest.err conftest.$ac_objext \
14930
conftest$ac_exeext conftest.$ac_ext
14932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5
14933
$as_echo "$ac_cv_ipv6_support" >&6; }
14935
if test "$ac_cv_ipv6_support" = yes; then
14937
$as_echo "#define HAVE_IPV6 1" >>confdefs.h
14943
if test "x$cross_compiling" = xyes; then
14944
CROSS_COMPILING_TRUE=
14945
CROSS_COMPILING_FALSE='#'
14947
CROSS_COMPILING_TRUE='#'
14948
CROSS_COMPILING_FALSE=
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
14958
ac_check_lib_save_LIBS=$LIBS
14959
LIBS="-lfcgi $LIBS"
14960
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961
/* end confdefs.h. */
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. */
14969
char FCGI_Accept ();
14973
return FCGI_Accept ();
14978
if ac_fn_c_try_link "$LINENO"; then :
14979
ac_cv_lib_fcgi_FCGI_Accept=yes
14981
ac_cv_lib_fcgi_FCGI_Accept=no
14983
rm -f core conftest.err conftest.$ac_objext \
14984
conftest$ac_exeext conftest.$ac_ext
14985
LIBS=$ac_check_lib_save_LIBS
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 :
14991
for ac_header in fastcgi.h fastcgi/fastcgi.h
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
15011
if test "x$fastcgi_found" = xyes; then
15012
CHECK_WITH_FASTCGI_TRUE=
15013
CHECK_WITH_FASTCGI_FALSE='#'
15015
CHECK_WITH_FASTCGI_TRUE='#'
15016
CHECK_WITH_FASTCGI_FALSE=
15021
if test "${GCC}" = "yes"; then
15022
CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic -std=gnu99"
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 ;;
15033
extrawarnings=false
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"
15041
LIGHTTPD_VERSION_ID=`echo $PACKAGE_VERSION | $AWK -F '.' '{print "(" $1 " << 16 | " $2 " << 8 | " $3 ")"}'`
15043
cat >>confdefs.h <<_ACEOF
15044
#define LIGHTTPD_VERSION_ID $LIGHTTPD_VERSION_ID
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"
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.
15057
# config.status only pays attention to the cache file if you give it
15058
# the --recheck option to rerun configure.
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.
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.
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
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;} ;;
15081
_ | IFS | as_nl) ;; #(
15082
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15083
*) { eval $ac_var=; unset $ac_var;} ;;
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 \.
15095
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15098
# `set' quotes correctly as required by POSIX, so do not add quotes.
15099
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15108
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15110
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
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;}
15125
test "x$prefix" = xNONE && prefix=$ac_default_prefix
15126
# Let make expand exec_prefix.
15127
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15129
DEFS=-DHAVE_CONFIG_H
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'
15142
LIBOBJS=$ac_libobjs
15144
LTLIBOBJS=$ac_ltlibobjs
15147
if test -n "$EXEEXT"; then
15149
am__EXEEXT_FALSE='#'
15151
am__EXEEXT_TRUE='#'
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
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
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
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
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
15176
: ${CONFIG_STATUS=./config.status}
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;}
15183
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
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.
15191
ac_cs_recheck=false
15194
SHELL=\${CONFIG_SHELL-$SHELL}
15197
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15198
## -------------------- ##
15199
## M4sh Initialization. ##
15200
## -------------------- ##
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 :
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
15212
case `(set -o) 2>/dev/null` in #(
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'
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'
15242
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15243
as_echo_n_body='eval
15247
expr "X$arg" : "X\\(.*\\)$as_nl";
15248
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15250
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15252
export as_echo_n_body
15253
as_echo_n='sh -c $as_echo_n_body as_echo'
15255
export as_echo_body
15256
as_echo='sh -c $as_echo_body as_echo'
15259
# The user is always right.
15260
if test "${PATH_SEPARATOR+set}" != set; then
15262
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15263
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
15276
# Find who we are. Look in the path if we contain no directory separator.
15278
*[\\/]* ) as_myself=$0 ;;
15279
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15280
for as_dir in $PATH
15283
test -z "$as_dir" && as_dir=.
15284
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
15295
if test ! -f "$as_myself"; then
15296
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
15319
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
15329
as_status=$?; test $as_status -eq 0 && as_status=1
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
15334
$as_echo "$as_me: error: $1" >&2
15335
as_fn_exit $as_status
15339
# as_fn_set_status STATUS
15340
# -----------------------
15341
# Set $? to STATUS, without forking.
15342
as_fn_set_status ()
15345
} # as_fn_set_status
15347
# as_fn_exit STATUS
15348
# -----------------
15349
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15353
as_fn_set_status $1
15359
# Portably unset VAR.
15362
{ eval $1=; unset $1;}
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
15371
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15372
eval 'as_fn_append ()
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 ()
15396
as_val=`expr "$@" || test $? -eq 1`
15401
if expr a : '\(a\)' >/dev/null 2>&1 &&
15402
test "X`expr 00001 : '.*\(...\)'`" = X001; then
15408
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15409
as_basename=basename
15414
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15420
as_me=`$as_basename -- "$0" ||
15421
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15422
X"$0" : 'X\(//\)$' \| \
15423
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15425
sed '/^.*\/\([^/][^/]*\)\/*$/{
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
15446
ECHO_C= ECHO_N= ECHO_T=
15447
case `echo -n x` in #(((((
15449
case `echo 'xy\c'` in
15450
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
15452
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15459
rm -f conf$$ conf$$.exe conf$$.file
15460
if test -d conf$$.dir; then
15461
rm -f conf$$.dir/conf$$.file
15464
mkdir conf$$.dir 2>/dev/null
15466
if (echo >conf$$.file) 2>/dev/null; then
15467
if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
15475
elif ln conf$$.file conf$$ 2>/dev/null; then
15483
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15484
rmdir conf$$.dir 2>/dev/null
15489
# Create "$as_dir" as a directory, including parents if necessary.
15494
-*) as_dir=./$as_dir;;
15496
test -d "$as_dir" || eval $as_mkdir_p || {
15500
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15501
*) as_qdir=$as_dir;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15514
/^X\(\/\/\)[^/].*/{
15527
test -d "$as_dir" && break
15529
test -z "$as_dirs" || eval "mkdir $as_dirs"
15530
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15534
if mkdir -p . 2>/dev/null; then
15535
as_mkdir_p='mkdir -p "$as_dir"'
15537
test -d ./-p && rmdir ./-p
15541
if test -x / >/dev/null 2>&1; then
15542
as_test_x='test -x'
15544
if ls -dL / >/dev/null 2>&1; then
15551
if test -d "$1"; then
15557
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15558
???[sx]*):;;*)false;;esac;fi
15562
as_executable_p=$as_test_x
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'"
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'"
15572
## ----------------------------------- ##
15573
## Main body of $CONFIG_STATUS script. ##
15574
## ----------------------------------- ##
15576
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
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.
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
15586
CONFIG_FILES = $CONFIG_FILES
15587
CONFIG_HEADERS = $CONFIG_HEADERS
15588
CONFIG_LINKS = $CONFIG_LINKS
15589
CONFIG_COMMANDS = $CONFIG_COMMANDS
15592
on `(hostname || uname -n) 2>/dev/null | sed 1q`
15597
case $ac_config_files in *"
15598
"*) set x $ac_config_files; shift; ac_config_files=$*;;
15601
case $ac_config_headers in *"
15602
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
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"
15614
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
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.
15620
Usage: $0 [OPTION]... [TAG]...
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
15634
Configuration files:
15637
Configuration headers:
15640
Configuration commands:
15643
Report bugs to <contact@lighttpd.net>."
15646
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15647
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15649
lighttpd config.status 1.4.26
15650
configured by $0, generated by GNU Autoconf 2.65,
15651
with options \\"\$ac_cs_config\\"
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."
15662
test -n "\$AWK" || AWK=awk
15665
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15666
# The default lists apply if the user does not specify any file.
15672
ac_option=`expr "X$1" : 'X\([^=]*\)='`
15673
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15684
# Handling of the options.
15685
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
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 )
15693
--file | --fil | --fi | --f )
15696
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15698
as_fn_append CONFIG_FILES " '$ac_optarg'"
15699
ac_need_defaults=false;;
15700
--header | --heade | --head | --hea )
15703
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15705
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15706
ac_need_defaults=false;;
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)
15717
# This is an error.
15718
-*) as_fn_error "unrecognized option: \`$1'
15719
Try \`$0 --help' for more information." ;;
15721
*) as_fn_append ac_config_targets " $1"
15722
ac_need_defaults=false ;;
15728
ac_configure_extra_args=
15730
if $ac_cs_silent; then
15732
ac_configure_extra_args="$ac_configure_extra_args --silent"
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
15740
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15741
CONFIG_SHELL='$SHELL'
15742
export CONFIG_SHELL
15747
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15751
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15752
## Running $as_me. ##
15758
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15762
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
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
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"`'
15892
LTCFLAGS='$LTCFLAGS'
15893
compiler='$compiler_DEFAULT'
15895
# Quote evaled strings.
15907
deplibs_check_method \
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 \
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 \
15934
export_dynamic_flag_spec \
15935
whole_archive_flag_spec \
15936
compiler_needs_object \
15938
allow_undefined_flag \
15939
no_undefined_flag \
15940
hardcode_libdir_flag_spec \
15941
hardcode_libdir_flag_spec_ld \
15942
hardcode_libdir_separator \
15947
variables_saved_for_relink \
15949
library_names_spec \
15954
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15955
*[\\\\\\\`\\"\\\$]*)
15956
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15959
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15964
# Double-quote double-evaled strings.
15965
for var in reload_cmds \
15966
old_postinstall_cmds \
15967
old_postuninstall_cmds \
15969
extract_expsyms_cmds \
15970
old_archive_from_new_cmds \
15971
old_archive_from_expsyms_cmds \
15973
archive_expsym_cmds \
15975
module_expsym_cmds \
15976
export_symbols_cmds \
15979
postuninstall_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\\"\\\`\\\\\\""
15988
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15993
# Fix-up fallback echo if it was mangled by the above quoting rules.
15995
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15999
ac_aux_dir='$ac_aux_dir'
16000
xsi_shell='$xsi_shell'
16001
lt_shell_append='$lt_shell_append'
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
16012
TIMESTAMP='$TIMESTAMP'
16021
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16023
# Handling of arguments.
16024
for ac_config_target in $ac_config_targets
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" ;;
16042
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
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
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'.
16066
trap 'exit_status=$?
16067
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16069
trap 'as_fn_exit 1' 1 2 13 15
16071
# Create a (secure) tmp directory for tmp files.
16074
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16075
test -n "$tmp" && test -d "$tmp"
16078
tmp=./conf$$-$RANDOM
16079
(umask 077 && mkdir "$tmp")
16080
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
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
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\'
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
16099
ac_cs_awk_cr=$ac_cr
16102
echo 'BEGIN {' >"$tmp/subs1.awk" &&
16107
echo "cat >conf$$subs.awk <<_ACEOF" &&
16108
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
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 '$'`
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
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
16121
elif $ac_last_try; then
16122
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16124
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16127
rm -f conf$$subs.sh
16129
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16130
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16134
s/^/S["/; s/!.*/"]=/
16144
s/\(.\{148\}\)..*/\1/
16146
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16151
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16158
s/\(.\{148\}\)..*/\1/
16160
s/["\\]/\\&/g; s/^/"/; s/$/"/
16164
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16169
' <conf$$subs.awk | sed '
16174
' >>$CONFIG_STATUS || ac_write_fail=1
16175
rm -f conf$$subs.awk
16176
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16178
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16179
for (key in S) S_is_set[key] = 1
16185
nfields = split(line, field, "@")
16187
len = length(field[1])
16188
for (i = 2; i < nfields; i++) {
16190
keylen = length(key)
16191
if (S_is_set[key]) {
16193
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16194
len += length(value) + length(field[++i])
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"
16210
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16211
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
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}:*/:/
16223
s/^\([^=]*=[ ]*\):*/\1/
16229
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16230
fi # test -n "$CONFIG_FILES"
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 ||
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.
16244
# Create a delimiter string that does not exist in confdefs.h, to ease
16245
# handling of long lines.
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
16251
elif $ac_last_try; then
16252
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16254
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
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.
16262
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16264
s/.\{148\}/&'"$ac_delim"'/g
16267
s/^[ ]*#[ ]*define[ ][ ]*/ /
16274
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16276
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16280
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16281
D["\1"]=" \3\\\\\\n"\\/p
16283
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16288
s/.\{148\}/&'"$ac_delim"'/g
16293
s/["\\]/\\&/g; s/^/"/; s/$/"/p
16296
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16298
' <confdefs.h | sed '
16299
s/'"$ac_delim"'/"\\\
16300
"/g' >>$CONFIG_STATUS || ac_write_fail=1
16302
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16303
for (key in D) D_is_set[key] = 1
16306
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16308
split(line, arg, " ")
16309
if (arg[1] == "#") {
16313
defundef = substr(arg[1], 2)
16316
split(mac1, mac2, "(") #)
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]
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, "*/"
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"
16341
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16346
:[FHLC]) ac_mode=$ac_tag; continue;;
16348
case $ac_mode$ac_tag in
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;;
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 `:'.
16376
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16378
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16380
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16381
as_fn_append ac_file_inputs " '$ac_f'"
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'
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;}
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;;
16404
*:-:* | *:-) cat >"$tmp/stdin" \
16405
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16420
/^X\(\/\/\)[^/].*/{
16433
as_dir="$ac_dir"; as_fn_mkdir_p
16437
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
16453
.) # We are building in place.
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 ;;
16466
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16476
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16477
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16479
ac_MKDIR_P=$MKDIR_P
16481
[\\/$]* | ?:[\\/]* ) ;;
16482
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
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=
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;}
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' ;;
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
16524
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
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
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
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;}
16554
-) cat "$tmp/out" && rm -f "$tmp/out";;
16555
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16557
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16563
if test x"$ac_file" != x-; then
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;}
16574
mv "$tmp/config.h" "$ac_file" \
16575
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16578
$as_echo "/* $configure_input */" \
16579
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16580
|| as_fn_error "could not create -" "$LINENO" 5
16582
# Compute "$ac_file"'s index in $config_headers.
16585
for _am_header in $config_headers :; do
16586
case $_am_header in
16587
$_am_arg | $_am_arg:* )
16590
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16603
/^X\(\/\/\)[^/].*/{
16615
s/.*/./; q'`/stamp-h$_am_stamp_count
16618
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16619
$as_echo "$as_me: executing $ac_file commands" >&6;}
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 ;;
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 ||
16652
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16656
/^X\(\/\/\)[^/].*/{
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
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16700
/^X\(\/\/\)[^/].*/{
16713
as_dir=$dirpart/$fdir; as_fn_mkdir_p
16714
# echo "creating $dirpart/$file"
16715
echo '# dummy' > "$dirpart/$file"
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
16728
cfgfile="${ofile}T"
16729
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16732
cat <<_LT_EOF >> "$cfgfile"
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.
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
16744
# This file is part of GNU Libtool.
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.
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.
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.
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.
16768
# The names of the tagged configurations supported by this script.
16771
# ### BEGIN LIBTOOL CONFIG
16773
# A sed program that does not truncate output.
16776
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16777
Xsed="\$SED -e 1s/^X//"
16779
# A grep program that handles long lines.
16785
# A literal string matcher.
16788
# Whether or not to build static libraries.
16789
build_old_libs=$enable_static
16791
# Whether or not to build shared libraries.
16792
build_libtool_libs=$enable_shared
16794
# Which release of libtool.m4 was used?
16795
macro_version=$macro_version
16796
macro_revision=$macro_revision
16798
# What type of objects to build.
16801
# Whether or not to optimize for fast installation.
16802
fast_install=$enable_fast_install
16805
host_alias=$host_alias
16809
# The build system.
16810
build_alias=$build_alias
16814
# A BSD- or MS-compatible name lister.
16817
# Whether we need soft or hard links.
16820
# What is the maximum length of a command?
16821
max_cmd_len=$max_cmd_len
16823
# Object file suffix (normally "o").
16826
# Executable file suffix (normally "").
16829
# whether the shell understands "unset".
16832
# turn spaces into newlines.
16835
# turn newlines into spaces.
16838
# How to create reloadable object files.
16839
reload_flag=$lt_reload_flag
16840
reload_cmds=$lt_reload_cmds
16842
# An object symbol dumper.
16843
OBJDUMP=$lt_OBJDUMP
16845
# Method to check whether dependent libraries are shared objects.
16846
deplibs_check_method=$lt_deplibs_check_method
16848
# Command to use when deplibs_check_method == "file_magic".
16849
file_magic_cmd=$lt_file_magic_cmd
16853
AR_FLAGS=$lt_AR_FLAGS
16855
# A symbol stripping program.
16858
# Commands used to install an old-style archive.
16860
old_postinstall_cmds=$lt_old_postinstall_cmds
16861
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16866
# LTCC compiler flags.
16867
LTCFLAGS=$lt_CFLAGS
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
16872
# Transform the output of nm in a proper C declaration.
16873
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
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
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
16881
# The name of the directory that contains temporary libtool files.
16884
# Shell to use when invoking shell scripts.
16887
# An echo program that does not interpret backslashes.
16890
# Used to examine libraries when file_magic_cmd begins with "file".
16891
MAGIC_CMD=$MAGIC_CMD
16893
# Must we lock files when doing compilation?
16894
need_locks=$lt_need_locks
16896
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16897
DSYMUTIL=$lt_DSYMUTIL
16899
# Tool to change global to local symbols on Mac OS X.
16902
# Tool to manipulate fat objects and archives on Mac OS X.
16905
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16908
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16909
OTOOL64=$lt_OTOOL64
16911
# Old archive suffix (normally "a").
16914
# Shared library suffix (normally ".so").
16915
shrext_cmds=$lt_shrext_cmds
16917
# The commands to extract the exported symbol list from a shared archive.
16918
extract_expsyms_cmds=$lt_extract_expsyms_cmds
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
16924
# Do we need the "lib" prefix for modules?
16925
need_lib_prefix=$need_lib_prefix
16927
# Do we need a version for libraries?
16928
need_version=$need_version
16930
# Library versioning type.
16931
version_type=$version_type
16933
# Shared library runtime path variable.
16934
runpath_var=$runpath_var
16936
# Shared library path variable.
16937
shlibpath_var=$shlibpath_var
16939
# Is shlibpath searched before the hard-coded library search path?
16940
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16942
# Format of library name prefix.
16943
libname_spec=$lt_libname_spec
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
16949
# The coded name of the library, if different from the real name.
16950
soname_spec=$lt_soname_spec
16952
# Command to use after installation of a shared archive.
16953
postinstall_cmds=$lt_postinstall_cmds
16955
# Command to use after uninstallation of a shared archive.
16956
postuninstall_cmds=$lt_postuninstall_cmds
16958
# Commands used to finish a libtool library installation in a directory.
16959
finish_cmds=$lt_finish_cmds
16961
# As "finish_cmds", except a single script fragment to be evaled but
16963
finish_eval=$lt_finish_eval
16965
# Whether we should hardcode library paths into libraries.
16966
hardcode_into_libs=$hardcode_into_libs
16968
# Compile-time system search path for libraries.
16969
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16971
# Run-time system search path for libraries.
16972
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16974
# Whether dlopen is supported.
16975
dlopen_support=$enable_dlopen
16977
# Whether dlopen of programs is supported.
16978
dlopen_self=$enable_dlopen_self
16980
# Whether dlopen of statically linked programs is supported.
16981
dlopen_self_static=$enable_dlopen_self_static
16983
# Commands to strip libraries.
16984
old_striplib=$lt_old_striplib
16985
striplib=$lt_striplib
16988
# The linker used to build libraries.
16991
# Commands used to build an old-style archive.
16992
old_archive_cmds=$lt_old_archive_cmds
16994
# A language specific compiler.
16997
# Is the compiler the GNU compiler?
17000
# Compiler flag to turn off builtin functions.
17001
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17003
# How to pass a linker flag through the compiler.
17004
wl=$lt_lt_prog_compiler_wl
17006
# Additional compiler flags for building library objects.
17007
pic_flag=$lt_lt_prog_compiler_pic
17009
# Compiler flag to prevent dynamic linking.
17010
link_static_flag=$lt_lt_prog_compiler_static
17012
# Does compiler simultaneously support -c and -o options?
17013
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17015
# Whether or not to add -lc for building shared libraries.
17016
build_libtool_need_lc=$archive_cmds_need_lc
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
17021
# Compiler flag to allow reflexive dlopens.
17022
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17024
# Compiler flag to generate shared objects directly from archives.
17025
whole_archive_flag_spec=$lt_whole_archive_flag_spec
17027
# Whether the compiler copes with passing no objects directly.
17028
compiler_needs_object=$lt_compiler_needs_object
17030
# Create an old-style archive from a shared archive.
17031
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
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
17036
# Commands used to build a shared archive.
17037
archive_cmds=$lt_archive_cmds
17038
archive_expsym_cmds=$lt_archive_expsym_cmds
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
17045
# Whether we are building with GNU ld or not.
17046
with_gnu_ld=$lt_with_gnu_ld
17048
# Flag that allows shared libraries with undefined symbols to be built.
17049
allow_undefined_flag=$lt_allow_undefined_flag
17051
# Flag that enforces no undefined symbols.
17052
no_undefined_flag=$lt_no_undefined_flag
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
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
17062
# Whether we need a single "-rpath" flag with a separated argument.
17063
hardcode_libdir_separator=$lt_hardcode_libdir_separator
17065
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17066
# DIR into the resulting binary.
17067
hardcode_direct=$hardcode_direct
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
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
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
17083
# Set to "yes" if building a shared library automatically hardcodes DIR
17084
# into the library and all subsequent libraries and executables linked
17086
hardcode_automatic=$hardcode_automatic
17088
# Set to yes if linker adds runtime paths of dependent libraries
17089
# to runtime path list.
17090
inherit_rpath=$inherit_rpath
17092
# Whether libtool must link a program against all its dependency libraries.
17093
link_all_deplibs=$link_all_deplibs
17095
# Fix the shell variable \$srcfile for the compiler.
17096
fix_srcfile_path=$lt_fix_srcfile_path
17098
# Set to "yes" if exported symbols are required.
17099
always_export_symbols=$always_export_symbols
17101
# The commands to list exported symbols.
17102
export_symbols_cmds=$lt_export_symbols_cmds
17104
# Symbols that should not be listed in the preloaded symbols.
17105
exclude_expsyms=$lt_exclude_expsyms
17107
# Symbols that must always be exported.
17108
include_expsyms=$lt_include_expsyms
17110
# Commands necessary for linking programs (against libraries) with templates.
17111
prelink_cmds=$lt_prelink_cmds
17113
# Specify filename containing input files.
17114
file_list_spec=$lt_file_list_spec
17116
# How to hardcode a shared library path into an executable.
17117
hardcode_action=$hardcode_action
17119
# ### END LIBTOOL CONFIG
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
17131
export COLLECT_NAMES
17138
ltmain="$ac_aux_dir/ltmain.sh"
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)
17150
cat << \_LT_EOF >> "$cfgfile"
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.
17158
*/*) func_dirname_result="${1%/*}${2}" ;;
17159
* ) func_dirname_result="${3}" ;;
17163
# func_basename file
17166
func_basename_result="${1##*/}"
17169
# func_dirname_and_basename file append nondir_replacement
17170
# perform func_basename and func_dirname in a single function
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 ()
17184
*/*) func_dirname_result="${1%/*}${2}" ;;
17185
* ) func_dirname_result="${3}" ;;
17187
func_basename_result="${1##*/}"
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).
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}"}
17207
func_opt_split_opt=${1%%=*}
17208
func_opt_split_arg=${1#*=}
17215
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17216
*) func_lo2o_result=${1} ;;
17220
# func_xform libobj-or-source
17223
func_xform_result=${1%.*}.lo
17226
# func_arith arithmetic-term...
17229
func_arith_result=$(( $* ))
17233
# STRING may not start with a hyphen.
17236
func_len_result=${#1}
17241
*) # Bourne compatible functions.
17242
cat << \_LT_EOF >> "$cfgfile"
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.
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}"
17254
func_dirname_result="$func_dirname_result${2}"
17258
# func_basename file
17261
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
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
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}\$%%"`;;
17282
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17283
my_sed_long_arg='1s/^-[^=]*=//'
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"`
17295
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17298
# func_xform libobj-or-source
17301
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17304
# func_arith arithmetic-term...
17307
func_arith_result=`expr "$@"`
17311
# STRING may not start with a hyphen.
17314
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17320
case $lt_shell_append in
17322
cat << \_LT_EOF >> "$cfgfile"
17324
# func_append var value
17325
# Append VALUE to the end of shell variable VAR.
17333
cat << \_LT_EOF >> "$cfgfile"
17335
# func_append var value
17336
# Append VALUE to the end of shell variable VAR.
17347
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17348
|| (rm -f "$cfgfile"; exit 1)
17350
mv -f "$cfgfile" "$ofile" ||
17351
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17362
ac_clean_files=$ac_clean_files_save
17364
test $ac_write_fail = 0 ||
17365
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
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
17378
ac_config_status_args=
17379
test "$silent" = yes &&
17380
ac_config_status_args="$ac_config_status_args --quiet"
17382
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
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 $?
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;}
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"
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"
17404
no_build="$no_build $plugins"
17405
disable_feature="$features"
17408
plugins="mod_mysql_vhost"
17409
if test ! "x$MYSQL_LIBS" = x; then
17410
do_build="$do_build $plugins"
17412
no_build="$no_build $plugins"
17415
plugins="mod_cml mod_magnet"
17416
if test ! "x$LUA_LIBS" = x; then
17417
do_build="$do_build $plugins"
17419
no_build="$no_build $plugins"
17422
features="storage-gdbm"
17423
if test ! "x$GDBM_LIB" = x; then
17424
enable_feature="$enable_feature $features"
17426
disable_feature="$disable_feature $features"
17429
features="storage-memcache"
17430
if test ! "x$MEMCACHE_LIB" = x; then
17431
enable_feature="$enable_feature $features"
17433
disable_feature="$disable_feature $features"
17436
features="compress-gzip compress-deflate"
17437
if test ! "x$Z_LIB" = x; then
17438
enable_feature="$enable_feature $features"
17440
disable_feature="$disable_feature $features"
17443
features="compress-bzip2"
17444
if test ! "x$BZ_LIB" = x; then
17445
enable_feature="$enable_feature $features"
17447
disable_feature="$disable_feature $features"
17450
features="auth-ldap"
17451
if test ! "x$LDAP_LIB" = x; then
17452
enable_feature="$enable_feature $features"
17454
disable_feature="$disable_feature $features"
17457
features="network-openssl"
17458
if test ! "x$SSL_LIB" = x; then
17459
enable_feature="$enable_feature $features"
17461
disable_feature="$disable_feature $features"
17464
features="auth-crypt"
17465
if test "$ac_cv_search_crypt" = no; then
17466
disable_feature="$disable_feature $features"
17468
enable_feature="$enable_feature $features"
17471
features="network-ipv6"
17472
if test "$ac_cv_ipv6_support" = yes; then
17473
enable_feature="$enable_feature $features"
17475
disable_feature="$disable_feature $features"
17478
features="large-files"
17479
if test "$enable_lfs" = yes; then
17480
enable_feature="$enable_feature $features"
17482
disable_feature="$disable_feature $features"
17485
features="stat-cache-fam"
17486
if test ! "x$FAM_LIBS" = x; then
17487
enable_feature="$enable_feature $features"
17489
disable_feature="$disable_feature $features"
17492
features="webdav-properties"
17493
if test "x$XML_LIBS" \!= x -a "x$SQLITE_LIBS" \!= x; then
17494
enable_feature="$enable_feature $features"
17496
disable_feature="$disable_feature $features"
17499
features="webdav-locks"
17500
if test "x$UUID_LIBS" \!= x; then
17501
enable_feature="$enable_feature $features"
17503
disable_feature="$disable_feature $features"
17513
for p in $do_build; do
17518
for p in $no_build; do
17527
for p in $enable_feature; do
17532
for p in $disable_feature; do