2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.65 for libgnutls-extra 2.8.6.
5
# Report bugs to <bug-gnutls@gnu.org>.
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 bug-gnutls@gnu.org
234
$0: about your system, including any error possibly output
235
$0: before this message. Then install a modern shell, or
236
$0: manually run the script under such a shell if you do
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='libgnutls-extra'
703
PACKAGE_TARNAME='libgnutls-extra'
704
PACKAGE_VERSION='2.8.6'
705
PACKAGE_STRING='libgnutls-extra 2.8.6'
706
PACKAGE_BUGREPORT='bug-gnutls@gnu.org'
709
# Factoring default headers for most tests.
710
ac_includes_default="\
712
#ifdef HAVE_SYS_TYPES_H
713
# include <sys/types.h>
715
#ifdef HAVE_SYS_STAT_H
716
# include <sys/stat.h>
722
# ifdef HAVE_STDLIB_H
727
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
732
#ifdef HAVE_STRINGS_H
733
# include <strings.h>
735
#ifdef HAVE_INTTYPES_H
736
# include <inttypes.h>
746
ac_subst_vars='xgltests_LTLIBOBJS
756
LIBGNUTLS_EXTRA_CFLAGS
758
HAVE_LD_VERSION_SCRIPT_FALSE
759
HAVE_LD_VERSION_SCRIPT_TRUE
760
HAVE_LD_OUTPUT_DEF_FALSE
761
HAVE_LD_OUTPUT_DEF_TRUE
762
GL_COND_LIBTOOL_FALSE
766
UNISTD_H_HAVE_WINSOCK2_H
792
GNULIB_UNISTD_H_SIGPIPE
830
ENABLE_MINITASN1_FALSE
831
ENABLE_MINITASN1_TRUE
898
INSTALL_STRIP_PROGRAM
940
program_transform_name
953
enable_option_checking
954
enable_dependency_tracking
962
with_libgcrypt_prefix
963
with_included_libtasn1
966
enable_opaque_prf_input
967
enable_srp_authentication
968
enable_psk_authentication
969
enable_anon_authentication
972
enable_openpgp_authentication
973
enable_openssl_compatibility
974
enable_ld_version_script
976
ac_precious_vars='build_alias
987
# Initialize some variables set by options.
989
ac_init_version=false
990
ac_unrecognized_opts=
992
# The variables have the same names as the options, with
993
# dashes changed to underlines.
1001
program_transform_name=s,x,x,
1009
# Installation directory options.
1010
# These are left unexpanded so users can "make install exec_prefix=/foo"
1011
# and all the variables that are supposed to be based on exec_prefix
1012
# by default will actually change.
1013
# Use braces instead of parens because sh, perl, etc. also accept them.
1014
# (The list follows the same order as the GNU Coding Standards.)
1015
bindir='${exec_prefix}/bin'
1016
sbindir='${exec_prefix}/sbin'
1017
libexecdir='${exec_prefix}/libexec'
1018
datarootdir='${prefix}/share'
1019
datadir='${datarootdir}'
1020
sysconfdir='${prefix}/etc'
1021
sharedstatedir='${prefix}/com'
1022
localstatedir='${prefix}/var'
1023
includedir='${prefix}/include'
1024
oldincludedir='/usr/include'
1025
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1026
infodir='${datarootdir}/info'
1031
libdir='${exec_prefix}/lib'
1032
localedir='${datarootdir}/locale'
1033
mandir='${datarootdir}/man'
1039
# If the previous option needs an argument, assign it.
1040
if test -n "$ac_prev"; then
1041
eval $ac_prev=\$ac_option
1047
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1051
# Accept the important Cygnus configure options, so we can diagnose typos.
1053
case $ac_dashdash$ac_option in
1057
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1059
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1060
bindir=$ac_optarg ;;
1062
-build | --build | --buil | --bui | --bu)
1063
ac_prev=build_alias ;;
1064
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1065
build_alias=$ac_optarg ;;
1067
-cache-file | --cache-file | --cache-fil | --cache-fi \
1068
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1069
ac_prev=cache_file ;;
1070
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1071
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1072
cache_file=$ac_optarg ;;
1074
--config-cache | -C)
1075
cache_file=config.cache ;;
1077
-datadir | --datadir | --datadi | --datad)
1079
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1080
datadir=$ac_optarg ;;
1082
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1083
| --dataroo | --dataro | --datar)
1084
ac_prev=datarootdir ;;
1085
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1086
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1087
datarootdir=$ac_optarg ;;
1089
-disable-* | --disable-*)
1090
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1091
# Reject names that are not valid shell variable names.
1092
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093
as_fn_error "invalid feature name: $ac_useropt"
1094
ac_useropt_orig=$ac_useropt
1095
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096
case $ac_user_opts in
1098
"enable_$ac_useropt"
1100
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1101
ac_unrecognized_sep=', ';;
1103
eval enable_$ac_useropt=no ;;
1105
-docdir | --docdir | --docdi | --doc | --do)
1107
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1108
docdir=$ac_optarg ;;
1110
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1112
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1113
dvidir=$ac_optarg ;;
1115
-enable-* | --enable-*)
1116
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1117
# Reject names that are not valid shell variable names.
1118
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119
as_fn_error "invalid feature name: $ac_useropt"
1120
ac_useropt_orig=$ac_useropt
1121
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122
case $ac_user_opts in
1124
"enable_$ac_useropt"
1126
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1127
ac_unrecognized_sep=', ';;
1129
eval enable_$ac_useropt=\$ac_optarg ;;
1131
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1132
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1133
| --exec | --exe | --ex)
1134
ac_prev=exec_prefix ;;
1135
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1136
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1137
| --exec=* | --exe=* | --ex=*)
1138
exec_prefix=$ac_optarg ;;
1140
-gas | --gas | --ga | --g)
1141
# Obsolete; use --with-gas.
1144
-help | --help | --hel | --he | -h)
1145
ac_init_help=long ;;
1146
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1147
ac_init_help=recursive ;;
1148
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1149
ac_init_help=short ;;
1151
-host | --host | --hos | --ho)
1152
ac_prev=host_alias ;;
1153
-host=* | --host=* | --hos=* | --ho=*)
1154
host_alias=$ac_optarg ;;
1156
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1158
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1160
htmldir=$ac_optarg ;;
1162
-includedir | --includedir | --includedi | --included | --include \
1163
| --includ | --inclu | --incl | --inc)
1164
ac_prev=includedir ;;
1165
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1166
| --includ=* | --inclu=* | --incl=* | --inc=*)
1167
includedir=$ac_optarg ;;
1169
-infodir | --infodir | --infodi | --infod | --info | --inf)
1171
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1172
infodir=$ac_optarg ;;
1174
-libdir | --libdir | --libdi | --libd)
1176
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1177
libdir=$ac_optarg ;;
1179
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1180
| --libexe | --libex | --libe)
1181
ac_prev=libexecdir ;;
1182
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1183
| --libexe=* | --libex=* | --libe=*)
1184
libexecdir=$ac_optarg ;;
1186
-localedir | --localedir | --localedi | --localed | --locale)
1187
ac_prev=localedir ;;
1188
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1189
localedir=$ac_optarg ;;
1191
-localstatedir | --localstatedir | --localstatedi | --localstated \
1192
| --localstate | --localstat | --localsta | --localst | --locals)
1193
ac_prev=localstatedir ;;
1194
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1195
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1196
localstatedir=$ac_optarg ;;
1198
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1200
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1201
mandir=$ac_optarg ;;
1203
-nfp | --nfp | --nf)
1204
# Obsolete; use --without-fp.
1207
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1208
| --no-cr | --no-c | -n)
1211
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1212
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1215
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1216
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1217
| --oldin | --oldi | --old | --ol | --o)
1218
ac_prev=oldincludedir ;;
1219
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1220
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1221
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1222
oldincludedir=$ac_optarg ;;
1224
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1226
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1227
prefix=$ac_optarg ;;
1229
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1230
| --program-pre | --program-pr | --program-p)
1231
ac_prev=program_prefix ;;
1232
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1233
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1234
program_prefix=$ac_optarg ;;
1236
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1237
| --program-suf | --program-su | --program-s)
1238
ac_prev=program_suffix ;;
1239
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1240
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1241
program_suffix=$ac_optarg ;;
1243
-program-transform-name | --program-transform-name \
1244
| --program-transform-nam | --program-transform-na \
1245
| --program-transform-n | --program-transform- \
1246
| --program-transform | --program-transfor \
1247
| --program-transfo | --program-transf \
1248
| --program-trans | --program-tran \
1249
| --progr-tra | --program-tr | --program-t)
1250
ac_prev=program_transform_name ;;
1251
-program-transform-name=* | --program-transform-name=* \
1252
| --program-transform-nam=* | --program-transform-na=* \
1253
| --program-transform-n=* | --program-transform-=* \
1254
| --program-transform=* | --program-transfor=* \
1255
| --program-transfo=* | --program-transf=* \
1256
| --program-trans=* | --program-tran=* \
1257
| --progr-tra=* | --program-tr=* | --program-t=*)
1258
program_transform_name=$ac_optarg ;;
1260
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1262
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1263
pdfdir=$ac_optarg ;;
1265
-psdir | --psdir | --psdi | --psd | --ps)
1267
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1270
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1271
| -silent | --silent | --silen | --sile | --sil)
1274
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1276
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1278
sbindir=$ac_optarg ;;
1280
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1281
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1282
| --sharedst | --shareds | --shared | --share | --shar \
1284
ac_prev=sharedstatedir ;;
1285
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1286
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1287
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1289
sharedstatedir=$ac_optarg ;;
1291
-site | --site | --sit)
1293
-site=* | --site=* | --sit=*)
1296
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1298
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1299
srcdir=$ac_optarg ;;
1301
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1302
| --syscon | --sysco | --sysc | --sys | --sy)
1303
ac_prev=sysconfdir ;;
1304
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1305
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1306
sysconfdir=$ac_optarg ;;
1308
-target | --target | --targe | --targ | --tar | --ta | --t)
1309
ac_prev=target_alias ;;
1310
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1311
target_alias=$ac_optarg ;;
1313
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1316
-version | --version | --versio | --versi | --vers | -V)
1317
ac_init_version=: ;;
1320
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1321
# Reject names that are not valid shell variable names.
1322
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323
as_fn_error "invalid package name: $ac_useropt"
1324
ac_useropt_orig=$ac_useropt
1325
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326
case $ac_user_opts in
1330
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1331
ac_unrecognized_sep=', ';;
1333
eval with_$ac_useropt=\$ac_optarg ;;
1335
-without-* | --without-*)
1336
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1337
# Reject names that are not valid shell variable names.
1338
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339
as_fn_error "invalid package name: $ac_useropt"
1340
ac_useropt_orig=$ac_useropt
1341
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342
case $ac_user_opts in
1346
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1347
ac_unrecognized_sep=', ';;
1349
eval with_$ac_useropt=no ;;
1352
# Obsolete; use --with-x.
1355
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1356
| --x-incl | --x-inc | --x-in | --x-i)
1357
ac_prev=x_includes ;;
1358
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1359
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1360
x_includes=$ac_optarg ;;
1362
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1363
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1364
ac_prev=x_libraries ;;
1365
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1366
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1367
x_libraries=$ac_optarg ;;
1369
-*) as_fn_error "unrecognized option: \`$ac_option'
1370
Try \`$0 --help' for more information."
1374
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1375
# Reject names that are not valid shell variable names.
1376
case $ac_envvar in #(
1377
'' | [0-9]* | *[!_$as_cr_alnum]* )
1378
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1380
eval $ac_envvar=\$ac_optarg
1381
export $ac_envvar ;;
1384
# FIXME: should be removed in autoconf 3.0.
1385
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1386
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1388
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1394
if test -n "$ac_prev"; then
1395
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1396
as_fn_error "missing argument to $ac_option"
1399
if test -n "$ac_unrecognized_opts"; then
1400
case $enable_option_checking in
1402
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1403
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1407
# Check all directory arguments for consistency.
1408
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1409
datadir sysconfdir sharedstatedir localstatedir includedir \
1410
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1411
libdir localedir mandir
1413
eval ac_val=\$$ac_var
1414
# Remove trailing slashes.
1417
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1418
eval $ac_var=\$ac_val;;
1420
# Be sure to have absolute directory names.
1422
[\\/$]* | ?:[\\/]* ) continue;;
1423
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1425
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1428
# There might be people who depend on the old broken behavior: `$host'
1429
# used to hold the argument of --host etc.
1430
# FIXME: To remove some day.
1433
target=$target_alias
1435
# FIXME: To remove some day.
1436
if test "x$host_alias" != x; then
1437
if test "x$build_alias" = x; then
1438
cross_compiling=maybe
1439
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1440
If a cross compiler is detected then cross compile mode will be used." >&2
1441
elif test "x$build_alias" != "x$host_alias"; then
1447
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1449
test "$silent" = yes && exec 6>/dev/null
1452
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1453
ac_ls_di=`ls -di .` &&
1454
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1455
as_fn_error "working directory cannot be determined"
1456
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1457
as_fn_error "pwd does not report name of working directory"
1460
# Find the source files, if location was not specified.
1461
if test -z "$srcdir"; then
1462
ac_srcdir_defaulted=yes
1463
# Try the directory containing this script, then the parent directory.
1464
ac_confdir=`$as_dirname -- "$as_myself" ||
1465
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1466
X"$as_myself" : 'X\(//\)[^/]' \| \
1467
X"$as_myself" : 'X\(//\)$' \| \
1468
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1469
$as_echo X"$as_myself" |
1470
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1488
if test ! -r "$srcdir/$ac_unique_file"; then
1492
ac_srcdir_defaulted=no
1494
if test ! -r "$srcdir/$ac_unique_file"; then
1495
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1496
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1498
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1500
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1502
# When building in place, set srcdir=.
1503
if test "$ac_abs_confdir" = "$ac_pwd"; then
1506
# Remove unnecessary trailing slashes from srcdir.
1507
# Double slashes in file names in object file debugging info
1508
# mess up M-x gdb in Emacs.
1510
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1512
for ac_var in $ac_precious_vars; do
1513
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1514
eval ac_env_${ac_var}_value=\$${ac_var}
1515
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1516
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1520
# Report the --help message.
1522
if test "$ac_init_help" = "long"; then
1523
# Omit some internal or obsolete options to make the list less imposing.
1524
# This message is too long to be a string in the A/UX 3.1 sh.
1526
\`configure' configures libgnutls-extra 2.8.6 to adapt to many kinds of systems.
1528
Usage: $0 [OPTION]... [VAR=VALUE]...
1530
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1531
VAR=VALUE. See below for descriptions of some of the useful variables.
1533
Defaults for the options are specified in brackets.
1536
-h, --help display this help and exit
1537
--help=short display options specific to this package
1538
--help=recursive display the short help of all the included packages
1539
-V, --version display version information and exit
1540
-q, --quiet, --silent do not print \`checking...' messages
1541
--cache-file=FILE cache test results in FILE [disabled]
1542
-C, --config-cache alias for \`--cache-file=config.cache'
1543
-n, --no-create do not create output files
1544
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1546
Installation directories:
1547
--prefix=PREFIX install architecture-independent files in PREFIX
1548
[$ac_default_prefix]
1549
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1552
By default, \`make install' will install all the files in
1553
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1554
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1555
for instance \`--prefix=\$HOME'.
1557
For better control, use the options below.
1559
Fine tuning of the installation directories:
1560
--bindir=DIR user executables [EPREFIX/bin]
1561
--sbindir=DIR system admin executables [EPREFIX/sbin]
1562
--libexecdir=DIR program executables [EPREFIX/libexec]
1563
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1564
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1565
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1566
--libdir=DIR object code libraries [EPREFIX/lib]
1567
--includedir=DIR C header files [PREFIX/include]
1568
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1569
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1570
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1571
--infodir=DIR info documentation [DATAROOTDIR/info]
1572
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1573
--mandir=DIR man documentation [DATAROOTDIR/man]
1574
--docdir=DIR documentation root [DATAROOTDIR/doc/libgnutls-extra]
1575
--htmldir=DIR html documentation [DOCDIR]
1576
--dvidir=DIR dvi documentation [DOCDIR]
1577
--pdfdir=DIR pdf documentation [DOCDIR]
1578
--psdir=DIR ps documentation [DOCDIR]
1584
--program-prefix=PREFIX prepend PREFIX to installed program names
1585
--program-suffix=SUFFIX append SUFFIX to installed program names
1586
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1589
--build=BUILD configure for building on BUILD [guessed]
1590
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1594
if test -n "$ac_init_help"; then
1595
case $ac_init_help in
1596
short | recursive ) echo "Configuration of libgnutls-extra 2.8.6:";;
1601
--disable-option-checking ignore unrecognized --enable/--with options
1602
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1603
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1604
--disable-dependency-tracking speeds up one-time build
1605
--enable-dependency-tracking do not reject slow dependency extractors
1606
--enable-shared[=PKGS] build shared libraries [default=yes]
1607
--enable-static[=PKGS] build static libraries [default=yes]
1608
--enable-fast-install[=PKGS]
1609
optimize for fast installation [default=yes]
1610
--disable-libtool-lock avoid locking (might break parallel builds)
1611
--disable-rpath do not hardcode runtime library paths
1612
--enable-opaque-prf-input=DD
1613
enable Opaque PRF input using DD as extension type
1614
--disable-srp-authentication
1615
disable the SRP authentication support
1616
--disable-psk-authentication
1617
disable the PSK authentication support
1618
--disable-anon-authentication
1619
disable the anonymous authentication support
1620
--disable-camellia disable Camellia cipher
1621
--disable-extra-pki only enable the basic PKI stuff
1622
--disable-openpgp-authentication
1623
disable the OpenPGP authentication support
1624
--disable-openssl-compatibility
1625
disable the OpenSSL compatibility support
1626
--enable-ld-version-script
1627
enable linker version script (default is enabled
1631
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1632
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1633
--with-pic try to use only PIC/non-PIC objects [default=use
1635
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1636
--with-gnu-ld assume the C compiler uses GNU ld default=no
1637
--with-libgcrypt-prefix[=DIR] search for libgcrypt in DIR/include and DIR/lib
1638
--without-libgcrypt-prefix don't search for libgcrypt in includedir and libdir
1639
--with-included-libtasn1
1640
use the included libtasn1
1641
--with-libtasn1-prefix[=DIR] search for libtasn1 in DIR/include and DIR/lib
1642
--without-libtasn1-prefix don't search for libtasn1 in includedir and libdir
1643
--with-lzo use experimental LZO compression
1645
Some influential environment variables:
1646
CC C compiler command
1647
CFLAGS C compiler flags
1648
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1649
nonstandard directory <lib dir>
1650
LIBS libraries to pass to the linker, e.g. -l<library>
1651
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1652
you have headers in a nonstandard directory <include dir>
1655
Use these variables to override the choices made by `configure' or to help
1656
it to find libraries and programs with nonstandard names/locations.
1658
Report bugs to <bug-gnutls@gnu.org>.
1663
if test "$ac_init_help" = "recursive"; then
1664
# If there are subdirs, report their specific --help.
1665
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1666
test -d "$ac_dir" ||
1667
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1672
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1675
# A ".." for each directory in $ac_dir_suffix.
1676
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1677
case $ac_top_builddir_sub in
1678
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682
ac_abs_top_builddir=$ac_pwd
1683
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1684
# for backward compatibility:
1685
ac_top_builddir=$ac_top_build_prefix
1688
.) # We are building in place.
1690
ac_top_srcdir=$ac_top_builddir_sub
1691
ac_abs_top_srcdir=$ac_pwd ;;
1692
[\\/]* | ?:[\\/]* ) # Absolute name.
1693
ac_srcdir=$srcdir$ac_dir_suffix;
1694
ac_top_srcdir=$srcdir
1695
ac_abs_top_srcdir=$srcdir ;;
1697
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1698
ac_top_srcdir=$ac_top_build_prefix$srcdir
1699
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1701
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1703
cd "$ac_dir" || { ac_status=$?; continue; }
1704
# Check for guested configure.
1705
if test -f "$ac_srcdir/configure.gnu"; then
1707
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1708
elif test -f "$ac_srcdir/configure"; then
1710
$SHELL "$ac_srcdir/configure" --help=recursive
1712
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1714
cd "$ac_pwd" || { ac_status=$?; break; }
1718
test -n "$ac_init_help" && exit $ac_status
1719
if $ac_init_version; then
1721
libgnutls-extra configure 2.8.6
1722
generated by GNU Autoconf 2.65
1724
Copyright (C) 2009 Free Software Foundation, Inc.
1725
This configure script is free software; the Free Software Foundation
1726
gives unlimited permission to copy, distribute and modify it.
1731
## ------------------------ ##
1732
## Autoconf initialization. ##
1733
## ------------------------ ##
1735
# ac_fn_c_try_compile LINENO
1736
# --------------------------
1737
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1738
ac_fn_c_try_compile ()
1740
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741
rm -f conftest.$ac_objext
1742
if { { ac_try="$ac_compile"
1744
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745
*) ac_try_echo=$ac_try;;
1747
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748
$as_echo "$ac_try_echo"; } >&5
1749
(eval "$ac_compile") 2>conftest.err
1751
if test -s conftest.err; then
1752
grep -v '^ *+' conftest.err >conftest.er1
1753
cat conftest.er1 >&5
1754
mv -f conftest.er1 conftest.err
1756
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757
test $ac_status = 0; } && {
1758
test -z "$ac_c_werror_flag" ||
1759
test ! -s conftest.err
1760
} && test -s conftest.$ac_objext; then :
1763
$as_echo "$as_me: failed program was:" >&5
1764
sed 's/^/| /' conftest.$ac_ext >&5
1768
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769
as_fn_set_status $ac_retval
1771
} # ac_fn_c_try_compile
1773
# ac_fn_c_try_cpp LINENO
1774
# ----------------------
1775
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1778
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779
if { { ac_try="$ac_cpp conftest.$ac_ext"
1781
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782
*) ac_try_echo=$ac_try;;
1784
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785
$as_echo "$ac_try_echo"; } >&5
1786
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1788
if test -s conftest.err; then
1789
grep -v '^ *+' conftest.err >conftest.er1
1790
cat conftest.er1 >&5
1791
mv -f conftest.er1 conftest.err
1793
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794
test $ac_status = 0; } >/dev/null && {
1795
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1796
test ! -s conftest.err
1800
$as_echo "$as_me: failed program was:" >&5
1801
sed 's/^/| /' conftest.$ac_ext >&5
1805
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
as_fn_set_status $ac_retval
1810
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811
# -------------------------------------------------------
1812
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813
# the include files in INCLUDES and setting the cache variable VAR
1815
ac_fn_c_check_header_mongrel ()
1817
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820
$as_echo_n "checking for $2... " >&6; }
1821
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822
$as_echo_n "(cached) " >&6
1825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826
$as_echo "$ac_res" >&6; }
1828
# Is the header compilable?
1829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830
$as_echo_n "checking $2 usability... " >&6; }
1831
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832
/* end confdefs.h. */
1836
if ac_fn_c_try_compile "$LINENO"; then :
1837
ac_header_compiler=yes
1839
ac_header_compiler=no
1841
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843
$as_echo "$ac_header_compiler" >&6; }
1845
# Is the header present?
1846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847
$as_echo_n "checking $2 presence... " >&6; }
1848
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849
/* end confdefs.h. */
1852
if ac_fn_c_try_cpp "$LINENO"; then :
1853
ac_header_preproc=yes
1855
ac_header_preproc=no
1857
rm -f conftest.err conftest.$ac_ext
1858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859
$as_echo "$ac_header_preproc" >&6; }
1861
# So? What about this header?
1862
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881
## --------------------------------- ##
1882
## Report this to bug-gnutls@gnu.org ##
1883
## --------------------------------- ##
1885
) | sed "s/^/$as_me: WARNING: /" >&2
1888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889
$as_echo_n "checking for $2... " >&6; }
1890
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891
$as_echo_n "(cached) " >&6
1893
eval "$3=\$ac_header_compiler"
1896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897
$as_echo "$ac_res" >&6; }
1899
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901
} # ac_fn_c_check_header_mongrel
1903
# ac_fn_c_try_run LINENO
1904
# ----------------------
1905
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1906
# that executables *can* be run.
1909
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910
if { { ac_try="$ac_link"
1912
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913
*) ac_try_echo=$ac_try;;
1915
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916
$as_echo "$ac_try_echo"; } >&5
1917
(eval "$ac_link") 2>&5
1919
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1921
{ { case "(($ac_try" in
1922
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923
*) ac_try_echo=$ac_try;;
1925
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926
$as_echo "$ac_try_echo"; } >&5
1927
(eval "$ac_try") 2>&5
1929
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930
test $ac_status = 0; }; }; then :
1933
$as_echo "$as_me: program exited with status $ac_status" >&5
1934
$as_echo "$as_me: failed program was:" >&5
1935
sed 's/^/| /' conftest.$ac_ext >&5
1937
ac_retval=$ac_status
1939
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941
as_fn_set_status $ac_retval
1945
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1946
# -------------------------------------------------------
1947
# Tests whether HEADER exists and can be compiled using the include files in
1948
# INCLUDES, setting the cache variable VAR accordingly.
1949
ac_fn_c_check_header_compile ()
1951
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953
$as_echo_n "checking for $2... " >&6; }
1954
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1955
$as_echo_n "(cached) " >&6
1957
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958
/* end confdefs.h. */
1962
if ac_fn_c_try_compile "$LINENO"; then :
1967
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971
$as_echo "$ac_res" >&6; }
1972
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974
} # ac_fn_c_check_header_compile
1976
# ac_fn_c_try_link LINENO
1977
# -----------------------
1978
# Try to link conftest.$ac_ext, and return whether this succeeded.
1981
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982
rm -f conftest.$ac_objext conftest$ac_exeext
1983
if { { ac_try="$ac_link"
1985
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986
*) ac_try_echo=$ac_try;;
1988
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989
$as_echo "$ac_try_echo"; } >&5
1990
(eval "$ac_link") 2>conftest.err
1992
if test -s conftest.err; then
1993
grep -v '^ *+' conftest.err >conftest.er1
1994
cat conftest.er1 >&5
1995
mv -f conftest.er1 conftest.err
1997
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998
test $ac_status = 0; } && {
1999
test -z "$ac_c_werror_flag" ||
2000
test ! -s conftest.err
2001
} && test -s conftest$ac_exeext && {
2002
test "$cross_compiling" = yes ||
2003
$as_test_x conftest$ac_exeext
2007
$as_echo "$as_me: failed program was:" >&5
2008
sed 's/^/| /' conftest.$ac_ext >&5
2012
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014
# interfere with the next link command; also delete a directory that is
2015
# left behind by Apple's compiler. We do this before executing the actions.
2016
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018
as_fn_set_status $ac_retval
2020
} # ac_fn_c_try_link
2022
# ac_fn_c_check_func LINENO FUNC VAR
2023
# ----------------------------------
2024
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2025
ac_fn_c_check_func ()
2027
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029
$as_echo_n "checking for $2... " >&6; }
2030
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2031
$as_echo_n "(cached) " >&6
2033
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034
/* end confdefs.h. */
2035
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2036
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2037
#define $2 innocuous_$2
2039
/* System header to define __stub macros and hopefully few prototypes,
2040
which can conflict with char $2 (); below.
2041
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2042
<limits.h> exists even on freestanding compilers. */
2045
# include <limits.h>
2047
# include <assert.h>
2052
/* Override any GCC internal prototype to avoid an error.
2053
Use char because int might match the return type of a GCC
2054
builtin and then its argument prototype would still apply. */
2059
/* The GNU C library defines this for functions which it implements
2060
to always fail with ENOSYS. Some functions are actually named
2061
something starting with __ and the normal name is an alias. */
2062
#if defined __stub_$2 || defined __stub___$2
2074
if ac_fn_c_try_link "$LINENO"; then :
2079
rm -f core conftest.err conftest.$ac_objext \
2080
conftest$ac_exeext conftest.$ac_ext
2083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084
$as_echo "$ac_res" >&6; }
2085
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2087
} # ac_fn_c_check_func
2089
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2090
# --------------------------------------------
2091
# Tries to find the compile-time value of EXPR in a program that includes
2092
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2094
ac_fn_c_compute_int ()
2096
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097
if test "$cross_compiling" = yes; then
2098
# Depending upon the size, compute the lo and hi bounds.
2099
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100
/* end confdefs.h. */
2105
static int test_array [1 - 2 * !(($2) >= 0)];
2112
if ac_fn_c_try_compile "$LINENO"; then :
2115
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116
/* end confdefs.h. */
2121
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2128
if ac_fn_c_try_compile "$LINENO"; then :
2129
ac_hi=$ac_mid; break
2131
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2132
if test $ac_lo -le $ac_mid; then
2136
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2138
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142
/* end confdefs.h. */
2147
static int test_array [1 - 2 * !(($2) < 0)];
2154
if ac_fn_c_try_compile "$LINENO"; then :
2157
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158
/* end confdefs.h. */
2163
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2170
if ac_fn_c_try_compile "$LINENO"; then :
2171
ac_lo=$ac_mid; break
2173
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2174
if test $ac_mid -le $ac_hi; then
2178
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188
# Binary search between lo and hi bounds.
2189
while test "x$ac_lo" != "x$ac_hi"; do
2190
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2191
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192
/* end confdefs.h. */
2197
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2204
if ac_fn_c_try_compile "$LINENO"; then :
2207
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2209
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2216
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217
/* end confdefs.h. */
2219
static long int longval () { return $2; }
2220
static unsigned long int ulongval () { return $2; }
2227
FILE *f = fopen ("conftest.val", "w");
2232
long int i = longval ();
2235
fprintf (f, "%ld", i);
2239
unsigned long int i = ulongval ();
2242
fprintf (f, "%lu", i);
2244
/* Do not output a trailing newline, as this causes \r\n confusion
2245
on some platforms. */
2246
return ferror (f) || fclose (f) != 0;
2252
if ac_fn_c_try_run "$LINENO"; then :
2253
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2257
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2258
conftest.$ac_objext conftest.beam conftest.$ac_ext
2262
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2263
as_fn_set_status $ac_retval
2265
} # ac_fn_c_compute_int
2266
cat >config.log <<_ACEOF
2267
This file contains any messages produced by compilers while
2268
running configure, to aid debugging if configure makes a mistake.
2270
It was created by libgnutls-extra $as_me 2.8.6, which was
2271
generated by GNU Autoconf 2.65. Invocation command line was
2283
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2284
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2285
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2286
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2287
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2289
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2290
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2292
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2293
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2294
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2295
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2296
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2297
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2298
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2302
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306
test -z "$as_dir" && as_dir=.
2307
$as_echo "PATH: $as_dir"
2323
# Keep a trace of the command line.
2324
# Strip out --no-create and --no-recursion so they do not pile up.
2325
# Strip out --silent because we don't want to record it for future runs.
2326
# Also quote any args containing shell meta-characters.
2327
# Make two passes to allow for proper duplicate-argument suppression.
2331
ac_must_keep_next=false
2337
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2338
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2339
| -silent | --silent | --silen | --sile | --sil)
2342
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2345
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2347
as_fn_append ac_configure_args1 " '$ac_arg'"
2348
if test $ac_must_keep_next = true; then
2349
ac_must_keep_next=false # Got value, back to normal.
2352
*=* | --config-cache | -C | -disable-* | --disable-* \
2353
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2354
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2355
| -with-* | --with-* | -without-* | --without-* | --x)
2356
case "$ac_configure_args0 " in
2357
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2360
-* ) ac_must_keep_next=true ;;
2363
as_fn_append ac_configure_args " '$ac_arg'"
2368
{ ac_configure_args0=; unset ac_configure_args0;}
2369
{ ac_configure_args1=; unset ac_configure_args1;}
2371
# When interrupted or exit'd, cleanup temporary files, and complete
2372
# config.log. We remove comments because anyway the quotes in there
2373
# would cause problems or look ugly.
2374
# WARNING: Use '\'' to represent an apostrophe within the trap.
2375
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2376
trap 'exit_status=$?
2377
# Save into config.log some information that might help in debugging.
2382
## ---------------- ##
2383
## Cache variables. ##
2384
## ---------------- ##
2387
# The following way of writing the cache mishandles newlines in values,
2389
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2390
eval ac_val=\$$ac_var
2394
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2395
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2398
_ | IFS | as_nl) ;; #(
2399
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2400
*) { eval $ac_var=; unset $ac_var;} ;;
2405
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2406
*${as_nl}ac_space=\ *)
2408
"s/'\''/'\''\\\\'\'''\''/g;
2409
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2412
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2420
## ----------------- ##
2421
## Output variables. ##
2422
## ----------------- ##
2425
for ac_var in $ac_subst_vars
2427
eval ac_val=\$$ac_var
2429
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431
$as_echo "$ac_var='\''$ac_val'\''"
2435
if test -n "$ac_subst_files"; then
2437
## ------------------- ##
2438
## File substitutions. ##
2439
## ------------------- ##
2442
for ac_var in $ac_subst_files
2444
eval ac_val=\$$ac_var
2446
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448
$as_echo "$ac_var='\''$ac_val'\''"
2453
if test -s confdefs.h; then
2463
test "$ac_signal" != 0 &&
2464
$as_echo "$as_me: caught signal $ac_signal"
2465
$as_echo "$as_me: exit $exit_status"
2467
rm -f core *.core core.conftest.* &&
2468
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2471
for ac_signal in 1 2 13 15; do
2472
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2476
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2477
rm -f -r conftest* confdefs.h
2479
$as_echo "/* confdefs.h */" > confdefs.h
2481
# Predefined preprocessor variables.
2483
cat >>confdefs.h <<_ACEOF
2484
#define PACKAGE_NAME "$PACKAGE_NAME"
2487
cat >>confdefs.h <<_ACEOF
2488
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2491
cat >>confdefs.h <<_ACEOF
2492
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2495
cat >>confdefs.h <<_ACEOF
2496
#define PACKAGE_STRING "$PACKAGE_STRING"
2499
cat >>confdefs.h <<_ACEOF
2500
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2503
cat >>confdefs.h <<_ACEOF
2504
#define PACKAGE_URL "$PACKAGE_URL"
2508
# Let the site file select an alternate cache file if it wants to.
2509
# Prefer an explicitly selected file to automatically selected ones.
2512
if test -n "$CONFIG_SITE"; then
2513
ac_site_file1=$CONFIG_SITE
2514
elif test "x$prefix" != xNONE; then
2515
ac_site_file1=$prefix/share/config.site
2516
ac_site_file2=$prefix/etc/config.site
2518
ac_site_file1=$ac_default_prefix/share/config.site
2519
ac_site_file2=$ac_default_prefix/etc/config.site
2521
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2523
test "x$ac_site_file" = xNONE && continue
2524
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2525
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2526
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2527
sed 's/^/| /' "$ac_site_file" >&5
2532
if test -r "$cache_file"; then
2533
# Some versions of bash will fail to source /dev/null (special files
2534
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2535
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2536
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2537
$as_echo "$as_me: loading cache $cache_file" >&6;}
2539
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2540
*) . "./$cache_file";;
2544
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2545
$as_echo "$as_me: creating cache $cache_file" >&6;}
2549
as_fn_append ac_header_list " sys/socket.h"
2550
# Check that the precious variables saved in the cache have kept the same
2552
ac_cache_corrupted=false
2553
for ac_var in $ac_precious_vars; do
2554
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2555
eval ac_new_set=\$ac_env_${ac_var}_set
2556
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2557
eval ac_new_val=\$ac_env_${ac_var}_value
2558
case $ac_old_set,$ac_new_set in
2560
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2561
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2562
ac_cache_corrupted=: ;;
2564
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2565
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2566
ac_cache_corrupted=: ;;
2569
if test "x$ac_old_val" != "x$ac_new_val"; then
2570
# differences in whitespace do not lead to failure.
2571
ac_old_val_w=`echo x $ac_old_val`
2572
ac_new_val_w=`echo x $ac_new_val`
2573
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2574
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2575
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2576
ac_cache_corrupted=:
2578
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2579
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2580
eval $ac_var=\$ac_old_val
2582
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2583
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2584
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2585
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2588
# Pass precious variables to config.status.
2589
if test "$ac_new_set" = set; then
2591
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2592
*) ac_arg=$ac_var=$ac_new_val ;;
2594
case " $ac_configure_args " in
2595
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2596
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2600
if $ac_cache_corrupted; then
2601
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2604
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2605
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2607
## -------------------- ##
2608
## Main body of script. ##
2609
## -------------------- ##
2612
ac_cpp='$CPP $CPPFLAGS'
2613
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2614
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2615
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619
for ac_dir in build-aux "$srcdir"/build-aux; do
2620
for ac_t in install-sh install.sh shtool; do
2621
if test -f "$ac_dir/$ac_t"; then
2623
ac_install_sh="$ac_aux_dir/$ac_t -c"
2628
if test -z "$ac_aux_dir"; then
2629
as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2632
# These three variables are undocumented and unsupported,
2633
# and are intended to be withdrawn in a future Autoconf release.
2634
# They can cause serious problems if a builder's source tree is in a directory
2635
# whose full name contains unusual characters.
2636
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2637
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2638
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2643
am__api_version='1.11'
2645
# Find a good install program. We prefer a C program (faster),
2646
# so one script is as good as another. But avoid the broken or
2647
# incompatible versions:
2648
# SysV /etc/install, /usr/sbin/install
2649
# SunOS /usr/etc/install
2650
# IRIX /sbin/install
2652
# AmigaOS /C/install, which installs bootblocks on floppy discs
2653
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2654
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2655
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2656
# OS/2's system install, which has a completely different semantic
2657
# ./install, which can be erroneously created by make from ./install.sh.
2658
# Reject install programs that cannot install multiple files.
2659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2660
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2661
if test -z "$INSTALL"; then
2662
if test "${ac_cv_path_install+set}" = set; then :
2663
$as_echo_n "(cached) " >&6
2665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669
test -z "$as_dir" && as_dir=.
2670
# Account for people who put trailing slashes in PATH elements.
2671
case $as_dir/ in #((
2672
./ | .// | /[cC]/* | \
2673
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2674
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2677
# OSF1 and SCO ODT 3.0 have their own names for install.
2678
# Don't use installbsd from OSF since it installs stuff as root
2680
for ac_prog in ginstall scoinst install; do
2681
for ac_exec_ext in '' $ac_executable_extensions; do
2682
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2683
if test $ac_prog = install &&
2684
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2685
# AIX install. It has an incompatible calling convention.
2687
elif test $ac_prog = install &&
2688
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2689
# program-specific install script used by HP pwplus--don't use.
2692
rm -rf conftest.one conftest.two conftest.dir
2693
echo one > conftest.one
2694
echo two > conftest.two
2696
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2697
test -s conftest.one && test -s conftest.two &&
2698
test -s conftest.dir/conftest.one &&
2699
test -s conftest.dir/conftest.two
2701
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2714
rm -rf conftest.one conftest.two conftest.dir
2717
if test "${ac_cv_path_install+set}" = set; then
2718
INSTALL=$ac_cv_path_install
2720
# As a last resort, use the slow shell script. Don't cache a
2721
# value for INSTALL within a source directory, because that will
2722
# break other packages using the cache if that directory is
2723
# removed, or if the value is a relative name.
2724
INSTALL=$ac_install_sh
2727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2728
$as_echo "$INSTALL" >&6; }
2730
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2731
# It thinks the first close brace ends the variable substitution.
2732
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2734
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2736
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2739
$as_echo_n "checking whether build environment is sane... " >&6; }
2742
echo timestamp > conftest.file
2743
# Reject unsafe characters in $srcdir or the absolute working directory
2744
# name. Accept space and tab only in the latter.
2748
*[\\\"\#\$\&\'\`$am_lf]*)
2749
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2752
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2753
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2756
# Do `set' in a subshell so we don't clobber the current shell's
2757
# arguments. Must try -L first in case configure is actually a
2758
# symlink; some systems play weird games with the mod time of symlinks
2759
# (eg FreeBSD returns the mod time of the symlink's containing
2762
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2763
if test "$*" = "X"; then
2765
set X `ls -t "$srcdir/configure" conftest.file`
2768
if test "$*" != "X $srcdir/configure conftest.file" \
2769
&& test "$*" != "X conftest.file $srcdir/configure"; then
2771
# If neither matched, then we have a broken ls. This can happen
2772
# if, for instance, CONFIG_SHELL is bash and it inherits a
2773
# broken ls alias from the environment. This has actually
2774
# happened. Such a system could not be considered "sane".
2775
as_fn_error "ls -t appears to fail. Make sure there is not a broken
2776
alias in your environment" "$LINENO" 5
2779
test "$2" = conftest.file
2785
as_fn_error "newly created file is older than distributed files!
2786
Check your system clock" "$LINENO" 5
2788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2789
$as_echo "yes" >&6; }
2790
test "$program_prefix" != NONE &&
2791
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2792
# Use a double $ so make ignores it.
2793
test "$program_suffix" != NONE &&
2794
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2795
# Double any \ or $.
2796
# By default was `s,x,x', remove it if useless.
2797
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2798
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2800
# expand $ac_aux_dir to an absolute path
2801
am_aux_dir=`cd $ac_aux_dir && pwd`
2803
if test x"${MISSING+set}" != xset; then
2806
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2808
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2811
# Use eval to expand $SHELL
2812
if eval "$MISSING --run true"; then
2813
am_missing_run="$MISSING --run "
2816
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2817
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2820
if test x"${install_sh}" != xset; then
2823
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2825
install_sh="\${SHELL} $am_aux_dir/install-sh"
2829
# Installed binaries are usually stripped using `strip' when the user
2830
# run `make install-strip'. However `strip' might not be the right
2831
# tool to use in cross-compilation environments, therefore Automake
2832
# will honor the `STRIP' environment variable to overrule this program.
2833
if test "$cross_compiling" != no; then
2834
if test -n "$ac_tool_prefix"; then
2835
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2836
set dummy ${ac_tool_prefix}strip; ac_word=$2
2837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838
$as_echo_n "checking for $ac_word... " >&6; }
2839
if test "${ac_cv_prog_STRIP+set}" = set; then :
2840
$as_echo_n "(cached) " >&6
2842
if test -n "$STRIP"; then
2843
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2845
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849
test -z "$as_dir" && as_dir=.
2850
for ac_exec_ext in '' $ac_executable_extensions; do
2851
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2853
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862
STRIP=$ac_cv_prog_STRIP
2863
if test -n "$STRIP"; then
2864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2865
$as_echo "$STRIP" >&6; }
2867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868
$as_echo "no" >&6; }
2873
if test -z "$ac_cv_prog_STRIP"; then
2875
# Extract the first word of "strip", so it can be a program name with args.
2876
set dummy strip; ac_word=$2
2877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878
$as_echo_n "checking for $ac_word... " >&6; }
2879
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2880
$as_echo_n "(cached) " >&6
2882
if test -n "$ac_ct_STRIP"; then
2883
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889
test -z "$as_dir" && as_dir=.
2890
for ac_exec_ext in '' $ac_executable_extensions; do
2891
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892
ac_cv_prog_ac_ct_STRIP="strip"
2893
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2903
if test -n "$ac_ct_STRIP"; then
2904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2905
$as_echo "$ac_ct_STRIP" >&6; }
2907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908
$as_echo "no" >&6; }
2911
if test "x$ac_ct_STRIP" = x; then
2914
case $cross_compiling:$ac_tool_warned in
2916
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918
ac_tool_warned=yes ;;
2923
STRIP="$ac_cv_prog_STRIP"
2927
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2929
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2930
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2931
if test -z "$MKDIR_P"; then
2932
if test "${ac_cv_path_mkdir+set}" = set; then :
2933
$as_echo_n "(cached) " >&6
2935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2939
test -z "$as_dir" && as_dir=.
2940
for ac_prog in mkdir gmkdir; do
2941
for ac_exec_ext in '' $ac_executable_extensions; do
2942
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2943
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2944
'mkdir (GNU coreutils) '* | \
2945
'mkdir (coreutils) '* | \
2946
'mkdir (fileutils) '4.1*)
2947
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2957
test -d ./--version && rmdir ./--version
2958
if test "${ac_cv_path_mkdir+set}" = set; then
2959
MKDIR_P="$ac_cv_path_mkdir -p"
2961
# As a last resort, use the slow shell script. Don't cache a
2962
# value for MKDIR_P within a source directory, because that will
2963
# break other packages using the cache if that directory is
2964
# removed, or if the value is a relative name.
2965
MKDIR_P="$ac_install_sh -d"
2968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2969
$as_echo "$MKDIR_P" >&6; }
2973
[\\/$]* | ?:[\\/]*) ;;
2974
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2977
for ac_prog in gawk mawk nawk awk
2979
# Extract the first word of "$ac_prog", so it can be a program name with args.
2980
set dummy $ac_prog; ac_word=$2
2981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982
$as_echo_n "checking for $ac_word... " >&6; }
2983
if test "${ac_cv_prog_AWK+set}" = set; then :
2984
$as_echo_n "(cached) " >&6
2986
if test -n "$AWK"; then
2987
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2989
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993
test -z "$as_dir" && as_dir=.
2994
for ac_exec_ext in '' $ac_executable_extensions; do
2995
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996
ac_cv_prog_AWK="$ac_prog"
2997
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007
if test -n "$AWK"; then
3008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3009
$as_echo "$AWK" >&6; }
3011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012
$as_echo "no" >&6; }
3016
test -n "$AWK" && break
3019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3020
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3022
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3023
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3024
$as_echo_n "(cached) " >&6
3026
cat >conftest.make <<\_ACEOF
3029
@echo '@@@%%%=$(MAKE)=@@@%%%'
3031
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3032
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3034
eval ac_cv_prog_make_${ac_make}_set=yes;;
3036
eval ac_cv_prog_make_${ac_make}_set=no;;
3040
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3042
$as_echo "yes" >&6; }
3045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046
$as_echo "no" >&6; }
3047
SET_MAKE="MAKE=${MAKE-make}"
3050
rm -rf .tst 2>/dev/null
3051
mkdir .tst 2>/dev/null
3052
if test -d .tst; then
3057
rmdir .tst 2>/dev/null
3059
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3060
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3061
# is not polluted with repeated "-I."
3062
am__isrc=' -I$(srcdir)'
3063
# test to see if srcdir already configured
3064
if test -f $srcdir/config.status; then
3065
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3069
# test whether we have cygpath
3070
if test -z "$CYGPATH_W"; then
3071
if (cygpath --version) >/dev/null 2>/dev/null; then
3072
CYGPATH_W='cygpath -w'
3079
# Define the identity of the package.
3080
PACKAGE='libgnutls-extra'
3084
cat >>confdefs.h <<_ACEOF
3085
#define PACKAGE "$PACKAGE"
3089
cat >>confdefs.h <<_ACEOF
3090
#define VERSION "$VERSION"
3093
# Some tools Automake needs.
3095
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3098
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3101
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3104
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3107
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3109
# We need awk for the "check" target. The system "awk" is bad on
3111
# Always define AMTAR for backward compatibility.
3113
AMTAR=${AMTAR-"${am_missing_run}tar"}
3115
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3121
ac_config_headers="$ac_config_headers config.h"
3125
ac_cpp='$CPP $CPPFLAGS'
3126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129
if test -n "$ac_tool_prefix"; then
3130
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3131
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133
$as_echo_n "checking for $ac_word... " >&6; }
3134
if test "${ac_cv_prog_CC+set}" = set; then :
3135
$as_echo_n "(cached) " >&6
3137
if test -n "$CC"; then
3138
ac_cv_prog_CC="$CC" # Let the user override the test.
3140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144
test -z "$as_dir" && as_dir=.
3145
for ac_exec_ext in '' $ac_executable_extensions; do
3146
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3148
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158
if test -n "$CC"; then
3159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3160
$as_echo "$CC" >&6; }
3162
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163
$as_echo "no" >&6; }
3168
if test -z "$ac_cv_prog_CC"; then
3170
# Extract the first word of "gcc", so it can be a program name with args.
3171
set dummy gcc; ac_word=$2
3172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173
$as_echo_n "checking for $ac_word... " >&6; }
3174
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3175
$as_echo_n "(cached) " >&6
3177
if test -n "$ac_ct_CC"; then
3178
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184
test -z "$as_dir" && as_dir=.
3185
for ac_exec_ext in '' $ac_executable_extensions; do
3186
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187
ac_cv_prog_ac_ct_CC="gcc"
3188
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3198
if test -n "$ac_ct_CC"; then
3199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3200
$as_echo "$ac_ct_CC" >&6; }
3202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203
$as_echo "no" >&6; }
3206
if test "x$ac_ct_CC" = x; then
3209
case $cross_compiling:$ac_tool_warned in
3211
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3212
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3213
ac_tool_warned=yes ;;
3221
if test -z "$CC"; then
3222
if test -n "$ac_tool_prefix"; then
3223
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3224
set dummy ${ac_tool_prefix}cc; ac_word=$2
3225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226
$as_echo_n "checking for $ac_word... " >&6; }
3227
if test "${ac_cv_prog_CC+set}" = set; then :
3228
$as_echo_n "(cached) " >&6
3230
if test -n "$CC"; then
3231
ac_cv_prog_CC="$CC" # Let the user override the test.
3233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237
test -z "$as_dir" && as_dir=.
3238
for ac_exec_ext in '' $ac_executable_extensions; do
3239
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240
ac_cv_prog_CC="${ac_tool_prefix}cc"
3241
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251
if test -n "$CC"; then
3252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3253
$as_echo "$CC" >&6; }
3255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256
$as_echo "no" >&6; }
3262
if test -z "$CC"; then
3263
# Extract the first word of "cc", so it can be a program name with args.
3264
set dummy cc; ac_word=$2
3265
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266
$as_echo_n "checking for $ac_word... " >&6; }
3267
if test "${ac_cv_prog_CC+set}" = set; then :
3268
$as_echo_n "(cached) " >&6
3270
if test -n "$CC"; then
3271
ac_cv_prog_CC="$CC" # Let the user override the test.
3274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278
test -z "$as_dir" && as_dir=.
3279
for ac_exec_ext in '' $ac_executable_extensions; do
3280
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3282
ac_prog_rejected=yes
3286
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293
if test $ac_prog_rejected = yes; then
3294
# We found a bogon in the path, so make sure we never use it.
3295
set dummy $ac_cv_prog_CC
3297
if test $# != 0; then
3298
# We chose a different compiler from the bogus one.
3299
# However, it has the same basename, so the bogon will be chosen
3300
# first if we set CC to just the basename; use the full file name.
3302
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3308
if test -n "$CC"; then
3309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3310
$as_echo "$CC" >&6; }
3312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313
$as_echo "no" >&6; }
3318
if test -z "$CC"; then
3319
if test -n "$ac_tool_prefix"; then
3320
for ac_prog in cl.exe
3322
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3323
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325
$as_echo_n "checking for $ac_word... " >&6; }
3326
if test "${ac_cv_prog_CC+set}" = set; then :
3327
$as_echo_n "(cached) " >&6
3329
if test -n "$CC"; then
3330
ac_cv_prog_CC="$CC" # Let the user override the test.
3332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336
test -z "$as_dir" && as_dir=.
3337
for ac_exec_ext in '' $ac_executable_extensions; do
3338
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3339
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3340
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350
if test -n "$CC"; then
3351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3352
$as_echo "$CC" >&6; }
3354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355
$as_echo "no" >&6; }
3359
test -n "$CC" && break
3362
if test -z "$CC"; then
3364
for ac_prog in cl.exe
3366
# Extract the first word of "$ac_prog", so it can be a program name with args.
3367
set dummy $ac_prog; ac_word=$2
3368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369
$as_echo_n "checking for $ac_word... " >&6; }
3370
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3371
$as_echo_n "(cached) " >&6
3373
if test -n "$ac_ct_CC"; then
3374
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380
test -z "$as_dir" && as_dir=.
3381
for ac_exec_ext in '' $ac_executable_extensions; do
3382
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3383
ac_cv_prog_ac_ct_CC="$ac_prog"
3384
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3394
if test -n "$ac_ct_CC"; then
3395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3396
$as_echo "$ac_ct_CC" >&6; }
3398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399
$as_echo "no" >&6; }
3403
test -n "$ac_ct_CC" && break
3406
if test "x$ac_ct_CC" = x; then
3409
case $cross_compiling:$ac_tool_warned in
3411
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3412
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3413
ac_tool_warned=yes ;;
3422
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3423
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424
as_fn_error "no acceptable C compiler found in \$PATH
3425
See \`config.log' for more details." "$LINENO" 5; }
3427
# Provide some information about the compiler.
3428
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3431
for ac_option in --version -v -V -qversion; do
3432
{ { ac_try="$ac_compiler $ac_option >&5"
3434
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435
*) ac_try_echo=$ac_try;;
3437
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438
$as_echo "$ac_try_echo"; } >&5
3439
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3441
if test -s conftest.err; then
3443
... rest of stderr output deleted ...
3444
10q' conftest.err >conftest.er1
3445
cat conftest.er1 >&5
3447
rm -f conftest.er1 conftest.err
3448
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449
test $ac_status = 0; }
3452
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453
/* end confdefs.h. */
3463
ac_clean_files_save=$ac_clean_files
3464
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3465
# Try to create an executable without -o first, disregard a.out.
3466
# It will help us diagnose broken compilers, and finding out an intuition
3468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3469
$as_echo_n "checking whether the C compiler works... " >&6; }
3470
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3472
# The possible output files:
3473
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3476
for ac_file in $ac_files
3479
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3480
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3485
if { { ac_try="$ac_link_default"
3487
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488
*) ac_try_echo=$ac_try;;
3490
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491
$as_echo "$ac_try_echo"; } >&5
3492
(eval "$ac_link_default") 2>&5
3494
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495
test $ac_status = 0; }; then :
3496
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3497
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3498
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3499
# so that the user can short-circuit this test for compilers unknown to
3501
for ac_file in $ac_files ''
3503
test -f "$ac_file" || continue
3505
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3508
# We found the default executable, but exeext='' is most
3512
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3514
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3516
# We set ac_cv_exeext here because the later test for it is not
3517
# safe: cross compilers may not add the suffix if given an `-o'
3518
# argument, so we may need to know it at that point already.
3519
# Even if this section looks crufty: it has the advantage of
3526
test "$ac_cv_exeext" = no && ac_cv_exeext=
3531
if test -z "$ac_file"; then :
3532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533
$as_echo "no" >&6; }
3534
$as_echo "$as_me: failed program was:" >&5
3535
sed 's/^/| /' conftest.$ac_ext >&5
3537
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539
{ as_fn_set_status 77
3540
as_fn_error "C compiler cannot create executables
3541
See \`config.log' for more details." "$LINENO" 5; }; }
3543
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3544
$as_echo "yes" >&6; }
3546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3547
$as_echo_n "checking for C compiler default output file name... " >&6; }
3548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3549
$as_echo "$ac_file" >&6; }
3550
ac_exeext=$ac_cv_exeext
3552
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3553
ac_clean_files=$ac_clean_files_save
3554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3555
$as_echo_n "checking for suffix of executables... " >&6; }
3556
if { { ac_try="$ac_link"
3558
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559
*) ac_try_echo=$ac_try;;
3561
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562
$as_echo "$ac_try_echo"; } >&5
3563
(eval "$ac_link") 2>&5
3565
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566
test $ac_status = 0; }; then :
3567
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3568
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3569
# work properly (i.e., refer to `conftest.exe'), while it won't with
3571
for ac_file in conftest.exe conftest conftest.*; do
3572
test -f "$ac_file" || continue
3574
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3575
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3581
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583
as_fn_error "cannot compute suffix of executables: cannot compile and link
3584
See \`config.log' for more details." "$LINENO" 5; }
3586
rm -f conftest conftest$ac_cv_exeext
3587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3588
$as_echo "$ac_cv_exeext" >&6; }
3590
rm -f conftest.$ac_ext
3591
EXEEXT=$ac_cv_exeext
3593
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594
/* end confdefs.h. */
3599
FILE *f = fopen ("conftest.out", "w");
3600
return ferror (f) || fclose (f) != 0;
3606
ac_clean_files="$ac_clean_files conftest.out"
3607
# Check that the compiler produces executables we can run. If not, either
3608
# the compiler is broken, or we cross compile.
3609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3610
$as_echo_n "checking whether we are cross compiling... " >&6; }
3611
if test "$cross_compiling" != yes; then
3612
{ { ac_try="$ac_link"
3614
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615
*) ac_try_echo=$ac_try;;
3617
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618
$as_echo "$ac_try_echo"; } >&5
3619
(eval "$ac_link") 2>&5
3621
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622
test $ac_status = 0; }
3623
if { ac_try='./conftest$ac_cv_exeext'
3624
{ { case "(($ac_try" in
3625
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626
*) ac_try_echo=$ac_try;;
3628
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629
$as_echo "$ac_try_echo"; } >&5
3630
(eval "$ac_try") 2>&5
3632
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3633
test $ac_status = 0; }; }; then
3636
if test "$cross_compiling" = maybe; then
3639
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641
as_fn_error "cannot run C compiled programs.
3642
If you meant to cross compile, use \`--host'.
3643
See \`config.log' for more details." "$LINENO" 5; }
3647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3648
$as_echo "$cross_compiling" >&6; }
3650
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3651
ac_clean_files=$ac_clean_files_save
3652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3653
$as_echo_n "checking for suffix of object files... " >&6; }
3654
if test "${ac_cv_objext+set}" = set; then :
3655
$as_echo_n "(cached) " >&6
3657
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658
/* end confdefs.h. */
3668
rm -f conftest.o conftest.obj
3669
if { { ac_try="$ac_compile"
3671
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672
*) ac_try_echo=$ac_try;;
3674
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3675
$as_echo "$ac_try_echo"; } >&5
3676
(eval "$ac_compile") 2>&5
3678
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679
test $ac_status = 0; }; then :
3680
for ac_file in conftest.o conftest.obj conftest.*; do
3681
test -f "$ac_file" || continue;
3683
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3684
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3689
$as_echo "$as_me: failed program was:" >&5
3690
sed 's/^/| /' conftest.$ac_ext >&5
3692
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694
as_fn_error "cannot compute suffix of object files: cannot compile
3695
See \`config.log' for more details." "$LINENO" 5; }
3697
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3700
$as_echo "$ac_cv_objext" >&6; }
3701
OBJEXT=$ac_cv_objext
3703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3704
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3705
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3706
$as_echo_n "(cached) " >&6
3708
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709
/* end confdefs.h. */
3722
if ac_fn_c_try_compile "$LINENO"; then :
3727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3732
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3733
if test $ac_compiler_gnu = yes; then
3738
ac_test_CFLAGS=${CFLAGS+set}
3739
ac_save_CFLAGS=$CFLAGS
3740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3741
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3742
if test "${ac_cv_prog_cc_g+set}" = set; then :
3743
$as_echo_n "(cached) " >&6
3745
ac_save_c_werror_flag=$ac_c_werror_flag
3746
ac_c_werror_flag=yes
3749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750
/* end confdefs.h. */
3760
if ac_fn_c_try_compile "$LINENO"; then :
3764
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765
/* end confdefs.h. */
3775
if ac_fn_c_try_compile "$LINENO"; then :
3778
ac_c_werror_flag=$ac_save_c_werror_flag
3780
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781
/* end confdefs.h. */
3791
if ac_fn_c_try_compile "$LINENO"; then :
3794
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799
ac_c_werror_flag=$ac_save_c_werror_flag
3801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3802
$as_echo "$ac_cv_prog_cc_g" >&6; }
3803
if test "$ac_test_CFLAGS" = set; then
3804
CFLAGS=$ac_save_CFLAGS
3805
elif test $ac_cv_prog_cc_g = yes; then
3806
if test "$GCC" = yes; then
3812
if test "$GCC" = yes; then
3818
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3819
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3820
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3821
$as_echo_n "(cached) " >&6
3823
ac_cv_prog_cc_c89=no
3825
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826
/* end confdefs.h. */
3829
#include <sys/types.h>
3830
#include <sys/stat.h>
3831
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3832
struct buf { int x; };
3833
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3834
static char *e (p, i)
3840
static char *f (char * (*g) (char **, int), char **p, ...)
3845
s = g (p, va_arg (v,int));
3850
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3851
function prototypes and stuff, but not '\xHH' hex character constants.
3852
These don't provoke an error unfortunately, instead are silently treated
3853
as 'x'. The following induces an error, until -std is added to get
3854
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3855
array size at least. It's necessary to write '\x00'==0 to get something
3856
that's true only with -std. */
3857
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3859
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3860
inside strings and character constants. */
3862
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3864
int test (int i, double x);
3865
struct s1 {int (*f) (int a);};
3866
struct s2 {int (*f) (double a);};
3867
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3873
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3878
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3879
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3881
CC="$ac_save_CC $ac_arg"
3882
if ac_fn_c_try_compile "$LINENO"; then :
3883
ac_cv_prog_cc_c89=$ac_arg
3885
rm -f core conftest.err conftest.$ac_objext
3886
test "x$ac_cv_prog_cc_c89" != "xno" && break
3888
rm -f conftest.$ac_ext
3893
case "x$ac_cv_prog_cc_c89" in
3895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3896
$as_echo "none needed" >&6; } ;;
3898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3899
$as_echo "unsupported" >&6; } ;;
3901
CC="$CC $ac_cv_prog_cc_c89"
3902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3903
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3905
if test "x$ac_cv_prog_cc_c89" != xno; then :
3910
ac_cpp='$CPP $CPPFLAGS'
3911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914
DEPDIR="${am__leading_dot}deps"
3916
ac_config_commands="$ac_config_commands depfiles"
3919
am_make=${MAKE-make}
3920
cat > confinc << 'END'
3922
@echo this is the am__doit target
3925
# If we don't find an include directive, just comment out the code.
3926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3927
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3931
# First try GNU make style include.
3932
echo "include confinc" > confmf
3933
# Ignore all kinds of additional output from `make'.
3934
case `$am_make -s -f confmf 2> /dev/null` in #(
3935
*the\ am__doit\ target*)
3941
# Now try BSD make style include.
3942
if test "$am__include" = "#"; then
3943
echo '.include "confinc"' > confmf
3944
case `$am_make -s -f confmf 2> /dev/null` in #(
3945
*the\ am__doit\ target*)
3946
am__include=.include
3954
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3955
$as_echo "$_am_result" >&6; }
3956
rm -f confinc confmf
3958
# Check whether --enable-dependency-tracking was given.
3959
if test "${enable_dependency_tracking+set}" = set; then :
3960
enableval=$enable_dependency_tracking;
3963
if test "x$enable_dependency_tracking" != xno; then
3964
am_depcomp="$ac_aux_dir/depcomp"
3967
if test "x$enable_dependency_tracking" != xno; then
3977
depcc="$CC" am_compiler_list=
3979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3980
$as_echo_n "checking dependency style of $depcc... " >&6; }
3981
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3982
$as_echo_n "(cached) " >&6
3984
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3985
# We make a subdir and do the tests there. Otherwise we can end up
3986
# making bogus files that we don't know about and never remove. For
3987
# instance it was reported that on HP-UX the gcc test will end up
3988
# making a dummy file named `D' -- because `-MD' means `put the output
3991
# Copy depcomp to subdir because otherwise we won't find it if we're
3992
# using a relative directory.
3993
cp "$am_depcomp" conftest.dir
3995
# We will build objects and dependencies in a subdirectory because
3996
# it helps to detect inapplicable dependency modes. For instance
3997
# both Tru64's cc and ICC support -MD to output dependencies as a
3998
# side effect of compilation, but ICC will put the dependencies in
3999
# the current directory while Tru64 will put them in the object
4003
am_cv_CC_dependencies_compiler_type=none
4004
if test "$am_compiler_list" = ""; then
4005
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4008
case " $depcc " in #(
4009
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4012
for depmode in $am_compiler_list; do
4013
# Setup a source with many dependencies, because some compilers
4014
# like to wrap large dependency lists on column 80 (with \), and
4015
# we should not choose a depcomp mode which is confused by this.
4017
# We need to recreate these files for each test, as the compiler may
4018
# overwrite some of them when testing with obscure command lines.
4019
# This happens at least with the AIX C compiler.
4021
for i in 1 2 3 4 5 6; do
4022
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4023
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4024
# Solaris 8's {/usr,}/bin/sh.
4025
touch sub/conftst$i.h
4027
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4029
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4030
# mode. It turns out that the SunPro C++ compiler does not properly
4031
# handle `-M -o', and we need to detect this. Also, some Intel
4032
# versions had trouble with output in subdirs
4033
am__obj=sub/conftest.${OBJEXT-o}
4034
am__minus_obj="-o $am__obj"
4037
# This depmode causes a compiler race in universal mode.
4038
test "$am__universal" = false || continue
4041
# after this tag, mechanisms are not by side-effect, so they'll
4042
# only be used when explicitly requested
4043
if test "x$enable_dependency_tracking" = xyes; then
4049
msvisualcpp | msvcmsys)
4050
# This compiler won't grok `-c -o', but also, the minuso test has
4051
# not run yet. These depmodes are late enough in the game, and
4052
# so weak that their functioning should not be impacted.
4053
am__obj=conftest.${OBJEXT-o}
4058
if depmode=$depmode \
4059
source=sub/conftest.c object=$am__obj \
4060
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4061
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4062
>/dev/null 2>conftest.err &&
4063
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4064
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4065
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4066
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4067
# icc doesn't choke on unknown options, it will just issue warnings
4068
# or remarks (even with -Werror). So we grep stderr for any message
4069
# that says an option was ignored or not supported.
4070
# When given -MP, icc 7.0 and 7.1 complain thusly:
4071
# icc: Command line warning: ignoring option '-M'; no argument required
4072
# The diagnosis changed in icc 8.0:
4073
# icc: Command line remark: option '-MP' not supported
4074
if (grep 'ignoring option' conftest.err ||
4075
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4076
am_cv_CC_dependencies_compiler_type=$depmode
4085
am_cv_CC_dependencies_compiler_type=none
4089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4090
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4091
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4094
test "x$enable_dependency_tracking" != xno \
4095
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4097
am__fastdepCC_FALSE='#'
4099
am__fastdepCC_TRUE='#'
4100
am__fastdepCC_FALSE=
4104
if test -n "$ac_tool_prefix"; then
4105
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4106
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108
$as_echo_n "checking for $ac_word... " >&6; }
4109
if test "${ac_cv_prog_RANLIB+set}" = set; then :
4110
$as_echo_n "(cached) " >&6
4112
if test -n "$RANLIB"; then
4113
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119
test -z "$as_dir" && as_dir=.
4120
for ac_exec_ext in '' $ac_executable_extensions; do
4121
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4122
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4123
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132
RANLIB=$ac_cv_prog_RANLIB
4133
if test -n "$RANLIB"; then
4134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4135
$as_echo "$RANLIB" >&6; }
4137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138
$as_echo "no" >&6; }
4143
if test -z "$ac_cv_prog_RANLIB"; then
4144
ac_ct_RANLIB=$RANLIB
4145
# Extract the first word of "ranlib", so it can be a program name with args.
4146
set dummy ranlib; ac_word=$2
4147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148
$as_echo_n "checking for $ac_word... " >&6; }
4149
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4150
$as_echo_n "(cached) " >&6
4152
if test -n "$ac_ct_RANLIB"; then
4153
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4155
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159
test -z "$as_dir" && as_dir=.
4160
for ac_exec_ext in '' $ac_executable_extensions; do
4161
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162
ac_cv_prog_ac_ct_RANLIB="ranlib"
4163
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4173
if test -n "$ac_ct_RANLIB"; then
4174
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4175
$as_echo "$ac_ct_RANLIB" >&6; }
4177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178
$as_echo "no" >&6; }
4181
if test "x$ac_ct_RANLIB" = x; then
4184
case $cross_compiling:$ac_tool_warned in
4186
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4187
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188
ac_tool_warned=yes ;;
4190
RANLIB=$ac_ct_RANLIB
4193
RANLIB="$ac_cv_prog_RANLIB"
4196
# Make sure we can run config.sub.
4197
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4198
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4201
$as_echo_n "checking build system type... " >&6; }
4202
if test "${ac_cv_build+set}" = set; then :
4203
$as_echo_n "(cached) " >&6
4205
ac_build_alias=$build_alias
4206
test "x$ac_build_alias" = x &&
4207
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4208
test "x$ac_build_alias" = x &&
4209
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4210
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4211
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4215
$as_echo "$ac_cv_build" >&6; }
4216
case $ac_cv_build in
4218
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4221
ac_save_IFS=$IFS; IFS='-'
4227
# Remember, the first character of IFS is used to create $*,
4228
# except with old shells:
4231
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4235
$as_echo_n "checking host system type... " >&6; }
4236
if test "${ac_cv_host+set}" = set; then :
4237
$as_echo_n "(cached) " >&6
4239
if test "x$host_alias" = x; then
4240
ac_cv_host=$ac_cv_build
4242
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4243
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4248
$as_echo "$ac_cv_host" >&6; }
4251
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4254
ac_save_IFS=$IFS; IFS='-'
4260
# Remember, the first character of IFS is used to create $*,
4261
# except with old shells:
4264
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4269
ac_cpp='$CPP $CPPFLAGS'
4270
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4274
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4275
# On Suns, sometimes $CPP names a directory.
4276
if test -n "$CPP" && test -d "$CPP"; then
4279
if test -z "$CPP"; then
4280
if test "${ac_cv_prog_CPP+set}" = set; then :
4281
$as_echo_n "(cached) " >&6
4283
# Double quotes because CPP needs to be expanded
4284
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4287
for ac_c_preproc_warn_flag in '' yes
4289
# Use a header file that comes with gcc, so configuring glibc
4290
# with a fresh cross-compiler works.
4291
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4292
# <limits.h> exists even on freestanding compilers.
4293
# On the NeXT, cc -E runs the code through the compiler's parser,
4294
# not just through cpp. "Syntax error" is here to catch this case.
4295
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296
/* end confdefs.h. */
4298
# include <limits.h>
4300
# include <assert.h>
4304
if ac_fn_c_try_cpp "$LINENO"; then :
4307
# Broken: fails on valid input.
4310
rm -f conftest.err conftest.$ac_ext
4312
# OK, works on sane cases. Now check whether nonexistent headers
4313
# can be detected and how.
4314
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315
/* end confdefs.h. */
4316
#include <ac_nonexistent.h>
4318
if ac_fn_c_try_cpp "$LINENO"; then :
4319
# Broken: success on invalid input.
4322
# Passes both tests.
4326
rm -f conftest.err conftest.$ac_ext
4329
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4330
rm -f conftest.err conftest.$ac_ext
4331
if $ac_preproc_ok; then :
4343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4344
$as_echo "$CPP" >&6; }
4346
for ac_c_preproc_warn_flag in '' yes
4348
# Use a header file that comes with gcc, so configuring glibc
4349
# with a fresh cross-compiler works.
4350
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4351
# <limits.h> exists even on freestanding compilers.
4352
# On the NeXT, cc -E runs the code through the compiler's parser,
4353
# not just through cpp. "Syntax error" is here to catch this case.
4354
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355
/* end confdefs.h. */
4357
# include <limits.h>
4359
# include <assert.h>
4363
if ac_fn_c_try_cpp "$LINENO"; then :
4366
# Broken: fails on valid input.
4369
rm -f conftest.err conftest.$ac_ext
4371
# OK, works on sane cases. Now check whether nonexistent headers
4372
# can be detected and how.
4373
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374
/* end confdefs.h. */
4375
#include <ac_nonexistent.h>
4377
if ac_fn_c_try_cpp "$LINENO"; then :
4378
# Broken: success on invalid input.
4381
# Passes both tests.
4385
rm -f conftest.err conftest.$ac_ext
4388
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4389
rm -f conftest.err conftest.$ac_ext
4390
if $ac_preproc_ok; then :
4393
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4394
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4395
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4396
See \`config.log' for more details." "$LINENO" 5; }
4400
ac_cpp='$CPP $CPPFLAGS'
4401
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4407
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4408
if test "${ac_cv_path_GREP+set}" = set; then :
4409
$as_echo_n "(cached) " >&6
4411
if test -z "$GREP"; then
4412
ac_path_GREP_found=false
4413
# Loop through the user's path and test for each of PROGNAME-LIST
4414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4418
test -z "$as_dir" && as_dir=.
4419
for ac_prog in grep ggrep; do
4420
for ac_exec_ext in '' $ac_executable_extensions; do
4421
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4422
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4423
# Check for GNU ac_path_GREP and select it if it is found.
4424
# Check for GNU $ac_path_GREP
4425
case `"$ac_path_GREP" --version 2>&1` in
4427
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4430
$as_echo_n 0123456789 >"conftest.in"
4433
cat "conftest.in" "conftest.in" >"conftest.tmp"
4434
mv "conftest.tmp" "conftest.in"
4435
cp "conftest.in" "conftest.nl"
4436
$as_echo 'GREP' >> "conftest.nl"
4437
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4438
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4439
as_fn_arith $ac_count + 1 && ac_count=$as_val
4440
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4441
# Best one so far, save it but keep looking for a better one
4442
ac_cv_path_GREP="$ac_path_GREP"
4443
ac_path_GREP_max=$ac_count
4445
# 10*(2^10) chars as input seems more than enough
4446
test $ac_count -gt 10 && break
4448
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4451
$ac_path_GREP_found && break 3
4456
if test -z "$ac_cv_path_GREP"; then
4457
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4460
ac_cv_path_GREP=$GREP
4464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4465
$as_echo "$ac_cv_path_GREP" >&6; }
4466
GREP="$ac_cv_path_GREP"
4469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4470
$as_echo_n "checking for egrep... " >&6; }
4471
if test "${ac_cv_path_EGREP+set}" = set; then :
4472
$as_echo_n "(cached) " >&6
4474
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4475
then ac_cv_path_EGREP="$GREP -E"
4477
if test -z "$EGREP"; then
4478
ac_path_EGREP_found=false
4479
# Loop through the user's path and test for each of PROGNAME-LIST
4480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4484
test -z "$as_dir" && as_dir=.
4485
for ac_prog in egrep; do
4486
for ac_exec_ext in '' $ac_executable_extensions; do
4487
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4488
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4489
# Check for GNU ac_path_EGREP and select it if it is found.
4490
# Check for GNU $ac_path_EGREP
4491
case `"$ac_path_EGREP" --version 2>&1` in
4493
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4496
$as_echo_n 0123456789 >"conftest.in"
4499
cat "conftest.in" "conftest.in" >"conftest.tmp"
4500
mv "conftest.tmp" "conftest.in"
4501
cp "conftest.in" "conftest.nl"
4502
$as_echo 'EGREP' >> "conftest.nl"
4503
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4504
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4505
as_fn_arith $ac_count + 1 && ac_count=$as_val
4506
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4507
# Best one so far, save it but keep looking for a better one
4508
ac_cv_path_EGREP="$ac_path_EGREP"
4509
ac_path_EGREP_max=$ac_count
4511
# 10*(2^10) chars as input seems more than enough
4512
test $ac_count -gt 10 && break
4514
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4517
$ac_path_EGREP_found && break 3
4522
if test -z "$ac_cv_path_EGREP"; then
4523
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4526
ac_cv_path_EGREP=$EGREP
4531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4532
$as_echo "$ac_cv_path_EGREP" >&6; }
4533
EGREP="$ac_cv_path_EGREP"
4536
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4537
$as_echo_n "checking for ANSI C header files... " >&6; }
4538
if test "${ac_cv_header_stdc+set}" = set; then :
4539
$as_echo_n "(cached) " >&6
4541
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542
/* end confdefs.h. */
4556
if ac_fn_c_try_compile "$LINENO"; then :
4557
ac_cv_header_stdc=yes
4559
ac_cv_header_stdc=no
4561
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563
if test $ac_cv_header_stdc = yes; then
4564
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4565
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566
/* end confdefs.h. */
4570
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4571
$EGREP "memchr" >/dev/null 2>&1; then :
4574
ac_cv_header_stdc=no
4580
if test $ac_cv_header_stdc = yes; then
4581
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4582
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583
/* end confdefs.h. */
4587
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4588
$EGREP "free" >/dev/null 2>&1; then :
4591
ac_cv_header_stdc=no
4597
if test $ac_cv_header_stdc = yes; then
4598
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4599
if test "$cross_compiling" = yes; then :
4602
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603
/* end confdefs.h. */
4606
#if ((' ' & 0x0FF) == 0x020)
4607
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4608
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4610
# define ISLOWER(c) \
4611
(('a' <= (c) && (c) <= 'i') \
4612
|| ('j' <= (c) && (c) <= 'r') \
4613
|| ('s' <= (c) && (c) <= 'z'))
4614
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4617
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4622
for (i = 0; i < 256; i++)
4623
if (XOR (islower (i), ISLOWER (i))
4624
|| toupper (i) != TOUPPER (i))
4629
if ac_fn_c_try_run "$LINENO"; then :
4632
ac_cv_header_stdc=no
4634
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4635
conftest.$ac_objext conftest.beam conftest.$ac_ext
4640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4641
$as_echo "$ac_cv_header_stdc" >&6; }
4642
if test $ac_cv_header_stdc = yes; then
4644
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4648
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4649
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4650
inttypes.h stdint.h unistd.h
4652
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4653
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4655
eval as_val=\$$as_ac_Header
4656
if test "x$as_val" = x""yes; then :
4657
cat >>confdefs.h <<_ACEOF
4658
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4669
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4670
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4677
if test "$MINIX" = yes; then
4679
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4682
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4685
$as_echo "#define _MINIX 1" >>confdefs.h
4692
$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4699
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4700
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4701
$as_echo_n "(cached) " >&6
4703
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704
/* end confdefs.h. */
4706
# define __EXTENSIONS__ 1
4707
$ac_includes_default
4716
if ac_fn_c_try_compile "$LINENO"; then :
4717
ac_cv_safe_to_define___extensions__=yes
4719
ac_cv_safe_to_define___extensions__=no
4721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4724
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4725
test $ac_cv_safe_to_define___extensions__ = yes &&
4726
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4728
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4730
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4732
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4734
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4748
enable_win32_dll=yes
4751
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4752
if test -n "$ac_tool_prefix"; then
4753
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4754
set dummy ${ac_tool_prefix}as; ac_word=$2
4755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756
$as_echo_n "checking for $ac_word... " >&6; }
4757
if test "${ac_cv_prog_AS+set}" = set; then :
4758
$as_echo_n "(cached) " >&6
4760
if test -n "$AS"; then
4761
ac_cv_prog_AS="$AS" # Let the user override the test.
4763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767
test -z "$as_dir" && as_dir=.
4768
for ac_exec_ext in '' $ac_executable_extensions; do
4769
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770
ac_cv_prog_AS="${ac_tool_prefix}as"
4771
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781
if test -n "$AS"; then
4782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4783
$as_echo "$AS" >&6; }
4785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786
$as_echo "no" >&6; }
4791
if test -z "$ac_cv_prog_AS"; then
4793
# Extract the first word of "as", so it can be a program name with args.
4794
set dummy as; ac_word=$2
4795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796
$as_echo_n "checking for $ac_word... " >&6; }
4797
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4798
$as_echo_n "(cached) " >&6
4800
if test -n "$ac_ct_AS"; then
4801
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4803
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807
test -z "$as_dir" && as_dir=.
4808
for ac_exec_ext in '' $ac_executable_extensions; do
4809
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810
ac_cv_prog_ac_ct_AS="as"
4811
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4821
if test -n "$ac_ct_AS"; then
4822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4823
$as_echo "$ac_ct_AS" >&6; }
4825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826
$as_echo "no" >&6; }
4829
if test "x$ac_ct_AS" = x; then
4832
case $cross_compiling:$ac_tool_warned in
4834
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4835
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4836
ac_tool_warned=yes ;;
4844
if test -n "$ac_tool_prefix"; then
4845
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4846
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4847
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848
$as_echo_n "checking for $ac_word... " >&6; }
4849
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4850
$as_echo_n "(cached) " >&6
4852
if test -n "$DLLTOOL"; then
4853
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4855
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859
test -z "$as_dir" && as_dir=.
4860
for ac_exec_ext in '' $ac_executable_extensions; do
4861
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4863
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872
DLLTOOL=$ac_cv_prog_DLLTOOL
4873
if test -n "$DLLTOOL"; then
4874
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4875
$as_echo "$DLLTOOL" >&6; }
4877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878
$as_echo "no" >&6; }
4883
if test -z "$ac_cv_prog_DLLTOOL"; then
4884
ac_ct_DLLTOOL=$DLLTOOL
4885
# Extract the first word of "dlltool", so it can be a program name with args.
4886
set dummy dlltool; ac_word=$2
4887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888
$as_echo_n "checking for $ac_word... " >&6; }
4889
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4890
$as_echo_n "(cached) " >&6
4892
if test -n "$ac_ct_DLLTOOL"; then
4893
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899
test -z "$as_dir" && as_dir=.
4900
for ac_exec_ext in '' $ac_executable_extensions; do
4901
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4903
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4913
if test -n "$ac_ct_DLLTOOL"; then
4914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4915
$as_echo "$ac_ct_DLLTOOL" >&6; }
4917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918
$as_echo "no" >&6; }
4921
if test "x$ac_ct_DLLTOOL" = x; then
4924
case $cross_compiling:$ac_tool_warned in
4926
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4927
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4928
ac_tool_warned=yes ;;
4930
DLLTOOL=$ac_ct_DLLTOOL
4933
DLLTOOL="$ac_cv_prog_DLLTOOL"
4936
if test -n "$ac_tool_prefix"; then
4937
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4938
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940
$as_echo_n "checking for $ac_word... " >&6; }
4941
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4942
$as_echo_n "(cached) " >&6
4944
if test -n "$OBJDUMP"; then
4945
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4947
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951
test -z "$as_dir" && as_dir=.
4952
for ac_exec_ext in '' $ac_executable_extensions; do
4953
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4955
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964
OBJDUMP=$ac_cv_prog_OBJDUMP
4965
if test -n "$OBJDUMP"; then
4966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4967
$as_echo "$OBJDUMP" >&6; }
4969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970
$as_echo "no" >&6; }
4975
if test -z "$ac_cv_prog_OBJDUMP"; then
4976
ac_ct_OBJDUMP=$OBJDUMP
4977
# Extract the first word of "objdump", so it can be a program name with args.
4978
set dummy objdump; ac_word=$2
4979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980
$as_echo_n "checking for $ac_word... " >&6; }
4981
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4982
$as_echo_n "(cached) " >&6
4984
if test -n "$ac_ct_OBJDUMP"; then
4985
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991
test -z "$as_dir" && as_dir=.
4992
for ac_exec_ext in '' $ac_executable_extensions; do
4993
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4995
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5005
if test -n "$ac_ct_OBJDUMP"; then
5006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5007
$as_echo "$ac_ct_OBJDUMP" >&6; }
5009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010
$as_echo "no" >&6; }
5013
if test "x$ac_ct_OBJDUMP" = x; then
5016
case $cross_compiling:$ac_tool_warned in
5018
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5019
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5020
ac_tool_warned=yes ;;
5022
OBJDUMP=$ac_ct_OBJDUMP
5025
OBJDUMP="$ac_cv_prog_OBJDUMP"
5031
test -z "$AS" && AS=as
5037
test -z "$DLLTOOL" && DLLTOOL=dlltool
5043
test -z "$OBJDUMP" && OBJDUMP=objdump
5053
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5054
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5059
macro_version='2.2.6b'
5060
macro_revision='1.3017'
5074
ltmain="$ac_aux_dir/ltmain.sh"
5076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5077
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5078
if test "${ac_cv_path_SED+set}" = set; then :
5079
$as_echo_n "(cached) " >&6
5081
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5082
for ac_i in 1 2 3 4 5 6 7; do
5083
ac_script="$ac_script$as_nl$ac_script"
5085
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5086
{ ac_script=; unset ac_script;}
5087
if test -z "$SED"; then
5088
ac_path_SED_found=false
5089
# Loop through the user's path and test for each of PROGNAME-LIST
5090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094
test -z "$as_dir" && as_dir=.
5095
for ac_prog in sed gsed; do
5096
for ac_exec_ext in '' $ac_executable_extensions; do
5097
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5098
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5099
# Check for GNU ac_path_SED and select it if it is found.
5100
# Check for GNU $ac_path_SED
5101
case `"$ac_path_SED" --version 2>&1` in
5103
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5106
$as_echo_n 0123456789 >"conftest.in"
5109
cat "conftest.in" "conftest.in" >"conftest.tmp"
5110
mv "conftest.tmp" "conftest.in"
5111
cp "conftest.in" "conftest.nl"
5112
$as_echo '' >> "conftest.nl"
5113
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5114
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5115
as_fn_arith $ac_count + 1 && ac_count=$as_val
5116
if test $ac_count -gt ${ac_path_SED_max-0}; then
5117
# Best one so far, save it but keep looking for a better one
5118
ac_cv_path_SED="$ac_path_SED"
5119
ac_path_SED_max=$ac_count
5121
# 10*(2^10) chars as input seems more than enough
5122
test $ac_count -gt 10 && break
5124
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5127
$ac_path_SED_found && break 3
5132
if test -z "$ac_cv_path_SED"; then
5133
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5141
$as_echo "$ac_cv_path_SED" >&6; }
5142
SED="$ac_cv_path_SED"
5145
test -z "$SED" && SED=sed
5146
Xsed="$SED -e 1s/^X//"
5158
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5159
$as_echo_n "checking for fgrep... " >&6; }
5160
if test "${ac_cv_path_FGREP+set}" = set; then :
5161
$as_echo_n "(cached) " >&6
5163
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5164
then ac_cv_path_FGREP="$GREP -F"
5166
if test -z "$FGREP"; then
5167
ac_path_FGREP_found=false
5168
# Loop through the user's path and test for each of PROGNAME-LIST
5169
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5173
test -z "$as_dir" && as_dir=.
5174
for ac_prog in fgrep; do
5175
for ac_exec_ext in '' $ac_executable_extensions; do
5176
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5177
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5178
# Check for GNU ac_path_FGREP and select it if it is found.
5179
# Check for GNU $ac_path_FGREP
5180
case `"$ac_path_FGREP" --version 2>&1` in
5182
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5185
$as_echo_n 0123456789 >"conftest.in"
5188
cat "conftest.in" "conftest.in" >"conftest.tmp"
5189
mv "conftest.tmp" "conftest.in"
5190
cp "conftest.in" "conftest.nl"
5191
$as_echo 'FGREP' >> "conftest.nl"
5192
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194
as_fn_arith $ac_count + 1 && ac_count=$as_val
5195
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5196
# Best one so far, save it but keep looking for a better one
5197
ac_cv_path_FGREP="$ac_path_FGREP"
5198
ac_path_FGREP_max=$ac_count
5200
# 10*(2^10) chars as input seems more than enough
5201
test $ac_count -gt 10 && break
5203
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5206
$ac_path_FGREP_found && break 3
5211
if test -z "$ac_cv_path_FGREP"; then
5212
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5215
ac_cv_path_FGREP=$FGREP
5220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5221
$as_echo "$ac_cv_path_FGREP" >&6; }
5222
FGREP="$ac_cv_path_FGREP"
5225
test -z "$GREP" && GREP=grep
5245
# Check whether --with-gnu-ld was given.
5246
if test "${with_gnu_ld+set}" = set; then :
5247
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5253
if test "$GCC" = yes; then
5254
# Check if gcc -print-prog-name=ld gives a path.
5255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5256
$as_echo_n "checking for ld used by $CC... " >&6; }
5259
# gcc leaves a trailing carriage return which upsets mingw
5260
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5262
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5265
# Accept absolute paths.
5267
re_direlt='/[^/][^/]*/\.\./'
5268
# Canonicalize the pathname of ld
5269
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5270
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5271
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5273
test -z "$LD" && LD="$ac_prog"
5276
# If it fails, then pretend we aren't using GCC.
5280
# If it is relative, then search for the first ld in PATH.
5284
elif test "$with_gnu_ld" = yes; then
5285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5286
$as_echo_n "checking for GNU ld... " >&6; }
5288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5289
$as_echo_n "checking for non-GNU ld... " >&6; }
5291
if test "${lt_cv_path_LD+set}" = set; then :
5292
$as_echo_n "(cached) " >&6
5294
if test -z "$LD"; then
5295
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5296
for ac_dir in $PATH; do
5298
test -z "$ac_dir" && ac_dir=.
5299
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5300
lt_cv_path_LD="$ac_dir/$ac_prog"
5301
# Check to see if the program is GNU ld. I'd rather use --version,
5302
# but apparently some variants of GNU ld only accept -v.
5303
# Break only if it was the GNU/non-GNU ld that we prefer.
5304
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5305
*GNU* | *'with BFD'*)
5306
test "$with_gnu_ld" != no && break
5309
test "$with_gnu_ld" != yes && break
5316
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5321
if test -n "$LD"; then
5322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5323
$as_echo "$LD" >&6; }
5325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326
$as_echo "no" >&6; }
5328
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5330
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5331
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5332
$as_echo_n "(cached) " >&6
5334
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5335
case `$LD -v 2>&1 </dev/null` in
5336
*GNU* | *'with BFD'*)
5337
lt_cv_prog_gnu_ld=yes
5340
lt_cv_prog_gnu_ld=no
5344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5345
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5346
with_gnu_ld=$lt_cv_prog_gnu_ld
5356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5357
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5358
if test "${lt_cv_path_NM+set}" = set; then :
5359
$as_echo_n "(cached) " >&6
5361
if test -n "$NM"; then
5362
# Let the user override the test.
5365
lt_nm_to_check="${ac_tool_prefix}nm"
5366
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5367
lt_nm_to_check="$lt_nm_to_check nm"
5369
for lt_tmp_nm in $lt_nm_to_check; do
5370
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5371
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5373
test -z "$ac_dir" && ac_dir=.
5374
tmp_nm="$ac_dir/$lt_tmp_nm"
5375
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5376
# Check to see if the nm accepts a BSD-compat flag.
5377
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5378
# nm: unknown option "B" ignored
5379
# Tru64's nm complains that /dev/null is an invalid object file
5380
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5381
*/dev/null* | *'Invalid file or object type'*)
5382
lt_cv_path_NM="$tmp_nm -B"
5386
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5388
lt_cv_path_NM="$tmp_nm -p"
5392
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5393
continue # so that we can try to find one that supports BSD flags
5402
: ${lt_cv_path_NM=no}
5405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5406
$as_echo "$lt_cv_path_NM" >&6; }
5407
if test "$lt_cv_path_NM" != "no"; then
5410
# Didn't find any BSD compatible name lister, look for dumpbin.
5411
if test -n "$ac_tool_prefix"; then
5412
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5414
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5415
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417
$as_echo_n "checking for $ac_word... " >&6; }
5418
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5419
$as_echo_n "(cached) " >&6
5421
if test -n "$DUMPBIN"; then
5422
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428
test -z "$as_dir" && as_dir=.
5429
for ac_exec_ext in '' $ac_executable_extensions; do
5430
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5432
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441
DUMPBIN=$ac_cv_prog_DUMPBIN
5442
if test -n "$DUMPBIN"; then
5443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5444
$as_echo "$DUMPBIN" >&6; }
5446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447
$as_echo "no" >&6; }
5451
test -n "$DUMPBIN" && break
5454
if test -z "$DUMPBIN"; then
5455
ac_ct_DUMPBIN=$DUMPBIN
5456
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5458
# Extract the first word of "$ac_prog", so it can be a program name with args.
5459
set dummy $ac_prog; ac_word=$2
5460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461
$as_echo_n "checking for $ac_word... " >&6; }
5462
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5463
$as_echo_n "(cached) " >&6
5465
if test -n "$ac_ct_DUMPBIN"; then
5466
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472
test -z "$as_dir" && as_dir=.
5473
for ac_exec_ext in '' $ac_executable_extensions; do
5474
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5475
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5476
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5486
if test -n "$ac_ct_DUMPBIN"; then
5487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5488
$as_echo "$ac_ct_DUMPBIN" >&6; }
5490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491
$as_echo "no" >&6; }
5495
test -n "$ac_ct_DUMPBIN" && break
5498
if test "x$ac_ct_DUMPBIN" = x; then
5501
case $cross_compiling:$ac_tool_warned in
5503
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5504
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5505
ac_tool_warned=yes ;;
5507
DUMPBIN=$ac_ct_DUMPBIN
5512
if test "$DUMPBIN" != ":"; then
5516
test -z "$NM" && NM=nm
5523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5524
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5525
if test "${lt_cv_nm_interface+set}" = set; then :
5526
$as_echo_n "(cached) " >&6
5528
lt_cv_nm_interface="BSD nm"
5529
echo "int some_variable = 0;" > conftest.$ac_ext
5530
(eval echo "\"\$as_me:5530: $ac_compile\"" >&5)
5531
(eval "$ac_compile" 2>conftest.err)
5532
cat conftest.err >&5
5533
(eval echo "\"\$as_me:5533: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5534
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5535
cat conftest.err >&5
5536
(eval echo "\"\$as_me:5536: output\"" >&5)
5537
cat conftest.out >&5
5538
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5539
lt_cv_nm_interface="MS dumpbin"
5543
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5544
$as_echo "$lt_cv_nm_interface" >&6; }
5546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5547
$as_echo_n "checking whether ln -s works... " >&6; }
5549
if test "$LN_S" = "ln -s"; then
5550
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5551
$as_echo "yes" >&6; }
5553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5554
$as_echo "no, using $LN_S" >&6; }
5557
# find the maximum length of command line arguments
5558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5559
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5560
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5561
$as_echo_n "(cached) " >&6
5568
# On DJGPP, this test can blow up pretty badly due to problems in libc
5569
# (any single argument exceeding 2000 bytes causes a buffer overrun
5570
# during glob expansion). Even if it were fixed, the result of this
5571
# check would be larger than it should be.
5572
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5576
# Under GNU Hurd, this test is not required because there is
5577
# no limit to the length of command line arguments.
5578
# Libtool will interpret -1 as no limit whatsoever
5579
lt_cv_sys_max_cmd_len=-1;
5582
cygwin* | mingw* | cegcc*)
5583
# On Win9x/ME, this test blows up -- it succeeds, but takes
5584
# about 5 minutes as the teststring grows exponentially.
5585
# Worse, since 9x/ME are not pre-emptively multitasking,
5586
# you end up with a "frozen" computer, even though with patience
5587
# the test eventually succeeds (with a max line length of 256k).
5588
# Instead, let's just punt: use the minimum linelength reported by
5589
# all of the supported platforms: 8192 (on NT/2K/XP).
5590
lt_cv_sys_max_cmd_len=8192;
5594
# On AmigaOS with pdksh, this test takes hours, literally.
5595
# So we just punt and use a minimum line length of 8192.
5596
lt_cv_sys_max_cmd_len=8192;
5599
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5600
# This has been around since 386BSD, at least. Likely further.
5601
if test -x /sbin/sysctl; then
5602
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5603
elif test -x /usr/sbin/sysctl; then
5604
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5606
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5608
# And add a safety zone
5609
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5610
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5614
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5615
lt_cv_sys_max_cmd_len=196608
5619
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5620
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5621
# nice to cause kernel panics so lets avoid the loop below.
5622
# First set a reasonable default.
5623
lt_cv_sys_max_cmd_len=16384
5625
if test -x /sbin/sysconfig; then
5626
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5627
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5632
lt_cv_sys_max_cmd_len=102400
5634
sysv5* | sco5v6* | sysv4.2uw2*)
5635
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5636
if test -n "$kargmax"; then
5637
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5639
lt_cv_sys_max_cmd_len=32768
5643
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5644
if test -n "$lt_cv_sys_max_cmd_len"; then
5645
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5646
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5648
# Make teststring a little bigger before we do anything with it.
5649
# a 1K string should be a reasonable start.
5650
for i in 1 2 3 4 5 6 7 8 ; do
5651
teststring=$teststring$teststring
5653
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5654
# If test is not a shell built-in, we'll probably end up computing a
5655
# maximum length that is only half of the actual maximum length, but
5657
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5658
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5659
test $i != 17 # 1/2 MB should be enough
5662
teststring=$teststring$teststring
5664
# Only check the string length outside the loop.
5665
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5667
# Add a significant safety factor because C++ compilers can tack on
5668
# massive amounts of additional arguments before passing them to the
5669
# linker. It appears as though 1/2 is a usable value.
5670
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5677
if test -n $lt_cv_sys_max_cmd_len ; then
5678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5679
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5682
$as_echo "none" >&6; }
5684
max_cmd_len=$lt_cv_sys_max_cmd_len
5695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5696
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5697
# Try some XSI features
5700
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5702
&& eval 'test $(( 1 + 1 )) -eq 2 \
5703
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5706
$as_echo "$xsi_shell" >&6; }
5709
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5710
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5712
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5714
&& lt_shell_append=yes
5715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5716
$as_echo "$lt_shell_append" >&6; }
5719
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5729
# test EBCDIC or ASCII
5730
case `echo X|tr X '\101'` in
5731
A) # ASCII based system
5732
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5733
lt_SP2NL='tr \040 \012'
5734
lt_NL2SP='tr \015\012 \040\040'
5736
*) # EBCDIC based system
5737
lt_SP2NL='tr \100 \n'
5738
lt_NL2SP='tr \r\n \100\100'
5750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5751
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5752
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5753
$as_echo_n "(cached) " >&6
5755
lt_cv_ld_reload_flag='-r'
5757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5758
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5759
reload_flag=$lt_cv_ld_reload_flag
5760
case $reload_flag in
5762
*) reload_flag=" $reload_flag" ;;
5764
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5767
if test "$GCC" = yes; then
5768
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5770
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5783
if test -n "$ac_tool_prefix"; then
5784
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5785
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787
$as_echo_n "checking for $ac_word... " >&6; }
5788
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5789
$as_echo_n "(cached) " >&6
5791
if test -n "$OBJDUMP"; then
5792
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798
test -z "$as_dir" && as_dir=.
5799
for ac_exec_ext in '' $ac_executable_extensions; do
5800
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5802
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811
OBJDUMP=$ac_cv_prog_OBJDUMP
5812
if test -n "$OBJDUMP"; then
5813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5814
$as_echo "$OBJDUMP" >&6; }
5816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817
$as_echo "no" >&6; }
5822
if test -z "$ac_cv_prog_OBJDUMP"; then
5823
ac_ct_OBJDUMP=$OBJDUMP
5824
# Extract the first word of "objdump", so it can be a program name with args.
5825
set dummy objdump; ac_word=$2
5826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827
$as_echo_n "checking for $ac_word... " >&6; }
5828
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5829
$as_echo_n "(cached) " >&6
5831
if test -n "$ac_ct_OBJDUMP"; then
5832
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5834
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838
test -z "$as_dir" && as_dir=.
5839
for ac_exec_ext in '' $ac_executable_extensions; do
5840
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5842
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5852
if test -n "$ac_ct_OBJDUMP"; then
5853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5854
$as_echo "$ac_ct_OBJDUMP" >&6; }
5856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857
$as_echo "no" >&6; }
5860
if test "x$ac_ct_OBJDUMP" = x; then
5863
case $cross_compiling:$ac_tool_warned in
5865
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5867
ac_tool_warned=yes ;;
5869
OBJDUMP=$ac_ct_OBJDUMP
5872
OBJDUMP="$ac_cv_prog_OBJDUMP"
5875
test -z "$OBJDUMP" && OBJDUMP=objdump
5882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5883
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5884
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5885
$as_echo_n "(cached) " >&6
5887
lt_cv_file_magic_cmd='$MAGIC_CMD'
5888
lt_cv_file_magic_test_file=
5889
lt_cv_deplibs_check_method='unknown'
5890
# Need to set the preceding variable on all platforms that support
5891
# interlibrary dependencies.
5892
# 'none' -- dependencies not supported.
5893
# `unknown' -- same as none, but documents that we really don't know.
5894
# 'pass_all' -- all dependencies passed with no checks.
5895
# 'test_compile' -- check by making test program.
5896
# 'file_magic [[regex]]' -- check by looking for files in library path
5897
# which responds to the $file_magic_cmd with a given extended regex.
5898
# If you have `file' or equivalent on your system and you're not sure
5899
# whether `pass_all' will *always* work, you probably want this one.
5903
lt_cv_deplibs_check_method=pass_all
5907
lt_cv_deplibs_check_method=pass_all
5911
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5912
lt_cv_file_magic_cmd='/usr/bin/file -L'
5913
lt_cv_file_magic_test_file=/shlib/libc.so
5917
# func_win32_libid is a shell function defined in ltmain.sh
5918
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5919
lt_cv_file_magic_cmd='func_win32_libid'
5923
# Base MSYS/MinGW do not provide the 'file' command needed by
5924
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5925
# unless we find 'file', for example because we are cross-compiling.
5926
if ( file / ) >/dev/null 2>&1; then
5927
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5928
lt_cv_file_magic_cmd='func_win32_libid'
5930
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5931
lt_cv_file_magic_cmd='$OBJDUMP -f'
5936
# use the weaker test based on 'objdump'. See mingw*.
5937
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5938
lt_cv_file_magic_cmd='$OBJDUMP -f'
5941
darwin* | rhapsody*)
5942
lt_cv_deplibs_check_method=pass_all
5945
freebsd* | dragonfly*)
5946
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5949
# Not sure whether the presence of OpenBSD here was a mistake.
5950
# Let's accept both of them until this is cleared up.
5951
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5952
lt_cv_file_magic_cmd=/usr/bin/file
5953
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5957
lt_cv_deplibs_check_method=pass_all
5962
lt_cv_deplibs_check_method=pass_all
5965
hpux10.20* | hpux11*)
5966
lt_cv_file_magic_cmd=/usr/bin/file
5969
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5970
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5973
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]'
5974
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5977
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5978
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5984
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5985
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5988
irix5* | irix6* | nonstopux*)
5990
*-32|*"-32 ") libmagic=32-bit;;
5991
*-n32|*"-n32 ") libmagic=N32;;
5992
*-64|*"-64 ") libmagic=64-bit;;
5993
*) libmagic=never-match;;
5995
lt_cv_deplibs_check_method=pass_all
5998
# This must be Linux ELF.
5999
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6000
lt_cv_deplibs_check_method=pass_all
6003
netbsd* | netbsdelf*-gnu)
6004
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6005
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6007
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6012
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6013
lt_cv_file_magic_cmd=/usr/bin/file
6014
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6018
lt_cv_deplibs_check_method=pass_all
6022
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6023
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6025
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6029
osf3* | osf4* | osf5*)
6030
lt_cv_deplibs_check_method=pass_all
6034
lt_cv_deplibs_check_method=pass_all
6038
lt_cv_deplibs_check_method=pass_all
6041
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6042
lt_cv_deplibs_check_method=pass_all
6046
case $host_vendor in
6048
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]'
6049
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6052
lt_cv_deplibs_check_method=pass_all
6055
lt_cv_file_magic_cmd='/bin/file'
6056
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6059
lt_cv_file_magic_cmd='/bin/file'
6060
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6061
lt_cv_file_magic_test_file=/lib/libc.so
6064
lt_cv_deplibs_check_method=pass_all
6067
lt_cv_deplibs_check_method=pass_all
6073
lt_cv_deplibs_check_method=pass_all
6078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6079
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6080
file_magic_cmd=$lt_cv_file_magic_cmd
6081
deplibs_check_method=$lt_cv_deplibs_check_method
6082
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6095
if test -n "$ac_tool_prefix"; then
6096
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6097
set dummy ${ac_tool_prefix}ar; ac_word=$2
6098
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099
$as_echo_n "checking for $ac_word... " >&6; }
6100
if test "${ac_cv_prog_AR+set}" = set; then :
6101
$as_echo_n "(cached) " >&6
6103
if test -n "$AR"; then
6104
ac_cv_prog_AR="$AR" # Let the user override the test.
6106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110
test -z "$as_dir" && as_dir=.
6111
for ac_exec_ext in '' $ac_executable_extensions; do
6112
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6113
ac_cv_prog_AR="${ac_tool_prefix}ar"
6114
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124
if test -n "$AR"; then
6125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6126
$as_echo "$AR" >&6; }
6128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129
$as_echo "no" >&6; }
6134
if test -z "$ac_cv_prog_AR"; then
6136
# Extract the first word of "ar", so it can be a program name with args.
6137
set dummy ar; ac_word=$2
6138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139
$as_echo_n "checking for $ac_word... " >&6; }
6140
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6141
$as_echo_n "(cached) " >&6
6143
if test -n "$ac_ct_AR"; then
6144
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6146
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150
test -z "$as_dir" && as_dir=.
6151
for ac_exec_ext in '' $ac_executable_extensions; do
6152
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153
ac_cv_prog_ac_ct_AR="ar"
6154
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6164
if test -n "$ac_ct_AR"; then
6165
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6166
$as_echo "$ac_ct_AR" >&6; }
6168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169
$as_echo "no" >&6; }
6172
if test "x$ac_ct_AR" = x; then
6175
case $cross_compiling:$ac_tool_warned in
6177
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6178
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6179
ac_tool_warned=yes ;;
6187
test -z "$AR" && AR=ar
6188
test -z "$AR_FLAGS" && AR_FLAGS=cru
6200
if test -n "$ac_tool_prefix"; then
6201
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6202
set dummy ${ac_tool_prefix}strip; ac_word=$2
6203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204
$as_echo_n "checking for $ac_word... " >&6; }
6205
if test "${ac_cv_prog_STRIP+set}" = set; then :
6206
$as_echo_n "(cached) " >&6
6208
if test -n "$STRIP"; then
6209
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215
test -z "$as_dir" && as_dir=.
6216
for ac_exec_ext in '' $ac_executable_extensions; do
6217
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6219
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228
STRIP=$ac_cv_prog_STRIP
6229
if test -n "$STRIP"; then
6230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6231
$as_echo "$STRIP" >&6; }
6233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234
$as_echo "no" >&6; }
6239
if test -z "$ac_cv_prog_STRIP"; then
6241
# Extract the first word of "strip", so it can be a program name with args.
6242
set dummy strip; ac_word=$2
6243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244
$as_echo_n "checking for $ac_word... " >&6; }
6245
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6246
$as_echo_n "(cached) " >&6
6248
if test -n "$ac_ct_STRIP"; then
6249
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255
test -z "$as_dir" && as_dir=.
6256
for ac_exec_ext in '' $ac_executable_extensions; do
6257
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258
ac_cv_prog_ac_ct_STRIP="strip"
6259
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6269
if test -n "$ac_ct_STRIP"; then
6270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6271
$as_echo "$ac_ct_STRIP" >&6; }
6273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274
$as_echo "no" >&6; }
6277
if test "x$ac_ct_STRIP" = x; then
6280
case $cross_compiling:$ac_tool_warned in
6282
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6283
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6284
ac_tool_warned=yes ;;
6289
STRIP="$ac_cv_prog_STRIP"
6292
test -z "$STRIP" && STRIP=:
6299
if test -n "$ac_tool_prefix"; then
6300
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6301
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303
$as_echo_n "checking for $ac_word... " >&6; }
6304
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6305
$as_echo_n "(cached) " >&6
6307
if test -n "$RANLIB"; then
6308
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314
test -z "$as_dir" && as_dir=.
6315
for ac_exec_ext in '' $ac_executable_extensions; do
6316
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6318
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327
RANLIB=$ac_cv_prog_RANLIB
6328
if test -n "$RANLIB"; then
6329
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6330
$as_echo "$RANLIB" >&6; }
6332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333
$as_echo "no" >&6; }
6338
if test -z "$ac_cv_prog_RANLIB"; then
6339
ac_ct_RANLIB=$RANLIB
6340
# Extract the first word of "ranlib", so it can be a program name with args.
6341
set dummy ranlib; ac_word=$2
6342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343
$as_echo_n "checking for $ac_word... " >&6; }
6344
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6345
$as_echo_n "(cached) " >&6
6347
if test -n "$ac_ct_RANLIB"; then
6348
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354
test -z "$as_dir" && as_dir=.
6355
for ac_exec_ext in '' $ac_executable_extensions; do
6356
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357
ac_cv_prog_ac_ct_RANLIB="ranlib"
6358
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6368
if test -n "$ac_ct_RANLIB"; then
6369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6370
$as_echo "$ac_ct_RANLIB" >&6; }
6372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373
$as_echo "no" >&6; }
6376
if test "x$ac_ct_RANLIB" = x; then
6379
case $cross_compiling:$ac_tool_warned in
6381
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383
ac_tool_warned=yes ;;
6385
RANLIB=$ac_ct_RANLIB
6388
RANLIB="$ac_cv_prog_RANLIB"
6391
test -z "$RANLIB" && RANLIB=:
6398
# Determine commands to create old-style static archives.
6399
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6400
old_postinstall_cmds='chmod 644 $oldlib'
6401
old_postuninstall_cmds=
6403
if test -n "$RANLIB"; then
6406
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6409
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6412
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6448
# If no C compiler was specified, use CC.
6451
# If no C compiler flags were specified, use CFLAGS.
6452
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6454
# Allow CC to be a program name with arguments.
6458
# Check for command to grab the raw symbol name followed by C symbol from nm.
6459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6460
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6461
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6462
$as_echo_n "(cached) " >&6
6465
# These are sane defaults that work on at least a few old systems.
6466
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6468
# Character class describing NM global symbol codes.
6469
symcode='[BCDEGRST]'
6471
# Regexp to match symbols that can be accessed directly from C.
6472
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6474
# Define system-specific variables.
6479
cygwin* | mingw* | pw32* | cegcc*)
6480
symcode='[ABCDGISTW]'
6483
if test "$host_cpu" = ia64; then
6484
symcode='[ABCDEGRST]'
6488
symcode='[BCDEGRST]'
6491
symcode='[BCDEGQRST]'
6502
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6510
# If we're using GNU nm, then use its standard symbol codes.
6511
case `$NM -V 2>&1` in
6512
*GNU* | *'with BFD'*)
6513
symcode='[ABCDGIRSTW]' ;;
6516
# Transform an extracted symbol line into a proper C declaration.
6517
# Some systems (esp. on ia64) link data and code symbols differently,
6518
# so use this general approach.
6519
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6521
# Transform an extracted symbol line into symbol name and symbol address
6522
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6523
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'"
6525
# Handle CRLF in mingw tool chain
6529
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6533
# Try without a prefix underscore, then with it.
6534
for ac_symprfx in "" "_"; do
6536
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6537
symxfrm="\\1 $ac_symprfx\\2 \\2"
6539
# Write the raw and C identifiers.
6540
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6541
# Fake it for dumpbin and say T for any non-static function
6542
# and D for any global variable.
6543
# Also find C++ and __fastcall symbols from MSVC++,
6544
# which start with @ or ?.
6545
lt_cv_sys_global_symbol_pipe="$AWK '"\
6546
" {last_section=section; section=\$ 3};"\
6547
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6548
" \$ 0!~/External *\|/{next};"\
6549
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6550
" {if(hide[section]) next};"\
6551
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6552
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6553
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6554
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6555
" ' prfx=^$ac_symprfx"
6557
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6560
# Check to see that the pipe works correctly.
6564
cat > conftest.$ac_ext <<_LT_EOF
6569
void nm_test_func(void);
6570
void nm_test_func(void){}
6574
int main(){nm_test_var='a';nm_test_func();return(0);}
6577
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6578
(eval $ac_compile) 2>&5
6580
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6581
test $ac_status = 0; }; then
6582
# Now try to grab the symbols.
6584
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6585
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6587
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588
test $ac_status = 0; } && test -s "$nlist"; then
6589
# Try sorting and uniquifying the output.
6590
if sort "$nlist" | uniq > "$nlist"T; then
6591
mv -f "$nlist"T "$nlist"
6596
# Make sure that we snagged all the symbols we need.
6597
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6598
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6599
cat <<_LT_EOF > conftest.$ac_ext
6605
# Now generate the symbol file.
6606
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6608
cat <<_LT_EOF >> conftest.$ac_ext
6610
/* The mapping between symbol names and symbols. */
6615
lt__PROGRAM__LTX_preloaded_symbols[] =
6617
{ "@PROGRAM@", (void *) 0 },
6619
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6620
cat <<\_LT_EOF >> conftest.$ac_ext
6624
/* This works around a problem in FreeBSD linker */
6625
#ifdef FREEBSD_WORKAROUND
6626
static const void *lt_preloaded_setup() {
6627
return lt__PROGRAM__LTX_preloaded_symbols;
6635
# Now try linking the two files.
6636
mv conftest.$ac_objext conftstm.$ac_objext
6637
lt_save_LIBS="$LIBS"
6638
lt_save_CFLAGS="$CFLAGS"
6639
LIBS="conftstm.$ac_objext"
6640
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6641
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6642
(eval $ac_link) 2>&5
6644
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6645
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6648
LIBS="$lt_save_LIBS"
6649
CFLAGS="$lt_save_CFLAGS"
6651
echo "cannot find nm_test_func in $nlist" >&5
6654
echo "cannot find nm_test_var in $nlist" >&5
6657
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6660
echo "$progname: failed program was:" >&5
6661
cat conftest.$ac_ext >&5
6663
rm -rf conftest* conftst*
6665
# Do not use the global_symbol_pipe unless it works.
6666
if test "$pipe_works" = yes; then
6669
lt_cv_sys_global_symbol_pipe=
6675
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6676
lt_cv_sys_global_symbol_to_cdecl=
6678
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6680
$as_echo "failed" >&6; }
6682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6683
$as_echo "ok" >&6; }
6707
# Check whether --enable-libtool-lock was given.
6708
if test "${enable_libtool_lock+set}" = set; then :
6709
enableval=$enable_libtool_lock;
6712
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6714
# Some flags need to be propagated to the compiler or linker for good
6718
# Find out which ABI we are using.
6719
echo 'int i;' > conftest.$ac_ext
6720
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6721
(eval $ac_compile) 2>&5
6723
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724
test $ac_status = 0; }; then
6725
case `/usr/bin/file conftest.$ac_objext` in
6737
# Find out which ABI we are using.
6738
echo '#line 6738 "configure"' > conftest.$ac_ext
6739
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6740
(eval $ac_compile) 2>&5
6742
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743
test $ac_status = 0; }; then
6744
if test "$lt_cv_prog_gnu_ld" = yes; then
6745
case `/usr/bin/file conftest.$ac_objext` in
6747
LD="${LD-ld} -melf32bsmip"
6750
LD="${LD-ld} -melf32bmipn32"
6753
LD="${LD-ld} -melf64bmip"
6757
case `/usr/bin/file conftest.$ac_objext` in
6773
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6774
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6775
# Find out which ABI we are using.
6776
echo 'int i;' > conftest.$ac_ext
6777
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6778
(eval $ac_compile) 2>&5
6780
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6781
test $ac_status = 0; }; then
6782
case `/usr/bin/file conftest.o` in
6785
x86_64-*kfreebsd*-gnu)
6786
LD="${LD-ld} -m elf_i386_fbsd"
6789
LD="${LD-ld} -m elf_i386"
6791
ppc64-*linux*|powerpc64-*linux*)
6792
LD="${LD-ld} -m elf32ppclinux"
6795
LD="${LD-ld} -m elf_s390"
6798
LD="${LD-ld} -m elf32_sparc"
6804
x86_64-*kfreebsd*-gnu)
6805
LD="${LD-ld} -m elf_x86_64_fbsd"
6808
LD="${LD-ld} -m elf_x86_64"
6810
ppc*-*linux*|powerpc*-*linux*)
6811
LD="${LD-ld} -m elf64ppc"
6813
s390*-*linux*|s390*-*tpf*)
6814
LD="${LD-ld} -m elf64_s390"
6817
LD="${LD-ld} -m elf64_sparc"
6827
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6828
SAVE_CFLAGS="$CFLAGS"
6829
CFLAGS="$CFLAGS -belf"
6830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6831
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6832
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6833
$as_echo_n "(cached) " >&6
6836
ac_cpp='$CPP $CPPFLAGS'
6837
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6838
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6841
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842
/* end confdefs.h. */
6852
if ac_fn_c_try_link "$LINENO"; then :
6853
lt_cv_cc_needs_belf=yes
6855
lt_cv_cc_needs_belf=no
6857
rm -f core conftest.err conftest.$ac_objext \
6858
conftest$ac_exeext conftest.$ac_ext
6860
ac_cpp='$CPP $CPPFLAGS'
6861
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6867
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6868
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6869
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6870
CFLAGS="$SAVE_CFLAGS"
6874
# Find out which ABI we are using.
6875
echo 'int i;' > conftest.$ac_ext
6876
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6877
(eval $ac_compile) 2>&5
6879
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6880
test $ac_status = 0; }; then
6881
case `/usr/bin/file conftest.o` in
6883
case $lt_cv_prog_gnu_ld in
6884
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6886
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6898
need_locks="$enable_libtool_lock"
6902
rhapsody* | darwin*)
6903
if test -n "$ac_tool_prefix"; then
6904
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6905
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907
$as_echo_n "checking for $ac_word... " >&6; }
6908
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6909
$as_echo_n "(cached) " >&6
6911
if test -n "$DSYMUTIL"; then
6912
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6914
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918
test -z "$as_dir" && as_dir=.
6919
for ac_exec_ext in '' $ac_executable_extensions; do
6920
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6922
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6932
if test -n "$DSYMUTIL"; then
6933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6934
$as_echo "$DSYMUTIL" >&6; }
6936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937
$as_echo "no" >&6; }
6942
if test -z "$ac_cv_prog_DSYMUTIL"; then
6943
ac_ct_DSYMUTIL=$DSYMUTIL
6944
# Extract the first word of "dsymutil", so it can be a program name with args.
6945
set dummy dsymutil; ac_word=$2
6946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947
$as_echo_n "checking for $ac_word... " >&6; }
6948
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6949
$as_echo_n "(cached) " >&6
6951
if test -n "$ac_ct_DSYMUTIL"; then
6952
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6954
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958
test -z "$as_dir" && as_dir=.
6959
for ac_exec_ext in '' $ac_executable_extensions; do
6960
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6962
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6972
if test -n "$ac_ct_DSYMUTIL"; then
6973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6974
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977
$as_echo "no" >&6; }
6980
if test "x$ac_ct_DSYMUTIL" = x; then
6983
case $cross_compiling:$ac_tool_warned in
6985
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987
ac_tool_warned=yes ;;
6989
DSYMUTIL=$ac_ct_DSYMUTIL
6992
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6995
if test -n "$ac_tool_prefix"; then
6996
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6997
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999
$as_echo_n "checking for $ac_word... " >&6; }
7000
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7001
$as_echo_n "(cached) " >&6
7003
if test -n "$NMEDIT"; then
7004
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7006
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010
test -z "$as_dir" && as_dir=.
7011
for ac_exec_ext in '' $ac_executable_extensions; do
7012
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7014
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023
NMEDIT=$ac_cv_prog_NMEDIT
7024
if test -n "$NMEDIT"; then
7025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7026
$as_echo "$NMEDIT" >&6; }
7028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029
$as_echo "no" >&6; }
7034
if test -z "$ac_cv_prog_NMEDIT"; then
7035
ac_ct_NMEDIT=$NMEDIT
7036
# Extract the first word of "nmedit", so it can be a program name with args.
7037
set dummy nmedit; ac_word=$2
7038
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039
$as_echo_n "checking for $ac_word... " >&6; }
7040
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7041
$as_echo_n "(cached) " >&6
7043
if test -n "$ac_ct_NMEDIT"; then
7044
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7046
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050
test -z "$as_dir" && as_dir=.
7051
for ac_exec_ext in '' $ac_executable_extensions; do
7052
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7053
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7054
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7064
if test -n "$ac_ct_NMEDIT"; then
7065
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7066
$as_echo "$ac_ct_NMEDIT" >&6; }
7068
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069
$as_echo "no" >&6; }
7072
if test "x$ac_ct_NMEDIT" = x; then
7075
case $cross_compiling:$ac_tool_warned in
7077
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079
ac_tool_warned=yes ;;
7081
NMEDIT=$ac_ct_NMEDIT
7084
NMEDIT="$ac_cv_prog_NMEDIT"
7087
if test -n "$ac_tool_prefix"; then
7088
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7089
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091
$as_echo_n "checking for $ac_word... " >&6; }
7092
if test "${ac_cv_prog_LIPO+set}" = set; then :
7093
$as_echo_n "(cached) " >&6
7095
if test -n "$LIPO"; then
7096
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7098
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102
test -z "$as_dir" && as_dir=.
7103
for ac_exec_ext in '' $ac_executable_extensions; do
7104
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7105
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7106
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115
LIPO=$ac_cv_prog_LIPO
7116
if test -n "$LIPO"; then
7117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7118
$as_echo "$LIPO" >&6; }
7120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121
$as_echo "no" >&6; }
7126
if test -z "$ac_cv_prog_LIPO"; then
7128
# Extract the first word of "lipo", so it can be a program name with args.
7129
set dummy lipo; ac_word=$2
7130
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131
$as_echo_n "checking for $ac_word... " >&6; }
7132
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7133
$as_echo_n "(cached) " >&6
7135
if test -n "$ac_ct_LIPO"; then
7136
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142
test -z "$as_dir" && as_dir=.
7143
for ac_exec_ext in '' $ac_executable_extensions; do
7144
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7145
ac_cv_prog_ac_ct_LIPO="lipo"
7146
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7156
if test -n "$ac_ct_LIPO"; then
7157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7158
$as_echo "$ac_ct_LIPO" >&6; }
7160
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161
$as_echo "no" >&6; }
7164
if test "x$ac_ct_LIPO" = x; then
7167
case $cross_compiling:$ac_tool_warned in
7169
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7170
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7171
ac_tool_warned=yes ;;
7176
LIPO="$ac_cv_prog_LIPO"
7179
if test -n "$ac_tool_prefix"; then
7180
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7181
set dummy ${ac_tool_prefix}otool; ac_word=$2
7182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183
$as_echo_n "checking for $ac_word... " >&6; }
7184
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7185
$as_echo_n "(cached) " >&6
7187
if test -n "$OTOOL"; then
7188
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194
test -z "$as_dir" && as_dir=.
7195
for ac_exec_ext in '' $ac_executable_extensions; do
7196
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7197
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7198
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207
OTOOL=$ac_cv_prog_OTOOL
7208
if test -n "$OTOOL"; then
7209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7210
$as_echo "$OTOOL" >&6; }
7212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213
$as_echo "no" >&6; }
7218
if test -z "$ac_cv_prog_OTOOL"; then
7220
# Extract the first word of "otool", so it can be a program name with args.
7221
set dummy otool; ac_word=$2
7222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223
$as_echo_n "checking for $ac_word... " >&6; }
7224
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7225
$as_echo_n "(cached) " >&6
7227
if test -n "$ac_ct_OTOOL"; then
7228
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234
test -z "$as_dir" && as_dir=.
7235
for ac_exec_ext in '' $ac_executable_extensions; do
7236
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7237
ac_cv_prog_ac_ct_OTOOL="otool"
7238
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7248
if test -n "$ac_ct_OTOOL"; then
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7250
$as_echo "$ac_ct_OTOOL" >&6; }
7252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253
$as_echo "no" >&6; }
7256
if test "x$ac_ct_OTOOL" = x; then
7259
case $cross_compiling:$ac_tool_warned in
7261
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263
ac_tool_warned=yes ;;
7268
OTOOL="$ac_cv_prog_OTOOL"
7271
if test -n "$ac_tool_prefix"; then
7272
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7273
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275
$as_echo_n "checking for $ac_word... " >&6; }
7276
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7277
$as_echo_n "(cached) " >&6
7279
if test -n "$OTOOL64"; then
7280
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7282
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286
test -z "$as_dir" && as_dir=.
7287
for ac_exec_ext in '' $ac_executable_extensions; do
7288
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7289
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7290
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299
OTOOL64=$ac_cv_prog_OTOOL64
7300
if test -n "$OTOOL64"; then
7301
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7302
$as_echo "$OTOOL64" >&6; }
7304
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305
$as_echo "no" >&6; }
7310
if test -z "$ac_cv_prog_OTOOL64"; then
7311
ac_ct_OTOOL64=$OTOOL64
7312
# Extract the first word of "otool64", so it can be a program name with args.
7313
set dummy otool64; ac_word=$2
7314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315
$as_echo_n "checking for $ac_word... " >&6; }
7316
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7317
$as_echo_n "(cached) " >&6
7319
if test -n "$ac_ct_OTOOL64"; then
7320
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7322
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326
test -z "$as_dir" && as_dir=.
7327
for ac_exec_ext in '' $ac_executable_extensions; do
7328
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7329
ac_cv_prog_ac_ct_OTOOL64="otool64"
7330
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7340
if test -n "$ac_ct_OTOOL64"; then
7341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7342
$as_echo "$ac_ct_OTOOL64" >&6; }
7344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345
$as_echo "no" >&6; }
7348
if test "x$ac_ct_OTOOL64" = x; then
7351
case $cross_compiling:$ac_tool_warned in
7353
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7354
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7355
ac_tool_warned=yes ;;
7357
OTOOL64=$ac_ct_OTOOL64
7360
OTOOL64="$ac_cv_prog_OTOOL64"
7389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7390
$as_echo_n "checking for -single_module linker flag... " >&6; }
7391
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7392
$as_echo_n "(cached) " >&6
7394
lt_cv_apple_cc_single_mod=no
7395
if test -z "${LT_MULTI_MODULE}"; then
7396
# By default we will add the -single_module flag. You can override
7397
# by either setting the environment variable LT_MULTI_MODULE
7398
# non-empty at configure time, or by adding -multi_module to the
7400
rm -rf libconftest.dylib*
7401
echo "int foo(void){return 1;}" > conftest.c
7402
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7403
-dynamiclib -Wl,-single_module conftest.c" >&5
7404
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7405
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7407
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7408
lt_cv_apple_cc_single_mod=yes
7410
cat conftest.err >&5
7412
rm -rf libconftest.dylib*
7416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7417
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7419
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7420
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7421
$as_echo_n "(cached) " >&6
7423
lt_cv_ld_exported_symbols_list=no
7424
save_LDFLAGS=$LDFLAGS
7425
echo "_main" > conftest.sym
7426
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7427
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428
/* end confdefs.h. */
7438
if ac_fn_c_try_link "$LINENO"; then :
7439
lt_cv_ld_exported_symbols_list=yes
7441
lt_cv_ld_exported_symbols_list=no
7443
rm -f core conftest.err conftest.$ac_objext \
7444
conftest$ac_exeext conftest.$ac_ext
7445
LDFLAGS="$save_LDFLAGS"
7448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7449
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7451
rhapsody* | darwin1.[012])
7452
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7454
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7455
darwin*) # darwin 5.x on
7456
# if running on 10.5 or later, the deployment target defaults
7457
# to the OS version, if on x86, and 10.4, the deployment
7458
# target defaults to 10.4. Don't you love it?
7459
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7460
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7461
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7463
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7465
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7469
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7470
_lt_dar_single_mod='$single_module'
7472
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7473
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7475
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7477
if test "$DSYMUTIL" != ":"; then
7478
_lt_dsymutil='~$DSYMUTIL $lib || :'
7485
for ac_header in dlfcn.h
7487
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7489
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7490
cat >>confdefs.h <<_ACEOF
7491
#define HAVE_DLFCN_H 1
7508
# Check whether --enable-shared was given.
7509
if test "${enable_shared+set}" = set; then :
7510
enableval=$enable_shared; p=${PACKAGE-default}
7512
yes) enable_shared=yes ;;
7513
no) enable_shared=no ;;
7516
# Look at the argument we got. We use all the common list separators.
7517
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7518
for pkg in $enableval; do
7520
if test "X$pkg" = "X$p"; then
7539
# Check whether --enable-static was given.
7540
if test "${enable_static+set}" = set; then :
7541
enableval=$enable_static; p=${PACKAGE-default}
7543
yes) enable_static=yes ;;
7544
no) enable_static=no ;;
7547
# Look at the argument we got. We use all the common list separators.
7548
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7549
for pkg in $enableval; do
7551
if test "X$pkg" = "X$p"; then
7571
# Check whether --with-pic was given.
7572
if test "${with_pic+set}" = set; then :
7573
withval=$with_pic; pic_mode="$withval"
7579
test -z "$pic_mode" && pic_mode=default
7587
# Check whether --enable-fast-install was given.
7588
if test "${enable_fast_install+set}" = set; then :
7589
enableval=$enable_fast_install; p=${PACKAGE-default}
7591
yes) enable_fast_install=yes ;;
7592
no) enable_fast_install=no ;;
7594
enable_fast_install=no
7595
# Look at the argument we got. We use all the common list separators.
7596
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7597
for pkg in $enableval; do
7599
if test "X$pkg" = "X$p"; then
7600
enable_fast_install=yes
7607
enable_fast_install=yes
7620
# This can be used to rebuild libtool when needed
7621
LIBTOOL_DEPS="$ltmain"
7623
# Always use our own libtool.
7624
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7650
test -z "$LN_S" && LN_S="ln -s"
7665
if test -n "${ZSH_VERSION+set}" ; then
7666
setopt NO_GLOB_SUBST
7669
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7670
$as_echo_n "checking for objdir... " >&6; }
7671
if test "${lt_cv_objdir+set}" = set; then :
7672
$as_echo_n "(cached) " >&6
7674
rm -f .libs 2>/dev/null
7675
mkdir .libs 2>/dev/null
7676
if test -d .libs; then
7679
# MS-DOS does not allow filenames that begin with a dot.
7682
rmdir .libs 2>/dev/null
7684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7685
$as_echo "$lt_cv_objdir" >&6; }
7686
objdir=$lt_cv_objdir
7692
cat >>confdefs.h <<_ACEOF
7693
#define LT_OBJDIR "$lt_cv_objdir/"
7714
# AIX sometimes has problems with the GCC collect2 program. For some
7715
# reason, if we set the COLLECT_NAMES environment variable, the problems
7716
# vanish in a puff of smoke.
7717
if test "X${COLLECT_NAMES+set}" != Xset; then
7719
export COLLECT_NAMES
7724
# Sed substitution that helps us do robust quoting. It backslashifies
7725
# metacharacters that are still active within double-quoted strings.
7726
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7728
# Same as above, but do not quote variable references.
7729
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7731
# Sed substitution to delay expansion of an escaped shell variable in a
7732
# double_quote_subst'ed string.
7733
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7735
# Sed substitution to delay expansion of an escaped single quote.
7736
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7738
# Sed substitution to avoid accidental globbing in evaled expressions
7739
no_glob_subst='s/\*/\\\*/g'
7743
can_build_shared=yes
7745
# All known linkers require a `.a' archive for static linking (except MSVC,
7746
# which needs '.lib').
7749
with_gnu_ld="$lt_cv_prog_gnu_ld"
7752
old_CFLAGS="$CFLAGS"
7754
# Set sane defaults for various variables
7755
test -z "$CC" && CC=cc
7756
test -z "$LTCC" && LTCC=$CC
7757
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7758
test -z "$LD" && LD=ld
7759
test -z "$ac_objext" && ac_objext=o
7761
for cc_temp in $compiler""; do
7763
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7764
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7769
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7772
# Only perform the check for file, if the check method requires it
7773
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7774
case $deplibs_check_method in
7776
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7778
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7779
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7780
$as_echo_n "(cached) " >&6
7784
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7787
lt_save_MAGIC_CMD="$MAGIC_CMD"
7788
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7789
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7790
for ac_dir in $ac_dummy; do
7792
test -z "$ac_dir" && ac_dir=.
7793
if test -f $ac_dir/${ac_tool_prefix}file; then
7794
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7795
if test -n "$file_magic_test_file"; then
7796
case $deplibs_check_method in
7798
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7799
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7800
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7801
$EGREP "$file_magic_regex" > /dev/null; then
7806
*** Warning: the command libtool uses to detect shared libraries,
7807
*** $file_magic_cmd, produces output that libtool cannot recognize.
7808
*** The result is that libtool may fail to recognize shared libraries
7809
*** as such. This will affect the creation of libtool libraries that
7810
*** depend on shared libraries, but programs linked with such libtool
7811
*** libraries will work regardless of this problem. Nevertheless, you
7812
*** may want to report the problem to your system manager and/or to
7813
*** bug-libtool@gnu.org
7823
MAGIC_CMD="$lt_save_MAGIC_CMD"
7828
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7829
if test -n "$MAGIC_CMD"; then
7830
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7831
$as_echo "$MAGIC_CMD" >&6; }
7833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834
$as_echo "no" >&6; }
7841
if test -z "$lt_cv_path_MAGIC_CMD"; then
7842
if test -n "$ac_tool_prefix"; then
7843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7844
$as_echo_n "checking for file... " >&6; }
7845
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7846
$as_echo_n "(cached) " >&6
7850
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7853
lt_save_MAGIC_CMD="$MAGIC_CMD"
7854
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7855
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7856
for ac_dir in $ac_dummy; do
7858
test -z "$ac_dir" && ac_dir=.
7859
if test -f $ac_dir/file; then
7860
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7861
if test -n "$file_magic_test_file"; then
7862
case $deplibs_check_method in
7864
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7865
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7866
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7867
$EGREP "$file_magic_regex" > /dev/null; then
7872
*** Warning: the command libtool uses to detect shared libraries,
7873
*** $file_magic_cmd, produces output that libtool cannot recognize.
7874
*** The result is that libtool may fail to recognize shared libraries
7875
*** as such. This will affect the creation of libtool libraries that
7876
*** depend on shared libraries, but programs linked with such libtool
7877
*** libraries will work regardless of this problem. Nevertheless, you
7878
*** may want to report the problem to your system manager and/or to
7879
*** bug-libtool@gnu.org
7889
MAGIC_CMD="$lt_save_MAGIC_CMD"
7894
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7895
if test -n "$MAGIC_CMD"; then
7896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7897
$as_echo "$MAGIC_CMD" >&6; }
7899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900
$as_echo "no" >&6; }
7913
# Use C for the default configuration in the libtool script
7917
ac_cpp='$CPP $CPPFLAGS'
7918
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7923
# Source file extension for C test sources.
7926
# Object file extension for compiled C test sources.
7930
# Code to be used in simple compile tests
7931
lt_simple_compile_test_code="int some_variable = 0;"
7933
# Code to be used in simple link tests
7934
lt_simple_link_test_code='int main(){return(0);}'
7942
# If no C compiler was specified, use CC.
7945
# If no C compiler flags were specified, use CFLAGS.
7946
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7948
# Allow CC to be a program name with arguments.
7951
# Save the default compiler, since it gets overwritten when the other
7952
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7953
compiler_DEFAULT=$CC
7955
# save warnings/boilerplate of simple test code
7956
ac_outfile=conftest.$ac_objext
7957
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7958
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7959
_lt_compiler_boilerplate=`cat conftest.err`
7962
ac_outfile=conftest.$ac_objext
7963
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7964
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7965
_lt_linker_boilerplate=`cat conftest.err`
7970
## There is no encapsulation within the following macros, do not change
7971
## the running order or otherwise move them around unless you know exactly
7972
## what you are doing...
7973
if test -n "$compiler"; then
7975
lt_prog_compiler_no_builtin_flag=
7977
if test "$GCC" = yes; then
7978
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7981
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7982
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7983
$as_echo_n "(cached) " >&6
7985
lt_cv_prog_compiler_rtti_exceptions=no
7986
ac_outfile=conftest.$ac_objext
7987
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7988
lt_compiler_flag="-fno-rtti -fno-exceptions"
7989
# Insert the option either (1) after the last *FLAGS variable, or
7990
# (2) before a word containing "conftest.", or (3) at the end.
7991
# Note that $ac_compile itself does not contain backslashes and begins
7992
# with a dollar sign (not a hyphen), so the echo should work correctly.
7993
# The option is referenced via a variable to avoid confusing sed.
7994
lt_compile=`echo "$ac_compile" | $SED \
7995
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7996
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7997
-e 's:$: $lt_compiler_flag:'`
7998
(eval echo "\"\$as_me:7998: $lt_compile\"" >&5)
7999
(eval "$lt_compile" 2>conftest.err)
8001
cat conftest.err >&5
8002
echo "$as_me:8002: \$? = $ac_status" >&5
8003
if (exit $ac_status) && test -s "$ac_outfile"; then
8004
# The compiler can only warn and ignore the option if not recognized
8005
# So say no if there are warnings other than the usual output.
8006
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8007
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8008
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8009
lt_cv_prog_compiler_rtti_exceptions=yes
8015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8016
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8018
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8019
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8031
lt_prog_compiler_wl=
8032
lt_prog_compiler_pic=
8033
lt_prog_compiler_static=
8035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8036
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8038
if test "$GCC" = yes; then
8039
lt_prog_compiler_wl='-Wl,'
8040
lt_prog_compiler_static='-static'
8044
# All AIX code is PIC.
8045
if test "$host_cpu" = ia64; then
8046
# AIX 5 now supports IA64 processor
8047
lt_prog_compiler_static='-Bstatic'
8054
# see comment about AmigaOS4 .so support
8055
lt_prog_compiler_pic='-fPIC'
8058
# FIXME: we need at least 68020 code to build shared libraries, but
8059
# adding the `-m68020' flag to GCC prevents building anything better,
8061
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8066
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8067
# PIC is the default for these OSes.
8070
mingw* | cygwin* | pw32* | os2* | cegcc*)
8071
# This hack is so that the source file can tell whether it is being
8072
# built for inclusion in a dll (and should export symbols for example).
8073
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8074
# (--disable-auto-import) libraries
8075
lt_prog_compiler_pic='-DDLL_EXPORT'
8078
darwin* | rhapsody*)
8079
# PIC is the default on this platform
8080
# Common symbols not allowed in MH_DYLIB files
8081
lt_prog_compiler_pic='-fno-common'
8085
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8086
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8087
# sets the default TLS model and affects inlining.
8093
lt_prog_compiler_pic='-fPIC'
8099
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8100
# Instead, we relocate shared libraries at runtime.
8104
# Just because we use GCC doesn't mean we suddenly get shared libraries
8105
# on systems that don't support them.
8106
lt_prog_compiler_can_build_shared=no
8111
# QNX uses GNU C++, but need to define -shared option too, otherwise
8113
lt_prog_compiler_pic='-fPIC -shared'
8117
if test -d /usr/nec; then
8118
lt_prog_compiler_pic=-Kconform_pic
8123
lt_prog_compiler_pic='-fPIC'
8127
# PORTME Check for flag to pass linker flags through the system compiler.
8130
lt_prog_compiler_wl='-Wl,'
8131
if test "$host_cpu" = ia64; then
8132
# AIX 5 now supports IA64 processor
8133
lt_prog_compiler_static='-Bstatic'
8135
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8139
mingw* | cygwin* | pw32* | os2* | cegcc*)
8140
# This hack is so that the source file can tell whether it is being
8141
# built for inclusion in a dll (and should export symbols for example).
8142
lt_prog_compiler_pic='-DDLL_EXPORT'
8145
hpux9* | hpux10* | hpux11*)
8146
lt_prog_compiler_wl='-Wl,'
8147
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8154
lt_prog_compiler_pic='+Z'
8157
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8158
lt_prog_compiler_static='${wl}-a ${wl}archive'
8161
irix5* | irix6* | nonstopux*)
8162
lt_prog_compiler_wl='-Wl,'
8163
# PIC (with -KPIC) is the default.
8164
lt_prog_compiler_static='-non_shared'
8167
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8168
case $cc_basename in
8169
# old Intel for x86_64 which still supported -KPIC.
8171
lt_prog_compiler_wl='-Wl,'
8172
lt_prog_compiler_pic='-KPIC'
8173
lt_prog_compiler_static='-static'
8175
# icc used to be incompatible with GCC.
8176
# ICC 10 doesn't accept -KPIC any more.
8178
lt_prog_compiler_wl='-Wl,'
8179
lt_prog_compiler_pic='-fPIC'
8180
lt_prog_compiler_static='-static'
8182
# Lahey Fortran 8.1.
8184
lt_prog_compiler_wl='-Wl,'
8185
lt_prog_compiler_pic='--shared'
8186
lt_prog_compiler_static='--static'
8188
pgcc* | pgf77* | pgf90* | pgf95*)
8189
# Portland Group compilers (*not* the Pentium gcc compiler,
8190
# which looks to be a dead project)
8191
lt_prog_compiler_wl='-Wl,'
8192
lt_prog_compiler_pic='-fpic'
8193
lt_prog_compiler_static='-Bstatic'
8196
lt_prog_compiler_wl='-Wl,'
8197
# All Alpha code is PIC.
8198
lt_prog_compiler_static='-non_shared'
8201
# IBM XL C 8.0/Fortran 10.1 on PPC
8202
lt_prog_compiler_wl='-Wl,'
8203
lt_prog_compiler_pic='-qpic'
8204
lt_prog_compiler_static='-qstaticlink'
8207
case `$CC -V 2>&1 | sed 5q` in
8210
lt_prog_compiler_pic='-KPIC'
8211
lt_prog_compiler_static='-Bstatic'
8212
lt_prog_compiler_wl='-Wl,'
8215
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8216
lt_prog_compiler_pic='-KPIC'
8217
lt_prog_compiler_static='-Bstatic'
8218
lt_prog_compiler_wl=''
8226
lt_prog_compiler_pic='-KPIC'
8227
lt_prog_compiler_static='-Bstatic'
8231
# QNX uses GNU C++, but need to define -shared option too, otherwise
8233
lt_prog_compiler_pic='-fPIC -shared'
8236
osf3* | osf4* | osf5*)
8237
lt_prog_compiler_wl='-Wl,'
8238
# All OSF/1 code is PIC.
8239
lt_prog_compiler_static='-non_shared'
8243
lt_prog_compiler_static='-non_shared'
8247
lt_prog_compiler_pic='-KPIC'
8248
lt_prog_compiler_static='-Bstatic'
8249
case $cc_basename in
8251
lt_prog_compiler_wl='-Qoption ld ';;
8253
lt_prog_compiler_wl='-Wl,';;
8258
lt_prog_compiler_wl='-Qoption ld '
8259
lt_prog_compiler_pic='-PIC'
8260
lt_prog_compiler_static='-Bstatic'
8263
sysv4 | sysv4.2uw2* | sysv4.3*)
8264
lt_prog_compiler_wl='-Wl,'
8265
lt_prog_compiler_pic='-KPIC'
8266
lt_prog_compiler_static='-Bstatic'
8270
if test -d /usr/nec ;then
8271
lt_prog_compiler_pic='-Kconform_pic'
8272
lt_prog_compiler_static='-Bstatic'
8276
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8277
lt_prog_compiler_wl='-Wl,'
8278
lt_prog_compiler_pic='-KPIC'
8279
lt_prog_compiler_static='-Bstatic'
8283
lt_prog_compiler_wl='-Wl,'
8284
lt_prog_compiler_can_build_shared=no
8288
lt_prog_compiler_pic='-pic'
8289
lt_prog_compiler_static='-Bstatic'
8293
lt_prog_compiler_can_build_shared=no
8299
# For platforms which do not support PIC, -DPIC is meaningless:
8301
lt_prog_compiler_pic=
8304
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8308
$as_echo "$lt_prog_compiler_pic" >&6; }
8316
# Check to make sure the PIC flag actually works.
8318
if test -n "$lt_prog_compiler_pic"; then
8319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8320
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8321
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8322
$as_echo_n "(cached) " >&6
8324
lt_cv_prog_compiler_pic_works=no
8325
ac_outfile=conftest.$ac_objext
8326
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8327
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8328
# Insert the option either (1) after the last *FLAGS variable, or
8329
# (2) before a word containing "conftest.", or (3) at the end.
8330
# Note that $ac_compile itself does not contain backslashes and begins
8331
# with a dollar sign (not a hyphen), so the echo should work correctly.
8332
# The option is referenced via a variable to avoid confusing sed.
8333
lt_compile=`echo "$ac_compile" | $SED \
8334
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8335
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8336
-e 's:$: $lt_compiler_flag:'`
8337
(eval echo "\"\$as_me:8337: $lt_compile\"" >&5)
8338
(eval "$lt_compile" 2>conftest.err)
8340
cat conftest.err >&5
8341
echo "$as_me:8341: \$? = $ac_status" >&5
8342
if (exit $ac_status) && test -s "$ac_outfile"; then
8343
# The compiler can only warn and ignore the option if not recognized
8344
# So say no if there are warnings other than the usual output.
8345
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8346
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8347
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8348
lt_cv_prog_compiler_pic_works=yes
8354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8355
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8357
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8358
case $lt_prog_compiler_pic in
8360
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8363
lt_prog_compiler_pic=
8364
lt_prog_compiler_can_build_shared=no
8375
# Check to make sure the static flag actually works.
8377
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8379
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8380
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8381
$as_echo_n "(cached) " >&6
8383
lt_cv_prog_compiler_static_works=no
8384
save_LDFLAGS="$LDFLAGS"
8385
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8386
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8387
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8388
# The linker can only warn and ignore the option if not recognized
8389
# So say no if there are warnings
8390
if test -s conftest.err; then
8391
# Append any errors to the config.log.
8392
cat conftest.err 1>&5
8393
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8394
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8395
if diff conftest.exp conftest.er2 >/dev/null; then
8396
lt_cv_prog_compiler_static_works=yes
8399
lt_cv_prog_compiler_static_works=yes
8403
LDFLAGS="$save_LDFLAGS"
8406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8407
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8409
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8412
lt_prog_compiler_static=
8421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8422
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8423
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8424
$as_echo_n "(cached) " >&6
8426
lt_cv_prog_compiler_c_o=no
8427
$RM -r conftest 2>/dev/null
8431
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8433
lt_compiler_flag="-o out/conftest2.$ac_objext"
8434
# Insert the option either (1) after the last *FLAGS variable, or
8435
# (2) before a word containing "conftest.", or (3) at the end.
8436
# Note that $ac_compile itself does not contain backslashes and begins
8437
# with a dollar sign (not a hyphen), so the echo should work correctly.
8438
lt_compile=`echo "$ac_compile" | $SED \
8439
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8440
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8441
-e 's:$: $lt_compiler_flag:'`
8442
(eval echo "\"\$as_me:8442: $lt_compile\"" >&5)
8443
(eval "$lt_compile" 2>out/conftest.err)
8445
cat out/conftest.err >&5
8446
echo "$as_me:8446: \$? = $ac_status" >&5
8447
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8449
# The compiler can only warn and ignore the option if not recognized
8450
# So say no if there are warnings
8451
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8452
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8453
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8454
lt_cv_prog_compiler_c_o=yes
8459
# SGI C++ compiler will create directory out/ii_files/ for
8460
# template instantiation
8461
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8462
$RM out/* && rmdir out
8468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8469
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8476
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8477
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8478
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8479
$as_echo_n "(cached) " >&6
8481
lt_cv_prog_compiler_c_o=no
8482
$RM -r conftest 2>/dev/null
8486
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8488
lt_compiler_flag="-o out/conftest2.$ac_objext"
8489
# Insert the option either (1) after the last *FLAGS variable, or
8490
# (2) before a word containing "conftest.", or (3) at the end.
8491
# Note that $ac_compile itself does not contain backslashes and begins
8492
# with a dollar sign (not a hyphen), so the echo should work correctly.
8493
lt_compile=`echo "$ac_compile" | $SED \
8494
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8495
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8496
-e 's:$: $lt_compiler_flag:'`
8497
(eval echo "\"\$as_me:8497: $lt_compile\"" >&5)
8498
(eval "$lt_compile" 2>out/conftest.err)
8500
cat out/conftest.err >&5
8501
echo "$as_me:8501: \$? = $ac_status" >&5
8502
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8504
# The compiler can only warn and ignore the option if not recognized
8505
# So say no if there are warnings
8506
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8507
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8508
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8509
lt_cv_prog_compiler_c_o=yes
8514
# SGI C++ compiler will create directory out/ii_files/ for
8515
# template instantiation
8516
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8517
$RM out/* && rmdir out
8523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8524
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8529
hard_links="nottested"
8530
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8531
# do not overwrite the value of need_locks provided by the user
8532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8533
$as_echo_n "checking if we can lock with hard links... " >&6; }
8536
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8538
ln conftest.a conftest.b 2>&5 || hard_links=no
8539
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8541
$as_echo "$hard_links" >&6; }
8542
if test "$hard_links" = no; then
8543
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8544
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8557
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8560
allow_undefined_flag=
8561
always_export_symbols=no
8563
archive_expsym_cmds=
8564
compiler_needs_object=no
8565
enable_shared_with_static_runtimes=no
8566
export_dynamic_flag_spec=
8567
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8568
hardcode_automatic=no
8570
hardcode_direct_absolute=no
8571
hardcode_libdir_flag_spec=
8572
hardcode_libdir_flag_spec_ld=
8573
hardcode_libdir_separator=
8575
hardcode_shlibpath_var=unsupported
8577
link_all_deplibs=unknown
8580
old_archive_from_new_cmds=
8581
old_archive_from_expsyms_cmds=
8582
thread_safe_flag_spec=
8583
whole_archive_flag_spec=
8584
# include_expsyms should be a list of space-separated symbols to be *always*
8585
# included in the symbol list
8587
# exclude_expsyms can be an extended regexp of symbols to exclude
8588
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8589
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8590
# as well as any symbol that contains `d'.
8591
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8592
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8593
# platforms (ab)use it in PIC code, but their linkers get confused if
8594
# the symbol is explicitly referenced. Since portable code cannot
8595
# rely on this symbol name, it's probably fine to never include it in
8596
# preloaded symbol tables.
8597
# Exclude shared library initialization/finalization symbols.
8598
extract_expsyms_cmds=
8601
cygwin* | mingw* | pw32* | cegcc*)
8602
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8603
# When not using gcc, we currently assume that we are using
8604
# Microsoft Visual C++.
8605
if test "$GCC" != yes; then
8610
# we just hope/assume this is gcc and not c89 (= MSVC++)
8616
linux* | k*bsd*-gnu)
8622
if test "$with_gnu_ld" = yes; then
8623
# If archive_cmds runs LD, not CC, wlarc should be empty
8626
# Set some defaults for GNU ld with shared library support. These
8627
# are reset later if shared libraries are not supported. Putting them
8628
# here allows them to be overridden if necessary.
8629
runpath_var=LD_RUN_PATH
8630
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8631
export_dynamic_flag_spec='${wl}--export-dynamic'
8632
# ancient GNU ld didn't support --whole-archive et. al.
8633
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8634
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8636
whole_archive_flag_spec=
8638
supports_anon_versioning=no
8639
case `$LD -v 2>&1` in
8640
*GNU\ gold*) supports_anon_versioning=yes ;;
8641
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8642
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8643
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8644
*\ 2.11.*) ;; # other 2.11 versions
8645
*) supports_anon_versioning=yes ;;
8648
# See if GNU ld supports shared libraries.
8651
# On AIX/PPC, the GNU linker is very broken
8652
if test "$host_cpu" != ia64; then
8656
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8657
*** to be unable to reliably create shared libraries on AIX.
8658
*** Therefore, libtool is disabling shared libraries support. If you
8659
*** really care for shared libraries, you may want to modify your PATH
8660
*** so that a non-GNU linker is found, and then restart.
8669
# see comment about AmigaOS4 .so support
8670
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8671
archive_expsym_cmds=''
8674
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)'
8675
hardcode_libdir_flag_spec='-L$libdir'
8676
hardcode_minus_L=yes
8682
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8683
allow_undefined_flag=unsupported
8684
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8685
# support --undefined. This deserves some investigation. FIXME
8686
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692
cygwin* | mingw* | pw32* | cegcc*)
8693
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8694
# as there is no search path for DLLs.
8695
hardcode_libdir_flag_spec='-L$libdir'
8696
allow_undefined_flag=unsupported
8697
always_export_symbols=no
8698
enable_shared_with_static_runtimes=yes
8699
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8701
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8702
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8703
# If the export-symbols file already is a .def file (1st line
8704
# is EXPORTS), use it as is; otherwise, prepend...
8705
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8706
cp $export_symbols $output_objdir/$soname.def;
8708
echo EXPORTS > $output_objdir/$soname.def;
8709
cat $export_symbols >> $output_objdir/$soname.def;
8711
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8719
hardcode_shlibpath_var=no
8720
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8721
export_dynamic_flag_spec='${wl}-E'
8722
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8723
# Instead, shared libraries are loaded at an image base (0x10000000 by
8724
# default) and relocated if they conflict, which is a slow very memory
8725
# consuming and fragmenting process. To avoid this, we pick a random,
8726
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8727
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8728
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8729
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'
8732
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8734
if test "$host_os" = linux-dietlibc; then
8735
case $cc_basename in
8736
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8739
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8740
&& test "$tmp_diet" = no
8743
tmp_sharedflag='-shared'
8744
case $cc_basename,$host_cpu in
8745
pgcc*) # Portland Group C compiler
8746
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'
8747
tmp_addflag=' $pic_flag'
8749
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8750
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'
8751
tmp_addflag=' $pic_flag -Mnomain' ;;
8752
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8753
tmp_addflag=' -i_dynamic' ;;
8754
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8755
tmp_addflag=' -i_dynamic -nofor_main' ;;
8756
ifc* | ifort*) # Intel Fortran compiler
8757
tmp_addflag=' -nofor_main' ;;
8758
lf95*) # Lahey Fortran 8.1
8759
whole_archive_flag_spec=
8760
tmp_sharedflag='--shared' ;;
8761
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8762
tmp_sharedflag='-qmkshrobj'
8765
case `$CC -V 2>&1 | sed 5q` in
8766
*Sun\ C*) # Sun C 5.9
8767
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'
8768
compiler_needs_object=yes
8769
tmp_sharedflag='-G' ;;
8770
*Sun\ F*) # Sun Fortran 8.3
8771
tmp_sharedflag='-G' ;;
8773
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775
if test "x$supports_anon_versioning" = xyes; then
8776
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8777
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8778
echo "local: *; };" >> $output_objdir/$libname.ver~
8779
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8782
case $cc_basename in
8784
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8785
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8786
hardcode_libdir_flag_spec=
8787
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8788
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8789
if test "x$supports_anon_versioning" = xyes; then
8790
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8791
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8792
echo "local: *; };" >> $output_objdir/$libname.ver~
8793
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8802
netbsd* | netbsdelf*-gnu)
8803
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8804
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8807
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8808
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8813
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8817
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8818
*** create shared libraries on Solaris systems. Therefore, libtool
8819
*** is disabling shared libraries support. We urge you to upgrade GNU
8820
*** binutils to release 2.9.1 or newer. Another option is to modify
8821
*** your PATH or compiler configuration so that the native linker is
8822
*** used, and then restart.
8825
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8826
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8833
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8834
case `$LD -v 2>&1` in
8835
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8839
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8840
*** reliably create shared libraries on SCO systems. Therefore, libtool
8841
*** is disabling shared libraries support. We urge you to upgrade GNU
8842
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8843
*** your PATH or compiler configuration so that the native linker is
8844
*** used, and then restart.
8849
# For security reasons, it is highly recommended that you always
8850
# use absolute paths for naming shared libraries, and exclude the
8851
# DT_RUNPATH tag from executables and libraries. But doing so
8852
# requires that you compile everything twice, which is a pain.
8853
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8854
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8855
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8856
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8865
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8868
hardcode_shlibpath_var=no
8872
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8873
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8881
if test "$ld_shlibs" = no; then
8883
hardcode_libdir_flag_spec=
8884
export_dynamic_flag_spec=
8885
whole_archive_flag_spec=
8888
# PORTME fill in a description of your system's linker (not GNU ld)
8891
allow_undefined_flag=unsupported
8892
always_export_symbols=yes
8893
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'
8894
# Note: this linker hardcodes the directories in LIBPATH if there
8895
# are no directories specified by -L.
8896
hardcode_minus_L=yes
8897
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8898
# Neither direct hardcoding nor static linking is supported with a
8900
hardcode_direct=unsupported
8905
if test "$host_cpu" = ia64; then
8906
# On IA64, the linker does run time linking by default, so we don't
8907
# have to do anything special.
8908
aix_use_runtimelinking=no
8909
exp_sym_flag='-Bexport'
8912
# If we're using GNU nm, then we don't want the "-C" option.
8913
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8914
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8915
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'
8917
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'
8919
aix_use_runtimelinking=no
8921
# Test if we are trying to use run time linking or normal
8922
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8923
# need to do runtime linking.
8924
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8925
for ld_flag in $LDFLAGS; do
8926
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8927
aix_use_runtimelinking=yes
8934
exp_sym_flag='-bexport'
8935
no_entry_flag='-bnoentry'
8938
# When large executables or shared objects are built, AIX ld can
8939
# have problems creating the table of contents. If linking a library
8940
# or program results in "error TOC overflow" add -mminimal-toc to
8941
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8942
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8946
hardcode_direct_absolute=yes
8947
hardcode_libdir_separator=':'
8948
link_all_deplibs=yes
8949
file_list_spec='${wl}-f,'
8951
if test "$GCC" = yes; then
8952
case $host_os in aix4.[012]|aix4.[012].*)
8953
# We only want to do this on AIX 4.2 and lower, the check
8954
# below for broken collect2 doesn't work under 4.3+
8955
collect2name=`${CC} -print-prog-name=collect2`
8956
if test -f "$collect2name" &&
8957
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8959
# We have reworked collect2
8962
# We have old collect2
8963
hardcode_direct=unsupported
8964
# It fails to find uninstalled libraries when the uninstalled
8965
# path is not listed in the libpath. Setting hardcode_minus_L
8966
# to unsupported forces relinking
8967
hardcode_minus_L=yes
8968
hardcode_libdir_flag_spec='-L$libdir'
8969
hardcode_libdir_separator=
8973
shared_flag='-shared'
8974
if test "$aix_use_runtimelinking" = yes; then
8975
shared_flag="$shared_flag "'${wl}-G'
8980
if test "$host_cpu" = ia64; then
8981
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8982
# chokes on -Wl,-G. The following line is correct:
8985
if test "$aix_use_runtimelinking" = yes; then
8986
shared_flag='${wl}-G'
8988
shared_flag='${wl}-bM:SRE'
8993
export_dynamic_flag_spec='${wl}-bexpall'
8994
# It seems that -bexpall does not export symbols beginning with
8995
# underscore (_), so it is better to generate a list of symbols to export.
8996
always_export_symbols=yes
8997
if test "$aix_use_runtimelinking" = yes; then
8998
# Warning - without using the other runtime loading flags (-brtl),
8999
# -berok will link without error, but may produce a broken library.
9000
allow_undefined_flag='-berok'
9001
# Determine the default libpath from the value encoded in an
9003
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004
/* end confdefs.h. */
9014
if ac_fn_c_try_link "$LINENO"; then :
9016
lt_aix_libpath_sed='
9017
/Import File Strings/,/^$/ {
9023
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9024
# Check for a 64-bit object if we didn't find anything.
9025
if test -z "$aix_libpath"; then
9026
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9029
rm -f core conftest.err conftest.$ac_objext \
9030
conftest$ac_exeext conftest.$ac_ext
9031
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9033
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9034
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"
9036
if test "$host_cpu" = ia64; then
9037
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9038
allow_undefined_flag="-z nodefs"
9039
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"
9041
# Determine the default libpath from the value encoded in an
9043
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044
/* end confdefs.h. */
9054
if ac_fn_c_try_link "$LINENO"; then :
9056
lt_aix_libpath_sed='
9057
/Import File Strings/,/^$/ {
9063
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9064
# Check for a 64-bit object if we didn't find anything.
9065
if test -z "$aix_libpath"; then
9066
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9069
rm -f core conftest.err conftest.$ac_objext \
9070
conftest$ac_exeext conftest.$ac_ext
9071
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9073
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9074
# Warning - without using the other run time loading flags,
9075
# -berok will link without error, but may produce a broken library.
9076
no_undefined_flag=' ${wl}-bernotok'
9077
allow_undefined_flag=' ${wl}-berok'
9078
# Exported symbols can be pulled into shared objects from archives
9079
whole_archive_flag_spec='$convenience'
9080
archive_cmds_need_lc=yes
9081
# This is similar to how AIX traditionally builds its shared libraries.
9082
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'
9090
# see comment about AmigaOS4 .so support
9091
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9092
archive_expsym_cmds=''
9095
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)'
9096
hardcode_libdir_flag_spec='-L$libdir'
9097
hardcode_minus_L=yes
9103
export_dynamic_flag_spec=-rdynamic
9106
cygwin* | mingw* | pw32* | cegcc*)
9107
# When not using gcc, we currently assume that we are using
9108
# Microsoft Visual C++.
9109
# hardcode_libdir_flag_spec is actually meaningless, as there is
9110
# no search path for DLLs.
9111
hardcode_libdir_flag_spec=' '
9112
allow_undefined_flag=unsupported
9113
# Tell ltmain to make .lib files, not .a files.
9115
# Tell ltmain to make .dll files, not .so files.
9117
# FIXME: Setting linknames here is a bad hack.
9118
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9119
# The linker will automatically build a .lib file if we build a DLL.
9120
old_archive_from_new_cmds='true'
9121
# FIXME: Should let the user specify the lib program.
9122
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9123
fix_srcfile_path='`cygpath -w "$srcfile"`'
9124
enable_shared_with_static_runtimes=yes
9127
darwin* | rhapsody*)
9130
archive_cmds_need_lc=no
9132
hardcode_automatic=yes
9133
hardcode_shlibpath_var=unsupported
9134
whole_archive_flag_spec=''
9135
link_all_deplibs=yes
9136
allow_undefined_flag="$_lt_dar_allow_undefined"
9137
case $cc_basename in
9138
ifort*) _lt_dar_can_shared=yes ;;
9139
*) _lt_dar_can_shared=$GCC ;;
9141
if test "$_lt_dar_can_shared" = "yes"; then
9142
output_verbose_link_cmd=echo
9143
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9144
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9145
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}"
9146
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}"
9155
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9156
hardcode_libdir_flag_spec='-L$libdir'
9157
hardcode_shlibpath_var=no
9164
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9165
# support. Future versions do this automatically, but an explicit c++rt0.o
9166
# does not break anything, and helps significantly (at the cost of a little
9169
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9170
hardcode_libdir_flag_spec='-R$libdir'
9172
hardcode_shlibpath_var=no
9175
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9177
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9179
hardcode_minus_L=yes
9180
hardcode_shlibpath_var=no
9183
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9184
freebsd* | dragonfly*)
9185
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9186
hardcode_libdir_flag_spec='-R$libdir'
9188
hardcode_shlibpath_var=no
9192
if test "$GCC" = yes; then
9193
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'
9195
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'
9197
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198
hardcode_libdir_separator=:
9201
# hardcode_minus_L: Not really in the search PATH,
9202
# but as the default location of the library.
9203
hardcode_minus_L=yes
9204
export_dynamic_flag_spec='${wl}-E'
9208
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9209
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9211
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9213
if test "$with_gnu_ld" = no; then
9214
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9215
hardcode_libdir_flag_spec_ld='+b $libdir'
9216
hardcode_libdir_separator=:
9218
hardcode_direct_absolute=yes
9219
export_dynamic_flag_spec='${wl}-E'
9220
# hardcode_minus_L: Not really in the search PATH,
9221
# but as the default location of the library.
9222
hardcode_minus_L=yes
9227
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9230
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9233
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9236
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9242
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9245
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9248
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9252
if test "$with_gnu_ld" = no; then
9253
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9254
hardcode_libdir_separator=:
9259
hardcode_shlibpath_var=no
9263
hardcode_direct_absolute=yes
9264
export_dynamic_flag_spec='${wl}-E'
9266
# hardcode_minus_L: Not really in the search PATH,
9267
# but as the default location of the library.
9268
hardcode_minus_L=yes
9274
irix5* | irix6* | nonstopux*)
9275
if test "$GCC" = yes; then
9276
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'
9277
# Try to use the -exported_symbol ld option, if it does not
9278
# work, assume that -exports_file does not work either and
9279
# implicitly export all symbols.
9280
save_LDFLAGS="$LDFLAGS"
9281
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9282
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283
/* end confdefs.h. */
9286
if ac_fn_c_try_link "$LINENO"; then :
9287
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'
9290
rm -f core conftest.err conftest.$ac_objext \
9291
conftest$ac_exeext conftest.$ac_ext
9292
LDFLAGS="$save_LDFLAGS"
9294
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'
9295
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'
9297
archive_cmds_need_lc='no'
9298
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9299
hardcode_libdir_separator=:
9301
link_all_deplibs=yes
9304
netbsd* | netbsdelf*-gnu)
9305
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9306
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9308
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9310
hardcode_libdir_flag_spec='-R$libdir'
9312
hardcode_shlibpath_var=no
9316
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9318
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9319
hardcode_libdir_separator=:
9320
hardcode_shlibpath_var=no
9327
if test -f /usr/libexec/ld.so; then
9329
hardcode_shlibpath_var=no
9330
hardcode_direct_absolute=yes
9331
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9332
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9333
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9334
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9335
export_dynamic_flag_spec='${wl}-E'
9338
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9339
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9340
hardcode_libdir_flag_spec='-R$libdir'
9343
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9344
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9354
hardcode_libdir_flag_spec='-L$libdir'
9355
hardcode_minus_L=yes
9356
allow_undefined_flag=unsupported
9357
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'
9358
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9362
if test "$GCC" = yes; then
9363
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9364
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'
9366
allow_undefined_flag=' -expect_unresolved \*'
9367
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'
9369
archive_cmds_need_lc='no'
9370
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9371
hardcode_libdir_separator=:
9374
osf4* | osf5*) # as osf3* with the addition of -msym flag
9375
if test "$GCC" = yes; then
9376
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9377
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'
9378
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9380
allow_undefined_flag=' -expect_unresolved \*'
9381
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'
9382
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~
9383
$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'
9385
# Both c and cxx compiler support -rpath directly
9386
hardcode_libdir_flag_spec='-rpath $libdir'
9388
archive_cmds_need_lc='no'
9389
hardcode_libdir_separator=:
9393
no_undefined_flag=' -z defs'
9394
if test "$GCC" = yes; then
9396
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9397
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9398
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9400
case `$CC -V 2>&1` in
9403
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9404
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9405
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9409
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9410
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9411
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9415
hardcode_libdir_flag_spec='-R$libdir'
9416
hardcode_shlibpath_var=no
9418
solaris2.[0-5] | solaris2.[0-5].*) ;;
9420
# The compiler driver will combine and reorder linker options,
9421
# but understands `-z linker_flag'. GCC discards it without `$wl',
9422
# but is careful enough not to reorder.
9423
# Supported since Solaris 2.6 (maybe 2.5.1?)
9424
if test "$GCC" = yes; then
9425
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9427
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9431
link_all_deplibs=yes
9435
if test "x$host_vendor" = xsequent; then
9436
# Use $CC to link under sequent, because it throws in some extra .o
9437
# files that make .init and .fini sections work.
9438
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9440
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9442
hardcode_libdir_flag_spec='-L$libdir'
9444
hardcode_minus_L=yes
9445
hardcode_shlibpath_var=no
9449
case $host_vendor in
9451
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9452
hardcode_direct=yes # is this really true???
9455
## LD is ld it makes a PLAMLIB
9456
## CC just makes a GrossModule.
9457
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9458
reload_cmds='$CC -r -o $output$reload_objs'
9462
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9463
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9466
runpath_var='LD_RUN_PATH'
9467
hardcode_shlibpath_var=no
9471
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472
hardcode_shlibpath_var=no
9473
export_dynamic_flag_spec='-Bexport'
9477
if test -d /usr/nec; then
9478
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9479
hardcode_shlibpath_var=no
9480
runpath_var=LD_RUN_PATH
9481
hardcode_runpath_var=yes
9486
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9487
no_undefined_flag='${wl}-z,text'
9488
archive_cmds_need_lc=no
9489
hardcode_shlibpath_var=no
9490
runpath_var='LD_RUN_PATH'
9492
if test "$GCC" = yes; then
9493
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9501
sysv5* | sco3.2v5* | sco5v6*)
9502
# Note: We can NOT use -z defs as we might desire, because we do not
9503
# link with -lc, and that would cause any symbols used from libc to
9504
# always be unresolved, which means just about no library would
9505
# ever link correctly. If we're not using GNU ld we use -z text
9506
# though, which does catch some bad symbols but isn't as heavy-handed
9508
no_undefined_flag='${wl}-z,text'
9509
allow_undefined_flag='${wl}-z,nodefs'
9510
archive_cmds_need_lc=no
9511
hardcode_shlibpath_var=no
9512
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9513
hardcode_libdir_separator=':'
9514
link_all_deplibs=yes
9515
export_dynamic_flag_spec='${wl}-Bexport'
9516
runpath_var='LD_RUN_PATH'
9518
if test "$GCC" = yes; then
9519
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9520
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9522
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9523
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9528
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9529
hardcode_libdir_flag_spec='-L$libdir'
9530
hardcode_shlibpath_var=no
9538
if test x$host_vendor = xsni; then
9540
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9541
export_dynamic_flag_spec='${wl}-Blargedynsym'
9547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9548
$as_echo "$ld_shlibs" >&6; }
9549
test "$ld_shlibs" = no && can_build_shared=no
9551
with_gnu_ld=$with_gnu_ld
9568
# Do we need to explicitly link libc?
9570
case "x$archive_cmds_need_lc" in
9572
# Assume -lc should be added
9573
archive_cmds_need_lc=yes
9575
if test "$enable_shared" = yes && test "$GCC" = yes; then
9576
case $archive_cmds in
9578
# FIXME: we may have to deal with multi-command sequences.
9581
# Test whether the compiler implicitly links with -lc since on some
9582
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9583
# to ld, don't add -lc before -lgcc.
9584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9585
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9587
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9589
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9590
(eval $ac_compile) 2>&5
9592
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9593
test $ac_status = 0; } 2>conftest.err; then
9596
libobjs=conftest.$ac_objext
9598
wl=$lt_prog_compiler_wl
9599
pic_flag=$lt_prog_compiler_pic
9605
lt_save_allow_undefined_flag=$allow_undefined_flag
9606
allow_undefined_flag=
9607
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9608
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9610
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9611
test $ac_status = 0; }
9613
archive_cmds_need_lc=no
9615
archive_cmds_need_lc=yes
9617
allow_undefined_flag=$lt_save_allow_undefined_flag
9619
cat conftest.err 1>&5
9622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9623
$as_echo "$archive_cmds_need_lc" >&6; }
9786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9787
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9789
if test "$GCC" = yes; then
9791
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9792
*) lt_awk_arg="/^libraries:/" ;;
9794
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9795
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9796
# if the path contains ";" then we assume it to be the separator
9797
# otherwise default to the standard path separator (i.e. ":") - it is
9798
# assumed that no part of a normal pathname contains ";" but that should
9799
# okay in the real world where ";" in dirpaths is itself problematic.
9800
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9802
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9804
# Ok, now we have the path, separated by spaces, we can step through it
9805
# and add multilib dir if necessary.
9806
lt_tmp_lt_search_path_spec=
9807
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9808
for lt_sys_path in $lt_search_path_spec; do
9809
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9810
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9812
test -d "$lt_sys_path" && \
9813
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9816
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9817
BEGIN {RS=" "; FS="/|\n";} {
9820
for (lt_i = NF; lt_i > 0; lt_i--) {
9821
if ($lt_i != "" && $lt_i != ".") {
9822
if ($lt_i == "..") {
9825
if (lt_count == 0) {
9826
lt_foo="/" $lt_i lt_foo;
9833
if (lt_foo != "") { lt_freq[lt_foo]++; }
9834
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9836
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9838
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9841
libname_spec='lib$name'
9849
shlibpath_overrides_runpath=unknown
9851
dynamic_linker="$host_os ld.so"
9852
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9853
need_lib_prefix=unknown
9854
hardcode_into_libs=no
9856
# when you set need_version to no, make sure it does not cause -set_version
9857
# flags to be left without arguments
9858
need_version=unknown
9863
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9864
shlibpath_var=LIBPATH
9866
# AIX 3 has no versioning support, so we append a major version to the name.
9867
soname_spec='${libname}${release}${shared_ext}$major'
9874
hardcode_into_libs=yes
9875
if test "$host_cpu" = ia64; then
9876
# AIX 5 supports IA64
9877
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9878
shlibpath_var=LD_LIBRARY_PATH
9880
# With GCC up to 2.95.x, collect2 would create an import file
9881
# for dependence libraries. The import file would start with
9882
# the line `#! .'. This would cause the generated library to
9883
# depend on `.', always an invalid library. This was fixed in
9884
# development snapshots of GCC prior to 3.0.
9886
aix4 | aix4.[01] | aix4.[01].*)
9887
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9889
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9896
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9897
# soname into executable. Probably we can add versioning support to
9898
# collect2, so additional links can be useful in future.
9899
if test "$aix_use_runtimelinking" = yes; then
9900
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9901
# instead of lib<name>.a to let people know that these are not
9902
# typical AIX shared libraries.
9903
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905
# We preserve .a as extension for shared libraries through AIX4.2
9906
# and later when we are not doing run time linking.
9907
library_names_spec='${libname}${release}.a $libname.a'
9908
soname_spec='${libname}${release}${shared_ext}$major'
9910
shlibpath_var=LIBPATH
9917
# Since July 2007 AmigaOS4 officially supports .so libraries.
9918
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9919
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922
library_names_spec='$libname.ixlibrary $libname.a'
9923
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9924
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'
9930
library_names_spec='${libname}${shared_ext}'
9931
dynamic_linker="$host_os ld.so"
9932
shlibpath_var=LIBRARY_PATH
9938
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939
soname_spec='${libname}${release}${shared_ext}$major'
9940
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9941
shlibpath_var=LD_LIBRARY_PATH
9942
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9943
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9944
# the default ld.so.conf also contains /usr/contrib/lib and
9945
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9946
# libtool to hard-code these into programs
9949
cygwin* | mingw* | pw32* | cegcc*)
9950
version_type=windows
9955
case $GCC,$host_os in
9956
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9957
library_names_spec='$libname.dll.a'
9958
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9959
postinstall_cmds='base_file=`basename \${file}`~
9960
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9961
dldir=$destdir/`dirname \$dlpath`~
9962
test -d \$dldir || mkdir -p \$dldir~
9963
$install_prog $dir/$dlname \$dldir/$dlname~
9964
chmod a+x \$dldir/$dlname~
9965
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9966
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9968
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9969
dlpath=$dir/\$dldll~
9971
shlibpath_overrides_runpath=yes
9975
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9976
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9977
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9980
# MinGW DLLs use traditional 'lib' prefix
9981
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9982
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9983
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9984
# It is most probably a Windows format PATH printed by
9985
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9986
# path with ; separators, and with drive letters. We can handle the
9987
# drive letters (cygwin fileutils understands them), so leave them,
9988
# especially as we might pass files found there to a mingw objdump,
9989
# which wouldn't understand a cygwinified path. Ahh.
9990
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9992
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9996
# pw32 DLLs use 'pw' prefix rather than 'lib'
9997
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10003
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10006
dynamic_linker='Win32 ld.exe'
10007
# FIXME: first we should search . and the directory the executable is in
10011
darwin* | rhapsody*)
10012
dynamic_linker="$host_os dyld"
10013
version_type=darwin
10016
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10017
soname_spec='${libname}${release}${major}$shared_ext'
10018
shlibpath_overrides_runpath=yes
10019
shlibpath_var=DYLD_LIBRARY_PATH
10020
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10022
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10023
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10031
soname_spec='${libname}${release}${shared_ext}$major'
10032
shlibpath_var=LD_LIBRARY_PATH
10039
freebsd* | dragonfly*)
10040
# DragonFly does not have aout. When/if they implement a new
10041
# versioning mechanism, adjust this.
10042
if test -x /usr/bin/objformat; then
10043
objformat=`/usr/bin/objformat`
10046
freebsd[123]*) objformat=aout ;;
10047
*) objformat=elf ;;
10050
version_type=freebsd-$objformat
10051
case $version_type in
10053
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10058
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10062
shlibpath_var=LD_LIBRARY_PATH
10065
shlibpath_overrides_runpath=yes
10067
freebsd3.[01]* | freebsdelf3.[01]*)
10068
shlibpath_overrides_runpath=yes
10069
hardcode_into_libs=yes
10071
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10072
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10073
shlibpath_overrides_runpath=no
10074
hardcode_into_libs=yes
10076
*) # from 4.6 on, and DragonFly
10077
shlibpath_overrides_runpath=yes
10078
hardcode_into_libs=yes
10087
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10088
soname_spec='${libname}${release}${shared_ext}$major'
10089
shlibpath_var=LD_LIBRARY_PATH
10090
hardcode_into_libs=yes
10093
hpux9* | hpux10* | hpux11*)
10094
# Give a soname corresponding to the major version so that dld.sl refuses to
10095
# link against other versions.
10102
hardcode_into_libs=yes
10103
dynamic_linker="$host_os dld.so"
10104
shlibpath_var=LD_LIBRARY_PATH
10105
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10106
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107
soname_spec='${libname}${release}${shared_ext}$major'
10108
if test "X$HPUX_IA64_MODE" = X32; then
10109
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10111
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10113
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10117
hardcode_into_libs=yes
10118
dynamic_linker="$host_os dld.sl"
10119
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10120
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10121
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122
soname_spec='${libname}${release}${shared_ext}$major'
10123
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10124
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10128
dynamic_linker="$host_os dld.sl"
10129
shlibpath_var=SHLIB_PATH
10130
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10131
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132
soname_spec='${libname}${release}${shared_ext}$major'
10135
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10136
postinstall_cmds='chmod 555 $lib'
10143
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10144
soname_spec='${libname}${release}${shared_ext}$major'
10145
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10146
shlibpath_var=LD_LIBRARY_PATH
10147
shlibpath_overrides_runpath=no
10148
hardcode_into_libs=yes
10151
irix5* | irix6* | nonstopux*)
10153
nonstopux*) version_type=nonstopux ;;
10155
if test "$lt_cv_prog_gnu_ld" = yes; then
10163
soname_spec='${libname}${release}${shared_ext}$major'
10164
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10166
irix5* | nonstopux*)
10167
libsuff= shlibsuff=
10170
case $LD in # libtool.m4 will add one of these switches to LD
10171
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10172
libsuff= shlibsuff= libmagic=32-bit;;
10173
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10174
libsuff=32 shlibsuff=N32 libmagic=N32;;
10175
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10176
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10177
*) libsuff= shlibsuff= libmagic=never-match;;
10181
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10182
shlibpath_overrides_runpath=no
10183
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10184
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10185
hardcode_into_libs=yes
10188
# No shared lib support for Linux oldld, aout, or coff.
10189
linux*oldld* | linux*aout* | linux*coff*)
10193
# This must be Linux ELF.
10194
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10198
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199
soname_spec='${libname}${release}${shared_ext}$major'
10200
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10201
shlibpath_var=LD_LIBRARY_PATH
10202
shlibpath_overrides_runpath=no
10203
# Some binutils ld are patched to set DT_RUNPATH
10204
save_LDFLAGS=$LDFLAGS
10205
save_libdir=$libdir
10206
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10207
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10208
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209
/* end confdefs.h. */
10219
if ac_fn_c_try_link "$LINENO"; then :
10220
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10221
shlibpath_overrides_runpath=yes
10224
rm -f core conftest.err conftest.$ac_objext \
10225
conftest$ac_exeext conftest.$ac_ext
10226
LDFLAGS=$save_LDFLAGS
10227
libdir=$save_libdir
10229
# This implies no fast_install, which is unacceptable.
10230
# Some rework will be needed to allow for fast_install
10231
# before this can be enabled.
10232
hardcode_into_libs=yes
10234
# Append ld.so.conf contents to the search path
10235
if test -f /etc/ld.so.conf; then
10236
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' ' '`
10237
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10240
# We used to test for /lib/ld.so.1 and disable shared libraries on
10241
# powerpc, because MkLinux only supported shared libraries with the
10242
# GNU dynamic linker. Since this was broken with cross compilers,
10243
# most powerpc-linux boxes support dynamic linking these days and
10244
# people can always --disable-shared, the test was removed, and we
10245
# assume the GNU/Linux dynamic linker is in use.
10246
dynamic_linker='GNU/Linux ld.so'
10253
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10254
soname_spec='${libname}${release}${shared_ext}$major'
10255
shlibpath_var=LD_LIBRARY_PATH
10256
shlibpath_overrides_runpath=no
10257
hardcode_into_libs=yes
10258
dynamic_linker='NetBSD ld.elf_so'
10265
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10266
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10267
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10268
dynamic_linker='NetBSD (a.out) ld.so'
10270
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10271
soname_spec='${libname}${release}${shared_ext}$major'
10272
dynamic_linker='NetBSD ld.elf_so'
10274
shlibpath_var=LD_LIBRARY_PATH
10275
shlibpath_overrides_runpath=yes
10276
hardcode_into_libs=yes
10281
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282
shlibpath_var=LD_LIBRARY_PATH
10283
shlibpath_overrides_runpath=yes
10290
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291
soname_spec='${libname}${release}${shared_ext}$major'
10292
shlibpath_var=LD_LIBRARY_PATH
10293
shlibpath_overrides_runpath=no
10294
hardcode_into_libs=yes
10295
dynamic_linker='ldqnx.so'
10300
sys_lib_dlsearch_path_spec="/usr/lib"
10302
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10304
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10305
*) need_version=no ;;
10307
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10308
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10309
shlibpath_var=LD_LIBRARY_PATH
10310
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10312
openbsd2.[89] | openbsd2.[89].*)
10313
shlibpath_overrides_runpath=no
10316
shlibpath_overrides_runpath=yes
10320
shlibpath_overrides_runpath=yes
10325
libname_spec='$name'
10328
library_names_spec='$libname${shared_ext} $libname.a'
10329
dynamic_linker='OS/2 ld.exe'
10330
shlibpath_var=LIBPATH
10333
osf3* | osf4* | osf5*)
10337
soname_spec='${libname}${release}${shared_ext}$major'
10338
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339
shlibpath_var=LD_LIBRARY_PATH
10340
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10341
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10352
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353
soname_spec='${libname}${release}${shared_ext}$major'
10354
shlibpath_var=LD_LIBRARY_PATH
10355
shlibpath_overrides_runpath=yes
10356
hardcode_into_libs=yes
10357
# ldd complains unless libraries are executable
10358
postinstall_cmds='chmod +x $lib'
10363
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10364
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10365
shlibpath_var=LD_LIBRARY_PATH
10366
shlibpath_overrides_runpath=yes
10367
if test "$with_gnu_ld" = yes; then
10375
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376
soname_spec='${libname}${release}${shared_ext}$major'
10377
shlibpath_var=LD_LIBRARY_PATH
10378
case $host_vendor in
10380
shlibpath_overrides_runpath=no
10382
runpath_var=LD_RUN_PATH
10390
shlibpath_overrides_runpath=no
10391
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10397
if test -d /usr/nec ;then
10399
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10400
soname_spec='$libname${shared_ext}.$major'
10401
shlibpath_var=LD_LIBRARY_PATH
10405
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10406
version_type=freebsd-elf
10409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10410
soname_spec='${libname}${release}${shared_ext}$major'
10411
shlibpath_var=LD_LIBRARY_PATH
10412
shlibpath_overrides_runpath=yes
10413
hardcode_into_libs=yes
10414
if test "$with_gnu_ld" = yes; then
10415
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10417
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10420
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10424
sys_lib_dlsearch_path_spec='/usr/lib'
10428
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433
shlibpath_var=LD_LIBRARY_PATH
10434
shlibpath_overrides_runpath=no
10435
hardcode_into_libs=yes
10440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441
soname_spec='${libname}${release}${shared_ext}$major'
10442
shlibpath_var=LD_LIBRARY_PATH
10449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10450
$as_echo "$dynamic_linker" >&6; }
10451
test "$dynamic_linker" = no && can_build_shared=no
10453
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10454
if test "$GCC" = yes; then
10455
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10458
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10459
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10461
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10462
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10552
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10554
if test -n "$hardcode_libdir_flag_spec" ||
10555
test -n "$runpath_var" ||
10556
test "X$hardcode_automatic" = "Xyes" ; then
10558
# We can hardcode non-existent directories.
10559
if test "$hardcode_direct" != no &&
10560
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10561
# have to relink, otherwise we might link with an installed library
10562
# when we should be linking with a yet-to-be-installed one
10563
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10564
test "$hardcode_minus_L" != no; then
10565
# Linking always hardcodes the temporary library directory.
10566
hardcode_action=relink
10568
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10569
hardcode_action=immediate
10572
# We cannot hardcode anything, or else we can only hardcode existing
10574
hardcode_action=unsupported
10576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10577
$as_echo "$hardcode_action" >&6; }
10579
if test "$hardcode_action" = relink ||
10580
test "$inherit_rpath" = yes; then
10581
# Fast installation is not supported
10582
enable_fast_install=no
10583
elif test "$shlibpath_overrides_runpath" = yes ||
10584
test "$enable_shared" = no; then
10585
# Fast installation is not necessary
10586
enable_fast_install=needless
10594
if test "x$enable_dlopen" != xyes; then
10595
enable_dlopen=unknown
10596
enable_dlopen_self=unknown
10597
enable_dlopen_self_static=unknown
10604
lt_cv_dlopen="load_add_on"
10606
lt_cv_dlopen_self=yes
10609
mingw* | pw32* | cegcc*)
10610
lt_cv_dlopen="LoadLibrary"
10615
lt_cv_dlopen="dlopen"
10620
# if libdl is installed we need to link against it
10621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10622
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10623
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10624
$as_echo_n "(cached) " >&6
10626
ac_check_lib_save_LIBS=$LIBS
10628
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629
/* end confdefs.h. */
10631
/* Override any GCC internal prototype to avoid an error.
10632
Use char because int might match the return type of a GCC
10633
builtin and then its argument prototype would still apply. */
10646
if ac_fn_c_try_link "$LINENO"; then :
10647
ac_cv_lib_dl_dlopen=yes
10649
ac_cv_lib_dl_dlopen=no
10651
rm -f core conftest.err conftest.$ac_objext \
10652
conftest$ac_exeext conftest.$ac_ext
10653
LIBS=$ac_check_lib_save_LIBS
10655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10656
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10657
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10658
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10661
lt_cv_dlopen="dyld"
10663
lt_cv_dlopen_self=yes
10670
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10671
if test "x$ac_cv_func_shl_load" = x""yes; then :
10672
lt_cv_dlopen="shl_load"
10674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10675
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10676
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10677
$as_echo_n "(cached) " >&6
10679
ac_check_lib_save_LIBS=$LIBS
10681
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682
/* end confdefs.h. */
10684
/* Override any GCC internal prototype to avoid an error.
10685
Use char because int might match the return type of a GCC
10686
builtin and then its argument prototype would still apply. */
10694
return shl_load ();
10699
if ac_fn_c_try_link "$LINENO"; then :
10700
ac_cv_lib_dld_shl_load=yes
10702
ac_cv_lib_dld_shl_load=no
10704
rm -f core conftest.err conftest.$ac_objext \
10705
conftest$ac_exeext conftest.$ac_ext
10706
LIBS=$ac_check_lib_save_LIBS
10708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10709
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10710
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10711
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10713
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10714
if test "x$ac_cv_func_dlopen" = x""yes; then :
10715
lt_cv_dlopen="dlopen"
10717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10718
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10719
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10720
$as_echo_n "(cached) " >&6
10722
ac_check_lib_save_LIBS=$LIBS
10724
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725
/* end confdefs.h. */
10727
/* Override any GCC internal prototype to avoid an error.
10728
Use char because int might match the return type of a GCC
10729
builtin and then its argument prototype would still apply. */
10742
if ac_fn_c_try_link "$LINENO"; then :
10743
ac_cv_lib_dl_dlopen=yes
10745
ac_cv_lib_dl_dlopen=no
10747
rm -f core conftest.err conftest.$ac_objext \
10748
conftest$ac_exeext conftest.$ac_ext
10749
LIBS=$ac_check_lib_save_LIBS
10751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10752
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10753
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10754
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10757
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10758
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10759
$as_echo_n "(cached) " >&6
10761
ac_check_lib_save_LIBS=$LIBS
10762
LIBS="-lsvld $LIBS"
10763
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764
/* end confdefs.h. */
10766
/* Override any GCC internal prototype to avoid an error.
10767
Use char because int might match the return type of a GCC
10768
builtin and then its argument prototype would still apply. */
10781
if ac_fn_c_try_link "$LINENO"; then :
10782
ac_cv_lib_svld_dlopen=yes
10784
ac_cv_lib_svld_dlopen=no
10786
rm -f core conftest.err conftest.$ac_objext \
10787
conftest$ac_exeext conftest.$ac_ext
10788
LIBS=$ac_check_lib_save_LIBS
10790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10791
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10792
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10793
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10796
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10797
if test "${ac_cv_lib_dld_dld_link+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 dld_link ();
10820
if ac_fn_c_try_link "$LINENO"; then :
10821
ac_cv_lib_dld_dld_link=yes
10823
ac_cv_lib_dld_dld_link=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_dld_link" >&5
10830
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10831
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10832
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10853
if test "x$lt_cv_dlopen" != xno; then
10859
case $lt_cv_dlopen in
10861
save_CPPFLAGS="$CPPFLAGS"
10862
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10864
save_LDFLAGS="$LDFLAGS"
10865
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10868
LIBS="$lt_cv_dlopen_libs $LIBS"
10870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10871
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10872
if test "${lt_cv_dlopen_self+set}" = set; then :
10873
$as_echo_n "(cached) " >&6
10875
if test "$cross_compiling" = yes; then :
10876
lt_cv_dlopen_self=cross
10878
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10879
lt_status=$lt_dlunknown
10880
cat > conftest.$ac_ext <<_LT_EOF
10881
#line 10881 "configure"
10882
#include "confdefs.h"
10891
# define LT_DLGLOBAL RTLD_GLOBAL
10894
# define LT_DLGLOBAL DL_GLOBAL
10896
# define LT_DLGLOBAL 0
10900
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10901
find out it does not work in some platform. */
10902
#ifndef LT_DLLAZY_OR_NOW
10904
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10907
# define LT_DLLAZY_OR_NOW DL_LAZY
10910
# define LT_DLLAZY_OR_NOW RTLD_NOW
10913
# define LT_DLLAZY_OR_NOW DL_NOW
10915
# define LT_DLLAZY_OR_NOW 0
10922
void fnord() { int i=42;}
10925
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10926
int status = $lt_dlunknown;
10930
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10931
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10932
/* dlclose (self); */
10940
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10941
(eval $ac_link) 2>&5
10943
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10944
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10945
(./conftest; exit; ) >&5 2>/dev/null
10947
case x$lt_status in
10948
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10949
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10950
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10953
# compilation failed
10954
lt_cv_dlopen_self=no
10961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10962
$as_echo "$lt_cv_dlopen_self" >&6; }
10964
if test "x$lt_cv_dlopen_self" = xyes; then
10965
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10967
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10968
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10969
$as_echo_n "(cached) " >&6
10971
if test "$cross_compiling" = yes; then :
10972
lt_cv_dlopen_self_static=cross
10974
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10975
lt_status=$lt_dlunknown
10976
cat > conftest.$ac_ext <<_LT_EOF
10977
#line 10977 "configure"
10978
#include "confdefs.h"
10987
# define LT_DLGLOBAL RTLD_GLOBAL
10990
# define LT_DLGLOBAL DL_GLOBAL
10992
# define LT_DLGLOBAL 0
10996
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10997
find out it does not work in some platform. */
10998
#ifndef LT_DLLAZY_OR_NOW
11000
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11003
# define LT_DLLAZY_OR_NOW DL_LAZY
11006
# define LT_DLLAZY_OR_NOW RTLD_NOW
11009
# define LT_DLLAZY_OR_NOW DL_NOW
11011
# define LT_DLLAZY_OR_NOW 0
11018
void fnord() { int i=42;}
11021
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11022
int status = $lt_dlunknown;
11026
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11027
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11028
/* dlclose (self); */
11036
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11037
(eval $ac_link) 2>&5
11039
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11040
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11041
(./conftest; exit; ) >&5 2>/dev/null
11043
case x$lt_status in
11044
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11045
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11046
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11049
# compilation failed
11050
lt_cv_dlopen_self_static=no
11057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11058
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11061
CPPFLAGS="$save_CPPFLAGS"
11062
LDFLAGS="$save_LDFLAGS"
11067
case $lt_cv_dlopen_self in
11068
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11069
*) enable_dlopen_self=unknown ;;
11072
case $lt_cv_dlopen_self_static in
11073
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11074
*) enable_dlopen_self_static=unknown ;;
11096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11097
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11098
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11099
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11100
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11102
$as_echo "yes" >&6; }
11104
# FIXME - insert some real tests, host_os isn't really good enough
11107
if test -n "$STRIP" ; then
11108
striplib="$STRIP -x"
11109
old_striplib="$STRIP -S"
11110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11111
$as_echo "yes" >&6; }
11113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114
$as_echo "no" >&6; }
11118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11119
$as_echo "no" >&6; }
11135
# Report which library types will actually be built
11136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11137
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11139
$as_echo "$can_build_shared" >&6; }
11141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11142
$as_echo_n "checking whether to build shared libraries... " >&6; }
11143
test "$can_build_shared" = "no" && enable_shared=no
11145
# On AIX, shared libraries and static libraries use the same namespace, and
11146
# are all built from PIC.
11149
test "$enable_shared" = yes && enable_static=no
11150
if test -n "$RANLIB"; then
11151
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11152
postinstall_cmds='$RANLIB $lib'
11157
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11158
test "$enable_shared" = yes && enable_static=no
11162
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11163
$as_echo "$enable_shared" >&6; }
11165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11166
$as_echo_n "checking whether to build static libraries... " >&6; }
11167
# Make sure either enable_shared or enable_static is yes.
11168
test "$enable_shared" = yes || enable_static=yes
11169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11170
$as_echo "$enable_static" >&6; }
11177
ac_cpp='$CPP $CPPFLAGS'
11178
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11179
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11180
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11196
ac_config_commands="$ac_config_commands libtool"
11201
# Only expand once:
11206
if test "X$prefix" = "XNONE"; then
11207
acl_final_prefix="$ac_default_prefix"
11209
acl_final_prefix="$prefix"
11211
if test "X$exec_prefix" = "XNONE"; then
11212
acl_final_exec_prefix='${prefix}'
11214
acl_final_exec_prefix="$exec_prefix"
11216
acl_save_prefix="$prefix"
11217
prefix="$acl_final_prefix"
11218
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11219
prefix="$acl_save_prefix"
11222
# Check whether --with-gnu-ld was given.
11223
if test "${with_gnu_ld+set}" = set; then :
11224
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11229
# Prepare PATH_SEPARATOR.
11230
# The user is always right.
11231
if test "${PATH_SEPARATOR+set}" != set; then
11232
echo "#! /bin/sh" >conf$$.sh
11233
echo "exit 0" >>conf$$.sh
11235
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11243
if test "$GCC" = yes; then
11244
# Check if gcc -print-prog-name=ld gives a path.
11245
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11246
$as_echo_n "checking for ld used by GCC... " >&6; }
11249
# gcc leaves a trailing carriage return which upsets mingw
11250
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11252
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11255
# Accept absolute paths.
11256
[\\/]* | [A-Za-z]:[\\/]*)
11257
re_direlt='/[^/][^/]*/\.\./'
11258
# Canonicalize the path of ld
11259
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11260
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11261
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11263
test -z "$LD" && LD="$ac_prog"
11266
# If it fails, then pretend we aren't using GCC.
11270
# If it is relative, then search for the first ld in PATH.
11271
with_gnu_ld=unknown
11274
elif test "$with_gnu_ld" = yes; then
11275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11276
$as_echo_n "checking for GNU ld... " >&6; }
11278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11279
$as_echo_n "checking for non-GNU ld... " >&6; }
11281
if test "${acl_cv_path_LD+set}" = set; then :
11282
$as_echo_n "(cached) " >&6
11284
if test -z "$LD"; then
11285
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11286
for ac_dir in $PATH; do
11287
test -z "$ac_dir" && ac_dir=.
11288
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11289
acl_cv_path_LD="$ac_dir/$ac_prog"
11290
# Check to see if the program is GNU ld. I'd rather use --version,
11291
# but apparently some GNU ld's only accept -v.
11292
# Break only if it was the GNU/non-GNU ld that we prefer.
11293
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11294
*GNU* | *'with BFD'*)
11295
test "$with_gnu_ld" != no && break ;;
11297
test "$with_gnu_ld" != yes && break ;;
11303
acl_cv_path_LD="$LD" # Let the user override the test with a path.
11307
LD="$acl_cv_path_LD"
11308
if test -n "$LD"; then
11309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11310
$as_echo "$LD" >&6; }
11312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313
$as_echo "no" >&6; }
11315
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11317
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11318
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
11319
$as_echo_n "(cached) " >&6
11321
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
11322
case `$LD -v 2>&1 </dev/null` in
11323
*GNU* | *'with BFD'*)
11324
acl_cv_prog_gnu_ld=yes ;;
11326
acl_cv_prog_gnu_ld=no ;;
11329
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11330
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
11331
with_gnu_ld=$acl_cv_prog_gnu_ld
11336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11337
$as_echo_n "checking for shared library run path origin... " >&6; }
11338
if test "${acl_cv_rpath+set}" = set; then :
11339
$as_echo_n "(cached) " >&6
11342
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11343
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11345
rm -f ./conftest.sh
11349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11350
$as_echo "$acl_cv_rpath" >&6; }
11352
acl_libext="$acl_cv_libext"
11353
acl_shlibext="$acl_cv_shlibext"
11354
acl_libname_spec="$acl_cv_libname_spec"
11355
acl_library_names_spec="$acl_cv_library_names_spec"
11356
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11357
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11358
acl_hardcode_direct="$acl_cv_hardcode_direct"
11359
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11360
# Check whether --enable-rpath was given.
11361
if test "${enable_rpath+set}" = set; then :
11362
enableval=$enable_rpath; :
11374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
11375
$as_echo_n "checking for 64-bit host... " >&6; }
11376
if test "${gl_cv_solaris_64bit+set}" = set; then :
11377
$as_echo_n "(cached) " >&6
11379
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380
/* end confdefs.h. */
11387
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11388
$EGREP "sixtyfour bits" >/dev/null 2>&1; then :
11389
gl_cv_solaris_64bit=yes
11391
gl_cv_solaris_64bit=no
11397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
11398
$as_echo "$gl_cv_solaris_64bit" >&6; }
11399
if test $gl_cv_solaris_64bit = yes; then
11400
acl_libdirstem=lib/64
11401
case "$host_cpu" in
11402
sparc*) acl_libdirstem2=lib/sparcv9 ;;
11403
i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
11408
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11409
if test -n "$searchpath"; then
11410
acl_save_IFS="${IFS= }"; IFS=":"
11411
for searchdir in $searchpath; do
11412
if test -d "$searchdir"; then
11413
case "$searchdir" in
11414
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11416
# Better ignore directories of this form. They are misleading.
11418
*) searchdir=`cd "$searchdir" && pwd`
11419
case "$searchdir" in
11420
*/lib64 ) acl_libdirstem=lib64 ;;
11425
IFS="$acl_save_IFS"
11429
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
11432
# Library code modified: REVISION++
11433
# Interfaces changed/added/removed: CURRENT++ REVISION=0
11434
# Interfaces added: AGE++
11435
# Interfaces removed: AGE=0
11443
# Used when creating the Windows libgnutls-XX.def files.
11444
DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
11462
acl_save_prefix="$prefix"
11463
prefix="$acl_final_prefix"
11464
acl_save_exec_prefix="$exec_prefix"
11465
exec_prefix="$acl_final_exec_prefix"
11467
eval additional_includedir=\"$includedir\"
11468
eval additional_libdir=\"$libdir\"
11470
exec_prefix="$acl_save_exec_prefix"
11471
prefix="$acl_save_prefix"
11474
# Check whether --with-libgcrypt-prefix was given.
11475
if test "${with_libgcrypt_prefix+set}" = set; then :
11476
withval=$with_libgcrypt_prefix;
11477
if test "X$withval" = "Xno"; then
11480
if test "X$withval" = "X"; then
11482
acl_save_prefix="$prefix"
11483
prefix="$acl_final_prefix"
11484
acl_save_exec_prefix="$exec_prefix"
11485
exec_prefix="$acl_final_exec_prefix"
11487
eval additional_includedir=\"$includedir\"
11488
eval additional_libdir=\"$libdir\"
11490
exec_prefix="$acl_save_exec_prefix"
11491
prefix="$acl_save_prefix"
11494
additional_includedir="$withval/include"
11495
additional_libdir="$withval/$acl_libdirstem"
11496
if test "$acl_libdirstem2" != "$acl_libdirstem" \
11497
&& ! test -d "$withval/$acl_libdirstem"; then
11498
additional_libdir="$withval/$acl_libdirstem2"
11511
names_already_handled=
11512
names_next_round='gcrypt gpg-error'
11513
while test -n "$names_next_round"; do
11514
names_this_round="$names_next_round"
11516
for name in $names_this_round; do
11518
for n in $names_already_handled; do
11519
if test "$n" = "$name"; then
11520
already_handled=yes
11524
if test -z "$already_handled"; then
11525
names_already_handled="$names_already_handled $name"
11526
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11527
eval value=\"\$HAVE_LIB$uppername\"
11528
if test -n "$value"; then
11529
if test "$value" = yes; then
11530
eval value=\"\$LIB$uppername\"
11531
test -z "$value" || LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$value"
11532
eval value=\"\$LTLIB$uppername\"
11533
test -z "$value" || LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$value"
11542
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11543
if test -n "$acl_shlibext"; then
11544
shrext=".$acl_shlibext" # typically: shrext=.so
11548
if test $use_additional = yes; then
11549
dir="$additional_libdir"
11550
if test -n "$acl_shlibext"; then
11551
if test -f "$dir/$libname$shrext"; then
11553
found_so="$dir/$libname$shrext"
11555
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11556
ver=`(cd "$dir" && \
11557
for f in "$libname$shrext".*; do echo "$f"; done \
11558
| sed -e "s,^$libname$shrext\\\\.,," \
11559
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11560
| sed 1q ) 2>/dev/null`
11561
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11563
found_so="$dir/$libname$shrext.$ver"
11566
eval library_names=\"$acl_library_names_spec\"
11567
for f in $library_names; do
11568
if test -f "$dir/$f"; then
11577
if test "X$found_dir" = "X"; then
11578
if test -f "$dir/$libname.$acl_libext"; then
11580
found_a="$dir/$libname.$acl_libext"
11583
if test "X$found_dir" != "X"; then
11584
if test -f "$dir/$libname.la"; then
11585
found_la="$dir/$libname.la"
11589
if test "X$found_dir" = "X"; then
11590
for x in $LDFLAGS $LTLIBGCRYPT; do
11592
acl_save_prefix="$prefix"
11593
prefix="$acl_final_prefix"
11594
acl_save_exec_prefix="$exec_prefix"
11595
exec_prefix="$acl_final_exec_prefix"
11597
exec_prefix="$acl_save_exec_prefix"
11598
prefix="$acl_save_prefix"
11602
dir=`echo "X$x" | sed -e 's/^X-L//'`
11603
if test -n "$acl_shlibext"; then
11604
if test -f "$dir/$libname$shrext"; then
11606
found_so="$dir/$libname$shrext"
11608
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11609
ver=`(cd "$dir" && \
11610
for f in "$libname$shrext".*; do echo "$f"; done \
11611
| sed -e "s,^$libname$shrext\\\\.,," \
11612
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11613
| sed 1q ) 2>/dev/null`
11614
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11616
found_so="$dir/$libname$shrext.$ver"
11619
eval library_names=\"$acl_library_names_spec\"
11620
for f in $library_names; do
11621
if test -f "$dir/$f"; then
11630
if test "X$found_dir" = "X"; then
11631
if test -f "$dir/$libname.$acl_libext"; then
11633
found_a="$dir/$libname.$acl_libext"
11636
if test "X$found_dir" != "X"; then
11637
if test -f "$dir/$libname.la"; then
11638
found_la="$dir/$libname.la"
11643
if test "X$found_dir" != "X"; then
11648
if test "X$found_dir" != "X"; then
11649
LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$found_dir -l$name"
11650
if test "X$found_so" != "X"; then
11651
if test "$enable_rpath" = no \
11652
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
11653
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11654
LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
11657
for x in $ltrpathdirs; do
11658
if test "X$x" = "X$found_dir"; then
11663
if test -z "$haveit"; then
11664
ltrpathdirs="$ltrpathdirs $found_dir"
11666
if test "$acl_hardcode_direct" = yes; then
11667
LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
11669
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11670
LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
11672
for x in $rpathdirs; do
11673
if test "X$x" = "X$found_dir"; then
11678
if test -z "$haveit"; then
11679
rpathdirs="$rpathdirs $found_dir"
11683
for x in $LDFLAGS $LIBGCRYPT; do
11685
acl_save_prefix="$prefix"
11686
prefix="$acl_final_prefix"
11687
acl_save_exec_prefix="$exec_prefix"
11688
exec_prefix="$acl_final_exec_prefix"
11690
exec_prefix="$acl_save_exec_prefix"
11691
prefix="$acl_save_prefix"
11693
if test "X$x" = "X-L$found_dir"; then
11698
if test -z "$haveit"; then
11699
LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir"
11701
if test "$acl_hardcode_minus_L" != no; then
11702
LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
11704
LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
11710
if test "X$found_a" != "X"; then
11711
LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_a"
11713
LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir -l$name"
11716
additional_includedir=
11717
case "$found_dir" in
11718
*/$acl_libdirstem | */$acl_libdirstem/)
11719
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11720
if test "$name" = 'gcrypt'; then
11721
LIBGCRYPT_PREFIX="$basedir"
11723
additional_includedir="$basedir/include"
11725
*/$acl_libdirstem2 | */$acl_libdirstem2/)
11726
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11727
if test "$name" = 'gcrypt'; then
11728
LIBGCRYPT_PREFIX="$basedir"
11730
additional_includedir="$basedir/include"
11733
if test "X$additional_includedir" != "X"; then
11734
if test "X$additional_includedir" != "X/usr/include"; then
11736
if test "X$additional_includedir" = "X/usr/local/include"; then
11737
if test -n "$GCC"; then
11739
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11743
if test -z "$haveit"; then
11744
for x in $CPPFLAGS $INCGCRYPT; do
11746
acl_save_prefix="$prefix"
11747
prefix="$acl_final_prefix"
11748
acl_save_exec_prefix="$exec_prefix"
11749
exec_prefix="$acl_final_exec_prefix"
11751
exec_prefix="$acl_save_exec_prefix"
11752
prefix="$acl_save_prefix"
11754
if test "X$x" = "X-I$additional_includedir"; then
11759
if test -z "$haveit"; then
11760
if test -d "$additional_includedir"; then
11761
INCGCRYPT="${INCGCRYPT}${INCGCRYPT:+ }-I$additional_includedir"
11767
if test -n "$found_la"; then
11768
save_libdir="$libdir"
11769
case "$found_la" in
11770
*/* | *\\*) . "$found_la" ;;
11771
*) . "./$found_la" ;;
11773
libdir="$save_libdir"
11774
for dep in $dependency_libs; do
11777
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11778
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11779
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11781
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11782
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11783
if test -n "$GCC"; then
11785
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11789
if test -z "$haveit"; then
11791
for x in $LDFLAGS $LIBGCRYPT; do
11793
acl_save_prefix="$prefix"
11794
prefix="$acl_final_prefix"
11795
acl_save_exec_prefix="$exec_prefix"
11796
exec_prefix="$acl_final_exec_prefix"
11798
exec_prefix="$acl_save_exec_prefix"
11799
prefix="$acl_save_prefix"
11801
if test "X$x" = "X-L$additional_libdir"; then
11806
if test -z "$haveit"; then
11807
if test -d "$additional_libdir"; then
11808
LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$additional_libdir"
11812
for x in $LDFLAGS $LTLIBGCRYPT; do
11814
acl_save_prefix="$prefix"
11815
prefix="$acl_final_prefix"
11816
acl_save_exec_prefix="$exec_prefix"
11817
exec_prefix="$acl_final_exec_prefix"
11819
exec_prefix="$acl_save_exec_prefix"
11820
prefix="$acl_save_prefix"
11822
if test "X$x" = "X-L$additional_libdir"; then
11827
if test -z "$haveit"; then
11828
if test -d "$additional_libdir"; then
11829
LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$additional_libdir"
11836
dir=`echo "X$dep" | sed -e 's/^X-R//'`
11837
if test "$enable_rpath" != no; then
11839
for x in $rpathdirs; do
11840
if test "X$x" = "X$dir"; then
11845
if test -z "$haveit"; then
11846
rpathdirs="$rpathdirs $dir"
11849
for x in $ltrpathdirs; do
11850
if test "X$x" = "X$dir"; then
11855
if test -z "$haveit"; then
11856
ltrpathdirs="$ltrpathdirs $dir"
11861
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11864
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11867
LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$dep"
11868
LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$dep"
11874
LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
11875
LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-l$name"
11881
if test "X$rpathdirs" != "X"; then
11882
if test -n "$acl_hardcode_libdir_separator"; then
11884
for found_dir in $rpathdirs; do
11885
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11887
acl_save_libdir="$libdir"
11889
eval flag=\"$acl_hardcode_libdir_flag_spec\"
11890
libdir="$acl_save_libdir"
11891
LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
11893
for found_dir in $rpathdirs; do
11894
acl_save_libdir="$libdir"
11895
libdir="$found_dir"
11896
eval flag=\"$acl_hardcode_libdir_flag_spec\"
11897
libdir="$acl_save_libdir"
11898
LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
11902
if test "X$ltrpathdirs" != "X"; then
11903
for found_dir in $ltrpathdirs; do
11904
LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-R$found_dir"
11914
ac_save_CPPFLAGS="$CPPFLAGS"
11916
for element in $INCGCRYPT; do
11918
for x in $CPPFLAGS; do
11920
acl_save_prefix="$prefix"
11921
prefix="$acl_final_prefix"
11922
acl_save_exec_prefix="$exec_prefix"
11923
exec_prefix="$acl_final_exec_prefix"
11925
exec_prefix="$acl_save_exec_prefix"
11926
prefix="$acl_save_prefix"
11928
if test "X$x" = "X$element"; then
11933
if test -z "$haveit"; then
11934
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
11940
$as_echo_n "checking for libgcrypt... " >&6; }
11941
if test "${ac_cv_libgcrypt+set}" = set; then :
11942
$as_echo_n "(cached) " >&6
11945
ac_save_LIBS="$LIBS"
11946
LIBS="$LIBS $LIBGCRYPT"
11947
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948
/* end confdefs.h. */
11949
#include <gcrypt.h>
11953
enum gcry_cipher_algos i = GCRY_CIPHER_CAMELLIA128
11958
if ac_fn_c_try_link "$LINENO"; then :
11959
ac_cv_libgcrypt=yes
11961
ac_cv_libgcrypt='no'
11963
rm -f core conftest.err conftest.$ac_objext \
11964
conftest$ac_exeext conftest.$ac_ext
11965
LIBS="$ac_save_LIBS"
11968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgcrypt" >&5
11969
$as_echo "$ac_cv_libgcrypt" >&6; }
11970
if test "$ac_cv_libgcrypt" = yes; then
11973
$as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
11975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgcrypt" >&5
11976
$as_echo_n "checking how to link with libgcrypt... " >&6; }
11977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT" >&5
11978
$as_echo "$LIBGCRYPT" >&6; }
11981
CPPFLAGS="$ac_save_CPPFLAGS"
11993
if test "$ac_cv_libgcrypt" != yes; then
11996
*** libgcrypt was not found. You may want to get it from
11997
*** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
12003
# Check whether --with-included-libtasn1 was given.
12004
if test "${with_included_libtasn1+set}" = set; then :
12005
withval=$with_included_libtasn1; included_libtasn1=$withval
12007
included_libtasn1=no
12010
if test "$included_libtasn1" = "no"; then
12026
acl_save_prefix="$prefix"
12027
prefix="$acl_final_prefix"
12028
acl_save_exec_prefix="$exec_prefix"
12029
exec_prefix="$acl_final_exec_prefix"
12031
eval additional_includedir=\"$includedir\"
12032
eval additional_libdir=\"$libdir\"
12034
exec_prefix="$acl_save_exec_prefix"
12035
prefix="$acl_save_prefix"
12038
# Check whether --with-libtasn1-prefix was given.
12039
if test "${with_libtasn1_prefix+set}" = set; then :
12040
withval=$with_libtasn1_prefix;
12041
if test "X$withval" = "Xno"; then
12044
if test "X$withval" = "X"; then
12046
acl_save_prefix="$prefix"
12047
prefix="$acl_final_prefix"
12048
acl_save_exec_prefix="$exec_prefix"
12049
exec_prefix="$acl_final_exec_prefix"
12051
eval additional_includedir=\"$includedir\"
12052
eval additional_libdir=\"$libdir\"
12054
exec_prefix="$acl_save_exec_prefix"
12055
prefix="$acl_save_prefix"
12058
additional_includedir="$withval/include"
12059
additional_libdir="$withval/$acl_libdirstem"
12060
if test "$acl_libdirstem2" != "$acl_libdirstem" \
12061
&& ! test -d "$withval/$acl_libdirstem"; then
12062
additional_libdir="$withval/$acl_libdirstem2"
12075
names_already_handled=
12076
names_next_round='tasn1 '
12077
while test -n "$names_next_round"; do
12078
names_this_round="$names_next_round"
12080
for name in $names_this_round; do
12082
for n in $names_already_handled; do
12083
if test "$n" = "$name"; then
12084
already_handled=yes
12088
if test -z "$already_handled"; then
12089
names_already_handled="$names_already_handled $name"
12090
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12091
eval value=\"\$HAVE_LIB$uppername\"
12092
if test -n "$value"; then
12093
if test "$value" = yes; then
12094
eval value=\"\$LIB$uppername\"
12095
test -z "$value" || LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$value"
12096
eval value=\"\$LTLIB$uppername\"
12097
test -z "$value" || LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$value"
12106
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12107
if test -n "$acl_shlibext"; then
12108
shrext=".$acl_shlibext" # typically: shrext=.so
12112
if test $use_additional = yes; then
12113
dir="$additional_libdir"
12114
if test -n "$acl_shlibext"; then
12115
if test -f "$dir/$libname$shrext"; then
12117
found_so="$dir/$libname$shrext"
12119
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12120
ver=`(cd "$dir" && \
12121
for f in "$libname$shrext".*; do echo "$f"; done \
12122
| sed -e "s,^$libname$shrext\\\\.,," \
12123
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12124
| sed 1q ) 2>/dev/null`
12125
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12127
found_so="$dir/$libname$shrext.$ver"
12130
eval library_names=\"$acl_library_names_spec\"
12131
for f in $library_names; do
12132
if test -f "$dir/$f"; then
12141
if test "X$found_dir" = "X"; then
12142
if test -f "$dir/$libname.$acl_libext"; then
12144
found_a="$dir/$libname.$acl_libext"
12147
if test "X$found_dir" != "X"; then
12148
if test -f "$dir/$libname.la"; then
12149
found_la="$dir/$libname.la"
12153
if test "X$found_dir" = "X"; then
12154
for x in $LDFLAGS $LTLIBTASN1; do
12156
acl_save_prefix="$prefix"
12157
prefix="$acl_final_prefix"
12158
acl_save_exec_prefix="$exec_prefix"
12159
exec_prefix="$acl_final_exec_prefix"
12161
exec_prefix="$acl_save_exec_prefix"
12162
prefix="$acl_save_prefix"
12166
dir=`echo "X$x" | sed -e 's/^X-L//'`
12167
if test -n "$acl_shlibext"; then
12168
if test -f "$dir/$libname$shrext"; then
12170
found_so="$dir/$libname$shrext"
12172
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12173
ver=`(cd "$dir" && \
12174
for f in "$libname$shrext".*; do echo "$f"; done \
12175
| sed -e "s,^$libname$shrext\\\\.,," \
12176
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12177
| sed 1q ) 2>/dev/null`
12178
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12180
found_so="$dir/$libname$shrext.$ver"
12183
eval library_names=\"$acl_library_names_spec\"
12184
for f in $library_names; do
12185
if test -f "$dir/$f"; then
12194
if test "X$found_dir" = "X"; then
12195
if test -f "$dir/$libname.$acl_libext"; then
12197
found_a="$dir/$libname.$acl_libext"
12200
if test "X$found_dir" != "X"; then
12201
if test -f "$dir/$libname.la"; then
12202
found_la="$dir/$libname.la"
12207
if test "X$found_dir" != "X"; then
12212
if test "X$found_dir" != "X"; then
12213
LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$found_dir -l$name"
12214
if test "X$found_so" != "X"; then
12215
if test "$enable_rpath" = no \
12216
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
12217
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12218
LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
12221
for x in $ltrpathdirs; do
12222
if test "X$x" = "X$found_dir"; then
12227
if test -z "$haveit"; then
12228
ltrpathdirs="$ltrpathdirs $found_dir"
12230
if test "$acl_hardcode_direct" = yes; then
12231
LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
12233
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12234
LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
12236
for x in $rpathdirs; do
12237
if test "X$x" = "X$found_dir"; then
12242
if test -z "$haveit"; then
12243
rpathdirs="$rpathdirs $found_dir"
12247
for x in $LDFLAGS $LIBTASN1; do
12249
acl_save_prefix="$prefix"
12250
prefix="$acl_final_prefix"
12251
acl_save_exec_prefix="$exec_prefix"
12252
exec_prefix="$acl_final_exec_prefix"
12254
exec_prefix="$acl_save_exec_prefix"
12255
prefix="$acl_save_prefix"
12257
if test "X$x" = "X-L$found_dir"; then
12262
if test -z "$haveit"; then
12263
LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir"
12265
if test "$acl_hardcode_minus_L" != no; then
12266
LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so"
12268
LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name"
12274
if test "X$found_a" != "X"; then
12275
LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_a"
12277
LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir -l$name"
12280
additional_includedir=
12281
case "$found_dir" in
12282
*/$acl_libdirstem | */$acl_libdirstem/)
12283
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12284
if test "$name" = 'tasn1'; then
12285
LIBTASN1_PREFIX="$basedir"
12287
additional_includedir="$basedir/include"
12289
*/$acl_libdirstem2 | */$acl_libdirstem2/)
12290
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12291
if test "$name" = 'tasn1'; then
12292
LIBTASN1_PREFIX="$basedir"
12294
additional_includedir="$basedir/include"
12297
if test "X$additional_includedir" != "X"; then
12298
if test "X$additional_includedir" != "X/usr/include"; then
12300
if test "X$additional_includedir" = "X/usr/local/include"; then
12301
if test -n "$GCC"; then
12303
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12307
if test -z "$haveit"; then
12308
for x in $CPPFLAGS $INCTASN1; do
12310
acl_save_prefix="$prefix"
12311
prefix="$acl_final_prefix"
12312
acl_save_exec_prefix="$exec_prefix"
12313
exec_prefix="$acl_final_exec_prefix"
12315
exec_prefix="$acl_save_exec_prefix"
12316
prefix="$acl_save_prefix"
12318
if test "X$x" = "X-I$additional_includedir"; then
12323
if test -z "$haveit"; then
12324
if test -d "$additional_includedir"; then
12325
INCTASN1="${INCTASN1}${INCTASN1:+ }-I$additional_includedir"
12331
if test -n "$found_la"; then
12332
save_libdir="$libdir"
12333
case "$found_la" in
12334
*/* | *\\*) . "$found_la" ;;
12335
*) . "./$found_la" ;;
12337
libdir="$save_libdir"
12338
for dep in $dependency_libs; do
12341
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12342
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12343
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12345
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12346
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12347
if test -n "$GCC"; then
12349
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12353
if test -z "$haveit"; then
12355
for x in $LDFLAGS $LIBTASN1; do
12357
acl_save_prefix="$prefix"
12358
prefix="$acl_final_prefix"
12359
acl_save_exec_prefix="$exec_prefix"
12360
exec_prefix="$acl_final_exec_prefix"
12362
exec_prefix="$acl_save_exec_prefix"
12363
prefix="$acl_save_prefix"
12365
if test "X$x" = "X-L$additional_libdir"; then
12370
if test -z "$haveit"; then
12371
if test -d "$additional_libdir"; then
12372
LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$additional_libdir"
12376
for x in $LDFLAGS $LTLIBTASN1; do
12378
acl_save_prefix="$prefix"
12379
prefix="$acl_final_prefix"
12380
acl_save_exec_prefix="$exec_prefix"
12381
exec_prefix="$acl_final_exec_prefix"
12383
exec_prefix="$acl_save_exec_prefix"
12384
prefix="$acl_save_prefix"
12386
if test "X$x" = "X-L$additional_libdir"; then
12391
if test -z "$haveit"; then
12392
if test -d "$additional_libdir"; then
12393
LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$additional_libdir"
12400
dir=`echo "X$dep" | sed -e 's/^X-R//'`
12401
if test "$enable_rpath" != no; then
12403
for x in $rpathdirs; do
12404
if test "X$x" = "X$dir"; then
12409
if test -z "$haveit"; then
12410
rpathdirs="$rpathdirs $dir"
12413
for x in $ltrpathdirs; do
12414
if test "X$x" = "X$dir"; then
12419
if test -z "$haveit"; then
12420
ltrpathdirs="$ltrpathdirs $dir"
12425
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12428
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12431
LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$dep"
12432
LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$dep"
12438
LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name"
12439
LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-l$name"
12445
if test "X$rpathdirs" != "X"; then
12446
if test -n "$acl_hardcode_libdir_separator"; then
12448
for found_dir in $rpathdirs; do
12449
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12451
acl_save_libdir="$libdir"
12453
eval flag=\"$acl_hardcode_libdir_flag_spec\"
12454
libdir="$acl_save_libdir"
12455
LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag"
12457
for found_dir in $rpathdirs; do
12458
acl_save_libdir="$libdir"
12459
libdir="$found_dir"
12460
eval flag=\"$acl_hardcode_libdir_flag_spec\"
12461
libdir="$acl_save_libdir"
12462
LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag"
12466
if test "X$ltrpathdirs" != "X"; then
12467
for found_dir in $ltrpathdirs; do
12468
LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-R$found_dir"
12478
ac_save_CPPFLAGS="$CPPFLAGS"
12480
for element in $INCTASN1; do
12482
for x in $CPPFLAGS; do
12484
acl_save_prefix="$prefix"
12485
prefix="$acl_final_prefix"
12486
acl_save_exec_prefix="$exec_prefix"
12487
exec_prefix="$acl_final_exec_prefix"
12489
exec_prefix="$acl_save_exec_prefix"
12490
prefix="$acl_save_prefix"
12492
if test "X$x" = "X$element"; then
12497
if test -z "$haveit"; then
12498
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtasn1" >&5
12504
$as_echo_n "checking for libtasn1... " >&6; }
12505
if test "${ac_cv_libtasn1+set}" = set; then :
12506
$as_echo_n "(cached) " >&6
12509
ac_save_LIBS="$LIBS"
12510
LIBS="$LIBS $LIBTASN1"
12511
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512
/* end confdefs.h. */
12513
#include <libtasn1.h>
12517
asn1_check_version (NULL)
12522
if ac_fn_c_try_link "$LINENO"; then :
12525
ac_cv_libtasn1='no'
12527
rm -f core conftest.err conftest.$ac_objext \
12528
conftest$ac_exeext conftest.$ac_ext
12529
LIBS="$ac_save_LIBS"
12532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libtasn1" >&5
12533
$as_echo "$ac_cv_libtasn1" >&6; }
12534
if test "$ac_cv_libtasn1" = yes; then
12537
$as_echo "#define HAVE_LIBTASN1 1" >>confdefs.h
12539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libtasn1" >&5
12540
$as_echo_n "checking how to link with libtasn1... " >&6; }
12541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTASN1" >&5
12542
$as_echo "$LIBTASN1" >&6; }
12545
CPPFLAGS="$ac_save_CPPFLAGS"
12557
if test "$ac_cv_libtasn1" != yes; then
12558
included_libtasn1=yes
12559
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12561
*** Libtasn1 was not found. Will use the included one.
12563
$as_echo "$as_me: WARNING:
12565
*** Libtasn1 was not found. Will use the included one.
12569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included minitasn1" >&5
12570
$as_echo_n "checking whether to use the included minitasn1... " >&6; }
12571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $included_libtasn1" >&5
12572
$as_echo "$included_libtasn1" >&6; }
12573
if test "$included_libtasn1" = "yes"; then
12574
ENABLE_MINITASN1_TRUE=
12575
ENABLE_MINITASN1_FALSE='#'
12577
ENABLE_MINITASN1_TRUE='#'
12578
ENABLE_MINITASN1_FALSE=
12583
# Check whether --with-lzo was given.
12584
if test "${with_lzo+set}" = set; then :
12585
withval=$with_lzo; use_lzo=$withval
12590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include LZO compression support" >&5
12591
$as_echo_n "checking whether to include LZO compression support... " >&6; }
12592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lzo" >&5
12593
$as_echo "$use_lzo" >&6; }
12595
if test "$use_lzo" = "yes"; then
12596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
12597
$as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
12598
if test "${ac_cv_lib_lzo2_lzo1x_1_compress+set}" = set; then :
12599
$as_echo_n "(cached) " >&6
12601
ac_check_lib_save_LIBS=$LIBS
12602
LIBS="-llzo2 $LIBS"
12603
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604
/* end confdefs.h. */
12606
/* Override any GCC internal prototype to avoid an error.
12607
Use char because int might match the return type of a GCC
12608
builtin and then its argument prototype would still apply. */
12612
char lzo1x_1_compress ();
12616
return lzo1x_1_compress ();
12621
if ac_fn_c_try_link "$LINENO"; then :
12622
ac_cv_lib_lzo2_lzo1x_1_compress=yes
12624
ac_cv_lib_lzo2_lzo1x_1_compress=no
12626
rm -f core conftest.err conftest.$ac_objext \
12627
conftest$ac_exeext conftest.$ac_ext
12628
LIBS=$ac_check_lib_save_LIBS
12630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
12631
$as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
12632
if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = x""yes; then :
12636
if test "$LZO_LIBS" = ""; then
12637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo" >&5
12638
$as_echo_n "checking for lzo1x_1_compress in -llzo... " >&6; }
12639
if test "${ac_cv_lib_lzo_lzo1x_1_compress+set}" = set; then :
12640
$as_echo_n "(cached) " >&6
12642
ac_check_lib_save_LIBS=$LIBS
12644
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645
/* end confdefs.h. */
12647
/* Override any GCC internal prototype to avoid an error.
12648
Use char because int might match the return type of a GCC
12649
builtin and then its argument prototype would still apply. */
12653
char lzo1x_1_compress ();
12657
return lzo1x_1_compress ();
12662
if ac_fn_c_try_link "$LINENO"; then :
12663
ac_cv_lib_lzo_lzo1x_1_compress=yes
12665
ac_cv_lib_lzo_lzo1x_1_compress=no
12667
rm -f core conftest.err conftest.$ac_objext \
12668
conftest$ac_exeext conftest.$ac_ext
12669
LIBS=$ac_check_lib_save_LIBS
12671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_compress" >&5
12672
$as_echo "$ac_cv_lib_lzo_lzo1x_1_compress" >&6; }
12673
if test "x$ac_cv_lib_lzo_lzo1x_1_compress" = x""yes; then :
12678
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
12679
*** Could not find liblzo or liblzo2. Disabling LZO compression.
12681
$as_echo "$as_me: WARNING: ***
12682
*** Could not find liblzo or liblzo2. Disabling LZO compression.
12690
if test "$use_lzo" = "yes"; then
12692
$as_echo "#define USE_LZO 1" >>confdefs.h
12694
if test "$LZO_LIBS" = "-llzo"; then
12695
for ac_header in lzo1x.h
12697
ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
12698
if test "x$ac_cv_header_lzo1x_h" = x""yes; then :
12699
cat >>confdefs.h <<_ACEOF
12700
#define HAVE_LZO1X_H 1
12707
elif test "$LZO_LIBS" = "-llzo2"; then
12708
for ac_header in lzo/lzo1x.h
12710
ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
12711
if test "x$ac_cv_header_lzo_lzo1x_h" = x""yes; then :
12712
cat >>confdefs.h <<_ACEOF
12713
#define HAVE_LZO_LZO1X_H 1
12722
if test "$use_lzo" = "yes"; then
12731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 macros are supported" >&5
12732
$as_echo_n "checking whether C99 macros are supported... " >&6; }
12733
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734
/* end confdefs.h. */
12740
#define test_mac(...)
12749
if ac_fn_c_try_compile "$LINENO"; then :
12752
$as_echo "#define C99_MACROS 1" >>confdefs.h
12754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12755
$as_echo "yes" >&6; }
12759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760
$as_echo "no" >&6; }
12761
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C99 macros not supported. This may affect compiling." >&5
12762
$as_echo "$as_me: WARNING: C99 macros not supported. This may affect compiling." >&2;}
12765
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Opaque PRF input support" >&5
12768
$as_echo_n "checking whether to enable Opaque PRF input support... " >&6; }
12769
# Check whether --enable-opaque-prf-input was given.
12770
if test "${enable_opaque_prf_input+set}" = set; then :
12771
enableval=$enable_opaque_prf_input; ac_opaque_prf_input=$enableval
12773
ac_opaque_prf_input=no
12776
if test "$ac_opaque_prf_input" != "no"; then
12777
if ! echo $ac_opaque_prf_input | egrep -q '^[0-9]+$'; then
12778
ac_opaque_prf_input=no
12779
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12780
*** Could not parse Opaque PRF Input extension type.
12781
*** Use --enable-opaque-prf-input=XX where XX is decimal, for example
12782
*** to use extension value 42 use --enable-opqaue-prf-input=42" >&5
12783
$as_echo "$as_me: WARNING:
12784
*** Could not parse Opaque PRF Input extension type.
12785
*** Use --enable-opaque-prf-input=XX where XX is decimal, for example
12786
*** to use extension value 42 use --enable-opqaue-prf-input=42" >&2;}
12789
if test "$ac_opaque_prf_input" != "no"; then
12790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (extension value $ac_opaque_prf_input)" >&5
12791
$as_echo "yes (extension value $ac_opaque_prf_input)" >&6; }
12793
cat >>confdefs.h <<_ACEOF
12794
#define ENABLE_OPRFI $ac_opaque_prf_input
12798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799
$as_echo "no" >&6; }
12801
if test "$ac_opaque_prf_input" != "no"; then
12803
ENABLE_OPRFI_FALSE='#'
12805
ENABLE_OPRFI_TRUE='#'
12806
ENABLE_OPRFI_FALSE=
12810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SRP authentication support" >&5
12811
$as_echo_n "checking whether to disable SRP authentication support... " >&6; }
12812
# Check whether --enable-srp-authentication was given.
12813
if test "${enable_srp_authentication+set}" = set; then :
12814
enableval=$enable_srp_authentication; ac_enable_srp=no
12817
if test x$ac_enable_srp != xno; then
12818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819
$as_echo "no" >&6; }
12821
$as_echo "#define ENABLE_SRP 1" >>confdefs.h
12825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12826
$as_echo "yes" >&6; }
12828
if test "$ac_enable_srp" != "no"; then
12830
ENABLE_SRP_FALSE='#'
12832
ENABLE_SRP_TRUE='#'
12837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable PSK authentication support" >&5
12838
$as_echo_n "checking whether to disable PSK authentication support... " >&6; }
12839
# Check whether --enable-psk-authentication was given.
12840
if test "${enable_psk_authentication+set}" = set; then :
12841
enableval=$enable_psk_authentication; ac_enable_psk=no
12844
if test x$ac_enable_psk != xno; then
12845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846
$as_echo "no" >&6; }
12848
$as_echo "#define ENABLE_PSK 1" >>confdefs.h
12852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12853
$as_echo "yes" >&6; }
12855
if test "$ac_enable_psk" != "no"; then
12857
ENABLE_PSK_FALSE='#'
12859
ENABLE_PSK_TRUE='#'
12864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable anonymous authentication support" >&5
12865
$as_echo_n "checking whether to disable anonymous authentication support... " >&6; }
12866
# Check whether --enable-anon-authentication was given.
12867
if test "${enable_anon_authentication+set}" = set; then :
12868
enableval=$enable_anon_authentication; ac_enable_anon=no
12871
if test x$ac_enable_anon != xno; then
12872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873
$as_echo "no" >&6; }
12875
$as_echo "#define ENABLE_ANON 1" >>confdefs.h
12879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12880
$as_echo "yes" >&6; }
12882
if test "$ac_enable_anon" != "no"; then
12884
ENABLE_ANON_FALSE='#'
12886
ENABLE_ANON_TRUE='#'
12891
# Allow disabling Camellia
12892
# Check whether --enable-camellia was given.
12893
if test "${enable_camellia+set}" = set; then :
12894
enableval=$enable_camellia; enable_camellia=$enableval
12896
enable_camellia=yes
12899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable Camellia cipher" >&5
12900
$as_echo_n "checking whether to disable Camellia cipher... " >&6; }
12901
if test "$enable_camellia" != "no"; then
12902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903
$as_echo "no" >&6; }
12905
$as_echo "#define ENABLE_CAMELLIA 1" >>confdefs.h
12908
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12909
$as_echo "yes" >&6; }
12912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable extra PKI stuff" >&5
12913
$as_echo_n "checking whether to disable extra PKI stuff... " >&6; }
12914
# Check whether --enable-extra-pki was given.
12915
if test "${enable_extra_pki+set}" = set; then :
12916
enableval=$enable_extra_pki; enable_pki=$enableval
12921
if test "$enable_pki" != "yes"; then
12923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12924
$as_echo "yes" >&6; }
12926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927
$as_echo "no" >&6; }
12929
$as_echo "#define ENABLE_PKI 1" >>confdefs.h
12932
if test "$enable_pki" = "yes"; then
12934
ENABLE_PKI_FALSE='#'
12936
ENABLE_PKI_TRUE='#'
12941
ac_enable_openpgp=yes
12942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OpenPGP Certificate authentication support" >&5
12943
$as_echo_n "checking whether to disable OpenPGP Certificate authentication support... " >&6; }
12944
# Check whether --enable-openpgp-authentication was given.
12945
if test "${enable_openpgp_authentication+set}" = set; then :
12946
enableval=$enable_openpgp_authentication; ac_enable_openpgp=no
12949
if test x$ac_enable_openpgp = xno; then
12950
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12951
$as_echo "yes" >&6; }
12955
$as_echo "#define ENABLE_OPENPGP 1" >>confdefs.h
12957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958
$as_echo "no" >&6; }
12960
if test "$ac_enable_openpgp" = "yes"; then
12961
ENABLE_OPENPGP_TRUE=
12962
ENABLE_OPENPGP_FALSE='#'
12964
ENABLE_OPENPGP_TRUE='#'
12965
ENABLE_OPENPGP_FALSE=
12969
# For storing integers in pointers without warnings
12970
# http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
12971
# The cast to long int works around a bug in the HP C Compiler
12972
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12973
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12974
# This bug is HP SR number 8606223364.
12975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12976
$as_echo_n "checking size of void *... " >&6; }
12977
if test "${ac_cv_sizeof_void_p+set}" = set; then :
12978
$as_echo_n "(cached) " >&6
12980
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12983
if test "$ac_cv_type_void_p" = yes; then
12984
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12985
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12986
{ as_fn_set_status 77
12987
as_fn_error "cannot compute sizeof (void *)
12988
See \`config.log' for more details." "$LINENO" 5; }; }
12990
ac_cv_sizeof_void_p=0
12995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12996
$as_echo "$ac_cv_sizeof_void_p" >&6; }
13000
cat >>confdefs.h <<_ACEOF
13001
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13005
# The cast to long int works around a bug in the HP C Compiler
13006
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13007
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13008
# This bug is HP SR number 8606223364.
13009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13010
$as_echo_n "checking size of long... " >&6; }
13011
if test "${ac_cv_sizeof_long+set}" = set; then :
13012
$as_echo_n "(cached) " >&6
13014
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13017
if test "$ac_cv_type_long" = yes; then
13018
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13019
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13020
{ as_fn_set_status 77
13021
as_fn_error "cannot compute sizeof (long)
13022
See \`config.log' for more details." "$LINENO" 5; }; }
13024
ac_cv_sizeof_long=0
13029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13030
$as_echo "$ac_cv_sizeof_long" >&6; }
13034
cat >>confdefs.h <<_ACEOF
13035
#define SIZEOF_LONG $ac_cv_sizeof_long
13039
# The cast to long int works around a bug in the HP C Compiler
13040
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13041
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13042
# This bug is HP SR number 8606223364.
13043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13044
$as_echo_n "checking size of int... " >&6; }
13045
if test "${ac_cv_sizeof_int+set}" = set; then :
13046
$as_echo_n "(cached) " >&6
13048
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13051
if test "$ac_cv_type_int" = yes; then
13052
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13053
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13054
{ as_fn_set_status 77
13055
as_fn_error "cannot compute sizeof (int)
13056
See \`config.log' for more details." "$LINENO" 5; }; }
13063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13064
$as_echo "$ac_cv_sizeof_int" >&6; }
13068
cat >>confdefs.h <<_ACEOF
13069
#define SIZEOF_INT $ac_cv_sizeof_int
13073
case $ac_cv_sizeof_void_p in
13074
$ac_cv_sizeof_long)
13076
$as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long)" >>confdefs.h
13080
$as_echo "#define GNUTLS_POINTER_TO_INT_CAST /**/" >>confdefs.h
13085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13086
$as_echo_n "checking for inline... " >&6; }
13087
if test "${ac_cv_c_inline+set}" = set; then :
13088
$as_echo_n "(cached) " >&6
13091
for ac_kw in inline __inline__ __inline; do
13092
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093
/* end confdefs.h. */
13094
#ifndef __cplusplus
13096
static $ac_kw foo_t static_foo () {return 0; }
13097
$ac_kw foo_t foo () {return 0; }
13101
if ac_fn_c_try_compile "$LINENO"; then :
13102
ac_cv_c_inline=$ac_kw
13104
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13105
test "$ac_cv_c_inline" != no && break
13109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13110
$as_echo "$ac_cv_c_inline" >&6; }
13112
case $ac_cv_c_inline in
13115
case $ac_cv_c_inline in
13117
*) ac_val=$ac_cv_c_inline;;
13119
cat >>confdefs.h <<_ACEOF
13120
#ifndef __cplusplus
13121
#define inline $ac_val
13132
GNULIB_EUIDACCESS=0;
13135
GNULIB_FTRUNCATE=0;
13137
GNULIB_GETDOMAINNAME=0;
13138
GNULIB_GETDTABLESIZE=0;
13139
GNULIB_GETHOSTNAME=0;
13140
GNULIB_GETLOGIN_R=0;
13141
GNULIB_GETPAGESIZE=0;
13142
GNULIB_GETUSERSHELL=0;
13148
GNULIB_UNISTD_H_SIGPIPE=0;
13154
HAVE_GETDOMAINNAME=1;
13155
HAVE_GETDTABLESIZE=1;
13156
HAVE_GETHOSTNAME=1;
13157
HAVE_GETPAGESIZE=1;
13158
HAVE_GETUSERSHELL=1;
13162
HAVE_DECL_ENVIRON=1;
13163
HAVE_DECL_GETLOGIN_R=1;
13165
HAVE_SYS_PARAM_H=0;
13170
REPLACE_GETPAGESIZE=0;
13174
UNISTD_H_HAVE_WINSOCK2_H=0;
13179
for ac_header in $ac_header_list
13181
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13182
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13184
eval as_val=\$$as_ac_Header
13185
if test "x$as_val" = x""yes; then :
13186
cat >>confdefs.h <<_ACEOF
13187
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OpenSSL compatibility layer" >&5
13198
$as_echo_n "checking whether to disable OpenSSL compatibility layer... " >&6; }
13199
# Check whether --enable-openssl-compatibility was given.
13200
if test "${enable_openssl_compatibility+set}" = set; then :
13201
enableval=$enable_openssl_compatibility; enable_openssl=$withval
13206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
13207
$as_echo "$enable_openssl" >&6; }
13208
if test "$enable_openssl" = "yes"; then
13209
ENABLE_OPENSSL_TRUE=
13210
ENABLE_OPENSSL_FALSE='#'
13212
ENABLE_OPENSSL_TRUE='#'
13213
ENABLE_OPENSSL_FALSE=
13217
# We link to ../lib's gnulib, which needs -lws2_32 via LIBSOCKET in Makefile.am.
13225
if test $ac_cv_header_sys_socket_h != yes; then
13226
for ac_header in winsock2.h
13228
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
13229
if test "x$ac_cv_header_winsock2_h" = x""yes; then :
13230
cat >>confdefs.h <<_ACEOF
13231
#define HAVE_WINSOCK2_H 1
13239
if test "$ac_cv_header_winsock2_h" = yes; then
13241
UNISTD_H_HAVE_WINSOCK2_H=1
13242
SYS_IOCTL_H_HAVE_WINSOCK2_H=1
13248
if test $HAVE_WINSOCK2_H = 1; then
13249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
13250
$as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
13251
if test "${gl_cv_func_wsastartup+set}" = set; then :
13252
$as_echo_n "(cached) " >&6
13255
gl_save_LIBS="$LIBS"
13256
LIBS="$LIBS -lws2_32"
13257
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258
/* end confdefs.h. */
13260
#ifdef HAVE_WINSOCK2_H
13261
# include <winsock2.h>
13267
WORD wVersionRequested = MAKEWORD(1, 1);
13269
int err = WSAStartup(wVersionRequested, &wsaData);
13275
if ac_fn_c_try_link "$LINENO"; then :
13276
gl_cv_func_wsastartup=yes
13278
gl_cv_func_wsastartup=no
13280
rm -f core conftest.err conftest.$ac_objext \
13281
conftest$ac_exeext conftest.$ac_ext
13282
LIBS="$gl_save_LIBS"
13285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
13286
$as_echo "$gl_cv_func_wsastartup" >&6; }
13287
if test "$gl_cv_func_wsastartup" = "yes"; then
13289
$as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
13291
LIBSOCKET='-lws2_32'
13294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
13295
$as_echo_n "checking for library containing setsockopt... " >&6; }
13296
if test "${gl_cv_lib_socket+set}" = set; then :
13297
$as_echo_n "(cached) " >&6
13301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302
/* end confdefs.h. */
13316
if ac_fn_c_try_link "$LINENO"; then :
13319
gl_save_LIBS="$LIBS"
13320
LIBS="$gl_save_LIBS -lsocket"
13321
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322
/* end confdefs.h. */
13336
if ac_fn_c_try_link "$LINENO"; then :
13337
gl_cv_lib_socket="-lsocket"
13339
rm -f core conftest.err conftest.$ac_objext \
13340
conftest$ac_exeext conftest.$ac_ext
13341
if test -z "$gl_cv_lib_socket"; then
13342
LIBS="$gl_save_LIBS -lnetwork"
13343
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344
/* end confdefs.h. */
13358
if ac_fn_c_try_link "$LINENO"; then :
13359
gl_cv_lib_socket="-lnetwork"
13361
rm -f core conftest.err conftest.$ac_objext \
13362
conftest$ac_exeext conftest.$ac_ext
13363
if test -z "$gl_cv_lib_socket"; then
13364
LIBS="$gl_save_LIBS -lnet"
13365
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366
/* end confdefs.h. */
13380
if ac_fn_c_try_link "$LINENO"; then :
13381
gl_cv_lib_socket="-lnet"
13383
rm -f core conftest.err conftest.$ac_objext \
13384
conftest$ac_exeext conftest.$ac_ext
13387
LIBS="$gl_save_LIBS"
13390
rm -f core conftest.err conftest.$ac_objext \
13391
conftest$ac_exeext conftest.$ac_ext
13392
if test -z "$gl_cv_lib_socket"; then
13393
gl_cv_lib_socket="none needed"
13397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
13398
$as_echo "$gl_cv_lib_socket" >&6; }
13399
if test "$gl_cv_lib_socket" != "none needed"; then
13400
LIBSOCKET="$gl_cv_lib_socket"
13416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13417
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13418
if test "${ac_cv_c_bigendian+set}" = set; then :
13419
$as_echo_n "(cached) " >&6
13421
ac_cv_c_bigendian=unknown
13422
# See if we're dealing with a universal compiler.
13423
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424
/* end confdefs.h. */
13425
#ifndef __APPLE_CC__
13426
not a universal capable compiler
13431
if ac_fn_c_try_compile "$LINENO"; then :
13433
# Check for potential -arch flags. It is not universal unless
13434
# there are at least two -arch flags with different values.
13437
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13438
if test -n "$ac_prev"; then
13440
i?86 | x86_64 | ppc | ppc64)
13441
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13444
ac_cv_c_bigendian=universal
13450
elif test "x$ac_word" = "x-arch"; then
13455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456
if test $ac_cv_c_bigendian = unknown; then
13457
# See if sys/param.h defines the BYTE_ORDER macro.
13458
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459
/* end confdefs.h. */
13460
#include <sys/types.h>
13461
#include <sys/param.h>
13466
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13467
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13469
bogus endian macros
13476
if ac_fn_c_try_compile "$LINENO"; then :
13477
# It does; now see whether it defined to BIG_ENDIAN or not.
13478
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479
/* end confdefs.h. */
13480
#include <sys/types.h>
13481
#include <sys/param.h>
13486
#if BYTE_ORDER != BIG_ENDIAN
13494
if ac_fn_c_try_compile "$LINENO"; then :
13495
ac_cv_c_bigendian=yes
13497
ac_cv_c_bigendian=no
13499
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13503
if test $ac_cv_c_bigendian = unknown; then
13504
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13505
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506
/* end confdefs.h. */
13507
#include <limits.h>
13512
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13513
bogus endian macros
13520
if ac_fn_c_try_compile "$LINENO"; then :
13521
# It does; now see whether it defined to _BIG_ENDIAN or not.
13522
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523
/* end confdefs.h. */
13524
#include <limits.h>
13529
#ifndef _BIG_ENDIAN
13537
if ac_fn_c_try_compile "$LINENO"; then :
13538
ac_cv_c_bigendian=yes
13540
ac_cv_c_bigendian=no
13542
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13546
if test $ac_cv_c_bigendian = unknown; then
13547
# Compile a test program.
13548
if test "$cross_compiling" = yes; then :
13549
# Try to guess by grepping values from an object file.
13550
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551
/* end confdefs.h. */
13552
short int ascii_mm[] =
13553
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13554
short int ascii_ii[] =
13555
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13556
int use_ascii (int i) {
13557
return ascii_mm[i] + ascii_ii[i];
13559
short int ebcdic_ii[] =
13560
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13561
short int ebcdic_mm[] =
13562
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13563
int use_ebcdic (int i) {
13564
return ebcdic_mm[i] + ebcdic_ii[i];
13571
return use_ascii (foo) == use_ebcdic (foo);
13576
if ac_fn_c_try_compile "$LINENO"; then :
13577
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13578
ac_cv_c_bigendian=yes
13580
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13581
if test "$ac_cv_c_bigendian" = unknown; then
13582
ac_cv_c_bigendian=no
13584
# finding both strings is unlikely to happen, but who knows?
13585
ac_cv_c_bigendian=unknown
13589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13591
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592
/* end confdefs.h. */
13593
$ac_includes_default
13598
/* Are we little or big endian? From Harbison&Steele. */
13602
char c[sizeof (long int)];
13605
return u.c[sizeof (long int) - 1] == 1;
13611
if ac_fn_c_try_run "$LINENO"; then :
13612
ac_cv_c_bigendian=no
13614
ac_cv_c_bigendian=yes
13616
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13617
conftest.$ac_objext conftest.beam conftest.$ac_ext
13622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13623
$as_echo "$ac_cv_c_bigendian" >&6; }
13624
case $ac_cv_c_bigendian in #(
13626
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13632
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13636
as_fn_error "unknown endianness
13637
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
13642
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
13643
if test "${ac_cv_c_restrict+set}" = set; then :
13644
$as_echo_n "(cached) " >&6
13646
ac_cv_c_restrict=no
13647
# The order here caters to the fact that C++ does not require restrict.
13648
for ac_kw in __restrict __restrict__ _Restrict restrict; do
13649
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650
/* end confdefs.h. */
13651
typedef int * int_ptr;
13652
int foo (int_ptr $ac_kw ip) {
13659
int * $ac_kw t = s;
13666
if ac_fn_c_try_compile "$LINENO"; then :
13667
ac_cv_c_restrict=$ac_kw
13669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670
test "$ac_cv_c_restrict" != no && break
13674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
13675
$as_echo "$ac_cv_c_restrict" >&6; }
13677
case $ac_cv_c_restrict in
13679
no) $as_echo "#define restrict /**/" >>confdefs.h
13681
*) cat >>confdefs.h <<_ACEOF
13682
#define restrict $ac_cv_c_restrict
13689
GL_COND_LIBTOOL_TRUE=
13690
GL_COND_LIBTOOL_FALSE='#'
13692
GL_COND_LIBTOOL_TRUE='#'
13693
GL_COND_LIBTOOL_FALSE=
13696
gl_cond_libtool=true
13706
gl_source_base='gl'
13716
xgl_LIBOBJS="$xgl_LIBOBJS hmac-md5.$ac_objext"
13728
xgl_LIBOBJS="$xgl_LIBOBJS md5.$ac_objext"
13736
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
13737
$as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
13738
if test "${gl_cv_ld_output_def+set}" = set; then :
13739
$as_echo_n "(cached) " >&6
13741
if test "$enable_shared" = no; then
13742
gl_cv_ld_output_def="not needed, shared libraries are disabled"
13744
gl_ldflags_save=$LDFLAGS
13745
LDFLAGS="-Wl,--output-def,conftest.def"
13746
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747
/* end confdefs.h. */
13757
if ac_fn_c_try_link "$LINENO"; then :
13758
gl_cv_ld_output_def=yes
13760
gl_cv_ld_output_def=no
13762
rm -f core conftest.err conftest.$ac_objext \
13763
conftest$ac_exeext conftest.$ac_ext
13765
LDFLAGS="$gl_ldflags_save"
13768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
13769
$as_echo "$gl_cv_ld_output_def" >&6; }
13770
if test "x$gl_cv_ld_output_def" = "xyes"; then
13771
HAVE_LD_OUTPUT_DEF_TRUE=
13772
HAVE_LD_OUTPUT_DEF_FALSE='#'
13774
HAVE_LD_OUTPUT_DEF_TRUE='#'
13775
HAVE_LD_OUTPUT_DEF_FALSE=
13780
# Check whether --enable-ld-version-script was given.
13781
if test "${enable_ld_version_script+set}" = set; then :
13782
enableval=$enable_ld_version_script; have_ld_version_script=$enableval
13785
if test -z "$have_ld_version_script"; then
13786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
13787
$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
13788
save_LDFLAGS="$LDFLAGS"
13789
LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
13790
cat > conftest.map <<EOF
13799
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800
/* end confdefs.h. */
13810
if ac_fn_c_try_link "$LINENO"; then :
13811
have_ld_version_script=yes
13813
have_ld_version_script=no
13815
rm -f core conftest.err conftest.$ac_objext \
13816
conftest$ac_exeext conftest.$ac_ext
13818
LDFLAGS="$save_LDFLAGS"
13819
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
13820
$as_echo "$have_ld_version_script" >&6; }
13822
if test "$have_ld_version_script" = "yes"; then
13823
HAVE_LD_VERSION_SCRIPT_TRUE=
13824
HAVE_LD_VERSION_SCRIPT_FALSE='#'
13826
HAVE_LD_VERSION_SCRIPT_TRUE='#'
13827
HAVE_LD_VERSION_SCRIPT_FALSE=
13840
xgl_LIBOBJS="$xgl_LIBOBJS memxor.$ac_objext"
13864
gl_source_base='gl/tests'
13874
LIBGNUTLS_EXTRA_LIBS="-L${libdir} -lgnutls-extra $LZO_LIBS $LIBGNUTLS_LIBS"
13875
LIBGNUTLS_EXTRA_CFLAGS="-I${includedir}"
13879
# Finish things from ../configure.ac.
13883
ac_config_files="$ac_config_files Makefile gnutls-extra.pc gl/Makefile includes/Makefile"
13885
cat >confcache <<\_ACEOF
13886
# This file is a shell script that caches the results of configure
13887
# tests run on this system so they can be shared between configure
13888
# scripts and configure runs, see configure's option --config-cache.
13889
# It is not useful on other systems. If it contains results you don't
13890
# want to keep, you may remove or edit it.
13892
# config.status only pays attention to the cache file if you give it
13893
# the --recheck option to rerun configure.
13895
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13896
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13897
# following values.
13901
# The following way of writing the cache mishandles newlines in values,
13902
# but we know of no workaround that is simple, portable, and efficient.
13903
# So, we kill variables containing newlines.
13904
# Ultrix sh set writes to stderr and can't be redirected directly,
13905
# and sets the high bit in the cache file unless we assign to the vars.
13907
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13908
eval ac_val=\$$ac_var
13912
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13913
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13916
_ | IFS | as_nl) ;; #(
13917
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13918
*) { eval $ac_var=; unset $ac_var;} ;;
13924
case $as_nl`(ac_space=' '; set) 2>&1` in #(
13925
*${as_nl}ac_space=\ *)
13926
# `set' does not quote correctly, so add quotes: double-quote
13927
# substitution turns \\\\ into \\, and sed turns \\ into \.
13930
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13933
# `set' quotes correctly as required by POSIX, so do not add quotes.
13934
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13943
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13945
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13947
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13948
if test -w "$cache_file"; then
13949
test "x$cache_file" != "x/dev/null" &&
13950
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13951
$as_echo "$as_me: updating cache $cache_file" >&6;}
13952
cat confcache >$cache_file
13954
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13955
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13960
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13961
# Let make expand exec_prefix.
13962
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13964
DEFS=-DHAVE_CONFIG_H
13968
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13969
# 1. Remove the extension, and $U if already installed.
13970
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13971
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13972
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13973
# will be set to the directory where LIBOBJS objects are built.
13974
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13975
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13977
LIBOBJS=$ac_libobjs
13979
LTLIBOBJS=$ac_ltlibobjs
13982
if test -n "$EXEEXT"; then
13984
am__EXEEXT_FALSE='#'
13986
am__EXEEXT_TRUE='#'
13990
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13991
as_fn_error "conditional \"AMDEP\" was never defined.
13992
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13994
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13995
as_fn_error "conditional \"am__fastdepCC\" was never defined.
13996
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13998
if test -z "${ENABLE_MINITASN1_TRUE}" && test -z "${ENABLE_MINITASN1_FALSE}"; then
13999
as_fn_error "conditional \"ENABLE_MINITASN1\" was never defined.
14000
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14002
if test -z "${USE_LZO_TRUE}" && test -z "${USE_LZO_FALSE}"; then
14003
as_fn_error "conditional \"USE_LZO\" was never defined.
14004
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14006
if test -z "${ENABLE_OPRFI_TRUE}" && test -z "${ENABLE_OPRFI_FALSE}"; then
14007
as_fn_error "conditional \"ENABLE_OPRFI\" was never defined.
14008
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14010
if test -z "${ENABLE_SRP_TRUE}" && test -z "${ENABLE_SRP_FALSE}"; then
14011
as_fn_error "conditional \"ENABLE_SRP\" was never defined.
14012
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14014
if test -z "${ENABLE_PSK_TRUE}" && test -z "${ENABLE_PSK_FALSE}"; then
14015
as_fn_error "conditional \"ENABLE_PSK\" was never defined.
14016
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14018
if test -z "${ENABLE_ANON_TRUE}" && test -z "${ENABLE_ANON_FALSE}"; then
14019
as_fn_error "conditional \"ENABLE_ANON\" was never defined.
14020
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14022
if test -z "${ENABLE_PKI_TRUE}" && test -z "${ENABLE_PKI_FALSE}"; then
14023
as_fn_error "conditional \"ENABLE_PKI\" was never defined.
14024
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14026
if test -z "${ENABLE_OPENPGP_TRUE}" && test -z "${ENABLE_OPENPGP_FALSE}"; then
14027
as_fn_error "conditional \"ENABLE_OPENPGP\" was never defined.
14028
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14030
if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then
14031
as_fn_error "conditional \"ENABLE_OPENSSL\" was never defined.
14032
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14034
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14035
as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
14036
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14039
if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
14040
as_fn_error "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
14041
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14043
if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
14044
as_fn_error "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
14045
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14050
if test -n "$xgl_LIBOBJS"; then
14051
# Remove the extension.
14052
sed_drop_objext='s/\.o$//;s/\.obj$//'
14053
for i in `for i in $xgl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14054
xgl_libobjs="$xgl_libobjs $i.$ac_objext"
14055
xgl_ltlibobjs="$xgl_ltlibobjs $i.lo"
14058
xgl_LIBOBJS=$xgl_libobjs
14060
xgl_LTLIBOBJS=$xgl_ltlibobjs
14065
xgltests_ltlibobjs=
14066
if test -n "$xgltests_LIBOBJS"; then
14067
# Remove the extension.
14068
sed_drop_objext='s/\.o$//;s/\.obj$//'
14069
for i in `for i in $xgltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14070
xgltests_libobjs="$xgltests_libobjs $i.$ac_objext"
14071
xgltests_ltlibobjs="$xgltests_ltlibobjs $i.lo"
14074
xgltests_LIBOBJS=$xgltests_libobjs
14076
xgltests_LTLIBOBJS=$xgltests_ltlibobjs
14080
: ${CONFIG_STATUS=./config.status}
14082
ac_clean_files_save=$ac_clean_files
14083
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14084
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14085
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14087
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14089
# Generated by $as_me.
14090
# Run this file to recreate the current configuration.
14091
# Compiler output produced by configure, useful for debugging
14092
# configure, is in config.log if it exists.
14095
ac_cs_recheck=false
14098
SHELL=\${CONFIG_SHELL-$SHELL}
14101
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14102
## -------------------- ##
14103
## M4sh Initialization. ##
14104
## -------------------- ##
14106
# Be more Bourne compatible
14107
DUALCASE=1; export DUALCASE # for MKS sh
14108
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14111
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14112
# is contrary to our usage. Disable this feature.
14113
alias -g '${1+"$@"}'='"$@"'
14114
setopt NO_GLOB_SUBST
14116
case `(set -o) 2>/dev/null` in #(
14128
# Printing a long string crashes Solaris 7 /usr/bin/printf.
14129
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14130
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14131
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14132
# Prefer a ksh shell builtin over an external printf program on Solaris,
14133
# but without wasting forks for bash or zsh.
14134
if test -z "$BASH_VERSION$ZSH_VERSION" \
14135
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14136
as_echo='print -r --'
14137
as_echo_n='print -rn --'
14138
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14139
as_echo='printf %s\n'
14140
as_echo_n='printf %s'
14142
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14143
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14144
as_echo_n='/usr/ucb/echo -n'
14146
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14147
as_echo_n_body='eval
14151
expr "X$arg" : "X\\(.*\\)$as_nl";
14152
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14154
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14156
export as_echo_n_body
14157
as_echo_n='sh -c $as_echo_n_body as_echo'
14159
export as_echo_body
14160
as_echo='sh -c $as_echo_body as_echo'
14163
# The user is always right.
14164
if test "${PATH_SEPARATOR+set}" != set; then
14166
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14167
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14174
# We need space, tab and new line, in precisely that order. Quoting is
14175
# there to prevent editors from complaining about space-tab.
14176
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14177
# splitting by setting IFS to empty value.)
14180
# Find who we are. Look in the path if we contain no directory separator.
14182
*[\\/]* ) as_myself=$0 ;;
14183
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184
for as_dir in $PATH
14187
test -z "$as_dir" && as_dir=.
14188
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14194
# We did not find ourselves, most probably we were run as `sh COMMAND'
14195
# in which case we are not to be found in the path.
14196
if test "x$as_myself" = x; then
14199
if test ! -f "$as_myself"; then
14200
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14204
# Unset variables that we do not need and which cause bugs (e.g. in
14205
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14206
# suppresses any "Segmentation fault" message there. '((' could
14207
# trigger a bug in pdksh 5.2.14.
14208
for as_var in BASH_ENV ENV MAIL MAILPATH
14209
do eval test x\${$as_var+set} = xset \
14210
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14223
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14226
# as_fn_error ERROR [LINENO LOG_FD]
14227
# ---------------------------------
14228
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14229
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14230
# script with status $?, using 1 if that was 0.
14233
as_status=$?; test $as_status -eq 0 && as_status=1
14235
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14236
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14238
$as_echo "$as_me: error: $1" >&2
14239
as_fn_exit $as_status
14243
# as_fn_set_status STATUS
14244
# -----------------------
14245
# Set $? to STATUS, without forking.
14246
as_fn_set_status ()
14249
} # as_fn_set_status
14251
# as_fn_exit STATUS
14252
# -----------------
14253
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14257
as_fn_set_status $1
14263
# Portably unset VAR.
14266
{ eval $1=; unset $1;}
14268
as_unset=as_fn_unset
14269
# as_fn_append VAR VALUE
14270
# ----------------------
14271
# Append the text in VALUE to the end of the definition contained in VAR. Take
14272
# advantage of any shell optimizations that allow amortized linear growth over
14273
# repeated appends, instead of the typical quadratic growth present in naive
14275
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14276
eval 'as_fn_append ()
14287
# as_fn_arith ARG...
14288
# ------------------
14289
# Perform arithmetic evaluation on the ARGs, and store the result in the
14290
# global $as_val. Take advantage of shells that can avoid forks. The arguments
14291
# must be portable across $(()) and expr.
14292
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14293
eval 'as_fn_arith ()
14300
as_val=`expr "$@" || test $? -eq 1`
14305
if expr a : '\(a\)' >/dev/null 2>&1 &&
14306
test "X`expr 00001 : '.*\(...\)'`" = X001; then
14312
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14313
as_basename=basename
14318
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14324
as_me=`$as_basename -- "$0" ||
14325
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14326
X"$0" : 'X\(//\)$' \| \
14327
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14329
sed '/^.*\/\([^/][^/]*\)\/*$/{
14343
# Avoid depending upon Character Ranges.
14344
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14345
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14346
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14347
as_cr_digits='0123456789'
14348
as_cr_alnum=$as_cr_Letters$as_cr_digits
14350
ECHO_C= ECHO_N= ECHO_T=
14351
case `echo -n x` in #(((((
14353
case `echo 'xy\c'` in
14354
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
14356
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14363
rm -f conf$$ conf$$.exe conf$$.file
14364
if test -d conf$$.dir; then
14365
rm -f conf$$.dir/conf$$.file
14368
mkdir conf$$.dir 2>/dev/null
14370
if (echo >conf$$.file) 2>/dev/null; then
14371
if ln -s conf$$.file conf$$ 2>/dev/null; then
14373
# ... but there are two gotchas:
14374
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14375
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14376
# In both cases, we have to default to `cp -p'.
14377
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14379
elif ln conf$$.file conf$$ 2>/dev/null; then
14387
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14388
rmdir conf$$.dir 2>/dev/null
14393
# Create "$as_dir" as a directory, including parents if necessary.
14398
-*) as_dir=./$as_dir;;
14400
test -d "$as_dir" || eval $as_mkdir_p || {
14404
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14405
*) as_qdir=$as_dir;;
14407
as_dirs="'$as_qdir' $as_dirs"
14408
as_dir=`$as_dirname -- "$as_dir" ||
14409
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14410
X"$as_dir" : 'X\(//\)[^/]' \| \
14411
X"$as_dir" : 'X\(//\)$' \| \
14412
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14413
$as_echo X"$as_dir" |
14414
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14418
/^X\(\/\/\)[^/].*/{
14431
test -d "$as_dir" && break
14433
test -z "$as_dirs" || eval "mkdir $as_dirs"
14434
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14438
if mkdir -p . 2>/dev/null; then
14439
as_mkdir_p='mkdir -p "$as_dir"'
14441
test -d ./-p && rmdir ./-p
14445
if test -x / >/dev/null 2>&1; then
14446
as_test_x='test -x'
14448
if ls -dL / >/dev/null 2>&1; then
14455
if test -d "$1"; then
14461
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14462
???[sx]*):;;*)false;;esac;fi
14466
as_executable_p=$as_test_x
14468
# Sed expression to map a string onto a valid CPP name.
14469
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14471
# Sed expression to map a string onto a valid variable name.
14472
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14476
## ----------------------------------- ##
14477
## Main body of $CONFIG_STATUS script. ##
14478
## ----------------------------------- ##
14480
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14482
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14483
# Save the log message, to keep $0 and so on meaningful, and to
14484
# report actual input values of CONFIG_FILES etc. instead of their
14485
# values after options handling.
14487
This file was extended by libgnutls-extra $as_me 2.8.6, which was
14488
generated by GNU Autoconf 2.65. Invocation command line was
14490
CONFIG_FILES = $CONFIG_FILES
14491
CONFIG_HEADERS = $CONFIG_HEADERS
14492
CONFIG_LINKS = $CONFIG_LINKS
14493
CONFIG_COMMANDS = $CONFIG_COMMANDS
14496
on `(hostname || uname -n) 2>/dev/null | sed 1q`
14501
case $ac_config_files in *"
14502
"*) set x $ac_config_files; shift; ac_config_files=$*;;
14505
case $ac_config_headers in *"
14506
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14510
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14511
# Files that config.status was made for.
14512
config_files="$ac_config_files"
14513
config_headers="$ac_config_headers"
14514
config_commands="$ac_config_commands"
14518
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14520
\`$as_me' instantiates files and other configuration actions
14521
from templates according to the current configuration. Unless the files
14522
and actions are specified as TAGs, all are instantiated by default.
14524
Usage: $0 [OPTION]... [TAG]...
14526
-h, --help print this help, then exit
14527
-V, --version print version number and configuration settings, then exit
14528
--config print configuration, then exit
14529
-q, --quiet, --silent
14530
do not print progress messages
14531
-d, --debug don't remove temporary files
14532
--recheck update $as_me by reconfiguring in the same conditions
14533
--file=FILE[:TEMPLATE]
14534
instantiate the configuration file FILE
14535
--header=FILE[:TEMPLATE]
14536
instantiate the configuration header FILE
14538
Configuration files:
14541
Configuration headers:
14544
Configuration commands:
14547
Report bugs to <bug-gnutls@gnu.org>."
14550
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14551
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14553
libgnutls-extra config.status 2.8.6
14554
configured by $0, generated by GNU Autoconf 2.65,
14555
with options \\"\$ac_cs_config\\"
14557
Copyright (C) 2009 Free Software Foundation, Inc.
14558
This config.status script is free software; the Free Software Foundation
14559
gives unlimited permission to copy, distribute and modify it."
14566
test -n "\$AWK" || AWK=awk
14569
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14570
# The default lists apply if the user does not specify any file.
14576
ac_option=`expr "X$1" : 'X\([^=]*\)='`
14577
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14588
# Handling of the options.
14589
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14591
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14592
$as_echo "$ac_cs_version"; exit ;;
14593
--config | --confi | --conf | --con | --co | --c )
14594
$as_echo "$ac_cs_config"; exit ;;
14595
--debug | --debu | --deb | --de | --d | -d )
14597
--file | --fil | --fi | --f )
14600
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14602
as_fn_append CONFIG_FILES " '$ac_optarg'"
14603
ac_need_defaults=false;;
14604
--header | --heade | --head | --hea )
14607
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14609
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14610
ac_need_defaults=false;;
14612
# Conflict between --help and --header
14613
as_fn_error "ambiguous option: \`$1'
14614
Try \`$0 --help' for more information.";;
14615
--help | --hel | -h )
14616
$as_echo "$ac_cs_usage"; exit ;;
14617
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
14618
| -silent | --silent | --silen | --sile | --sil | --si | --s)
14621
# This is an error.
14622
-*) as_fn_error "unrecognized option: \`$1'
14623
Try \`$0 --help' for more information." ;;
14625
*) as_fn_append ac_config_targets " $1"
14626
ac_need_defaults=false ;;
14632
ac_configure_extra_args=
14634
if $ac_cs_silent; then
14636
ac_configure_extra_args="$ac_configure_extra_args --silent"
14640
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14641
if \$ac_cs_recheck; then
14642
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14644
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14645
CONFIG_SHELL='$SHELL'
14646
export CONFIG_SHELL
14651
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14655
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14656
## Running $as_me. ##
14662
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14666
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14669
# The HP-UX ksh and POSIX shell print the target directory to stdout
14670
# if CDPATH is set.
14671
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14673
sed_quote_subst='$sed_quote_subst'
14674
double_quote_subst='$double_quote_subst'
14675
delay_variable_subst='$delay_variable_subst'
14676
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
14677
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14678
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14679
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14680
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14681
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14682
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14683
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14684
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14685
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14686
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14687
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14688
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14689
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14690
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14691
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14692
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14693
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14694
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14695
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14696
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14697
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14698
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14699
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14700
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14701
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14702
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14703
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14704
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14705
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14706
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14707
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14708
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14709
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14710
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14711
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14712
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14713
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14714
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14715
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14716
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14717
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14718
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14719
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14720
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14721
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14722
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"`'
14723
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"`'
14724
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14725
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14726
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14727
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14728
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14729
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14730
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14731
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14732
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14733
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14734
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14735
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14736
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14737
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14738
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14739
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14740
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14741
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14742
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14743
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14744
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14745
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14746
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14747
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14748
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14749
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14750
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14751
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14752
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14753
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14754
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14755
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14756
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14757
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14758
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14759
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14760
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14761
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14762
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14763
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14764
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14765
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14766
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14767
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14768
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14769
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14770
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14771
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14772
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14773
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14774
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14775
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14776
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14777
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14778
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14779
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14780
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14781
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14782
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14783
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14784
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14785
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14786
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14787
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14788
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14789
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14790
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14791
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14792
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14793
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14794
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14795
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14798
LTCFLAGS='$LTCFLAGS'
14799
compiler='$compiler_DEFAULT'
14801
# Quote evaled strings.
14812
deplibs_check_method \
14821
lt_cv_sys_global_symbol_pipe \
14822
lt_cv_sys_global_symbol_to_cdecl \
14823
lt_cv_sys_global_symbol_to_c_name_address \
14824
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14827
lt_prog_compiler_no_builtin_flag \
14828
lt_prog_compiler_wl \
14829
lt_prog_compiler_pic \
14830
lt_prog_compiler_static \
14831
lt_cv_prog_compiler_c_o \
14839
export_dynamic_flag_spec \
14840
whole_archive_flag_spec \
14841
compiler_needs_object \
14843
allow_undefined_flag \
14844
no_undefined_flag \
14845
hardcode_libdir_flag_spec \
14846
hardcode_libdir_flag_spec_ld \
14847
hardcode_libdir_separator \
14852
variables_saved_for_relink \
14854
library_names_spec \
14859
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14860
*[\\\\\\\`\\"\\\$]*)
14861
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14864
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14869
# Double-quote double-evaled strings.
14870
for var in reload_cmds \
14871
old_postinstall_cmds \
14872
old_postuninstall_cmds \
14874
extract_expsyms_cmds \
14875
old_archive_from_new_cmds \
14876
old_archive_from_expsyms_cmds \
14878
archive_expsym_cmds \
14880
module_expsym_cmds \
14881
export_symbols_cmds \
14884
postuninstall_cmds \
14886
sys_lib_search_path_spec \
14887
sys_lib_dlsearch_path_spec; do
14888
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14889
*[\\\\\\\`\\"\\\$]*)
14890
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14893
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14898
# Fix-up fallback echo if it was mangled by the above quoting rules.
14900
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14904
ac_aux_dir='$ac_aux_dir'
14905
xsi_shell='$xsi_shell'
14906
lt_shell_append='$lt_shell_append'
14908
# See if we are running on zsh, and set the options which allow our
14909
# commands through without removal of \ escapes INIT.
14910
if test -n "\${ZSH_VERSION+set}" ; then
14911
setopt NO_GLOB_SUBST
14917
TIMESTAMP='$TIMESTAMP'
14926
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14928
# Handling of arguments.
14929
for ac_config_target in $ac_config_targets
14931
case $ac_config_target in
14932
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14933
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14934
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14935
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14936
"gnutls-extra.pc") CONFIG_FILES="$CONFIG_FILES gnutls-extra.pc" ;;
14937
"gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
14938
"includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;;
14940
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14945
# If the user did not use the arguments to specify the items to instantiate,
14946
# then the envvar interface is used. Set only those that are not.
14947
# We use the long form for the default assignment because of an extremely
14948
# bizarre bug on SunOS 4.1.3.
14949
if $ac_need_defaults; then
14950
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14951
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14952
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14955
# Have a temporary directory for convenience. Make it in the build tree
14956
# simply because there is no reason against having it here, and in addition,
14957
# creating and moving files from /tmp can sometimes cause problems.
14958
# Hook for its removal unless debugging.
14959
# Note that there is a small window in which the directory will not be cleaned:
14960
# after its creation but before its name has been assigned to `$tmp'.
14964
trap 'exit_status=$?
14965
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14967
trap 'as_fn_exit 1' 1 2 13 15
14969
# Create a (secure) tmp directory for tmp files.
14972
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14973
test -n "$tmp" && test -d "$tmp"
14976
tmp=./conf$$-$RANDOM
14977
(umask 077 && mkdir "$tmp")
14978
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14980
# Set up the scripts for CONFIG_FILES section.
14981
# No need to generate them if there are no CONFIG_FILES.
14982
# This happens for instance with `./config.status config.h'.
14983
if test -n "$CONFIG_FILES"; then
14986
ac_cr=`echo X | tr X '\015'`
14987
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14988
# But we know of no other shell where ac_cr would be empty at this
14989
# point, so we can use a bashism as a fallback.
14990
if test "x$ac_cr" = x; then
14991
eval ac_cr=\$\'\\r\'
14993
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14994
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14997
ac_cs_awk_cr=$ac_cr
15000
echo 'BEGIN {' >"$tmp/subs1.awk" &&
15005
echo "cat >conf$$subs.awk <<_ACEOF" &&
15006
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15008
} >conf$$subs.sh ||
15009
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15010
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15012
for ac_last_try in false false false false false :; do
15013
. ./conf$$subs.sh ||
15014
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15016
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15017
if test $ac_delim_n = $ac_delim_num; then
15019
elif $ac_last_try; then
15020
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15022
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15025
rm -f conf$$subs.sh
15027
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15028
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15032
s/^/S["/; s/!.*/"]=/
15042
s/\(.\{148\}\)..*/\1/
15044
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15049
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15056
s/\(.\{148\}\)..*/\1/
15058
s/["\\]/\\&/g; s/^/"/; s/$/"/
15062
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15067
' <conf$$subs.awk | sed '
15072
' >>$CONFIG_STATUS || ac_write_fail=1
15073
rm -f conf$$subs.awk
15074
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15076
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15077
for (key in S) S_is_set[key] = 1
15083
nfields = split(line, field, "@")
15085
len = length(field[1])
15086
for (i = 2; i < nfields; i++) {
15088
keylen = length(key)
15089
if (S_is_set[key]) {
15091
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15092
len += length(value) + length(field[++i])
15103
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15104
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15105
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15108
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15109
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
15112
# VPATH may cause trouble with some makes, so we remove $(srcdir),
15113
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15114
# trailing colons and then remove the whole line if VPATH becomes empty
15115
# (actually we leave an empty line to preserve line numbers).
15116
if test "x$srcdir" = x.; then
15117
ac_vpsub='/^[ ]*VPATH[ ]*=/{
15118
s/:*\$(srcdir):*/:/
15119
s/:*\${srcdir}:*/:/
15121
s/^\([^=]*=[ ]*\):*/\1/
15127
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15128
fi # test -n "$CONFIG_FILES"
15130
# Set up the scripts for CONFIG_HEADERS section.
15131
# No need to generate them if there are no CONFIG_HEADERS.
15132
# This happens for instance with `./config.status Makefile'.
15133
if test -n "$CONFIG_HEADERS"; then
15134
cat >"$tmp/defines.awk" <<\_ACAWK ||
15138
# Transform confdefs.h into an awk script `defines.awk', embedded as
15139
# here-document in config.status, that substitutes the proper values into
15140
# config.h.in to produce config.h.
15142
# Create a delimiter string that does not exist in confdefs.h, to ease
15143
# handling of long lines.
15145
for ac_last_try in false false :; do
15146
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15147
if test -z "$ac_t"; then
15149
elif $ac_last_try; then
15150
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15152
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15156
# For the awk script, D is an array of macro values keyed by name,
15157
# likewise P contains macro parameters if any. Preserve backslash
15158
# newline sequences.
15160
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15162
s/.\{148\}/&'"$ac_delim"'/g
15165
s/^[ ]*#[ ]*define[ ][ ]*/ /
15172
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15174
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15178
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15179
D["\1"]=" \3\\\\\\n"\\/p
15181
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15186
s/.\{148\}/&'"$ac_delim"'/g
15191
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15194
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15196
' <confdefs.h | sed '
15197
s/'"$ac_delim"'/"\\\
15198
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15200
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15201
for (key in D) D_is_set[key] = 1
15204
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15206
split(line, arg, " ")
15207
if (arg[1] == "#") {
15211
defundef = substr(arg[1], 2)
15214
split(mac1, mac2, "(") #)
15216
prefix = substr(line, 1, index(line, defundef) - 1)
15217
if (D_is_set[macro]) {
15218
# Preserve the white space surrounding the "#".
15219
print prefix "define", macro P[macro] D[macro]
15222
# Replace #undef with comments. This is necessary, for example,
15223
# in the case of _POSIX_SOURCE, which is predefined and required
15224
# on some systems where configure will not decide to define it.
15225
if (defundef == "undef") {
15226
print "/*", prefix defundef, macro, "*/"
15234
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15235
as_fn_error "could not setup config headers machinery" "$LINENO" 5
15236
fi # test -n "$CONFIG_HEADERS"
15239
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15244
:[FHLC]) ac_mode=$ac_tag; continue;;
15246
case $ac_mode$ac_tag in
15248
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15249
:[FH]-) ac_tag=-:-;;
15250
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15267
-) ac_f="$tmp/stdin";;
15268
*) # Look for the file first in the build tree, then in the source tree
15269
# (if the path is not absolute). The absolute path cannot be DOS-style,
15270
# because $ac_f cannot contain `:'.
15274
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15276
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15278
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15279
as_fn_append ac_file_inputs " '$ac_f'"
15282
# Let's still pretend it is `configure' which instantiates (i.e., don't
15283
# use $as_me), people would be surprised to read:
15284
# /* config.h. Generated by config.status. */
15285
configure_input='Generated from '`
15286
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15288
if test x"$ac_file" != x-; then
15289
configure_input="$ac_file. $configure_input"
15290
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15291
$as_echo "$as_me: creating $ac_file" >&6;}
15293
# Neutralize special characters interpreted by sed in replacement strings.
15294
case $configure_input in #(
15295
*\&* | *\|* | *\\* )
15296
ac_sed_conf_input=`$as_echo "$configure_input" |
15297
sed 's/[\\\\&|]/\\\\&/g'`;; #(
15298
*) ac_sed_conf_input=$configure_input;;
15302
*:-:* | *:-) cat >"$tmp/stdin" \
15303
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15308
ac_dir=`$as_dirname -- "$ac_file" ||
15309
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15310
X"$ac_file" : 'X\(//\)[^/]' \| \
15311
X"$ac_file" : 'X\(//\)$' \| \
15312
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15313
$as_echo X"$ac_file" |
15314
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15318
/^X\(\/\/\)[^/].*/{
15331
as_dir="$ac_dir"; as_fn_mkdir_p
15335
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15337
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15338
# A ".." for each directory in $ac_dir_suffix.
15339
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15340
case $ac_top_builddir_sub in
15341
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15342
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15345
ac_abs_top_builddir=$ac_pwd
15346
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15347
# for backward compatibility:
15348
ac_top_builddir=$ac_top_build_prefix
15351
.) # We are building in place.
15353
ac_top_srcdir=$ac_top_builddir_sub
15354
ac_abs_top_srcdir=$ac_pwd ;;
15355
[\\/]* | ?:[\\/]* ) # Absolute name.
15356
ac_srcdir=$srcdir$ac_dir_suffix;
15357
ac_top_srcdir=$srcdir
15358
ac_abs_top_srcdir=$srcdir ;;
15359
*) # Relative name.
15360
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15361
ac_top_srcdir=$ac_top_build_prefix$srcdir
15362
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15364
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15374
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15375
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15377
ac_MKDIR_P=$MKDIR_P
15379
[\\/$]* | ?:[\\/]* ) ;;
15380
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15384
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385
# If the template does not know about datarootdir, expand it.
15386
# FIXME: This hack should be removed a few years after 2.60.
15387
ac_datarootdir_hack=; ac_datarootdir_seen=
15398
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15399
*datarootdir*) ac_datarootdir_seen=yes;;
15400
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15401
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15402
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15404
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15405
ac_datarootdir_hack='
15406
s&@datadir@&$datadir&g
15407
s&@docdir@&$docdir&g
15408
s&@infodir@&$infodir&g
15409
s&@localedir@&$localedir&g
15410
s&@mandir@&$mandir&g
15411
s&\\\${datarootdir}&$datarootdir&g' ;;
15415
# Neutralize VPATH when `$srcdir' = `.'.
15416
# Shell code in configure.ac might set extrasub.
15417
# FIXME: do we really want to maintain this feature?
15418
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15419
ac_sed_extra="$ac_vpsub
15422
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15424
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15425
s|@configure_input@|$ac_sed_conf_input|;t t
15426
s&@top_builddir@&$ac_top_builddir_sub&;t t
15427
s&@top_build_prefix@&$ac_top_build_prefix&;t t
15428
s&@srcdir@&$ac_srcdir&;t t
15429
s&@abs_srcdir@&$ac_abs_srcdir&;t t
15430
s&@top_srcdir@&$ac_top_srcdir&;t t
15431
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15432
s&@builddir@&$ac_builddir&;t t
15433
s&@abs_builddir@&$ac_abs_builddir&;t t
15434
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15435
s&@INSTALL@&$ac_INSTALL&;t t
15436
s&@MKDIR_P@&$ac_MKDIR_P&;t t
15437
$ac_datarootdir_hack
15439
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15440
|| as_fn_error "could not create $ac_file" "$LINENO" 5
15442
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15443
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15444
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15445
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15446
which seems to be undefined. Please make sure it is defined." >&5
15447
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15448
which seems to be undefined. Please make sure it is defined." >&2;}
15452
-) cat "$tmp/out" && rm -f "$tmp/out";;
15453
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15455
|| as_fn_error "could not create $ac_file" "$LINENO" 5
15461
if test x"$ac_file" != x-; then
15463
$as_echo "/* $configure_input */" \
15464
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15465
} >"$tmp/config.h" \
15466
|| as_fn_error "could not create $ac_file" "$LINENO" 5
15467
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15468
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15469
$as_echo "$as_me: $ac_file is unchanged" >&6;}
15472
mv "$tmp/config.h" "$ac_file" \
15473
|| as_fn_error "could not create $ac_file" "$LINENO" 5
15476
$as_echo "/* $configure_input */" \
15477
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15478
|| as_fn_error "could not create -" "$LINENO" 5
15480
# Compute "$ac_file"'s index in $config_headers.
15483
for _am_header in $config_headers :; do
15484
case $_am_header in
15485
$_am_arg | $_am_arg:* )
15488
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
15491
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15492
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15493
X"$_am_arg" : 'X\(//\)[^/]' \| \
15494
X"$_am_arg" : 'X\(//\)$' \| \
15495
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15496
$as_echo X"$_am_arg" |
15497
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15501
/^X\(\/\/\)[^/].*/{
15513
s/.*/./; q'`/stamp-h$_am_stamp_count
15516
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15517
$as_echo "$as_me: executing $ac_file commands" >&6;}
15522
case $ac_file$ac_mode in
15523
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15524
# Autoconf 2.62 quotes --file arguments for eval, but not when files
15525
# are listed without --file. Let's play safe and only enable the eval
15526
# if we detect the quoting.
15527
case $CONFIG_FILES in
15528
*\'*) eval set x "$CONFIG_FILES" ;;
15529
*) set x $CONFIG_FILES ;;
15534
# Strip MF so we end up with the name of the file.
15535
mf=`echo "$mf" | sed -e 's/:.*$//'`
15536
# Check whether this is an Automake generated Makefile or not.
15537
# We used to match only the files named `Makefile.in', but
15538
# some people rename them; so instead we look at the file content.
15539
# Grep'ing the first line is not enough: some people post-process
15540
# each Makefile.in and add a new line on top of each file to say so.
15541
# Grep'ing the whole file is not good either: AIX grep has a line
15542
# limit of 2048, but all sed's we know have understand at least 4000.
15543
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15544
dirpart=`$as_dirname -- "$mf" ||
15545
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15546
X"$mf" : 'X\(//\)[^/]' \| \
15547
X"$mf" : 'X\(//\)$' \| \
15548
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15550
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15554
/^X\(\/\/\)[^/].*/{
15570
# Extract the definition of DEPDIR, am__include, and am__quote
15571
# from the Makefile without running `make'.
15572
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15573
test -z "$DEPDIR" && continue
15574
am__include=`sed -n 's/^am__include = //p' < "$mf"`
15575
test -z "am__include" && continue
15576
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15577
# When using ansi2knr, U may be empty or an underscore; expand it
15578
U=`sed -n 's/^U = //p' < "$mf"`
15579
# Find all dependency output files, they are included files with
15580
# $(DEPDIR) in their names. We invoke sed twice because it is the
15581
# simplest approach to changing $(DEPDIR) to its actual value in the
15583
for file in `sed -n "
15584
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15585
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15586
# Make sure the directory exists.
15587
test -f "$dirpart/$file" && continue
15588
fdir=`$as_dirname -- "$file" ||
15589
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15590
X"$file" : 'X\(//\)[^/]' \| \
15591
X"$file" : 'X\(//\)$' \| \
15592
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15593
$as_echo X"$file" |
15594
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15598
/^X\(\/\/\)[^/].*/{
15611
as_dir=$dirpart/$fdir; as_fn_mkdir_p
15612
# echo "creating $dirpart/$file"
15613
echo '# dummy' > "$dirpart/$file"
15620
# See if we are running on zsh, and set the options which allow our
15621
# commands through without removal of \ escapes.
15622
if test -n "${ZSH_VERSION+set}" ; then
15623
setopt NO_GLOB_SUBST
15626
cfgfile="${ofile}T"
15627
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15630
cat <<_LT_EOF >> "$cfgfile"
15633
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15634
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15635
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15636
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15638
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15639
# 2006, 2007, 2008 Free Software Foundation, Inc.
15640
# Written by Gordon Matzigkeit, 1996
15642
# This file is part of GNU Libtool.
15644
# GNU Libtool is free software; you can redistribute it and/or
15645
# modify it under the terms of the GNU General Public License as
15646
# published by the Free Software Foundation; either version 2 of
15647
# the License, or (at your option) any later version.
15649
# As a special exception to the GNU General Public License,
15650
# if you distribute this file as part of a program or library that
15651
# is built using GNU Libtool, you may include this file under the
15652
# same distribution terms that you use for the rest of that program.
15654
# GNU Libtool is distributed in the hope that it will be useful,
15655
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15656
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15657
# GNU General Public License for more details.
15659
# You should have received a copy of the GNU General Public License
15660
# along with GNU Libtool; see the file COPYING. If not, a copy
15661
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15662
# obtained by writing to the Free Software Foundation, Inc.,
15663
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15666
# The names of the tagged configurations supported by this script.
15669
# ### BEGIN LIBTOOL CONFIG
15671
# Assembler program.
15674
# DLL creation program.
15677
# Object dumper program.
15680
# Which release of libtool.m4 was used?
15681
macro_version=$macro_version
15682
macro_revision=$macro_revision
15684
# Whether or not to build shared libraries.
15685
build_libtool_libs=$enable_shared
15687
# Whether or not to build static libraries.
15688
build_old_libs=$enable_static
15690
# What type of objects to build.
15693
# Whether or not to optimize for fast installation.
15694
fast_install=$enable_fast_install
15697
host_alias=$host_alias
15701
# The build system.
15702
build_alias=$build_alias
15706
# A sed program that does not truncate output.
15709
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15710
Xsed="\$SED -e 1s/^X//"
15712
# A grep program that handles long lines.
15718
# A literal string matcher.
15721
# A BSD- or MS-compatible name lister.
15724
# Whether we need soft or hard links.
15727
# What is the maximum length of a command?
15728
max_cmd_len=$max_cmd_len
15730
# Object file suffix (normally "o").
15733
# Executable file suffix (normally "").
15736
# whether the shell understands "unset".
15739
# turn spaces into newlines.
15742
# turn newlines into spaces.
15745
# How to create reloadable object files.
15746
reload_flag=$lt_reload_flag
15747
reload_cmds=$lt_reload_cmds
15749
# Method to check whether dependent libraries are shared objects.
15750
deplibs_check_method=$lt_deplibs_check_method
15752
# Command to use when deplibs_check_method == "file_magic".
15753
file_magic_cmd=$lt_file_magic_cmd
15757
AR_FLAGS=$lt_AR_FLAGS
15759
# A symbol stripping program.
15762
# Commands used to install an old-style archive.
15764
old_postinstall_cmds=$lt_old_postinstall_cmds
15765
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15770
# LTCC compiler flags.
15771
LTCFLAGS=$lt_CFLAGS
15773
# Take the output of nm and produce a listing of raw symbols and C names.
15774
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15776
# Transform the output of nm in a proper C declaration.
15777
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15779
# Transform the output of nm in a C name address pair.
15780
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15782
# Transform the output of nm in a C name address pair when lib prefix is needed.
15783
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15785
# The name of the directory that contains temporary libtool files.
15788
# Shell to use when invoking shell scripts.
15791
# An echo program that does not interpret backslashes.
15794
# Used to examine libraries when file_magic_cmd begins with "file".
15795
MAGIC_CMD=$MAGIC_CMD
15797
# Must we lock files when doing compilation?
15798
need_locks=$lt_need_locks
15800
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15801
DSYMUTIL=$lt_DSYMUTIL
15803
# Tool to change global to local symbols on Mac OS X.
15806
# Tool to manipulate fat objects and archives on Mac OS X.
15809
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15812
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15813
OTOOL64=$lt_OTOOL64
15815
# Old archive suffix (normally "a").
15818
# Shared library suffix (normally ".so").
15819
shrext_cmds=$lt_shrext_cmds
15821
# The commands to extract the exported symbol list from a shared archive.
15822
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15824
# Variables whose values should be saved in libtool wrapper scripts and
15825
# restored at link time.
15826
variables_saved_for_relink=$lt_variables_saved_for_relink
15828
# Do we need the "lib" prefix for modules?
15829
need_lib_prefix=$need_lib_prefix
15831
# Do we need a version for libraries?
15832
need_version=$need_version
15834
# Library versioning type.
15835
version_type=$version_type
15837
# Shared library runtime path variable.
15838
runpath_var=$runpath_var
15840
# Shared library path variable.
15841
shlibpath_var=$shlibpath_var
15843
# Is shlibpath searched before the hard-coded library search path?
15844
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15846
# Format of library name prefix.
15847
libname_spec=$lt_libname_spec
15849
# List of archive names. First name is the real one, the rest are links.
15850
# The last name is the one that the linker finds with -lNAME
15851
library_names_spec=$lt_library_names_spec
15853
# The coded name of the library, if different from the real name.
15854
soname_spec=$lt_soname_spec
15856
# Command to use after installation of a shared archive.
15857
postinstall_cmds=$lt_postinstall_cmds
15859
# Command to use after uninstallation of a shared archive.
15860
postuninstall_cmds=$lt_postuninstall_cmds
15862
# Commands used to finish a libtool library installation in a directory.
15863
finish_cmds=$lt_finish_cmds
15865
# As "finish_cmds", except a single script fragment to be evaled but
15867
finish_eval=$lt_finish_eval
15869
# Whether we should hardcode library paths into libraries.
15870
hardcode_into_libs=$hardcode_into_libs
15872
# Compile-time system search path for libraries.
15873
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15875
# Run-time system search path for libraries.
15876
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15878
# Whether dlopen is supported.
15879
dlopen_support=$enable_dlopen
15881
# Whether dlopen of programs is supported.
15882
dlopen_self=$enable_dlopen_self
15884
# Whether dlopen of statically linked programs is supported.
15885
dlopen_self_static=$enable_dlopen_self_static
15887
# Commands to strip libraries.
15888
old_striplib=$lt_old_striplib
15889
striplib=$lt_striplib
15892
# The linker used to build libraries.
15895
# Commands used to build an old-style archive.
15896
old_archive_cmds=$lt_old_archive_cmds
15898
# A language specific compiler.
15901
# Is the compiler the GNU compiler?
15904
# Compiler flag to turn off builtin functions.
15905
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15907
# How to pass a linker flag through the compiler.
15908
wl=$lt_lt_prog_compiler_wl
15910
# Additional compiler flags for building library objects.
15911
pic_flag=$lt_lt_prog_compiler_pic
15913
# Compiler flag to prevent dynamic linking.
15914
link_static_flag=$lt_lt_prog_compiler_static
15916
# Does compiler simultaneously support -c and -o options?
15917
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15919
# Whether or not to add -lc for building shared libraries.
15920
build_libtool_need_lc=$archive_cmds_need_lc
15922
# Whether or not to disallow shared libs when runtime libs are static.
15923
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15925
# Compiler flag to allow reflexive dlopens.
15926
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15928
# Compiler flag to generate shared objects directly from archives.
15929
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15931
# Whether the compiler copes with passing no objects directly.
15932
compiler_needs_object=$lt_compiler_needs_object
15934
# Create an old-style archive from a shared archive.
15935
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15937
# Create a temporary old-style archive to link instead of a shared archive.
15938
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15940
# Commands used to build a shared archive.
15941
archive_cmds=$lt_archive_cmds
15942
archive_expsym_cmds=$lt_archive_expsym_cmds
15944
# Commands used to build a loadable module if different from building
15945
# a shared archive.
15946
module_cmds=$lt_module_cmds
15947
module_expsym_cmds=$lt_module_expsym_cmds
15949
# Whether we are building with GNU ld or not.
15950
with_gnu_ld=$lt_with_gnu_ld
15952
# Flag that allows shared libraries with undefined symbols to be built.
15953
allow_undefined_flag=$lt_allow_undefined_flag
15955
# Flag that enforces no undefined symbols.
15956
no_undefined_flag=$lt_no_undefined_flag
15958
# Flag to hardcode \$libdir into a binary during linking.
15959
# This must work even if \$libdir does not exist
15960
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15962
# If ld is used when linking, flag to hardcode \$libdir into a binary
15963
# during linking. This must work even if \$libdir does not exist.
15964
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15966
# Whether we need a single "-rpath" flag with a separated argument.
15967
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15969
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15970
# DIR into the resulting binary.
15971
hardcode_direct=$hardcode_direct
15973
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15974
# DIR into the resulting binary and the resulting library dependency is
15975
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15976
# library is relocated.
15977
hardcode_direct_absolute=$hardcode_direct_absolute
15979
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15980
# into the resulting binary.
15981
hardcode_minus_L=$hardcode_minus_L
15983
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15984
# into the resulting binary.
15985
hardcode_shlibpath_var=$hardcode_shlibpath_var
15987
# Set to "yes" if building a shared library automatically hardcodes DIR
15988
# into the library and all subsequent libraries and executables linked
15990
hardcode_automatic=$hardcode_automatic
15992
# Set to yes if linker adds runtime paths of dependent libraries
15993
# to runtime path list.
15994
inherit_rpath=$inherit_rpath
15996
# Whether libtool must link a program against all its dependency libraries.
15997
link_all_deplibs=$link_all_deplibs
15999
# Fix the shell variable \$srcfile for the compiler.
16000
fix_srcfile_path=$lt_fix_srcfile_path
16002
# Set to "yes" if exported symbols are required.
16003
always_export_symbols=$always_export_symbols
16005
# The commands to list exported symbols.
16006
export_symbols_cmds=$lt_export_symbols_cmds
16008
# Symbols that should not be listed in the preloaded symbols.
16009
exclude_expsyms=$lt_exclude_expsyms
16011
# Symbols that must always be exported.
16012
include_expsyms=$lt_include_expsyms
16014
# Commands necessary for linking programs (against libraries) with templates.
16015
prelink_cmds=$lt_prelink_cmds
16017
# Specify filename containing input files.
16018
file_list_spec=$lt_file_list_spec
16020
# How to hardcode a shared library path into an executable.
16021
hardcode_action=$hardcode_action
16023
# ### END LIBTOOL CONFIG
16029
cat <<\_LT_EOF >> "$cfgfile"
16030
# AIX sometimes has problems with the GCC collect2 program. For some
16031
# reason, if we set the COLLECT_NAMES environment variable, the problems
16032
# vanish in a puff of smoke.
16033
if test "X${COLLECT_NAMES+set}" != Xset; then
16035
export COLLECT_NAMES
16042
ltmain="$ac_aux_dir/ltmain.sh"
16045
# We use sed instead of cat because bash on DJGPP gets confused if
16046
# if finds mixed CR/LF and LF-only lines. Since sed operates in
16047
# text mode, it properly converts lines to CR/LF. This bash problem
16048
# is reportedly fixed, but why not run on old versions too?
16049
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16050
|| (rm -f "$cfgfile"; exit 1)
16054
cat << \_LT_EOF >> "$cfgfile"
16056
# func_dirname file append nondir_replacement
16057
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16058
# otherwise set result to NONDIR_REPLACEMENT.
16062
*/*) func_dirname_result="${1%/*}${2}" ;;
16063
* ) func_dirname_result="${3}" ;;
16067
# func_basename file
16070
func_basename_result="${1##*/}"
16073
# func_dirname_and_basename file append nondir_replacement
16074
# perform func_basename and func_dirname in a single function
16076
# dirname: Compute the dirname of FILE. If nonempty,
16077
# add APPEND to the result, otherwise set result
16078
# to NONDIR_REPLACEMENT.
16079
# value returned in "$func_dirname_result"
16080
# basename: Compute filename of FILE.
16081
# value retuned in "$func_basename_result"
16082
# Implementation must be kept synchronized with func_dirname
16083
# and func_basename. For efficiency, we do not delegate to
16084
# those functions but instead duplicate the functionality here.
16085
func_dirname_and_basename ()
16088
*/*) func_dirname_result="${1%/*}${2}" ;;
16089
* ) func_dirname_result="${3}" ;;
16091
func_basename_result="${1##*/}"
16094
# func_stripname prefix suffix name
16095
# strip PREFIX and SUFFIX off of NAME.
16096
# PREFIX and SUFFIX must not contain globbing or regex special
16097
# characters, hashes, percent signs, but SUFFIX may contain a leading
16098
# dot (in which case that matches only a dot).
16101
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16102
# positional parameters, so assign one to ordinary parameter first.
16103
func_stripname_result=${3}
16104
func_stripname_result=${func_stripname_result#"${1}"}
16105
func_stripname_result=${func_stripname_result%"${2}"}
16111
func_opt_split_opt=${1%%=*}
16112
func_opt_split_arg=${1#*=}
16119
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16120
*) func_lo2o_result=${1} ;;
16124
# func_xform libobj-or-source
16127
func_xform_result=${1%.*}.lo
16130
# func_arith arithmetic-term...
16133
func_arith_result=$(( $* ))
16137
# STRING may not start with a hyphen.
16140
func_len_result=${#1}
16145
*) # Bourne compatible functions.
16146
cat << \_LT_EOF >> "$cfgfile"
16148
# func_dirname file append nondir_replacement
16149
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16150
# otherwise set result to NONDIR_REPLACEMENT.
16153
# Extract subdirectory from the argument.
16154
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16155
if test "X$func_dirname_result" = "X${1}"; then
16156
func_dirname_result="${3}"
16158
func_dirname_result="$func_dirname_result${2}"
16162
# func_basename file
16165
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16169
# func_stripname prefix suffix name
16170
# strip PREFIX and SUFFIX off of NAME.
16171
# PREFIX and SUFFIX must not contain globbing or regex special
16172
# characters, hashes, percent signs, but SUFFIX may contain a leading
16173
# dot (in which case that matches only a dot).
16174
# func_strip_suffix prefix name
16178
.*) func_stripname_result=`$ECHO "X${3}" \
16179
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16180
*) func_stripname_result=`$ECHO "X${3}" \
16181
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16186
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16187
my_sed_long_arg='1s/^-[^=]*=//'
16192
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16193
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16199
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16202
# func_xform libobj-or-source
16205
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16208
# func_arith arithmetic-term...
16211
func_arith_result=`expr "$@"`
16215
# STRING may not start with a hyphen.
16218
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16224
case $lt_shell_append in
16226
cat << \_LT_EOF >> "$cfgfile"
16228
# func_append var value
16229
# Append VALUE to the end of shell variable VAR.
16237
cat << \_LT_EOF >> "$cfgfile"
16239
# func_append var value
16240
# Append VALUE to the end of shell variable VAR.
16251
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16252
|| (rm -f "$cfgfile"; exit 1)
16254
mv -f "$cfgfile" "$ofile" ||
16255
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16266
ac_clean_files=$ac_clean_files_save
16268
test $ac_write_fail = 0 ||
16269
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16272
# configure is writing to config.log, and then calls config.status.
16273
# config.status does its own redirection, appending to config.log.
16274
# Unfortunately, on DOS this fails, as config.log is still kept open
16275
# by configure, so config.status won't be able to write to it; its
16276
# output is simply discarded. So we exec the FD to /dev/null,
16277
# effectively closing config.log, so it can be properly (re)opened and
16278
# appended to by config.status. When coming back to configure, we
16279
# need to make the FD available again.
16280
if test "$no_create" != yes; then
16282
ac_config_status_args=
16283
test "$silent" = yes &&
16284
ac_config_status_args="$ac_config_status_args --quiet"
16286
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16288
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
16289
# would make configure fail if this is the last instruction.
16290
$ac_cs_success || as_fn_exit $?
16292
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16293
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16294
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}