2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for libu2f-server 0.0.0.
5
# Report bugs to <yubico-devel@googlegroups.com>.
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
94
*[\\/]* ) as_myself=$0 ;;
95
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99
test -z "$as_dir" && as_dir=.
100
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
111
if test ! -f "$as_myself"; then
112
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there. '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
# Use a proper internal environment variable to ensure we don't fall
138
# into an infinite loop, continuously re-executing ourselves.
139
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
_as_can_reexec=no; export _as_can_reexec;
141
# We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149
*v*x* | *x*v* ) as_opts=-vx ;;
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160
# We don't want this to propagate to other subprocesses.
161
{ _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
# is contrary to our usage. Disable this feature.
168
alias -g '\${1+\"\$@\"}'='\"\$@\"'
171
case \`(set -o) 2>/dev/null\` in #(
179
as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
exitcode=1; echo positional parameters were not saved.
195
test x\$exitcode = x0 || exit 1
197
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
PATH=/empty FPATH=/empty; export PATH FPATH
207
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209
test \$(( 1 + 1 )) = 2 || exit 1"
210
if (eval "$as_required") 2>/dev/null; then :
215
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
test -z "$as_dir" && as_dir=.
227
for as_base in sh bash ksh sh5; do
228
# Try only shells that exist, to save several forks.
229
as_shell=$as_dir/$as_base
230
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
CONFIG_SHELL=$as_shell as_have_required=yes
233
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243
CONFIG_SHELL=$SHELL as_have_required=yes
248
if test "x$CONFIG_SHELL" != x; then :
250
# We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258
*v*x* | *x*v* ) as_opts=-vx ;;
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270
if test x$as_have_required = xno; then :
271
$as_echo "$0: This script requires a shell more modern than all"
272
$as_echo "$0: the shells that I found on your system."
273
if test x${ZSH_VERSION+set} = xset ; then
274
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
277
$as_echo "$0: Please tell bug-autoconf@gnu.org and
278
$0: yubico-devel@googlegroups.com about your system,
279
$0: including any error possibly output before this
280
$0: message. Then install a modern shell, or manually run
281
$0: the script under such a shell if you do have one."
287
SHELL=${CONFIG_SHELL-/bin/sh}
289
# Unset more variables known to interfere with behavior of common tools.
290
CLICOLOR_FORCE= GREP_OPTIONS=
291
unset CLICOLOR_FORCE GREP_OPTIONS
293
## --------------------- ##
294
## M4sh Shell Functions. ##
295
## --------------------- ##
298
# Portably unset VAR.
301
{ eval $1=; unset $1;}
305
# as_fn_set_status STATUS
306
# -----------------------
307
# Set $? to STATUS, without forking.
315
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325
# Create "$as_dir" as a directory, including parents if necessary.
330
-*) as_dir=./$as_dir;;
332
test -d "$as_dir" || eval $as_mkdir_p || {
336
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339
as_dirs="'$as_qdir' $as_dirs"
340
as_dir=`$as_dirname -- "$as_dir" ||
341
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342
X"$as_dir" : 'X\(//\)[^/]' \| \
343
X"$as_dir" : 'X\(//\)$' \| \
344
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345
$as_echo X"$as_dir" |
346
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363
test -d "$as_dir" && break
365
test -z "$as_dirs" || eval "mkdir $as_dirs"
366
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371
# as_fn_executable_p FILE
372
# -----------------------
373
# Test if FILE is an executable regular file.
374
as_fn_executable_p ()
376
test -f "$1" && test -x "$1"
377
} # as_fn_executable_p
378
# as_fn_append VAR VALUE
379
# ----------------------
380
# Append the text in VALUE to the end of the definition contained in VAR. Take
381
# advantage of any shell optimizations that allow amortized linear growth over
382
# repeated appends, instead of the typical quadratic growth present in naive
384
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385
eval 'as_fn_append ()
398
# Perform arithmetic evaluation on the ARGs, and store the result in the
399
# global $as_val. Take advantage of shells that can avoid forks. The arguments
400
# must be portable across $(()) and expr.
401
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409
as_val=`expr "$@" || test $? -eq 1`
414
# as_fn_error STATUS ERROR [LINENO LOG_FD]
415
# ----------------------------------------
416
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418
# script with STATUS, using 1 if that was 0.
421
as_status=$1; test $as_status -eq 0 && as_status=1
423
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426
$as_echo "$as_me: error: $2" >&2
427
as_fn_exit $as_status
430
if expr a : '\(a\)' >/dev/null 2>&1 &&
431
test "X`expr 00001 : '.*\(...\)'`" = X001; then
437
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449
as_me=`$as_basename -- "$0" ||
450
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451
X"$0" : 'X\(//\)$' \| \
452
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454
sed '/^.*\/\([^/][^/]*\)\/*$/{
468
# Avoid depending upon Character Ranges.
469
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472
as_cr_digits='0123456789'
473
as_cr_alnum=$as_cr_Letters$as_cr_digits
476
as_lineno_1=$LINENO as_lineno_1a=$LINENO
477
as_lineno_2=$LINENO as_lineno_2a=$LINENO
478
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496
chmod +x "$as_me.lineno" ||
497
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500
# already done that, so ensure we don't try to do so again and fall
501
# in an infinite loop. This has already happened in practice.
502
_as_can_reexec=no; export _as_can_reexec
503
# Don't try to exec as it changes $[0], causing all sort of problems
504
# (the dirname of $[0] is not the place where we might find the
505
# original and so on. Autoconf is especially sensitive to this).
507
# Exit status is that of the last command.
511
ECHO_C= ECHO_N= ECHO_T=
512
case `echo -n x` in #(((((
514
case `echo 'xy\c'` in
515
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
517
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524
rm -f conf$$ conf$$.exe conf$$.file
525
if test -d conf$$.dir; then
526
rm -f conf$$.dir/conf$$.file
529
mkdir conf$$.dir 2>/dev/null
531
if (echo >conf$$.file) 2>/dev/null; then
532
if ln -s conf$$.file conf$$ 2>/dev/null; then
534
# ... but there are two gotchas:
535
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537
# In both cases, we have to default to `cp -pR'.
538
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540
elif ln conf$$.file conf$$ 2>/dev/null; then
548
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549
rmdir conf$$.dir 2>/dev/null
551
if mkdir -p . 2>/dev/null; then
552
as_mkdir_p='mkdir -p "$as_dir"'
554
test -d ./-p && rmdir ./-p
559
as_executable_p=as_fn_executable_p
561
# Sed expression to map a string onto a valid CPP name.
562
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
# Sed expression to map a string onto a valid variable name.
565
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
SHELL=${CONFIG_SHELL-/bin/sh}
570
test -n "$DJDIR" || exec 7<&0 </dev/null
574
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575
# so uname gets run too.
576
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
ac_default_prefix=/usr/local
583
ac_config_libobj_dir=.
590
# Identity of this package.
591
PACKAGE_NAME='libu2f-server'
592
PACKAGE_TARNAME='libu2f-server'
593
PACKAGE_VERSION='0.0.0'
594
PACKAGE_STRING='libu2f-server 0.0.0'
595
PACKAGE_BUGREPORT='yubico-devel@googlegroups.com'
598
# Factoring default headers for most tests.
599
ac_includes_default="\
601
#ifdef HAVE_SYS_TYPES_H
602
# include <sys/types.h>
604
#ifdef HAVE_SYS_STAT_H
605
# include <sys/stat.h>
611
# ifdef HAVE_STDLIB_H
616
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621
#ifdef HAVE_STRINGS_H
622
# include <strings.h>
624
#ifdef HAVE_INTTYPES_H
625
# include <inttypes.h>
634
ac_subst_vars='am__EXEEXT_FALSE
649
HAVE_LD_VERSION_SCRIPT_FALSE
650
HAVE_LD_VERSION_SCRIPT_TRUE
652
GTK_DOC_USE_REBASE_FALSE
653
GTK_DOC_USE_REBASE_TRUE
654
GTK_DOC_USE_LIBTOOL_FALSE
655
GTK_DOC_USE_LIBTOOL_TRUE
656
GTK_DOC_BUILD_PDF_FALSE
657
GTK_DOC_BUILD_PDF_TRUE
658
GTK_DOC_BUILD_HTML_FALSE
659
GTK_DOC_BUILD_HTML_TRUE
729
INSTALL_STRIP_PROGRAM
774
program_transform_name
787
enable_option_checking
789
enable_dependency_tracking
801
enable_ld_version_script
804
ac_precious_vars='build_alias
824
# Initialize some variables set by options.
826
ac_init_version=false
827
ac_unrecognized_opts=
829
# The variables have the same names as the options, with
830
# dashes changed to underlines.
838
program_transform_name=s,x,x,
846
# Installation directory options.
847
# These are left unexpanded so users can "make install exec_prefix=/foo"
848
# and all the variables that are supposed to be based on exec_prefix
849
# by default will actually change.
850
# Use braces instead of parens because sh, perl, etc. also accept them.
851
# (The list follows the same order as the GNU Coding Standards.)
852
bindir='${exec_prefix}/bin'
853
sbindir='${exec_prefix}/sbin'
854
libexecdir='${exec_prefix}/libexec'
855
datarootdir='${prefix}/share'
856
datadir='${datarootdir}'
857
sysconfdir='${prefix}/etc'
858
sharedstatedir='${prefix}/com'
859
localstatedir='${prefix}/var'
860
includedir='${prefix}/include'
861
oldincludedir='/usr/include'
862
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863
infodir='${datarootdir}/info'
868
libdir='${exec_prefix}/lib'
869
localedir='${datarootdir}/locale'
870
mandir='${datarootdir}/man'
876
# If the previous option needs an argument, assign it.
877
if test -n "$ac_prev"; then
878
eval $ac_prev=\$ac_option
884
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889
# Accept the important Cygnus configure options, so we can diagnose typos.
891
case $ac_dashdash$ac_option in
895
-bindir | --bindir | --bindi | --bind | --bin | --bi)
897
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900
-build | --build | --buil | --bui | --bu)
901
ac_prev=build_alias ;;
902
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
903
build_alias=$ac_optarg ;;
905
-cache-file | --cache-file | --cache-fil | --cache-fi \
906
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907
ac_prev=cache_file ;;
908
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910
cache_file=$ac_optarg ;;
913
cache_file=config.cache ;;
915
-datadir | --datadir | --datadi | --datad)
917
-datadir=* | --datadir=* | --datadi=* | --datad=*)
918
datadir=$ac_optarg ;;
920
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921
| --dataroo | --dataro | --datar)
922
ac_prev=datarootdir ;;
923
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925
datarootdir=$ac_optarg ;;
927
-disable-* | --disable-*)
928
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929
# Reject names that are not valid shell variable names.
930
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931
as_fn_error $? "invalid feature name: $ac_useropt"
932
ac_useropt_orig=$ac_useropt
933
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934
case $ac_user_opts in
938
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939
ac_unrecognized_sep=', ';;
941
eval enable_$ac_useropt=no ;;
943
-docdir | --docdir | --docdi | --doc | --do)
945
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953
-enable-* | --enable-*)
954
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955
# Reject names that are not valid shell variable names.
956
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957
as_fn_error $? "invalid feature name: $ac_useropt"
958
ac_useropt_orig=$ac_useropt
959
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960
case $ac_user_opts in
964
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
965
ac_unrecognized_sep=', ';;
967
eval enable_$ac_useropt=\$ac_optarg ;;
969
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971
| --exec | --exe | --ex)
972
ac_prev=exec_prefix ;;
973
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975
| --exec=* | --exe=* | --ex=*)
976
exec_prefix=$ac_optarg ;;
978
-gas | --gas | --ga | --g)
979
# Obsolete; use --with-gas.
982
-help | --help | --hel | --he | -h)
984
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985
ac_init_help=recursive ;;
986
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987
ac_init_help=short ;;
989
-host | --host | --hos | --ho)
990
ac_prev=host_alias ;;
991
-host=* | --host=* | --hos=* | --ho=*)
992
host_alias=$ac_optarg ;;
994
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998
htmldir=$ac_optarg ;;
1000
-includedir | --includedir | --includedi | --included | --include \
1001
| --includ | --inclu | --incl | --inc)
1002
ac_prev=includedir ;;
1003
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004
| --includ=* | --inclu=* | --incl=* | --inc=*)
1005
includedir=$ac_optarg ;;
1007
-infodir | --infodir | --infodi | --infod | --info | --inf)
1009
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010
infodir=$ac_optarg ;;
1012
-libdir | --libdir | --libdi | --libd)
1014
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1015
libdir=$ac_optarg ;;
1017
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018
| --libexe | --libex | --libe)
1019
ac_prev=libexecdir ;;
1020
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021
| --libexe=* | --libex=* | --libe=*)
1022
libexecdir=$ac_optarg ;;
1024
-localedir | --localedir | --localedi | --localed | --locale)
1025
ac_prev=localedir ;;
1026
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027
localedir=$ac_optarg ;;
1029
-localstatedir | --localstatedir | --localstatedi | --localstated \
1030
| --localstate | --localstat | --localsta | --localst | --locals)
1031
ac_prev=localstatedir ;;
1032
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034
localstatedir=$ac_optarg ;;
1036
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039
mandir=$ac_optarg ;;
1041
-nfp | --nfp | --nf)
1042
# Obsolete; use --without-fp.
1045
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046
| --no-cr | --no-c | -n)
1049
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055
| --oldin | --oldi | --old | --ol | --o)
1056
ac_prev=oldincludedir ;;
1057
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060
oldincludedir=$ac_optarg ;;
1062
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065
prefix=$ac_optarg ;;
1067
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1068
| --program-pre | --program-pr | --program-p)
1069
ac_prev=program_prefix ;;
1070
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1071
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072
program_prefix=$ac_optarg ;;
1074
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1075
| --program-suf | --program-su | --program-s)
1076
ac_prev=program_suffix ;;
1077
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1078
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079
program_suffix=$ac_optarg ;;
1081
-program-transform-name | --program-transform-name \
1082
| --program-transform-nam | --program-transform-na \
1083
| --program-transform-n | --program-transform- \
1084
| --program-transform | --program-transfor \
1085
| --program-transfo | --program-transf \
1086
| --program-trans | --program-tran \
1087
| --progr-tra | --program-tr | --program-t)
1088
ac_prev=program_transform_name ;;
1089
-program-transform-name=* | --program-transform-name=* \
1090
| --program-transform-nam=* | --program-transform-na=* \
1091
| --program-transform-n=* | --program-transform-=* \
1092
| --program-transform=* | --program-transfor=* \
1093
| --program-transfo=* | --program-transf=* \
1094
| --program-trans=* | --program-tran=* \
1095
| --progr-tra=* | --program-tr=* | --program-t=*)
1096
program_transform_name=$ac_optarg ;;
1098
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101
pdfdir=$ac_optarg ;;
1103
-psdir | --psdir | --psdi | --psd | --ps)
1105
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109
| -silent | --silent | --silen | --sile | --sil)
1112
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116
sbindir=$ac_optarg ;;
1118
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1119
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1120
| --sharedst | --shareds | --shared | --share | --shar \
1122
ac_prev=sharedstatedir ;;
1123
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1124
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1125
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127
sharedstatedir=$ac_optarg ;;
1129
-site | --site | --sit)
1131
-site=* | --site=* | --sit=*)
1134
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1137
srcdir=$ac_optarg ;;
1139
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1140
| --syscon | --sysco | --sysc | --sys | --sy)
1141
ac_prev=sysconfdir ;;
1142
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1143
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1144
sysconfdir=$ac_optarg ;;
1146
-target | --target | --targe | --targ | --tar | --ta | --t)
1147
ac_prev=target_alias ;;
1148
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1149
target_alias=$ac_optarg ;;
1151
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1154
-version | --version | --versio | --versi | --vers | -V)
1155
ac_init_version=: ;;
1158
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1159
# Reject names that are not valid shell variable names.
1160
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161
as_fn_error $? "invalid package name: $ac_useropt"
1162
ac_useropt_orig=$ac_useropt
1163
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164
case $ac_user_opts in
1168
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169
ac_unrecognized_sep=', ';;
1171
eval with_$ac_useropt=\$ac_optarg ;;
1173
-without-* | --without-*)
1174
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175
# Reject names that are not valid shell variable names.
1176
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177
as_fn_error $? "invalid package name: $ac_useropt"
1178
ac_useropt_orig=$ac_useropt
1179
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180
case $ac_user_opts in
1184
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185
ac_unrecognized_sep=', ';;
1187
eval with_$ac_useropt=no ;;
1190
# Obsolete; use --with-x.
1193
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194
| --x-incl | --x-inc | --x-in | --x-i)
1195
ac_prev=x_includes ;;
1196
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198
x_includes=$ac_optarg ;;
1200
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1201
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202
ac_prev=x_libraries ;;
1203
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205
x_libraries=$ac_optarg ;;
1207
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1208
Try \`$0 --help' for more information"
1212
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213
# Reject names that are not valid shell variable names.
1214
case $ac_envvar in #(
1215
'' | [0-9]* | *[!_$as_cr_alnum]* )
1216
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1218
eval $ac_envvar=\$ac_optarg
1219
export $ac_envvar ;;
1222
# FIXME: should be removed in autoconf 3.0.
1223
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1232
if test -n "$ac_prev"; then
1233
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234
as_fn_error $? "missing argument to $ac_option"
1237
if test -n "$ac_unrecognized_opts"; then
1238
case $enable_option_checking in
1240
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1241
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245
# Check all directory arguments for consistency.
1246
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247
datadir sysconfdir sharedstatedir localstatedir includedir \
1248
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249
libdir localedir mandir
1251
eval ac_val=\$$ac_var
1252
# Remove trailing slashes.
1255
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256
eval $ac_var=\$ac_val;;
1258
# Be sure to have absolute directory names.
1260
[\\/$]* | ?:[\\/]* ) continue;;
1261
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1266
# There might be people who depend on the old broken behavior: `$host'
1267
# used to hold the argument of --host etc.
1268
# FIXME: To remove some day.
1271
target=$target_alias
1273
# FIXME: To remove some day.
1274
if test "x$host_alias" != x; then
1275
if test "x$build_alias" = x; then
1276
cross_compiling=maybe
1277
elif test "x$build_alias" != "x$host_alias"; then
1283
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1285
test "$silent" = yes && exec 6>/dev/null
1288
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1289
ac_ls_di=`ls -di .` &&
1290
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1291
as_fn_error $? "working directory cannot be determined"
1292
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1293
as_fn_error $? "pwd does not report name of working directory"
1296
# Find the source files, if location was not specified.
1297
if test -z "$srcdir"; then
1298
ac_srcdir_defaulted=yes
1299
# Try the directory containing this script, then the parent directory.
1300
ac_confdir=`$as_dirname -- "$as_myself" ||
1301
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302
X"$as_myself" : 'X\(//\)[^/]' \| \
1303
X"$as_myself" : 'X\(//\)$' \| \
1304
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305
$as_echo X"$as_myself" |
1306
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324
if test ! -r "$srcdir/$ac_unique_file"; then
1328
ac_srcdir_defaulted=no
1330
if test ! -r "$srcdir/$ac_unique_file"; then
1331
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1334
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1336
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1338
# When building in place, set srcdir=.
1339
if test "$ac_abs_confdir" = "$ac_pwd"; then
1342
# Remove unnecessary trailing slashes from srcdir.
1343
# Double slashes in file names in object file debugging info
1344
# mess up M-x gdb in Emacs.
1346
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348
for ac_var in $ac_precious_vars; do
1349
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350
eval ac_env_${ac_var}_value=\$${ac_var}
1351
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356
# Report the --help message.
1358
if test "$ac_init_help" = "long"; then
1359
# Omit some internal or obsolete options to make the list less imposing.
1360
# This message is too long to be a string in the A/UX 3.1 sh.
1362
\`configure' configures libu2f-server 0.0.0 to adapt to many kinds of systems.
1364
Usage: $0 [OPTION]... [VAR=VALUE]...
1366
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367
VAR=VALUE. See below for descriptions of some of the useful variables.
1369
Defaults for the options are specified in brackets.
1372
-h, --help display this help and exit
1373
--help=short display options specific to this package
1374
--help=recursive display the short help of all the included packages
1375
-V, --version display version information and exit
1376
-q, --quiet, --silent do not print \`checking ...' messages
1377
--cache-file=FILE cache test results in FILE [disabled]
1378
-C, --config-cache alias for \`--cache-file=config.cache'
1379
-n, --no-create do not create output files
1380
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1382
Installation directories:
1383
--prefix=PREFIX install architecture-independent files in PREFIX
1384
[$ac_default_prefix]
1385
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1388
By default, \`make install' will install all the files in
1389
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1390
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391
for instance \`--prefix=\$HOME'.
1393
For better control, use the options below.
1395
Fine tuning of the installation directories:
1396
--bindir=DIR user executables [EPREFIX/bin]
1397
--sbindir=DIR system admin executables [EPREFIX/sbin]
1398
--libexecdir=DIR program executables [EPREFIX/libexec]
1399
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1400
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1401
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1402
--libdir=DIR object code libraries [EPREFIX/lib]
1403
--includedir=DIR C header files [PREFIX/include]
1404
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1405
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1406
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1407
--infodir=DIR info documentation [DATAROOTDIR/info]
1408
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1409
--mandir=DIR man documentation [DATAROOTDIR/man]
1410
--docdir=DIR documentation root [DATAROOTDIR/doc/libu2f-server]
1411
--htmldir=DIR html documentation [DOCDIR]
1412
--dvidir=DIR dvi documentation [DOCDIR]
1413
--pdfdir=DIR pdf documentation [DOCDIR]
1414
--psdir=DIR ps documentation [DOCDIR]
1420
--program-prefix=PREFIX prepend PREFIX to installed program names
1421
--program-suffix=SUFFIX append SUFFIX to installed program names
1422
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1425
--build=BUILD configure for building on BUILD [guessed]
1426
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1430
if test -n "$ac_init_help"; then
1431
case $ac_init_help in
1432
short | recursive ) echo "Configuration of libu2f-server 0.0.0:";;
1437
--disable-option-checking ignore unrecognized --enable/--with options
1438
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1439
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1440
--enable-silent-rules less verbose build output (undo: "make V=1")
1441
--disable-silent-rules verbose build output (undo: "make V=0")
1442
--enable-dependency-tracking
1443
do not reject slow dependency extractors
1444
--disable-dependency-tracking
1445
speeds up one-time build
1446
--enable-shared[=PKGS] build shared libraries [default=yes]
1447
--enable-static[=PKGS] build static libraries [default=yes]
1448
--enable-fast-install[=PKGS]
1449
optimize for fast installation [default=yes]
1450
--disable-libtool-lock avoid locking (might break parallel builds)
1451
--enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1452
--enable-gtk-doc-html build documentation in html format [[default=yes]]
1453
--enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1454
--enable-ld-version-script
1455
enable linker version script (default is enabled
1457
--enable-gcc-warnings turn on lots of GCC warnings (for developers)
1460
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1464
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465
--with-sysroot=DIR Search for dependent libraries within DIR
1466
(or the compiler's sysroot if not specified).
1467
--with-html-dir=PATH path to installed docs
1469
Some influential environment variables:
1470
CC C compiler command
1471
CFLAGS C compiler flags
1472
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1473
nonstandard directory <lib dir>
1474
LIBS libraries to pass to the linker, e.g. -l<library>
1475
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1476
you have headers in a nonstandard directory <include dir>
1478
PKG_CONFIG path to pkg-config utility
1480
directories to add to pkg-config's search path
1482
path overriding pkg-config's built-in search path
1484
C compiler flags for LIBJSON, overriding pkg-config
1486
linker flags for LIBJSON, overriding pkg-config
1488
C compiler flags for LIBSSL, overriding pkg-config
1489
LIBSSL_LIBS linker flags for LIBSSL, overriding pkg-config
1491
C compiler flags for CHECK, overriding pkg-config
1492
CHECK_LIBS linker flags for CHECK, overriding pkg-config
1494
Use these variables to override the choices made by `configure' or to help
1495
it to find libraries and programs with nonstandard names/locations.
1497
Report bugs to <yubico-devel@googlegroups.com>.
1502
if test "$ac_init_help" = "recursive"; then
1503
# If there are subdirs, report their specific --help.
1504
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505
test -d "$ac_dir" ||
1506
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514
# A ".." for each directory in $ac_dir_suffix.
1515
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516
case $ac_top_builddir_sub in
1517
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521
ac_abs_top_builddir=$ac_pwd
1522
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523
# for backward compatibility:
1524
ac_top_builddir=$ac_top_build_prefix
1527
.) # We are building in place.
1529
ac_top_srcdir=$ac_top_builddir_sub
1530
ac_abs_top_srcdir=$ac_pwd ;;
1531
[\\/]* | ?:[\\/]* ) # Absolute name.
1532
ac_srcdir=$srcdir$ac_dir_suffix;
1533
ac_top_srcdir=$srcdir
1534
ac_abs_top_srcdir=$srcdir ;;
1536
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537
ac_top_srcdir=$ac_top_build_prefix$srcdir
1538
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
cd "$ac_dir" || { ac_status=$?; continue; }
1543
# Check for guested configure.
1544
if test -f "$ac_srcdir/configure.gnu"; then
1546
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547
elif test -f "$ac_srcdir/configure"; then
1549
$SHELL "$ac_srcdir/configure" --help=recursive
1551
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553
cd "$ac_pwd" || { ac_status=$?; break; }
1557
test -n "$ac_init_help" && exit $ac_status
1558
if $ac_init_version; then
1560
libu2f-server configure 0.0.0
1561
generated by GNU Autoconf 2.69
1563
Copyright (C) 2012 Free Software Foundation, Inc.
1564
This configure script is free software; the Free Software Foundation
1565
gives unlimited permission to copy, distribute and modify it.
1570
## ------------------------ ##
1571
## Autoconf initialization. ##
1572
## ------------------------ ##
1574
# ac_fn_c_try_compile LINENO
1575
# --------------------------
1576
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1577
ac_fn_c_try_compile ()
1579
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580
rm -f conftest.$ac_objext
1581
if { { ac_try="$ac_compile"
1583
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584
*) ac_try_echo=$ac_try;;
1586
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587
$as_echo "$ac_try_echo"; } >&5
1588
(eval "$ac_compile") 2>conftest.err
1590
if test -s conftest.err; then
1591
grep -v '^ *+' conftest.err >conftest.er1
1592
cat conftest.er1 >&5
1593
mv -f conftest.er1 conftest.err
1595
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596
test $ac_status = 0; } && {
1597
test -z "$ac_c_werror_flag" ||
1598
test ! -s conftest.err
1599
} && test -s conftest.$ac_objext; then :
1602
$as_echo "$as_me: failed program was:" >&5
1603
sed 's/^/| /' conftest.$ac_ext >&5
1607
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608
as_fn_set_status $ac_retval
1610
} # ac_fn_c_try_compile
1612
# ac_fn_c_try_link LINENO
1613
# -----------------------
1614
# Try to link conftest.$ac_ext, and return whether this succeeded.
1617
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618
rm -f conftest.$ac_objext conftest$ac_exeext
1619
if { { ac_try="$ac_link"
1621
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622
*) ac_try_echo=$ac_try;;
1624
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625
$as_echo "$ac_try_echo"; } >&5
1626
(eval "$ac_link") 2>conftest.err
1628
if test -s conftest.err; then
1629
grep -v '^ *+' conftest.err >conftest.er1
1630
cat conftest.er1 >&5
1631
mv -f conftest.er1 conftest.err
1633
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634
test $ac_status = 0; } && {
1635
test -z "$ac_c_werror_flag" ||
1636
test ! -s conftest.err
1637
} && test -s conftest$ac_exeext && {
1638
test "$cross_compiling" = yes ||
1639
test -x conftest$ac_exeext
1643
$as_echo "$as_me: failed program was:" >&5
1644
sed 's/^/| /' conftest.$ac_ext >&5
1648
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650
# interfere with the next link command; also delete a directory that is
1651
# left behind by Apple's compiler. We do this before executing the actions.
1652
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
as_fn_set_status $ac_retval
1656
} # ac_fn_c_try_link
1658
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659
# -------------------------------------------------------
1660
# Tests whether HEADER exists and can be compiled using the include files in
1661
# INCLUDES, setting the cache variable VAR accordingly.
1662
ac_fn_c_check_header_compile ()
1664
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666
$as_echo_n "checking for $2... " >&6; }
1667
if eval \${$3+:} false; then :
1668
$as_echo_n "(cached) " >&6
1670
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671
/* end confdefs.h. */
1675
if ac_fn_c_try_compile "$LINENO"; then :
1680
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684
$as_echo "$ac_res" >&6; }
1685
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
} # ac_fn_c_check_header_compile
1689
# ac_fn_c_try_cpp LINENO
1690
# ----------------------
1691
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1694
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695
if { { ac_try="$ac_cpp conftest.$ac_ext"
1697
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698
*) ac_try_echo=$ac_try;;
1700
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701
$as_echo "$ac_try_echo"; } >&5
1702
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704
if test -s conftest.err; then
1705
grep -v '^ *+' conftest.err >conftest.er1
1706
cat conftest.er1 >&5
1707
mv -f conftest.er1 conftest.err
1709
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710
test $ac_status = 0; } > conftest.i && {
1711
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712
test ! -s conftest.err
1716
$as_echo "$as_me: failed program was:" >&5
1717
sed 's/^/| /' conftest.$ac_ext >&5
1721
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
as_fn_set_status $ac_retval
1726
# ac_fn_c_try_run LINENO
1727
# ----------------------
1728
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729
# that executables *can* be run.
1732
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733
if { { ac_try="$ac_link"
1735
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736
*) ac_try_echo=$ac_try;;
1738
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739
$as_echo "$ac_try_echo"; } >&5
1740
(eval "$ac_link") 2>&5
1742
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744
{ { case "(($ac_try" in
1745
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746
*) ac_try_echo=$ac_try;;
1748
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749
$as_echo "$ac_try_echo"; } >&5
1750
(eval "$ac_try") 2>&5
1752
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753
test $ac_status = 0; }; }; then :
1756
$as_echo "$as_me: program exited with status $ac_status" >&5
1757
$as_echo "$as_me: failed program was:" >&5
1758
sed 's/^/| /' conftest.$ac_ext >&5
1760
ac_retval=$ac_status
1762
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
as_fn_set_status $ac_retval
1768
# ac_fn_c_check_func LINENO FUNC VAR
1769
# ----------------------------------
1770
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1771
ac_fn_c_check_func ()
1773
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775
$as_echo_n "checking for $2... " >&6; }
1776
if eval \${$3+:} false; then :
1777
$as_echo_n "(cached) " >&6
1779
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780
/* end confdefs.h. */
1781
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783
#define $2 innocuous_$2
1785
/* System header to define __stub macros and hopefully few prototypes,
1786
which can conflict with char $2 (); below.
1787
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788
<limits.h> exists even on freestanding compilers. */
1791
# include <limits.h>
1793
# include <assert.h>
1798
/* Override any GCC internal prototype to avoid an error.
1799
Use char because int might match the return type of a GCC
1800
builtin and then its argument prototype would still apply. */
1805
/* The GNU C library defines this for functions which it implements
1806
to always fail with ENOSYS. Some functions are actually named
1807
something starting with __ and the normal name is an alias. */
1808
#if defined __stub_$2 || defined __stub___$2
1820
if ac_fn_c_try_link "$LINENO"; then :
1825
rm -f core conftest.err conftest.$ac_objext \
1826
conftest$ac_exeext conftest.$ac_ext
1829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830
$as_echo "$ac_res" >&6; }
1831
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
} # ac_fn_c_check_func
1834
cat >config.log <<_ACEOF
1835
This file contains any messages produced by compilers while
1836
running configure, to aid debugging if configure makes a mistake.
1838
It was created by libu2f-server $as_me 0.0.0, which was
1839
generated by GNU Autoconf 2.69. Invocation command line was
1851
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1852
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1853
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1854
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1855
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1857
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1858
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1860
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1861
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1862
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1863
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1864
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1865
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1866
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1870
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874
test -z "$as_dir" && as_dir=.
1875
$as_echo "PATH: $as_dir"
1891
# Keep a trace of the command line.
1892
# Strip out --no-create and --no-recursion so they do not pile up.
1893
# Strip out --silent because we don't want to record it for future runs.
1894
# Also quote any args containing shell meta-characters.
1895
# Make two passes to allow for proper duplicate-argument suppression.
1899
ac_must_keep_next=false
1905
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1906
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1907
| -silent | --silent | --silen | --sile | --sil)
1910
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1913
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1915
as_fn_append ac_configure_args1 " '$ac_arg'"
1916
if test $ac_must_keep_next = true; then
1917
ac_must_keep_next=false # Got value, back to normal.
1920
*=* | --config-cache | -C | -disable-* | --disable-* \
1921
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1922
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1923
| -with-* | --with-* | -without-* | --without-* | --x)
1924
case "$ac_configure_args0 " in
1925
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1928
-* ) ac_must_keep_next=true ;;
1931
as_fn_append ac_configure_args " '$ac_arg'"
1936
{ ac_configure_args0=; unset ac_configure_args0;}
1937
{ ac_configure_args1=; unset ac_configure_args1;}
1939
# When interrupted or exit'd, cleanup temporary files, and complete
1940
# config.log. We remove comments because anyway the quotes in there
1941
# would cause problems or look ugly.
1942
# WARNING: Use '\'' to represent an apostrophe within the trap.
1943
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1944
trap 'exit_status=$?
1945
# Save into config.log some information that might help in debugging.
1949
$as_echo "## ---------------- ##
1950
## Cache variables. ##
1951
## ---------------- ##"
1953
# The following way of writing the cache mishandles newlines in values,
1955
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1956
eval ac_val=\$$ac_var
1960
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1961
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1964
_ | IFS | as_nl) ;; #(
1965
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1966
*) { eval $ac_var=; unset $ac_var;} ;;
1971
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1972
*${as_nl}ac_space=\ *)
1974
"s/'\''/'\''\\\\'\'''\''/g;
1975
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1978
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1985
$as_echo "## ----------------- ##
1986
## Output variables. ##
1987
## ----------------- ##"
1989
for ac_var in $ac_subst_vars
1991
eval ac_val=\$$ac_var
1993
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995
$as_echo "$ac_var='\''$ac_val'\''"
1999
if test -n "$ac_subst_files"; then
2000
$as_echo "## ------------------- ##
2001
## File substitutions. ##
2002
## ------------------- ##"
2004
for ac_var in $ac_subst_files
2006
eval ac_val=\$$ac_var
2008
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010
$as_echo "$ac_var='\''$ac_val'\''"
2015
if test -s confdefs.h; then
2016
$as_echo "## ----------- ##
2023
test "$ac_signal" != 0 &&
2024
$as_echo "$as_me: caught signal $ac_signal"
2025
$as_echo "$as_me: exit $exit_status"
2027
rm -f core *.core core.conftest.* &&
2028
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2031
for ac_signal in 1 2 13 15; do
2032
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2036
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2037
rm -f -r conftest* confdefs.h
2039
$as_echo "/* confdefs.h */" > confdefs.h
2041
# Predefined preprocessor variables.
2043
cat >>confdefs.h <<_ACEOF
2044
#define PACKAGE_NAME "$PACKAGE_NAME"
2047
cat >>confdefs.h <<_ACEOF
2048
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2051
cat >>confdefs.h <<_ACEOF
2052
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2055
cat >>confdefs.h <<_ACEOF
2056
#define PACKAGE_STRING "$PACKAGE_STRING"
2059
cat >>confdefs.h <<_ACEOF
2060
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2063
cat >>confdefs.h <<_ACEOF
2064
#define PACKAGE_URL "$PACKAGE_URL"
2068
# Let the site file select an alternate cache file if it wants to.
2069
# Prefer an explicitly selected file to automatically selected ones.
2072
if test -n "$CONFIG_SITE"; then
2073
# We do not want a PATH search for config.site.
2074
case $CONFIG_SITE in #((
2075
-*) ac_site_file1=./$CONFIG_SITE;;
2076
*/*) ac_site_file1=$CONFIG_SITE;;
2077
*) ac_site_file1=./$CONFIG_SITE;;
2079
elif test "x$prefix" != xNONE; then
2080
ac_site_file1=$prefix/share/config.site
2081
ac_site_file2=$prefix/etc/config.site
2083
ac_site_file1=$ac_default_prefix/share/config.site
2084
ac_site_file2=$ac_default_prefix/etc/config.site
2086
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2088
test "x$ac_site_file" = xNONE && continue
2089
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2090
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2091
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2092
sed 's/^/| /' "$ac_site_file" >&5
2094
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2095
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2096
as_fn_error $? "failed to load site script $ac_site_file
2097
See \`config.log' for more details" "$LINENO" 5; }
2101
if test -r "$cache_file"; then
2102
# Some versions of bash will fail to source /dev/null (special files
2103
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2104
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2105
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2106
$as_echo "$as_me: loading cache $cache_file" >&6;}
2108
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2109
*) . "./$cache_file";;
2113
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2114
$as_echo "$as_me: creating cache $cache_file" >&6;}
2118
# Check that the precious variables saved in the cache have kept the same
2120
ac_cache_corrupted=false
2121
for ac_var in $ac_precious_vars; do
2122
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2123
eval ac_new_set=\$ac_env_${ac_var}_set
2124
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2125
eval ac_new_val=\$ac_env_${ac_var}_value
2126
case $ac_old_set,$ac_new_set in
2128
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2129
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2130
ac_cache_corrupted=: ;;
2132
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2133
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2134
ac_cache_corrupted=: ;;
2137
if test "x$ac_old_val" != "x$ac_new_val"; then
2138
# differences in whitespace do not lead to failure.
2139
ac_old_val_w=`echo x $ac_old_val`
2140
ac_new_val_w=`echo x $ac_new_val`
2141
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2142
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2143
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2144
ac_cache_corrupted=:
2146
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2147
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2148
eval $ac_var=\$ac_old_val
2150
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2151
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2152
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2153
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2156
# Pass precious variables to config.status.
2157
if test "$ac_new_set" = set; then
2159
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2160
*) ac_arg=$ac_var=$ac_new_val ;;
2162
case " $ac_configure_args " in
2163
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2164
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2168
if $ac_cache_corrupted; then
2169
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2171
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2172
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2173
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2175
## -------------------- ##
2176
## Main body of script. ##
2177
## -------------------- ##
2180
ac_cpp='$CPP $CPPFLAGS'
2181
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2182
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2183
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188
for ac_dir in build-aux "$srcdir"/build-aux; do
2189
if test -f "$ac_dir/install-sh"; then
2191
ac_install_sh="$ac_aux_dir/install-sh -c"
2193
elif test -f "$ac_dir/install.sh"; then
2195
ac_install_sh="$ac_aux_dir/install.sh -c"
2197
elif test -f "$ac_dir/shtool"; then
2199
ac_install_sh="$ac_aux_dir/shtool install -c"
2203
if test -z "$ac_aux_dir"; then
2204
as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2207
# These three variables are undocumented and unsupported,
2208
# and are intended to be withdrawn in a future Autoconf release.
2209
# They can cause serious problems if a builder's source tree is in a directory
2210
# whose full name contains unusual characters.
2211
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2212
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2213
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2217
# http://www.gnu.org/s/libtool/manual/html_node/Updating-version-info.html
2225
am__api_version='1.14'
2227
# Find a good install program. We prefer a C program (faster),
2228
# so one script is as good as another. But avoid the broken or
2229
# incompatible versions:
2230
# SysV /etc/install, /usr/sbin/install
2231
# SunOS /usr/etc/install
2232
# IRIX /sbin/install
2234
# AmigaOS /C/install, which installs bootblocks on floppy discs
2235
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2236
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2237
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2238
# OS/2's system install, which has a completely different semantic
2239
# ./install, which can be erroneously created by make from ./install.sh.
2240
# Reject install programs that cannot install multiple files.
2241
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2242
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2243
if test -z "$INSTALL"; then
2244
if ${ac_cv_path_install+:} false; then :
2245
$as_echo_n "(cached) " >&6
2247
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251
test -z "$as_dir" && as_dir=.
2252
# Account for people who put trailing slashes in PATH elements.
2253
case $as_dir/ in #((
2254
./ | .// | /[cC]/* | \
2255
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2256
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2259
# OSF1 and SCO ODT 3.0 have their own names for install.
2260
# Don't use installbsd from OSF since it installs stuff as root
2262
for ac_prog in ginstall scoinst install; do
2263
for ac_exec_ext in '' $ac_executable_extensions; do
2264
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2265
if test $ac_prog = install &&
2266
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2267
# AIX install. It has an incompatible calling convention.
2269
elif test $ac_prog = install &&
2270
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2271
# program-specific install script used by HP pwplus--don't use.
2274
rm -rf conftest.one conftest.two conftest.dir
2275
echo one > conftest.one
2276
echo two > conftest.two
2278
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2279
test -s conftest.one && test -s conftest.two &&
2280
test -s conftest.dir/conftest.one &&
2281
test -s conftest.dir/conftest.two
2283
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2296
rm -rf conftest.one conftest.two conftest.dir
2299
if test "${ac_cv_path_install+set}" = set; then
2300
INSTALL=$ac_cv_path_install
2302
# As a last resort, use the slow shell script. Don't cache a
2303
# value for INSTALL within a source directory, because that will
2304
# break other packages using the cache if that directory is
2305
# removed, or if the value is a relative name.
2306
INSTALL=$ac_install_sh
2309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2310
$as_echo "$INSTALL" >&6; }
2312
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2313
# It thinks the first close brace ends the variable substitution.
2314
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2316
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2318
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2321
$as_echo_n "checking whether build environment is sane... " >&6; }
2322
# Reject unsafe characters in $srcdir or the absolute working directory
2323
# name. Accept space and tab only in the latter.
2327
*[\\\"\#\$\&\'\`$am_lf]*)
2328
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2331
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2332
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2335
# Do 'set' in a subshell so we don't clobber the current shell's
2336
# arguments. Must try -L first in case configure is actually a
2337
# symlink; some systems play weird games with the mod time of symlinks
2338
# (eg FreeBSD returns the mod time of the symlink's containing
2342
for am_try in 1 2; do
2343
echo "timestamp, slept: $am_has_slept" > conftest.file
2344
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2345
if test "$*" = "X"; then
2347
set X `ls -t "$srcdir/configure" conftest.file`
2349
if test "$*" != "X $srcdir/configure conftest.file" \
2350
&& test "$*" != "X conftest.file $srcdir/configure"; then
2352
# If neither matched, then we have a broken ls. This can happen
2353
# if, for instance, CONFIG_SHELL is bash and it inherits a
2354
# broken ls alias from the environment. This has actually
2355
# happened. Such a system could not be considered "sane".
2356
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2357
alias in your environment" "$LINENO" 5
2359
if test "$2" = conftest.file || test $am_try -eq 2; then
2366
test "$2" = conftest.file
2372
as_fn_error $? "newly created file is older than distributed files!
2373
Check your system clock" "$LINENO" 5
2375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2376
$as_echo "yes" >&6; }
2377
# If we didn't sleep, we still need to ensure time stamps of config.status and
2378
# generated files are strictly newer.
2380
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2387
test "$program_prefix" != NONE &&
2388
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2389
# Use a double $ so make ignores it.
2390
test "$program_suffix" != NONE &&
2391
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2392
# Double any \ or $.
2393
# By default was `s,x,x', remove it if useless.
2394
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2395
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2397
# expand $ac_aux_dir to an absolute path
2398
am_aux_dir=`cd $ac_aux_dir && pwd`
2400
if test x"${MISSING+set}" != xset; then
2403
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2405
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2408
# Use eval to expand $SHELL
2409
if eval "$MISSING --is-lightweight"; then
2410
am_missing_run="$MISSING "
2413
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2414
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2417
if test x"${install_sh}" != xset; then
2420
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2422
install_sh="\${SHELL} $am_aux_dir/install-sh"
2426
# Installed binaries are usually stripped using 'strip' when the user
2427
# run "make install-strip". However 'strip' might not be the right
2428
# tool to use in cross-compilation environments, therefore Automake
2429
# will honor the 'STRIP' environment variable to overrule this program.
2430
if test "$cross_compiling" != no; then
2431
if test -n "$ac_tool_prefix"; then
2432
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2433
set dummy ${ac_tool_prefix}strip; ac_word=$2
2434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2435
$as_echo_n "checking for $ac_word... " >&6; }
2436
if ${ac_cv_prog_STRIP+:} false; then :
2437
$as_echo_n "(cached) " >&6
2439
if test -n "$STRIP"; then
2440
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446
test -z "$as_dir" && as_dir=.
2447
for ac_exec_ext in '' $ac_executable_extensions; do
2448
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2450
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2459
STRIP=$ac_cv_prog_STRIP
2460
if test -n "$STRIP"; then
2461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2462
$as_echo "$STRIP" >&6; }
2464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2465
$as_echo "no" >&6; }
2470
if test -z "$ac_cv_prog_STRIP"; then
2472
# Extract the first word of "strip", so it can be a program name with args.
2473
set dummy strip; ac_word=$2
2474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475
$as_echo_n "checking for $ac_word... " >&6; }
2476
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2477
$as_echo_n "(cached) " >&6
2479
if test -n "$ac_ct_STRIP"; then
2480
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2482
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486
test -z "$as_dir" && as_dir=.
2487
for ac_exec_ext in '' $ac_executable_extensions; do
2488
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489
ac_cv_prog_ac_ct_STRIP="strip"
2490
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2500
if test -n "$ac_ct_STRIP"; then
2501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2502
$as_echo "$ac_ct_STRIP" >&6; }
2504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505
$as_echo "no" >&6; }
2508
if test "x$ac_ct_STRIP" = x; then
2511
case $cross_compiling:$ac_tool_warned in
2513
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2514
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2515
ac_tool_warned=yes ;;
2520
STRIP="$ac_cv_prog_STRIP"
2524
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2527
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2528
if test -z "$MKDIR_P"; then
2529
if ${ac_cv_path_mkdir+:} false; then :
2530
$as_echo_n "(cached) " >&6
2532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2536
test -z "$as_dir" && as_dir=.
2537
for ac_prog in mkdir gmkdir; do
2538
for ac_exec_ext in '' $ac_executable_extensions; do
2539
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2540
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2541
'mkdir (GNU coreutils) '* | \
2542
'mkdir (coreutils) '* | \
2543
'mkdir (fileutils) '4.1*)
2544
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2554
test -d ./--version && rmdir ./--version
2555
if test "${ac_cv_path_mkdir+set}" = set; then
2556
MKDIR_P="$ac_cv_path_mkdir -p"
2558
# As a last resort, use the slow shell script. Don't cache a
2559
# value for MKDIR_P within a source directory, because that will
2560
# break other packages using the cache if that directory is
2561
# removed, or if the value is a relative name.
2562
MKDIR_P="$ac_install_sh -d"
2565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2566
$as_echo "$MKDIR_P" >&6; }
2568
for ac_prog in gawk mawk nawk awk
2570
# Extract the first word of "$ac_prog", so it can be a program name with args.
2571
set dummy $ac_prog; ac_word=$2
2572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573
$as_echo_n "checking for $ac_word... " >&6; }
2574
if ${ac_cv_prog_AWK+:} false; then :
2575
$as_echo_n "(cached) " >&6
2577
if test -n "$AWK"; then
2578
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2580
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584
test -z "$as_dir" && as_dir=.
2585
for ac_exec_ext in '' $ac_executable_extensions; do
2586
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587
ac_cv_prog_AWK="$ac_prog"
2588
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598
if test -n "$AWK"; then
2599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2600
$as_echo "$AWK" >&6; }
2602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603
$as_echo "no" >&6; }
2607
test -n "$AWK" && break
2610
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2611
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2613
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2614
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2615
$as_echo_n "(cached) " >&6
2617
cat >conftest.make <<\_ACEOF
2620
@echo '@@@%%%=$(MAKE)=@@@%%%'
2622
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2623
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2625
eval ac_cv_prog_make_${ac_make}_set=yes;;
2627
eval ac_cv_prog_make_${ac_make}_set=no;;
2631
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2633
$as_echo "yes" >&6; }
2636
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637
$as_echo "no" >&6; }
2638
SET_MAKE="MAKE=${MAKE-make}"
2641
rm -rf .tst 2>/dev/null
2642
mkdir .tst 2>/dev/null
2643
if test -d .tst; then
2648
rmdir .tst 2>/dev/null
2650
# Check whether --enable-silent-rules was given.
2651
if test "${enable_silent_rules+set}" = set; then :
2652
enableval=$enable_silent_rules;
2655
case $enable_silent_rules in # (((
2656
yes) AM_DEFAULT_VERBOSITY=0;;
2657
no) AM_DEFAULT_VERBOSITY=1;;
2658
*) AM_DEFAULT_VERBOSITY=1;;
2660
am_make=${MAKE-make}
2661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2662
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2663
if ${am_cv_make_support_nested_variables+:} false; then :
2664
$as_echo_n "(cached) " >&6
2666
if $as_echo 'TRUE=$(BAR$(V))
2672
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2673
am_cv_make_support_nested_variables=yes
2675
am_cv_make_support_nested_variables=no
2678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2679
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2680
if test $am_cv_make_support_nested_variables = yes; then
2682
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2684
AM_V=$AM_DEFAULT_VERBOSITY
2685
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2689
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2690
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2691
# is not polluted with repeated "-I."
2692
am__isrc=' -I$(srcdir)'
2693
# test to see if srcdir already configured
2694
if test -f $srcdir/config.status; then
2695
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2699
# test whether we have cygpath
2700
if test -z "$CYGPATH_W"; then
2701
if (cygpath --version) >/dev/null 2>/dev/null; then
2702
CYGPATH_W='cygpath -w'
2709
# Define the identity of the package.
2710
PACKAGE='libu2f-server'
2714
cat >>confdefs.h <<_ACEOF
2715
#define PACKAGE "$PACKAGE"
2719
cat >>confdefs.h <<_ACEOF
2720
#define VERSION "$VERSION"
2723
# Some tools Automake needs.
2725
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2728
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2731
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2734
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2737
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2739
# For better backward compatibility. To be removed once Automake 1.9.x
2740
# dies out for good. For more background, see:
2741
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2742
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2743
mkdir_p='$(MKDIR_P)'
2745
# We need awk for the "check" target. The system "awk" is bad on
2747
# Always define AMTAR for backward compatibility. Yes, it's still used
2748
# in the wild :-( We should find a proper way to deprecate it ...
2752
# We'll loop over all known methods to create a tar archive until one works.
2753
_am_tools='gnutar pax cpio none'
2755
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2762
# POSIX will say in a future version that running "rm -f" with no argument
2763
# is OK; and we want to be able to make that assumption in our Makefile
2764
# recipes. So use an aggressive probe to check that the usage we want is
2765
# actually supported "in the wild" to an acceptable degree.
2766
# See automake bug#10828.
2767
# To make any issue more visible, cause the running configure to be aborted
2768
# by default if the 'rm' program in use doesn't match our expectations; the
2769
# user can still override this though.
2770
if rm -f && rm -fr && rm -rf; then : OK; else
2774
Your 'rm' program seems unable to run without file operands specified
2775
on the command line, even when the '-f' option is present. This is contrary
2776
to the behaviour of most rm programs out there, and not conforming with
2777
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2779
Please tell bug-automake@gnu.org about your system, including the value
2780
of your $PATH and any error possibly output before this message. This
2781
can help us improve future automake versions.
2784
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2785
echo 'Configuration will proceed anyway, since you have set the' >&2
2786
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2790
Aborting the configuration process, to ensure you take notice of the issue.
2792
You can download and install GNU coreutils to get an 'rm' implementation
2793
that behaves properly: <http://www.gnu.org/software/coreutils/>.
2795
If you want to complete the configuration process using your problematic
2796
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2797
to "yes", and re-run configure.
2800
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2803
# Check whether --enable-silent-rules was given.
2804
if test "${enable_silent_rules+set}" = set; then :
2805
enableval=$enable_silent_rules;
2808
case $enable_silent_rules in # (((
2809
yes) AM_DEFAULT_VERBOSITY=0;;
2810
no) AM_DEFAULT_VERBOSITY=1;;
2811
*) AM_DEFAULT_VERBOSITY=0;;
2813
am_make=${MAKE-make}
2814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2815
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2816
if ${am_cv_make_support_nested_variables+:} false; then :
2817
$as_echo_n "(cached) " >&6
2819
if $as_echo 'TRUE=$(BAR$(V))
2825
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2826
am_cv_make_support_nested_variables=yes
2828
am_cv_make_support_nested_variables=no
2831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2832
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2833
if test $am_cv_make_support_nested_variables = yes; then
2835
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2837
AM_V=$AM_DEFAULT_VERBOSITY
2838
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2843
ac_cpp='$CPP $CPPFLAGS'
2844
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847
if test -n "$ac_tool_prefix"; then
2848
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2849
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851
$as_echo_n "checking for $ac_word... " >&6; }
2852
if ${ac_cv_prog_CC+:} false; then :
2853
$as_echo_n "(cached) " >&6
2855
if test -n "$CC"; then
2856
ac_cv_prog_CC="$CC" # Let the user override the test.
2858
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862
test -z "$as_dir" && as_dir=.
2863
for ac_exec_ext in '' $ac_executable_extensions; do
2864
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2866
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876
if test -n "$CC"; then
2877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878
$as_echo "$CC" >&6; }
2880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881
$as_echo "no" >&6; }
2886
if test -z "$ac_cv_prog_CC"; then
2888
# Extract the first word of "gcc", so it can be a program name with args.
2889
set dummy gcc; ac_word=$2
2890
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891
$as_echo_n "checking for $ac_word... " >&6; }
2892
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2893
$as_echo_n "(cached) " >&6
2895
if test -n "$ac_ct_CC"; then
2896
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902
test -z "$as_dir" && as_dir=.
2903
for ac_exec_ext in '' $ac_executable_extensions; do
2904
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905
ac_cv_prog_ac_ct_CC="gcc"
2906
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2916
if test -n "$ac_ct_CC"; then
2917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2918
$as_echo "$ac_ct_CC" >&6; }
2920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921
$as_echo "no" >&6; }
2924
if test "x$ac_ct_CC" = x; then
2927
case $cross_compiling:$ac_tool_warned in
2929
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931
ac_tool_warned=yes ;;
2939
if test -z "$CC"; then
2940
if test -n "$ac_tool_prefix"; then
2941
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2942
set dummy ${ac_tool_prefix}cc; ac_word=$2
2943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944
$as_echo_n "checking for $ac_word... " >&6; }
2945
if ${ac_cv_prog_CC+:} false; then :
2946
$as_echo_n "(cached) " >&6
2948
if test -n "$CC"; then
2949
ac_cv_prog_CC="$CC" # Let the user override the test.
2951
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955
test -z "$as_dir" && as_dir=.
2956
for ac_exec_ext in '' $ac_executable_extensions; do
2957
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958
ac_cv_prog_CC="${ac_tool_prefix}cc"
2959
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969
if test -n "$CC"; then
2970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971
$as_echo "$CC" >&6; }
2973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974
$as_echo "no" >&6; }
2980
if test -z "$CC"; then
2981
# Extract the first word of "cc", so it can be a program name with args.
2982
set dummy cc; ac_word=$2
2983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984
$as_echo_n "checking for $ac_word... " >&6; }
2985
if ${ac_cv_prog_CC+:} false; then :
2986
$as_echo_n "(cached) " >&6
2988
if test -n "$CC"; then
2989
ac_cv_prog_CC="$CC" # Let the user override the test.
2992
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996
test -z "$as_dir" && as_dir=.
2997
for ac_exec_ext in '' $ac_executable_extensions; do
2998
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3000
ac_prog_rejected=yes
3004
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011
if test $ac_prog_rejected = yes; then
3012
# We found a bogon in the path, so make sure we never use it.
3013
set dummy $ac_cv_prog_CC
3015
if test $# != 0; then
3016
# We chose a different compiler from the bogus one.
3017
# However, it has the same basename, so the bogon will be chosen
3018
# first if we set CC to just the basename; use the full file name.
3020
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3026
if test -n "$CC"; then
3027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028
$as_echo "$CC" >&6; }
3030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031
$as_echo "no" >&6; }
3036
if test -z "$CC"; then
3037
if test -n "$ac_tool_prefix"; then
3038
for ac_prog in cl.exe
3040
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3041
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3042
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043
$as_echo_n "checking for $ac_word... " >&6; }
3044
if ${ac_cv_prog_CC+:} false; then :
3045
$as_echo_n "(cached) " >&6
3047
if test -n "$CC"; then
3048
ac_cv_prog_CC="$CC" # Let the user override the test.
3050
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054
test -z "$as_dir" && as_dir=.
3055
for ac_exec_ext in '' $ac_executable_extensions; do
3056
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3058
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068
if test -n "$CC"; then
3069
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070
$as_echo "$CC" >&6; }
3072
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073
$as_echo "no" >&6; }
3077
test -n "$CC" && break
3080
if test -z "$CC"; then
3082
for ac_prog in cl.exe
3084
# Extract the first word of "$ac_prog", so it can be a program name with args.
3085
set dummy $ac_prog; ac_word=$2
3086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087
$as_echo_n "checking for $ac_word... " >&6; }
3088
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3089
$as_echo_n "(cached) " >&6
3091
if test -n "$ac_ct_CC"; then
3092
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098
test -z "$as_dir" && as_dir=.
3099
for ac_exec_ext in '' $ac_executable_extensions; do
3100
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101
ac_cv_prog_ac_ct_CC="$ac_prog"
3102
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3112
if test -n "$ac_ct_CC"; then
3113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114
$as_echo "$ac_ct_CC" >&6; }
3116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117
$as_echo "no" >&6; }
3121
test -n "$ac_ct_CC" && break
3124
if test "x$ac_ct_CC" = x; then
3127
case $cross_compiling:$ac_tool_warned in
3129
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131
ac_tool_warned=yes ;;
3140
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142
as_fn_error $? "no acceptable C compiler found in \$PATH
3143
See \`config.log' for more details" "$LINENO" 5; }
3145
# Provide some information about the compiler.
3146
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3149
for ac_option in --version -v -V -qversion; do
3150
{ { ac_try="$ac_compiler $ac_option >&5"
3152
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153
*) ac_try_echo=$ac_try;;
3155
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156
$as_echo "$ac_try_echo"; } >&5
3157
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3159
if test -s conftest.err; then
3161
... rest of stderr output deleted ...
3162
10q' conftest.err >conftest.er1
3163
cat conftest.er1 >&5
3165
rm -f conftest.er1 conftest.err
3166
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167
test $ac_status = 0; }
3170
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171
/* end confdefs.h. */
3181
ac_clean_files_save=$ac_clean_files
3182
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3183
# Try to create an executable without -o first, disregard a.out.
3184
# It will help us diagnose broken compilers, and finding out an intuition
3186
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3187
$as_echo_n "checking whether the C compiler works... " >&6; }
3188
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190
# The possible output files:
3191
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3194
for ac_file in $ac_files
3197
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3203
if { { ac_try="$ac_link_default"
3205
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206
*) ac_try_echo=$ac_try;;
3208
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209
$as_echo "$ac_try_echo"; } >&5
3210
(eval "$ac_link_default") 2>&5
3212
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213
test $ac_status = 0; }; then :
3214
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3215
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3216
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3217
# so that the user can short-circuit this test for compilers unknown to
3219
for ac_file in $ac_files ''
3221
test -f "$ac_file" || continue
3223
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3226
# We found the default executable, but exeext='' is most
3230
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234
# We set ac_cv_exeext here because the later test for it is not
3235
# safe: cross compilers may not add the suffix if given an `-o'
3236
# argument, so we may need to know it at that point already.
3237
# Even if this section looks crufty: it has the advantage of
3244
test "$ac_cv_exeext" = no && ac_cv_exeext=
3249
if test -z "$ac_file"; then :
3250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251
$as_echo "no" >&6; }
3252
$as_echo "$as_me: failed program was:" >&5
3253
sed 's/^/| /' conftest.$ac_ext >&5
3255
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257
as_fn_error 77 "C compiler cannot create executables
3258
See \`config.log' for more details" "$LINENO" 5; }
3260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261
$as_echo "yes" >&6; }
3263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3264
$as_echo_n "checking for C compiler default output file name... " >&6; }
3265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3266
$as_echo "$ac_file" >&6; }
3267
ac_exeext=$ac_cv_exeext
3269
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3270
ac_clean_files=$ac_clean_files_save
3271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3272
$as_echo_n "checking for suffix of executables... " >&6; }
3273
if { { ac_try="$ac_link"
3275
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276
*) ac_try_echo=$ac_try;;
3278
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279
$as_echo "$ac_try_echo"; } >&5
3280
(eval "$ac_link") 2>&5
3282
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283
test $ac_status = 0; }; then :
3284
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3285
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3286
# work properly (i.e., refer to `conftest.exe'), while it won't with
3288
for ac_file in conftest.exe conftest conftest.*; do
3289
test -f "$ac_file" || continue
3291
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3292
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3298
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3301
See \`config.log' for more details" "$LINENO" 5; }
3303
rm -f conftest conftest$ac_cv_exeext
3304
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3305
$as_echo "$ac_cv_exeext" >&6; }
3307
rm -f conftest.$ac_ext
3308
EXEEXT=$ac_cv_exeext
3310
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311
/* end confdefs.h. */
3316
FILE *f = fopen ("conftest.out", "w");
3317
return ferror (f) || fclose (f) != 0;
3323
ac_clean_files="$ac_clean_files conftest.out"
3324
# Check that the compiler produces executables we can run. If not, either
3325
# the compiler is broken, or we cross compile.
3326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3327
$as_echo_n "checking whether we are cross compiling... " >&6; }
3328
if test "$cross_compiling" != yes; then
3329
{ { ac_try="$ac_link"
3331
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332
*) ac_try_echo=$ac_try;;
3334
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335
$as_echo "$ac_try_echo"; } >&5
3336
(eval "$ac_link") 2>&5
3338
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339
test $ac_status = 0; }
3340
if { ac_try='./conftest$ac_cv_exeext'
3341
{ { case "(($ac_try" in
3342
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343
*) ac_try_echo=$ac_try;;
3345
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346
$as_echo "$ac_try_echo"; } >&5
3347
(eval "$ac_try") 2>&5
3349
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350
test $ac_status = 0; }; }; then
3353
if test "$cross_compiling" = maybe; then
3356
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358
as_fn_error $? "cannot run C compiled programs.
3359
If you meant to cross compile, use \`--host'.
3360
See \`config.log' for more details" "$LINENO" 5; }
3364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3365
$as_echo "$cross_compiling" >&6; }
3367
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3368
ac_clean_files=$ac_clean_files_save
3369
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3370
$as_echo_n "checking for suffix of object files... " >&6; }
3371
if ${ac_cv_objext+:} false; then :
3372
$as_echo_n "(cached) " >&6
3374
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375
/* end confdefs.h. */
3385
rm -f conftest.o conftest.obj
3386
if { { ac_try="$ac_compile"
3388
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389
*) ac_try_echo=$ac_try;;
3391
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392
$as_echo "$ac_try_echo"; } >&5
3393
(eval "$ac_compile") 2>&5
3395
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396
test $ac_status = 0; }; then :
3397
for ac_file in conftest.o conftest.obj conftest.*; do
3398
test -f "$ac_file" || continue;
3400
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3401
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3406
$as_echo "$as_me: failed program was:" >&5
3407
sed 's/^/| /' conftest.$ac_ext >&5
3409
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411
as_fn_error $? "cannot compute suffix of object files: cannot compile
3412
See \`config.log' for more details" "$LINENO" 5; }
3414
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3417
$as_echo "$ac_cv_objext" >&6; }
3418
OBJEXT=$ac_cv_objext
3420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3421
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3422
if ${ac_cv_c_compiler_gnu+:} false; then :
3423
$as_echo_n "(cached) " >&6
3425
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426
/* end confdefs.h. */
3439
if ac_fn_c_try_compile "$LINENO"; then :
3444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3449
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3450
if test $ac_compiler_gnu = yes; then
3455
ac_test_CFLAGS=${CFLAGS+set}
3456
ac_save_CFLAGS=$CFLAGS
3457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3458
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3459
if ${ac_cv_prog_cc_g+:} false; then :
3460
$as_echo_n "(cached) " >&6
3462
ac_save_c_werror_flag=$ac_c_werror_flag
3463
ac_c_werror_flag=yes
3466
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467
/* end confdefs.h. */
3477
if ac_fn_c_try_compile "$LINENO"; then :
3481
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482
/* end confdefs.h. */
3492
if ac_fn_c_try_compile "$LINENO"; then :
3495
ac_c_werror_flag=$ac_save_c_werror_flag
3497
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498
/* end confdefs.h. */
3508
if ac_fn_c_try_compile "$LINENO"; then :
3511
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516
ac_c_werror_flag=$ac_save_c_werror_flag
3518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3519
$as_echo "$ac_cv_prog_cc_g" >&6; }
3520
if test "$ac_test_CFLAGS" = set; then
3521
CFLAGS=$ac_save_CFLAGS
3522
elif test $ac_cv_prog_cc_g = yes; then
3523
if test "$GCC" = yes; then
3529
if test "$GCC" = yes; then
3535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3536
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3537
if ${ac_cv_prog_cc_c89+:} false; then :
3538
$as_echo_n "(cached) " >&6
3540
ac_cv_prog_cc_c89=no
3542
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543
/* end confdefs.h. */
3547
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3548
struct buf { int x; };
3549
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3550
static char *e (p, i)
3556
static char *f (char * (*g) (char **, int), char **p, ...)
3561
s = g (p, va_arg (v,int));
3566
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3567
function prototypes and stuff, but not '\xHH' hex character constants.
3568
These don't provoke an error unfortunately, instead are silently treated
3569
as 'x'. The following induces an error, until -std is added to get
3570
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3571
array size at least. It's necessary to write '\x00'==0 to get something
3572
that's true only with -std. */
3573
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3575
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3576
inside strings and character constants. */
3578
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3580
int test (int i, double x);
3581
struct s1 {int (*f) (int a);};
3582
struct s2 {int (*f) (double a);};
3583
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3589
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3594
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3595
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3597
CC="$ac_save_CC $ac_arg"
3598
if ac_fn_c_try_compile "$LINENO"; then :
3599
ac_cv_prog_cc_c89=$ac_arg
3601
rm -f core conftest.err conftest.$ac_objext
3602
test "x$ac_cv_prog_cc_c89" != "xno" && break
3604
rm -f conftest.$ac_ext
3609
case "x$ac_cv_prog_cc_c89" in
3611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3612
$as_echo "none needed" >&6; } ;;
3614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3615
$as_echo "unsupported" >&6; } ;;
3617
CC="$CC $ac_cv_prog_cc_c89"
3618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3619
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3621
if test "x$ac_cv_prog_cc_c89" != xno; then :
3626
ac_cpp='$CPP $CPPFLAGS'
3627
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632
ac_cpp='$CPP $CPPFLAGS'
3633
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3637
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3638
if ${am_cv_prog_cc_c_o+:} false; then :
3639
$as_echo_n "(cached) " >&6
3641
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642
/* end confdefs.h. */
3652
# Make sure it works both with $CC and with simple cc.
3653
# Following AC_PROG_CC_C_O, we do the test twice because some
3654
# compilers refuse to overwrite an existing .o file with -o,
3655
# though they will create one.
3656
am_cv_prog_cc_c_o=yes
3658
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3659
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662
(exit $ac_status); } \
3663
&& test -f conftest2.$ac_objext; then
3666
am_cv_prog_cc_c_o=no
3670
rm -f core conftest*
3673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3674
$as_echo "$am_cv_prog_cc_c_o" >&6; }
3675
if test "$am_cv_prog_cc_c_o" != yes; then
3676
# Losing compiler, so override with the script.
3677
# FIXME: It is wrong to rewrite CC.
3678
# But if we don't then we get into trouble of one sort or another.
3679
# A longer-term fix would be to have automake use am__CC in this case,
3680
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3681
CC="$am_aux_dir/compile $CC"
3684
ac_cpp='$CPP $CPPFLAGS'
3685
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689
DEPDIR="${am__leading_dot}deps"
3691
ac_config_commands="$ac_config_commands depfiles"
3694
am_make=${MAKE-make}
3695
cat > confinc << 'END'
3697
@echo this is the am__doit target
3700
# If we don't find an include directive, just comment out the code.
3701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3702
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3706
# First try GNU make style include.
3707
echo "include confinc" > confmf
3708
# Ignore all kinds of additional output from 'make'.
3709
case `$am_make -s -f confmf 2> /dev/null` in #(
3710
*the\ am__doit\ target*)
3716
# Now try BSD make style include.
3717
if test "$am__include" = "#"; then
3718
echo '.include "confinc"' > confmf
3719
case `$am_make -s -f confmf 2> /dev/null` in #(
3720
*the\ am__doit\ target*)
3721
am__include=.include
3729
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3730
$as_echo "$_am_result" >&6; }
3731
rm -f confinc confmf
3733
# Check whether --enable-dependency-tracking was given.
3734
if test "${enable_dependency_tracking+set}" = set; then :
3735
enableval=$enable_dependency_tracking;
3738
if test "x$enable_dependency_tracking" != xno; then
3739
am_depcomp="$ac_aux_dir/depcomp"
3743
if test "x$enable_dependency_tracking" != xno; then
3753
depcc="$CC" am_compiler_list=
3755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3756
$as_echo_n "checking dependency style of $depcc... " >&6; }
3757
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3758
$as_echo_n "(cached) " >&6
3760
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3761
# We make a subdir and do the tests there. Otherwise we can end up
3762
# making bogus files that we don't know about and never remove. For
3763
# instance it was reported that on HP-UX the gcc test will end up
3764
# making a dummy file named 'D' -- because '-MD' means "put the output
3768
# Copy depcomp to subdir because otherwise we won't find it if we're
3769
# using a relative directory.
3770
cp "$am_depcomp" conftest.dir
3772
# We will build objects and dependencies in a subdirectory because
3773
# it helps to detect inapplicable dependency modes. For instance
3774
# both Tru64's cc and ICC support -MD to output dependencies as a
3775
# side effect of compilation, but ICC will put the dependencies in
3776
# the current directory while Tru64 will put them in the object
3780
am_cv_CC_dependencies_compiler_type=none
3781
if test "$am_compiler_list" = ""; then
3782
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3785
case " $depcc " in #(
3786
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3789
for depmode in $am_compiler_list; do
3790
# Setup a source with many dependencies, because some compilers
3791
# like to wrap large dependency lists on column 80 (with \), and
3792
# we should not choose a depcomp mode which is confused by this.
3794
# We need to recreate these files for each test, as the compiler may
3795
# overwrite some of them when testing with obscure command lines.
3796
# This happens at least with the AIX C compiler.
3798
for i in 1 2 3 4 5 6; do
3799
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3800
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3801
# Solaris 10 /bin/sh.
3802
echo '/* dummy */' > sub/conftst$i.h
3804
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3806
# We check with '-c' and '-o' for the sake of the "dashmstdout"
3807
# mode. It turns out that the SunPro C++ compiler does not properly
3808
# handle '-M -o', and we need to detect this. Also, some Intel
3809
# versions had trouble with output in subdirs.
3810
am__obj=sub/conftest.${OBJEXT-o}
3811
am__minus_obj="-o $am__obj"
3814
# This depmode causes a compiler race in universal mode.
3815
test "$am__universal" = false || continue
3818
# After this tag, mechanisms are not by side-effect, so they'll
3819
# only be used when explicitly requested.
3820
if test "x$enable_dependency_tracking" = xyes; then
3826
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3827
# This compiler won't grok '-c -o', but also, the minuso test has
3828
# not run yet. These depmodes are late enough in the game, and
3829
# so weak that their functioning should not be impacted.
3830
am__obj=conftest.${OBJEXT-o}
3835
if depmode=$depmode \
3836
source=sub/conftest.c object=$am__obj \
3837
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3838
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3839
>/dev/null 2>conftest.err &&
3840
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3841
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3842
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3843
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3844
# icc doesn't choke on unknown options, it will just issue warnings
3845
# or remarks (even with -Werror). So we grep stderr for any message
3846
# that says an option was ignored or not supported.
3847
# When given -MP, icc 7.0 and 7.1 complain thusly:
3848
# icc: Command line warning: ignoring option '-M'; no argument required
3849
# The diagnosis changed in icc 8.0:
3850
# icc: Command line remark: option '-MP' not supported
3851
if (grep 'ignoring option' conftest.err ||
3852
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3853
am_cv_CC_dependencies_compiler_type=$depmode
3862
am_cv_CC_dependencies_compiler_type=none
3866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3867
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3868
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3871
test "x$enable_dependency_tracking" != xno \
3872
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3874
am__fastdepCC_FALSE='#'
3876
am__fastdepCC_TRUE='#'
3877
am__fastdepCC_FALSE=
3883
if test -n "$ac_tool_prefix"; then
3884
for ac_prog in ar lib "link -lib"
3886
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3887
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889
$as_echo_n "checking for $ac_word... " >&6; }
3890
if ${ac_cv_prog_AR+:} false; then :
3891
$as_echo_n "(cached) " >&6
3893
if test -n "$AR"; then
3894
ac_cv_prog_AR="$AR" # Let the user override the test.
3896
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900
test -z "$as_dir" && as_dir=.
3901
for ac_exec_ext in '' $ac_executable_extensions; do
3902
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3903
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3904
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914
if test -n "$AR"; then
3915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3916
$as_echo "$AR" >&6; }
3918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919
$as_echo "no" >&6; }
3923
test -n "$AR" && break
3926
if test -z "$AR"; then
3928
for ac_prog in ar lib "link -lib"
3930
# Extract the first word of "$ac_prog", so it can be a program name with args.
3931
set dummy $ac_prog; ac_word=$2
3932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933
$as_echo_n "checking for $ac_word... " >&6; }
3934
if ${ac_cv_prog_ac_ct_AR+:} false; then :
3935
$as_echo_n "(cached) " >&6
3937
if test -n "$ac_ct_AR"; then
3938
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3940
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944
test -z "$as_dir" && as_dir=.
3945
for ac_exec_ext in '' $ac_executable_extensions; do
3946
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3947
ac_cv_prog_ac_ct_AR="$ac_prog"
3948
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3957
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3958
if test -n "$ac_ct_AR"; then
3959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3960
$as_echo "$ac_ct_AR" >&6; }
3962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963
$as_echo "no" >&6; }
3967
test -n "$ac_ct_AR" && break
3970
if test "x$ac_ct_AR" = x; then
3973
case $cross_compiling:$ac_tool_warned in
3975
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3976
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3977
ac_tool_warned=yes ;;
3985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3986
$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3987
if ${am_cv_ar_interface+:} false; then :
3988
$as_echo_n "(cached) " >&6
3991
ac_cpp='$CPP $CPPFLAGS'
3992
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996
am_cv_ar_interface=ar
3997
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998
/* end confdefs.h. */
3999
int some_variable = 0;
4001
if ac_fn_c_try_compile "$LINENO"; then :
4002
am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4003
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4004
(eval $am_ar_try) 2>&5
4006
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007
test $ac_status = 0; }
4008
if test "$ac_status" -eq 0; then
4009
am_cv_ar_interface=ar
4011
am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4012
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4013
(eval $am_ar_try) 2>&5
4015
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016
test $ac_status = 0; }
4017
if test "$ac_status" -eq 0; then
4018
am_cv_ar_interface=lib
4020
am_cv_ar_interface=unknown
4023
rm -f conftest.lib libconftest.a
4026
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028
ac_cpp='$CPP $CPPFLAGS'
4029
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4030
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4031
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4035
$as_echo "$am_cv_ar_interface" >&6; }
4037
case $am_cv_ar_interface in
4041
# Microsoft lib, so override with the ar-lib wrapper script.
4042
# FIXME: It is wrong to rewrite AR.
4043
# But if we don't then we get into trouble of one sort or another.
4044
# A longer-term fix would be to have automake use am__AR in this case,
4045
# and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4047
AR="$am_aux_dir/ar-lib $AR"
4050
as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4057
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4058
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4063
macro_version='2.4.2'
4064
macro_revision='1.3337'
4078
ltmain="$ac_aux_dir/ltmain.sh"
4080
# Make sure we can run config.sub.
4081
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4082
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4084
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4085
$as_echo_n "checking build system type... " >&6; }
4086
if ${ac_cv_build+:} false; then :
4087
$as_echo_n "(cached) " >&6
4089
ac_build_alias=$build_alias
4090
test "x$ac_build_alias" = x &&
4091
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4092
test "x$ac_build_alias" = x &&
4093
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4094
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4095
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4099
$as_echo "$ac_cv_build" >&6; }
4100
case $ac_cv_build in
4102
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4105
ac_save_IFS=$IFS; IFS='-'
4111
# Remember, the first character of IFS is used to create $*,
4112
# except with old shells:
4115
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4119
$as_echo_n "checking host system type... " >&6; }
4120
if ${ac_cv_host+:} false; then :
4121
$as_echo_n "(cached) " >&6
4123
if test "x$host_alias" = x; then
4124
ac_cv_host=$ac_cv_build
4126
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4127
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4132
$as_echo "$ac_cv_host" >&6; }
4135
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4138
ac_save_IFS=$IFS; IFS='-'
4144
# Remember, the first character of IFS is used to create $*,
4145
# except with old shells:
4148
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4151
# Backslashify metacharacters that are still active within
4152
# double-quoted strings.
4153
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4155
# Same as above, but do not quote variable references.
4156
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4158
# Sed substitution to delay expansion of an escaped shell variable in a
4159
# double_quote_subst'ed string.
4160
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4162
# Sed substitution to delay expansion of an escaped single quote.
4163
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4165
# Sed substitution to avoid accidental globbing in evaled expressions
4166
no_glob_subst='s/\*/\\\*/g'
4168
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4169
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4170
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4173
$as_echo_n "checking how to print strings... " >&6; }
4174
# Test print first, because it will be a builtin if present.
4175
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4176
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4178
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4181
# Use this function as a fallback that always works.
4182
func_fallback_echo ()
4184
eval 'cat <<_LTECHO_EOF
4188
ECHO='func_fallback_echo'
4191
# func_echo_all arg...
4192
# Invoke $ECHO with all args, space-separated.
4199
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4200
$as_echo "printf" >&6; } ;;
4201
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4202
$as_echo "print -r" >&6; } ;;
4203
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4204
$as_echo "cat" >&6; } ;;
4220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4221
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4222
if ${ac_cv_path_SED+:} false; then :
4223
$as_echo_n "(cached) " >&6
4225
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4226
for ac_i in 1 2 3 4 5 6 7; do
4227
ac_script="$ac_script$as_nl$ac_script"
4229
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4230
{ ac_script=; unset ac_script;}
4231
if test -z "$SED"; then
4232
ac_path_SED_found=false
4233
# Loop through the user's path and test for each of PROGNAME-LIST
4234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238
test -z "$as_dir" && as_dir=.
4239
for ac_prog in sed gsed; do
4240
for ac_exec_ext in '' $ac_executable_extensions; do
4241
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4242
as_fn_executable_p "$ac_path_SED" || continue
4243
# Check for GNU ac_path_SED and select it if it is found.
4244
# Check for GNU $ac_path_SED
4245
case `"$ac_path_SED" --version 2>&1` in
4247
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4250
$as_echo_n 0123456789 >"conftest.in"
4253
cat "conftest.in" "conftest.in" >"conftest.tmp"
4254
mv "conftest.tmp" "conftest.in"
4255
cp "conftest.in" "conftest.nl"
4256
$as_echo '' >> "conftest.nl"
4257
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4258
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4259
as_fn_arith $ac_count + 1 && ac_count=$as_val
4260
if test $ac_count -gt ${ac_path_SED_max-0}; then
4261
# Best one so far, save it but keep looking for a better one
4262
ac_cv_path_SED="$ac_path_SED"
4263
ac_path_SED_max=$ac_count
4265
# 10*(2^10) chars as input seems more than enough
4266
test $ac_count -gt 10 && break
4268
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4271
$ac_path_SED_found && break 3
4276
if test -z "$ac_cv_path_SED"; then
4277
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4284
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4285
$as_echo "$ac_cv_path_SED" >&6; }
4286
SED="$ac_cv_path_SED"
4289
test -z "$SED" && SED=sed
4290
Xsed="$SED -e 1s/^X//"
4302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4303
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4304
if ${ac_cv_path_GREP+:} false; then :
4305
$as_echo_n "(cached) " >&6
4307
if test -z "$GREP"; then
4308
ac_path_GREP_found=false
4309
# Loop through the user's path and test for each of PROGNAME-LIST
4310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4314
test -z "$as_dir" && as_dir=.
4315
for ac_prog in grep ggrep; do
4316
for ac_exec_ext in '' $ac_executable_extensions; do
4317
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4318
as_fn_executable_p "$ac_path_GREP" || continue
4319
# Check for GNU ac_path_GREP and select it if it is found.
4320
# Check for GNU $ac_path_GREP
4321
case `"$ac_path_GREP" --version 2>&1` in
4323
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4326
$as_echo_n 0123456789 >"conftest.in"
4329
cat "conftest.in" "conftest.in" >"conftest.tmp"
4330
mv "conftest.tmp" "conftest.in"
4331
cp "conftest.in" "conftest.nl"
4332
$as_echo 'GREP' >> "conftest.nl"
4333
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4334
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4335
as_fn_arith $ac_count + 1 && ac_count=$as_val
4336
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4337
# Best one so far, save it but keep looking for a better one
4338
ac_cv_path_GREP="$ac_path_GREP"
4339
ac_path_GREP_max=$ac_count
4341
# 10*(2^10) chars as input seems more than enough
4342
test $ac_count -gt 10 && break
4344
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4347
$ac_path_GREP_found && break 3
4352
if test -z "$ac_cv_path_GREP"; then
4353
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4356
ac_cv_path_GREP=$GREP
4360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4361
$as_echo "$ac_cv_path_GREP" >&6; }
4362
GREP="$ac_cv_path_GREP"
4365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4366
$as_echo_n "checking for egrep... " >&6; }
4367
if ${ac_cv_path_EGREP+:} false; then :
4368
$as_echo_n "(cached) " >&6
4370
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4371
then ac_cv_path_EGREP="$GREP -E"
4373
if test -z "$EGREP"; then
4374
ac_path_EGREP_found=false
4375
# Loop through the user's path and test for each of PROGNAME-LIST
4376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4380
test -z "$as_dir" && as_dir=.
4381
for ac_prog in egrep; do
4382
for ac_exec_ext in '' $ac_executable_extensions; do
4383
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4384
as_fn_executable_p "$ac_path_EGREP" || continue
4385
# Check for GNU ac_path_EGREP and select it if it is found.
4386
# Check for GNU $ac_path_EGREP
4387
case `"$ac_path_EGREP" --version 2>&1` in
4389
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4392
$as_echo_n 0123456789 >"conftest.in"
4395
cat "conftest.in" "conftest.in" >"conftest.tmp"
4396
mv "conftest.tmp" "conftest.in"
4397
cp "conftest.in" "conftest.nl"
4398
$as_echo 'EGREP' >> "conftest.nl"
4399
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4400
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4401
as_fn_arith $ac_count + 1 && ac_count=$as_val
4402
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4403
# Best one so far, save it but keep looking for a better one
4404
ac_cv_path_EGREP="$ac_path_EGREP"
4405
ac_path_EGREP_max=$ac_count
4407
# 10*(2^10) chars as input seems more than enough
4408
test $ac_count -gt 10 && break
4410
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413
$ac_path_EGREP_found && break 3
4418
if test -z "$ac_cv_path_EGREP"; then
4419
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4422
ac_cv_path_EGREP=$EGREP
4427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4428
$as_echo "$ac_cv_path_EGREP" >&6; }
4429
EGREP="$ac_cv_path_EGREP"
4432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4433
$as_echo_n "checking for fgrep... " >&6; }
4434
if ${ac_cv_path_FGREP+:} false; then :
4435
$as_echo_n "(cached) " >&6
4437
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4438
then ac_cv_path_FGREP="$GREP -F"
4440
if test -z "$FGREP"; then
4441
ac_path_FGREP_found=false
4442
# Loop through the user's path and test for each of PROGNAME-LIST
4443
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4447
test -z "$as_dir" && as_dir=.
4448
for ac_prog in fgrep; do
4449
for ac_exec_ext in '' $ac_executable_extensions; do
4450
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4451
as_fn_executable_p "$ac_path_FGREP" || continue
4452
# Check for GNU ac_path_FGREP and select it if it is found.
4453
# Check for GNU $ac_path_FGREP
4454
case `"$ac_path_FGREP" --version 2>&1` in
4456
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4459
$as_echo_n 0123456789 >"conftest.in"
4462
cat "conftest.in" "conftest.in" >"conftest.tmp"
4463
mv "conftest.tmp" "conftest.in"
4464
cp "conftest.in" "conftest.nl"
4465
$as_echo 'FGREP' >> "conftest.nl"
4466
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4467
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4468
as_fn_arith $ac_count + 1 && ac_count=$as_val
4469
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4470
# Best one so far, save it but keep looking for a better one
4471
ac_cv_path_FGREP="$ac_path_FGREP"
4472
ac_path_FGREP_max=$ac_count
4474
# 10*(2^10) chars as input seems more than enough
4475
test $ac_count -gt 10 && break
4477
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4480
$ac_path_FGREP_found && break 3
4485
if test -z "$ac_cv_path_FGREP"; then
4486
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4489
ac_cv_path_FGREP=$FGREP
4494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4495
$as_echo "$ac_cv_path_FGREP" >&6; }
4496
FGREP="$ac_cv_path_FGREP"
4499
test -z "$GREP" && GREP=grep
4519
# Check whether --with-gnu-ld was given.
4520
if test "${with_gnu_ld+set}" = set; then :
4521
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4527
if test "$GCC" = yes; then
4528
# Check if gcc -print-prog-name=ld gives a path.
4529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4530
$as_echo_n "checking for ld used by $CC... " >&6; }
4533
# gcc leaves a trailing carriage return which upsets mingw
4534
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4536
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4539
# Accept absolute paths.
4541
re_direlt='/[^/][^/]*/\.\./'
4542
# Canonicalize the pathname of ld
4543
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4544
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4545
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4547
test -z "$LD" && LD="$ac_prog"
4550
# If it fails, then pretend we aren't using GCC.
4554
# If it is relative, then search for the first ld in PATH.
4558
elif test "$with_gnu_ld" = yes; then
4559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4560
$as_echo_n "checking for GNU ld... " >&6; }
4562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4563
$as_echo_n "checking for non-GNU ld... " >&6; }
4565
if ${lt_cv_path_LD+:} false; then :
4566
$as_echo_n "(cached) " >&6
4568
if test -z "$LD"; then
4569
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4570
for ac_dir in $PATH; do
4572
test -z "$ac_dir" && ac_dir=.
4573
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4574
lt_cv_path_LD="$ac_dir/$ac_prog"
4575
# Check to see if the program is GNU ld. I'd rather use --version,
4576
# but apparently some variants of GNU ld only accept -v.
4577
# Break only if it was the GNU/non-GNU ld that we prefer.
4578
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4579
*GNU* | *'with BFD'*)
4580
test "$with_gnu_ld" != no && break
4583
test "$with_gnu_ld" != yes && break
4590
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4595
if test -n "$LD"; then
4596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4597
$as_echo "$LD" >&6; }
4599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600
$as_echo "no" >&6; }
4602
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4604
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4605
if ${lt_cv_prog_gnu_ld+:} false; then :
4606
$as_echo_n "(cached) " >&6
4608
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4609
case `$LD -v 2>&1 </dev/null` in
4610
*GNU* | *'with BFD'*)
4611
lt_cv_prog_gnu_ld=yes
4614
lt_cv_prog_gnu_ld=no
4618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4619
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4620
with_gnu_ld=$lt_cv_prog_gnu_ld
4630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4631
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4632
if ${lt_cv_path_NM+:} false; then :
4633
$as_echo_n "(cached) " >&6
4635
if test -n "$NM"; then
4636
# Let the user override the test.
4639
lt_nm_to_check="${ac_tool_prefix}nm"
4640
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4641
lt_nm_to_check="$lt_nm_to_check nm"
4643
for lt_tmp_nm in $lt_nm_to_check; do
4644
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4645
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4647
test -z "$ac_dir" && ac_dir=.
4648
tmp_nm="$ac_dir/$lt_tmp_nm"
4649
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4650
# Check to see if the nm accepts a BSD-compat flag.
4651
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4652
# nm: unknown option "B" ignored
4653
# Tru64's nm complains that /dev/null is an invalid object file
4654
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4655
*/dev/null* | *'Invalid file or object type'*)
4656
lt_cv_path_NM="$tmp_nm -B"
4660
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4662
lt_cv_path_NM="$tmp_nm -p"
4666
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4667
continue # so that we can try to find one that supports BSD flags
4676
: ${lt_cv_path_NM=no}
4679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4680
$as_echo "$lt_cv_path_NM" >&6; }
4681
if test "$lt_cv_path_NM" != "no"; then
4684
# Didn't find any BSD compatible name lister, look for dumpbin.
4685
if test -n "$DUMPBIN"; then :
4686
# Let the user override the test.
4688
if test -n "$ac_tool_prefix"; then
4689
for ac_prog in dumpbin "link -dump"
4691
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4692
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694
$as_echo_n "checking for $ac_word... " >&6; }
4695
if ${ac_cv_prog_DUMPBIN+:} false; then :
4696
$as_echo_n "(cached) " >&6
4698
if test -n "$DUMPBIN"; then
4699
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705
test -z "$as_dir" && as_dir=.
4706
for ac_exec_ext in '' $ac_executable_extensions; do
4707
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4709
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718
DUMPBIN=$ac_cv_prog_DUMPBIN
4719
if test -n "$DUMPBIN"; then
4720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4721
$as_echo "$DUMPBIN" >&6; }
4723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724
$as_echo "no" >&6; }
4728
test -n "$DUMPBIN" && break
4731
if test -z "$DUMPBIN"; then
4732
ac_ct_DUMPBIN=$DUMPBIN
4733
for ac_prog in dumpbin "link -dump"
4735
# Extract the first word of "$ac_prog", so it can be a program name with args.
4736
set dummy $ac_prog; ac_word=$2
4737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738
$as_echo_n "checking for $ac_word... " >&6; }
4739
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4740
$as_echo_n "(cached) " >&6
4742
if test -n "$ac_ct_DUMPBIN"; then
4743
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749
test -z "$as_dir" && as_dir=.
4750
for ac_exec_ext in '' $ac_executable_extensions; do
4751
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4753
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4763
if test -n "$ac_ct_DUMPBIN"; then
4764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4765
$as_echo "$ac_ct_DUMPBIN" >&6; }
4767
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768
$as_echo "no" >&6; }
4772
test -n "$ac_ct_DUMPBIN" && break
4775
if test "x$ac_ct_DUMPBIN" = x; then
4778
case $cross_compiling:$ac_tool_warned in
4780
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782
ac_tool_warned=yes ;;
4784
DUMPBIN=$ac_ct_DUMPBIN
4788
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4790
DUMPBIN="$DUMPBIN -symbols"
4798
if test "$DUMPBIN" != ":"; then
4802
test -z "$NM" && NM=nm
4809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4810
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4811
if ${lt_cv_nm_interface+:} false; then :
4812
$as_echo_n "(cached) " >&6
4814
lt_cv_nm_interface="BSD nm"
4815
echo "int some_variable = 0;" > conftest.$ac_ext
4816
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4817
(eval "$ac_compile" 2>conftest.err)
4818
cat conftest.err >&5
4819
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4820
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4821
cat conftest.err >&5
4822
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
4823
cat conftest.out >&5
4824
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4825
lt_cv_nm_interface="MS dumpbin"
4829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4830
$as_echo "$lt_cv_nm_interface" >&6; }
4832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4833
$as_echo_n "checking whether ln -s works... " >&6; }
4835
if test "$LN_S" = "ln -s"; then
4836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4837
$as_echo "yes" >&6; }
4839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4840
$as_echo "no, using $LN_S" >&6; }
4843
# find the maximum length of command line arguments
4844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4845
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4846
if ${lt_cv_sys_max_cmd_len+:} false; then :
4847
$as_echo_n "(cached) " >&6
4854
# On DJGPP, this test can blow up pretty badly due to problems in libc
4855
# (any single argument exceeding 2000 bytes causes a buffer overrun
4856
# during glob expansion). Even if it were fixed, the result of this
4857
# check would be larger than it should be.
4858
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4862
# Under GNU Hurd, this test is not required because there is
4863
# no limit to the length of command line arguments.
4864
# Libtool will interpret -1 as no limit whatsoever
4865
lt_cv_sys_max_cmd_len=-1;
4868
cygwin* | mingw* | cegcc*)
4869
# On Win9x/ME, this test blows up -- it succeeds, but takes
4870
# about 5 minutes as the teststring grows exponentially.
4871
# Worse, since 9x/ME are not pre-emptively multitasking,
4872
# you end up with a "frozen" computer, even though with patience
4873
# the test eventually succeeds (with a max line length of 256k).
4874
# Instead, let's just punt: use the minimum linelength reported by
4875
# all of the supported platforms: 8192 (on NT/2K/XP).
4876
lt_cv_sys_max_cmd_len=8192;
4880
# On MiNT this can take a long time and run out of memory.
4881
lt_cv_sys_max_cmd_len=8192;
4885
# On AmigaOS with pdksh, this test takes hours, literally.
4886
# So we just punt and use a minimum line length of 8192.
4887
lt_cv_sys_max_cmd_len=8192;
4890
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4891
# This has been around since 386BSD, at least. Likely further.
4892
if test -x /sbin/sysctl; then
4893
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4894
elif test -x /usr/sbin/sysctl; then
4895
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4897
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4899
# And add a safety zone
4900
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4901
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4905
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4906
lt_cv_sys_max_cmd_len=196608
4910
# The test takes a long time on OS/2.
4911
lt_cv_sys_max_cmd_len=8192
4915
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4916
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4917
# nice to cause kernel panics so lets avoid the loop below.
4918
# First set a reasonable default.
4919
lt_cv_sys_max_cmd_len=16384
4921
if test -x /sbin/sysconfig; then
4922
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4923
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4928
lt_cv_sys_max_cmd_len=102400
4930
sysv5* | sco5v6* | sysv4.2uw2*)
4931
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4932
if test -n "$kargmax"; then
4933
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4935
lt_cv_sys_max_cmd_len=32768
4939
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4940
if test -n "$lt_cv_sys_max_cmd_len" && \
4941
test undefined != "$lt_cv_sys_max_cmd_len"; then
4942
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4943
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4945
# Make teststring a little bigger before we do anything with it.
4946
# a 1K string should be a reasonable start.
4947
for i in 1 2 3 4 5 6 7 8 ; do
4948
teststring=$teststring$teststring
4950
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4951
# If test is not a shell built-in, we'll probably end up computing a
4952
# maximum length that is only half of the actual maximum length, but
4954
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4955
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
4956
test $i != 17 # 1/2 MB should be enough
4959
teststring=$teststring$teststring
4961
# Only check the string length outside the loop.
4962
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4964
# Add a significant safety factor because C++ compilers can tack on
4965
# massive amounts of additional arguments before passing them to the
4966
# linker. It appears as though 1/2 is a usable value.
4967
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4974
if test -n $lt_cv_sys_max_cmd_len ; then
4975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4976
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4979
$as_echo "none" >&6; }
4981
max_cmd_len=$lt_cv_sys_max_cmd_len
4992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4993
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4994
# Try some XSI features
4997
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4999
&& eval 'test $(( 1 + 1 )) -eq 2 \
5000
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5003
$as_echo "$xsi_shell" >&6; }
5006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5007
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5009
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5011
&& lt_shell_append=yes
5012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5013
$as_echo "$lt_shell_append" >&6; }
5016
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5026
# test EBCDIC or ASCII
5027
case `echo X|tr X '\101'` in
5028
A) # ASCII based system
5029
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5030
lt_SP2NL='tr \040 \012'
5031
lt_NL2SP='tr \015\012 \040\040'
5033
*) # EBCDIC based system
5034
lt_SP2NL='tr \100 \n'
5035
lt_NL2SP='tr \r\n \100\100'
5047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5048
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5049
if ${lt_cv_to_host_file_cmd+:} false; then :
5050
$as_echo_n "(cached) " >&6
5055
*-*-mingw* ) # actually msys
5056
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5059
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5061
* ) # otherwise, assume *nix
5062
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5068
*-*-mingw* ) # actually msys
5069
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5072
lt_cv_to_host_file_cmd=func_convert_file_noop
5074
* ) # otherwise, assume *nix
5075
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5079
* ) # unhandled hosts (and "normal" native builds)
5080
lt_cv_to_host_file_cmd=func_convert_file_noop
5086
to_host_file_cmd=$lt_cv_to_host_file_cmd
5087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5088
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5095
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5096
if ${lt_cv_to_tool_file_cmd+:} false; then :
5097
$as_echo_n "(cached) " >&6
5099
#assume ordinary cross tools, or native build.
5100
lt_cv_to_tool_file_cmd=func_convert_file_noop
5104
*-*-mingw* ) # actually msys
5105
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5113
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5114
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5115
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5121
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5122
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5123
if ${lt_cv_ld_reload_flag+:} false; then :
5124
$as_echo_n "(cached) " >&6
5126
lt_cv_ld_reload_flag='-r'
5128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5129
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5130
reload_flag=$lt_cv_ld_reload_flag
5131
case $reload_flag in
5133
*) reload_flag=" $reload_flag" ;;
5135
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5137
cygwin* | mingw* | pw32* | cegcc*)
5138
if test "$GCC" != yes; then
5143
if test "$GCC" = yes; then
5144
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5146
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5159
if test -n "$ac_tool_prefix"; then
5160
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5161
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163
$as_echo_n "checking for $ac_word... " >&6; }
5164
if ${ac_cv_prog_OBJDUMP+:} false; then :
5165
$as_echo_n "(cached) " >&6
5167
if test -n "$OBJDUMP"; then
5168
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5170
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174
test -z "$as_dir" && as_dir=.
5175
for ac_exec_ext in '' $ac_executable_extensions; do
5176
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5178
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187
OBJDUMP=$ac_cv_prog_OBJDUMP
5188
if test -n "$OBJDUMP"; then
5189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5190
$as_echo "$OBJDUMP" >&6; }
5192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193
$as_echo "no" >&6; }
5198
if test -z "$ac_cv_prog_OBJDUMP"; then
5199
ac_ct_OBJDUMP=$OBJDUMP
5200
# Extract the first word of "objdump", so it can be a program name with args.
5201
set dummy objdump; ac_word=$2
5202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203
$as_echo_n "checking for $ac_word... " >&6; }
5204
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5205
$as_echo_n "(cached) " >&6
5207
if test -n "$ac_ct_OBJDUMP"; then
5208
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5210
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214
test -z "$as_dir" && as_dir=.
5215
for ac_exec_ext in '' $ac_executable_extensions; do
5216
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5218
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5228
if test -n "$ac_ct_OBJDUMP"; then
5229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5230
$as_echo "$ac_ct_OBJDUMP" >&6; }
5232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233
$as_echo "no" >&6; }
5236
if test "x$ac_ct_OBJDUMP" = x; then
5239
case $cross_compiling:$ac_tool_warned in
5241
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5242
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5243
ac_tool_warned=yes ;;
5245
OBJDUMP=$ac_ct_OBJDUMP
5248
OBJDUMP="$ac_cv_prog_OBJDUMP"
5251
test -z "$OBJDUMP" && OBJDUMP=objdump
5258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5259
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5260
if ${lt_cv_deplibs_check_method+:} false; then :
5261
$as_echo_n "(cached) " >&6
5263
lt_cv_file_magic_cmd='$MAGIC_CMD'
5264
lt_cv_file_magic_test_file=
5265
lt_cv_deplibs_check_method='unknown'
5266
# Need to set the preceding variable on all platforms that support
5267
# interlibrary dependencies.
5268
# 'none' -- dependencies not supported.
5269
# `unknown' -- same as none, but documents that we really don't know.
5270
# 'pass_all' -- all dependencies passed with no checks.
5271
# 'test_compile' -- check by making test program.
5272
# 'file_magic [[regex]]' -- check by looking for files in library path
5273
# which responds to the $file_magic_cmd with a given extended regex.
5274
# If you have `file' or equivalent on your system and you're not sure
5275
# whether `pass_all' will *always* work, you probably want this one.
5279
lt_cv_deplibs_check_method=pass_all
5283
lt_cv_deplibs_check_method=pass_all
5287
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5288
lt_cv_file_magic_cmd='/usr/bin/file -L'
5289
lt_cv_file_magic_test_file=/shlib/libc.so
5293
# func_win32_libid is a shell function defined in ltmain.sh
5294
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5295
lt_cv_file_magic_cmd='func_win32_libid'
5299
# Base MSYS/MinGW do not provide the 'file' command needed by
5300
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5301
# unless we find 'file', for example because we are cross-compiling.
5302
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5303
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5304
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5305
lt_cv_file_magic_cmd='func_win32_libid'
5307
# Keep this pattern in sync with the one in func_win32_libid.
5308
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5309
lt_cv_file_magic_cmd='$OBJDUMP -f'
5314
# use the weaker test based on 'objdump'. See mingw*.
5315
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5316
lt_cv_file_magic_cmd='$OBJDUMP -f'
5319
darwin* | rhapsody*)
5320
lt_cv_deplibs_check_method=pass_all
5323
freebsd* | dragonfly*)
5324
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5327
# Not sure whether the presence of OpenBSD here was a mistake.
5328
# Let's accept both of them until this is cleared up.
5329
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5330
lt_cv_file_magic_cmd=/usr/bin/file
5331
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5335
lt_cv_deplibs_check_method=pass_all
5340
lt_cv_deplibs_check_method=pass_all
5343
hpux10.20* | hpux11*)
5344
lt_cv_file_magic_cmd=/usr/bin/file
5347
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5348
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5351
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5352
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5355
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5356
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5362
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5363
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5366
irix5* | irix6* | nonstopux*)
5368
*-32|*"-32 ") libmagic=32-bit;;
5369
*-n32|*"-n32 ") libmagic=N32;;
5370
*-64|*"-64 ") libmagic=64-bit;;
5371
*) libmagic=never-match;;
5373
lt_cv_deplibs_check_method=pass_all
5376
# This must be glibc/ELF.
5377
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5378
lt_cv_deplibs_check_method=pass_all
5381
netbsd* | netbsdelf*-gnu)
5382
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5383
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5385
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5390
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5391
lt_cv_file_magic_cmd=/usr/bin/file
5392
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5396
lt_cv_deplibs_check_method=pass_all
5400
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5401
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5403
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5407
osf3* | osf4* | osf5*)
5408
lt_cv_deplibs_check_method=pass_all
5412
lt_cv_deplibs_check_method=pass_all
5416
lt_cv_deplibs_check_method=pass_all
5419
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5420
lt_cv_deplibs_check_method=pass_all
5424
case $host_vendor in
5426
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]'
5427
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5430
lt_cv_deplibs_check_method=pass_all
5433
lt_cv_file_magic_cmd='/bin/file'
5434
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5437
lt_cv_file_magic_cmd='/bin/file'
5438
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5439
lt_cv_file_magic_test_file=/lib/libc.so
5442
lt_cv_deplibs_check_method=pass_all
5445
lt_cv_deplibs_check_method=pass_all
5451
lt_cv_deplibs_check_method=pass_all
5456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5457
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5461
if test "$build" = "$host"; then
5464
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5467
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5473
file_magic_cmd=$lt_cv_file_magic_cmd
5474
deplibs_check_method=$lt_cv_deplibs_check_method
5475
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5498
if test -n "$ac_tool_prefix"; then
5499
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5500
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502
$as_echo_n "checking for $ac_word... " >&6; }
5503
if ${ac_cv_prog_DLLTOOL+:} false; then :
5504
$as_echo_n "(cached) " >&6
5506
if test -n "$DLLTOOL"; then
5507
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513
test -z "$as_dir" && as_dir=.
5514
for ac_exec_ext in '' $ac_executable_extensions; do
5515
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5517
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526
DLLTOOL=$ac_cv_prog_DLLTOOL
5527
if test -n "$DLLTOOL"; then
5528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5529
$as_echo "$DLLTOOL" >&6; }
5531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532
$as_echo "no" >&6; }
5537
if test -z "$ac_cv_prog_DLLTOOL"; then
5538
ac_ct_DLLTOOL=$DLLTOOL
5539
# Extract the first word of "dlltool", so it can be a program name with args.
5540
set dummy dlltool; ac_word=$2
5541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542
$as_echo_n "checking for $ac_word... " >&6; }
5543
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5544
$as_echo_n "(cached) " >&6
5546
if test -n "$ac_ct_DLLTOOL"; then
5547
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553
test -z "$as_dir" && as_dir=.
5554
for ac_exec_ext in '' $ac_executable_extensions; do
5555
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5557
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5567
if test -n "$ac_ct_DLLTOOL"; then
5568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5569
$as_echo "$ac_ct_DLLTOOL" >&6; }
5571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572
$as_echo "no" >&6; }
5575
if test "x$ac_ct_DLLTOOL" = x; then
5578
case $cross_compiling:$ac_tool_warned in
5580
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5581
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5582
ac_tool_warned=yes ;;
5584
DLLTOOL=$ac_ct_DLLTOOL
5587
DLLTOOL="$ac_cv_prog_DLLTOOL"
5590
test -z "$DLLTOOL" && DLLTOOL=dlltool
5598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5599
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5600
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5601
$as_echo_n "(cached) " >&6
5603
lt_cv_sharedlib_from_linklib_cmd='unknown'
5606
cygwin* | mingw* | pw32* | cegcc*)
5607
# two different shell functions defined in ltmain.sh
5608
# decide which to use based on capabilities of $DLLTOOL
5609
case `$DLLTOOL --help 2>&1` in
5610
*--identify-strict*)
5611
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5614
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5619
# fallback: assume linklib IS sharedlib
5620
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5626
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5627
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5628
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5636
if test -n "$ac_tool_prefix"; then
5639
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5640
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642
$as_echo_n "checking for $ac_word... " >&6; }
5643
if ${ac_cv_prog_AR+:} false; then :
5644
$as_echo_n "(cached) " >&6
5646
if test -n "$AR"; then
5647
ac_cv_prog_AR="$AR" # Let the user override the test.
5649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653
test -z "$as_dir" && as_dir=.
5654
for ac_exec_ext in '' $ac_executable_extensions; do
5655
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5657
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667
if test -n "$AR"; then
5668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5669
$as_echo "$AR" >&6; }
5671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672
$as_echo "no" >&6; }
5676
test -n "$AR" && break
5679
if test -z "$AR"; then
5683
# Extract the first word of "$ac_prog", so it can be a program name with args.
5684
set dummy $ac_prog; ac_word=$2
5685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686
$as_echo_n "checking for $ac_word... " >&6; }
5687
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5688
$as_echo_n "(cached) " >&6
5690
if test -n "$ac_ct_AR"; then
5691
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5693
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697
test -z "$as_dir" && as_dir=.
5698
for ac_exec_ext in '' $ac_executable_extensions; do
5699
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700
ac_cv_prog_ac_ct_AR="$ac_prog"
5701
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5711
if test -n "$ac_ct_AR"; then
5712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5713
$as_echo "$ac_ct_AR" >&6; }
5715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716
$as_echo "no" >&6; }
5720
test -n "$ac_ct_AR" && break
5723
if test "x$ac_ct_AR" = x; then
5726
case $cross_compiling:$ac_tool_warned in
5728
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5729
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5730
ac_tool_warned=yes ;;
5749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5750
$as_echo_n "checking for archiver @FILE support... " >&6; }
5751
if ${lt_cv_ar_at_file+:} false; then :
5752
$as_echo_n "(cached) " >&6
5755
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756
/* end confdefs.h. */
5766
if ac_fn_c_try_compile "$LINENO"; then :
5767
echo conftest.$ac_objext > conftest.lst
5768
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5769
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5770
(eval $lt_ar_try) 2>&5
5772
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5773
test $ac_status = 0; }
5774
if test "$ac_status" -eq 0; then
5775
# Ensure the archiver fails upon bogus file names.
5776
rm -f conftest.$ac_objext libconftest.a
5777
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5778
(eval $lt_ar_try) 2>&5
5780
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781
test $ac_status = 0; }
5782
if test "$ac_status" -ne 0; then
5786
rm -f conftest.* libconftest.a
5789
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5793
$as_echo "$lt_cv_ar_at_file" >&6; }
5795
if test "x$lt_cv_ar_at_file" = xno; then
5798
archiver_list_spec=$lt_cv_ar_at_file
5807
if test -n "$ac_tool_prefix"; then
5808
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5809
set dummy ${ac_tool_prefix}strip; ac_word=$2
5810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811
$as_echo_n "checking for $ac_word... " >&6; }
5812
if ${ac_cv_prog_STRIP+:} false; then :
5813
$as_echo_n "(cached) " >&6
5815
if test -n "$STRIP"; then
5816
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5818
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822
test -z "$as_dir" && as_dir=.
5823
for ac_exec_ext in '' $ac_executable_extensions; do
5824
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5826
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835
STRIP=$ac_cv_prog_STRIP
5836
if test -n "$STRIP"; then
5837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5838
$as_echo "$STRIP" >&6; }
5840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841
$as_echo "no" >&6; }
5846
if test -z "$ac_cv_prog_STRIP"; then
5848
# Extract the first word of "strip", so it can be a program name with args.
5849
set dummy strip; ac_word=$2
5850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851
$as_echo_n "checking for $ac_word... " >&6; }
5852
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5853
$as_echo_n "(cached) " >&6
5855
if test -n "$ac_ct_STRIP"; then
5856
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5858
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862
test -z "$as_dir" && as_dir=.
5863
for ac_exec_ext in '' $ac_executable_extensions; do
5864
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865
ac_cv_prog_ac_ct_STRIP="strip"
5866
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5876
if test -n "$ac_ct_STRIP"; then
5877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5878
$as_echo "$ac_ct_STRIP" >&6; }
5880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881
$as_echo "no" >&6; }
5884
if test "x$ac_ct_STRIP" = x; then
5887
case $cross_compiling:$ac_tool_warned in
5889
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891
ac_tool_warned=yes ;;
5896
STRIP="$ac_cv_prog_STRIP"
5899
test -z "$STRIP" && STRIP=:
5906
if test -n "$ac_tool_prefix"; then
5907
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5908
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5909
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910
$as_echo_n "checking for $ac_word... " >&6; }
5911
if ${ac_cv_prog_RANLIB+:} false; then :
5912
$as_echo_n "(cached) " >&6
5914
if test -n "$RANLIB"; then
5915
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5917
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921
test -z "$as_dir" && as_dir=.
5922
for ac_exec_ext in '' $ac_executable_extensions; do
5923
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5925
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934
RANLIB=$ac_cv_prog_RANLIB
5935
if test -n "$RANLIB"; then
5936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5937
$as_echo "$RANLIB" >&6; }
5939
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940
$as_echo "no" >&6; }
5945
if test -z "$ac_cv_prog_RANLIB"; then
5946
ac_ct_RANLIB=$RANLIB
5947
# Extract the first word of "ranlib", so it can be a program name with args.
5948
set dummy ranlib; ac_word=$2
5949
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950
$as_echo_n "checking for $ac_word... " >&6; }
5951
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5952
$as_echo_n "(cached) " >&6
5954
if test -n "$ac_ct_RANLIB"; then
5955
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5957
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961
test -z "$as_dir" && as_dir=.
5962
for ac_exec_ext in '' $ac_executable_extensions; do
5963
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5964
ac_cv_prog_ac_ct_RANLIB="ranlib"
5965
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5975
if test -n "$ac_ct_RANLIB"; then
5976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5977
$as_echo "$ac_ct_RANLIB" >&6; }
5979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980
$as_echo "no" >&6; }
5983
if test "x$ac_ct_RANLIB" = x; then
5986
case $cross_compiling:$ac_tool_warned in
5988
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990
ac_tool_warned=yes ;;
5992
RANLIB=$ac_ct_RANLIB
5995
RANLIB="$ac_cv_prog_RANLIB"
5998
test -z "$RANLIB" && RANLIB=:
6005
# Determine commands to create old-style static archives.
6006
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6007
old_postinstall_cmds='chmod 644 $oldlib'
6008
old_postuninstall_cmds=
6010
if test -n "$RANLIB"; then
6013
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6016
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6019
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6024
lock_old_archive_extraction=yes ;;
6026
lock_old_archive_extraction=no ;;
6067
# If no C compiler was specified, use CC.
6070
# If no C compiler flags were specified, use CFLAGS.
6071
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6073
# Allow CC to be a program name with arguments.
6077
# Check for command to grab the raw symbol name followed by C symbol from nm.
6078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6079
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6080
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6081
$as_echo_n "(cached) " >&6
6084
# These are sane defaults that work on at least a few old systems.
6085
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6087
# Character class describing NM global symbol codes.
6088
symcode='[BCDEGRST]'
6090
# Regexp to match symbols that can be accessed directly from C.
6091
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6093
# Define system-specific variables.
6098
cygwin* | mingw* | pw32* | cegcc*)
6099
symcode='[ABCDGISTW]'
6102
if test "$host_cpu" = ia64; then
6103
symcode='[ABCDEGRST]'
6107
symcode='[BCDEGRST]'
6110
symcode='[BCDEGQRST]'
6121
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6129
# If we're using GNU nm, then use its standard symbol codes.
6130
case `$NM -V 2>&1` in
6131
*GNU* | *'with BFD'*)
6132
symcode='[ABCDGIRSTW]' ;;
6135
# Transform an extracted symbol line into a proper C declaration.
6136
# Some systems (esp. on ia64) link data and code symbols differently,
6137
# so use this general approach.
6138
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6140
# Transform an extracted symbol line into symbol name and symbol address
6141
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6142
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'"
6144
# Handle CRLF in mingw tool chain
6148
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6152
# Try without a prefix underscore, then with it.
6153
for ac_symprfx in "" "_"; do
6155
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6156
symxfrm="\\1 $ac_symprfx\\2 \\2"
6158
# Write the raw and C identifiers.
6159
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6160
# Fake it for dumpbin and say T for any non-static function
6161
# and D for any global variable.
6162
# Also find C++ and __fastcall symbols from MSVC++,
6163
# which start with @ or ?.
6164
lt_cv_sys_global_symbol_pipe="$AWK '"\
6165
" {last_section=section; section=\$ 3};"\
6166
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6167
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6168
" \$ 0!~/External *\|/{next};"\
6169
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6170
" {if(hide[section]) next};"\
6171
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6172
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6173
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6174
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6175
" ' prfx=^$ac_symprfx"
6177
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6179
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6181
# Check to see that the pipe works correctly.
6185
cat > conftest.$ac_ext <<_LT_EOF
6190
void nm_test_func(void);
6191
void nm_test_func(void){}
6195
int main(){nm_test_var='a';nm_test_func();return(0);}
6198
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6199
(eval $ac_compile) 2>&5
6201
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202
test $ac_status = 0; }; then
6203
# Now try to grab the symbols.
6205
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6206
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6208
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209
test $ac_status = 0; } && test -s "$nlist"; then
6210
# Try sorting and uniquifying the output.
6211
if sort "$nlist" | uniq > "$nlist"T; then
6212
mv -f "$nlist"T "$nlist"
6217
# Make sure that we snagged all the symbols we need.
6218
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6219
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6220
cat <<_LT_EOF > conftest.$ac_ext
6221
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6222
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6223
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6224
relocations are performed -- see ld's documentation on pseudo-relocs. */
6225
# define LT_DLSYM_CONST
6226
#elif defined(__osf__)
6227
/* This system does not cope well with relocations in const data. */
6228
# define LT_DLSYM_CONST
6230
# define LT_DLSYM_CONST const
6238
# Now generate the symbol file.
6239
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6241
cat <<_LT_EOF >> conftest.$ac_ext
6243
/* The mapping between symbol names and symbols. */
6244
LT_DLSYM_CONST struct {
6248
lt__PROGRAM__LTX_preloaded_symbols[] =
6250
{ "@PROGRAM@", (void *) 0 },
6252
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6253
cat <<\_LT_EOF >> conftest.$ac_ext
6257
/* This works around a problem in FreeBSD linker */
6258
#ifdef FREEBSD_WORKAROUND
6259
static const void *lt_preloaded_setup() {
6260
return lt__PROGRAM__LTX_preloaded_symbols;
6268
# Now try linking the two files.
6269
mv conftest.$ac_objext conftstm.$ac_objext
6270
lt_globsym_save_LIBS=$LIBS
6271
lt_globsym_save_CFLAGS=$CFLAGS
6272
LIBS="conftstm.$ac_objext"
6273
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6274
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6275
(eval $ac_link) 2>&5
6277
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6281
LIBS=$lt_globsym_save_LIBS
6282
CFLAGS=$lt_globsym_save_CFLAGS
6284
echo "cannot find nm_test_func in $nlist" >&5
6287
echo "cannot find nm_test_var in $nlist" >&5
6290
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6293
echo "$progname: failed program was:" >&5
6294
cat conftest.$ac_ext >&5
6296
rm -rf conftest* conftst*
6298
# Do not use the global_symbol_pipe unless it works.
6299
if test "$pipe_works" = yes; then
6302
lt_cv_sys_global_symbol_pipe=
6308
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6309
lt_cv_sys_global_symbol_to_cdecl=
6311
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6313
$as_echo "failed" >&6; }
6315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6316
$as_echo "ok" >&6; }
6319
# Response file support.
6320
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6321
nm_file_list_spec='@'
6322
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6323
nm_file_list_spec='@'
6352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6353
$as_echo_n "checking for sysroot... " >&6; }
6355
# Check whether --with-sysroot was given.
6356
if test "${with_sysroot+set}" = set; then :
6357
withval=$with_sysroot;
6364
case ${with_sysroot} in #(
6366
if test "$GCC" = yes; then
6367
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6371
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6377
$as_echo "${with_sysroot}" >&6; }
6378
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6383
$as_echo "${lt_sysroot:-no}" >&6; }
6389
# Check whether --enable-libtool-lock was given.
6390
if test "${enable_libtool_lock+set}" = set; then :
6391
enableval=$enable_libtool_lock;
6394
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6396
# Some flags need to be propagated to the compiler or linker for good
6400
# Find out which ABI we are using.
6401
echo 'int i;' > conftest.$ac_ext
6402
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6403
(eval $ac_compile) 2>&5
6405
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6406
test $ac_status = 0; }; then
6407
case `/usr/bin/file conftest.$ac_objext` in
6419
# Find out which ABI we are using.
6420
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6421
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6422
(eval $ac_compile) 2>&5
6424
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6425
test $ac_status = 0; }; then
6426
if test "$lt_cv_prog_gnu_ld" = yes; then
6427
case `/usr/bin/file conftest.$ac_objext` in
6429
LD="${LD-ld} -melf32bsmip"
6432
LD="${LD-ld} -melf32bmipn32"
6435
LD="${LD-ld} -melf64bmip"
6439
case `/usr/bin/file conftest.$ac_objext` in
6455
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6456
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6457
# Find out which ABI we are using.
6458
echo 'int i;' > conftest.$ac_ext
6459
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6460
(eval $ac_compile) 2>&5
6462
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6463
test $ac_status = 0; }; then
6464
case `/usr/bin/file conftest.o` in
6467
x86_64-*kfreebsd*-gnu)
6468
LD="${LD-ld} -m elf_i386_fbsd"
6471
case `/usr/bin/file conftest.o` in
6473
LD="${LD-ld} -m elf32_x86_64"
6476
LD="${LD-ld} -m elf_i386"
6481
LD="${LD-ld} -m elf32lppclinux"
6484
LD="${LD-ld} -m elf32ppclinux"
6487
LD="${LD-ld} -m elf_s390"
6490
LD="${LD-ld} -m elf32_sparc"
6496
x86_64-*kfreebsd*-gnu)
6497
LD="${LD-ld} -m elf_x86_64_fbsd"
6500
LD="${LD-ld} -m elf_x86_64"
6503
LD="${LD-ld} -m elf64lppc"
6506
LD="${LD-ld} -m elf64ppc"
6508
s390*-*linux*|s390*-*tpf*)
6509
LD="${LD-ld} -m elf64_s390"
6512
LD="${LD-ld} -m elf64_sparc"
6522
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6523
SAVE_CFLAGS="$CFLAGS"
6524
CFLAGS="$CFLAGS -belf"
6525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6526
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6527
if ${lt_cv_cc_needs_belf+:} false; then :
6528
$as_echo_n "(cached) " >&6
6531
ac_cpp='$CPP $CPPFLAGS'
6532
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6533
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6534
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6536
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537
/* end confdefs.h. */
6547
if ac_fn_c_try_link "$LINENO"; then :
6548
lt_cv_cc_needs_belf=yes
6550
lt_cv_cc_needs_belf=no
6552
rm -f core conftest.err conftest.$ac_objext \
6553
conftest$ac_exeext conftest.$ac_ext
6555
ac_cpp='$CPP $CPPFLAGS'
6556
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6557
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6558
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6562
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6563
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6564
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6565
CFLAGS="$SAVE_CFLAGS"
6569
# Find out which ABI we are using.
6570
echo 'int i;' > conftest.$ac_ext
6571
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6572
(eval $ac_compile) 2>&5
6574
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6575
test $ac_status = 0; }; then
6576
case `/usr/bin/file conftest.o` in
6578
case $lt_cv_prog_gnu_ld in
6582
LD="${LD-ld} -m elf_x86_64"
6585
LD="${LD-ld} -m elf64_sparc"
6588
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6589
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6594
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6606
need_locks="$enable_libtool_lock"
6608
if test -n "$ac_tool_prefix"; then
6609
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6610
set dummy ${ac_tool_prefix}mt; ac_word=$2
6611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612
$as_echo_n "checking for $ac_word... " >&6; }
6613
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6614
$as_echo_n "(cached) " >&6
6616
if test -n "$MANIFEST_TOOL"; then
6617
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623
test -z "$as_dir" && as_dir=.
6624
for ac_exec_ext in '' $ac_executable_extensions; do
6625
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6627
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6637
if test -n "$MANIFEST_TOOL"; then
6638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6639
$as_echo "$MANIFEST_TOOL" >&6; }
6641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642
$as_echo "no" >&6; }
6647
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6648
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6649
# Extract the first word of "mt", so it can be a program name with args.
6650
set dummy mt; ac_word=$2
6651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652
$as_echo_n "checking for $ac_word... " >&6; }
6653
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6654
$as_echo_n "(cached) " >&6
6656
if test -n "$ac_ct_MANIFEST_TOOL"; then
6657
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663
test -z "$as_dir" && as_dir=.
6664
for ac_exec_ext in '' $ac_executable_extensions; do
6665
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6667
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6677
if test -n "$ac_ct_MANIFEST_TOOL"; then
6678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6679
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682
$as_echo "no" >&6; }
6685
if test "x$ac_ct_MANIFEST_TOOL" = x; then
6688
case $cross_compiling:$ac_tool_warned in
6690
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692
ac_tool_warned=yes ;;
6694
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6697
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6700
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6702
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6703
if ${lt_cv_path_mainfest_tool+:} false; then :
6704
$as_echo_n "(cached) " >&6
6706
lt_cv_path_mainfest_tool=no
6707
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6708
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6709
cat conftest.err >&5
6710
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6711
lt_cv_path_mainfest_tool=yes
6715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6716
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6717
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6727
rhapsody* | darwin*)
6728
if test -n "$ac_tool_prefix"; then
6729
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6730
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732
$as_echo_n "checking for $ac_word... " >&6; }
6733
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6734
$as_echo_n "(cached) " >&6
6736
if test -n "$DSYMUTIL"; then
6737
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6739
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743
test -z "$as_dir" && as_dir=.
6744
for ac_exec_ext in '' $ac_executable_extensions; do
6745
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6747
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6757
if test -n "$DSYMUTIL"; then
6758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6759
$as_echo "$DSYMUTIL" >&6; }
6761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762
$as_echo "no" >&6; }
6767
if test -z "$ac_cv_prog_DSYMUTIL"; then
6768
ac_ct_DSYMUTIL=$DSYMUTIL
6769
# Extract the first word of "dsymutil", so it can be a program name with args.
6770
set dummy dsymutil; ac_word=$2
6771
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772
$as_echo_n "checking for $ac_word... " >&6; }
6773
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6774
$as_echo_n "(cached) " >&6
6776
if test -n "$ac_ct_DSYMUTIL"; then
6777
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783
test -z "$as_dir" && as_dir=.
6784
for ac_exec_ext in '' $ac_executable_extensions; do
6785
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6787
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6797
if test -n "$ac_ct_DSYMUTIL"; then
6798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6799
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802
$as_echo "no" >&6; }
6805
if test "x$ac_ct_DSYMUTIL" = x; then
6808
case $cross_compiling:$ac_tool_warned in
6810
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6811
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6812
ac_tool_warned=yes ;;
6814
DSYMUTIL=$ac_ct_DSYMUTIL
6817
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6820
if test -n "$ac_tool_prefix"; then
6821
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6822
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824
$as_echo_n "checking for $ac_word... " >&6; }
6825
if ${ac_cv_prog_NMEDIT+:} false; then :
6826
$as_echo_n "(cached) " >&6
6828
if test -n "$NMEDIT"; then
6829
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6831
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835
test -z "$as_dir" && as_dir=.
6836
for ac_exec_ext in '' $ac_executable_extensions; do
6837
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6839
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848
NMEDIT=$ac_cv_prog_NMEDIT
6849
if test -n "$NMEDIT"; then
6850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6851
$as_echo "$NMEDIT" >&6; }
6853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854
$as_echo "no" >&6; }
6859
if test -z "$ac_cv_prog_NMEDIT"; then
6860
ac_ct_NMEDIT=$NMEDIT
6861
# Extract the first word of "nmedit", so it can be a program name with args.
6862
set dummy nmedit; ac_word=$2
6863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864
$as_echo_n "checking for $ac_word... " >&6; }
6865
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6866
$as_echo_n "(cached) " >&6
6868
if test -n "$ac_ct_NMEDIT"; then
6869
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6871
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875
test -z "$as_dir" && as_dir=.
6876
for ac_exec_ext in '' $ac_executable_extensions; do
6877
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6879
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6889
if test -n "$ac_ct_NMEDIT"; then
6890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6891
$as_echo "$ac_ct_NMEDIT" >&6; }
6893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894
$as_echo "no" >&6; }
6897
if test "x$ac_ct_NMEDIT" = x; then
6900
case $cross_compiling:$ac_tool_warned in
6902
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904
ac_tool_warned=yes ;;
6906
NMEDIT=$ac_ct_NMEDIT
6909
NMEDIT="$ac_cv_prog_NMEDIT"
6912
if test -n "$ac_tool_prefix"; then
6913
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6914
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916
$as_echo_n "checking for $ac_word... " >&6; }
6917
if ${ac_cv_prog_LIPO+:} false; then :
6918
$as_echo_n "(cached) " >&6
6920
if test -n "$LIPO"; then
6921
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6923
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927
test -z "$as_dir" && as_dir=.
6928
for ac_exec_ext in '' $ac_executable_extensions; do
6929
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6931
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940
LIPO=$ac_cv_prog_LIPO
6941
if test -n "$LIPO"; then
6942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6943
$as_echo "$LIPO" >&6; }
6945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946
$as_echo "no" >&6; }
6951
if test -z "$ac_cv_prog_LIPO"; then
6953
# Extract the first word of "lipo", so it can be a program name with args.
6954
set dummy lipo; ac_word=$2
6955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956
$as_echo_n "checking for $ac_word... " >&6; }
6957
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6958
$as_echo_n "(cached) " >&6
6960
if test -n "$ac_ct_LIPO"; then
6961
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967
test -z "$as_dir" && as_dir=.
6968
for ac_exec_ext in '' $ac_executable_extensions; do
6969
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970
ac_cv_prog_ac_ct_LIPO="lipo"
6971
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6981
if test -n "$ac_ct_LIPO"; then
6982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6983
$as_echo "$ac_ct_LIPO" >&6; }
6985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986
$as_echo "no" >&6; }
6989
if test "x$ac_ct_LIPO" = x; then
6992
case $cross_compiling:$ac_tool_warned in
6994
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996
ac_tool_warned=yes ;;
7001
LIPO="$ac_cv_prog_LIPO"
7004
if test -n "$ac_tool_prefix"; then
7005
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7006
set dummy ${ac_tool_prefix}otool; ac_word=$2
7007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008
$as_echo_n "checking for $ac_word... " >&6; }
7009
if ${ac_cv_prog_OTOOL+:} false; then :
7010
$as_echo_n "(cached) " >&6
7012
if test -n "$OTOOL"; then
7013
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019
test -z "$as_dir" && as_dir=.
7020
for ac_exec_ext in '' $ac_executable_extensions; do
7021
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7023
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032
OTOOL=$ac_cv_prog_OTOOL
7033
if test -n "$OTOOL"; then
7034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7035
$as_echo "$OTOOL" >&6; }
7037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038
$as_echo "no" >&6; }
7043
if test -z "$ac_cv_prog_OTOOL"; then
7045
# Extract the first word of "otool", so it can be a program name with args.
7046
set dummy otool; ac_word=$2
7047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048
$as_echo_n "checking for $ac_word... " >&6; }
7049
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7050
$as_echo_n "(cached) " >&6
7052
if test -n "$ac_ct_OTOOL"; then
7053
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059
test -z "$as_dir" && as_dir=.
7060
for ac_exec_ext in '' $ac_executable_extensions; do
7061
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062
ac_cv_prog_ac_ct_OTOOL="otool"
7063
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7073
if test -n "$ac_ct_OTOOL"; then
7074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7075
$as_echo "$ac_ct_OTOOL" >&6; }
7077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078
$as_echo "no" >&6; }
7081
if test "x$ac_ct_OTOOL" = x; then
7084
case $cross_compiling:$ac_tool_warned in
7086
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088
ac_tool_warned=yes ;;
7093
OTOOL="$ac_cv_prog_OTOOL"
7096
if test -n "$ac_tool_prefix"; then
7097
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7098
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100
$as_echo_n "checking for $ac_word... " >&6; }
7101
if ${ac_cv_prog_OTOOL64+:} false; then :
7102
$as_echo_n "(cached) " >&6
7104
if test -n "$OTOOL64"; then
7105
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111
test -z "$as_dir" && as_dir=.
7112
for ac_exec_ext in '' $ac_executable_extensions; do
7113
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7115
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124
OTOOL64=$ac_cv_prog_OTOOL64
7125
if test -n "$OTOOL64"; then
7126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7127
$as_echo "$OTOOL64" >&6; }
7129
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130
$as_echo "no" >&6; }
7135
if test -z "$ac_cv_prog_OTOOL64"; then
7136
ac_ct_OTOOL64=$OTOOL64
7137
# Extract the first word of "otool64", so it can be a program name with args.
7138
set dummy otool64; ac_word=$2
7139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140
$as_echo_n "checking for $ac_word... " >&6; }
7141
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7142
$as_echo_n "(cached) " >&6
7144
if test -n "$ac_ct_OTOOL64"; then
7145
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151
test -z "$as_dir" && as_dir=.
7152
for ac_exec_ext in '' $ac_executable_extensions; do
7153
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154
ac_cv_prog_ac_ct_OTOOL64="otool64"
7155
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7165
if test -n "$ac_ct_OTOOL64"; then
7166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7167
$as_echo "$ac_ct_OTOOL64" >&6; }
7169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170
$as_echo "no" >&6; }
7173
if test "x$ac_ct_OTOOL64" = x; then
7176
case $cross_compiling:$ac_tool_warned in
7178
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180
ac_tool_warned=yes ;;
7182
OTOOL64=$ac_ct_OTOOL64
7185
OTOOL64="$ac_cv_prog_OTOOL64"
7214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7215
$as_echo_n "checking for -single_module linker flag... " >&6; }
7216
if ${lt_cv_apple_cc_single_mod+:} false; then :
7217
$as_echo_n "(cached) " >&6
7219
lt_cv_apple_cc_single_mod=no
7220
if test -z "${LT_MULTI_MODULE}"; then
7221
# By default we will add the -single_module flag. You can override
7222
# by either setting the environment variable LT_MULTI_MODULE
7223
# non-empty at configure time, or by adding -multi_module to the
7225
rm -rf libconftest.dylib*
7226
echo "int foo(void){return 1;}" > conftest.c
7227
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7228
-dynamiclib -Wl,-single_module conftest.c" >&5
7229
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7230
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7232
# If there is a non-empty error log, and "single_module"
7233
# appears in it, assume the flag caused a linker warning
7234
if test -s conftest.err && $GREP single_module conftest.err; then
7235
cat conftest.err >&5
7236
# Otherwise, if the output was created with a 0 exit code from
7237
# the compiler, it worked.
7238
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7239
lt_cv_apple_cc_single_mod=yes
7241
cat conftest.err >&5
7243
rm -rf libconftest.dylib*
7247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7248
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7250
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7251
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7252
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7253
$as_echo_n "(cached) " >&6
7255
lt_cv_ld_exported_symbols_list=no
7256
save_LDFLAGS=$LDFLAGS
7257
echo "_main" > conftest.sym
7258
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7259
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260
/* end confdefs.h. */
7270
if ac_fn_c_try_link "$LINENO"; then :
7271
lt_cv_ld_exported_symbols_list=yes
7273
lt_cv_ld_exported_symbols_list=no
7275
rm -f core conftest.err conftest.$ac_objext \
7276
conftest$ac_exeext conftest.$ac_ext
7277
LDFLAGS="$save_LDFLAGS"
7280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7281
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7284
$as_echo_n "checking for -force_load linker flag... " >&6; }
7285
if ${lt_cv_ld_force_load+:} false; then :
7286
$as_echo_n "(cached) " >&6
7288
lt_cv_ld_force_load=no
7289
cat > conftest.c << _LT_EOF
7290
int forced_loaded() { return 2;}
7292
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7293
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7294
echo "$AR cru libconftest.a conftest.o" >&5
7295
$AR cru libconftest.a conftest.o 2>&5
7296
echo "$RANLIB libconftest.a" >&5
7297
$RANLIB libconftest.a 2>&5
7298
cat > conftest.c << _LT_EOF
7299
int main() { return 0;}
7301
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7302
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7304
if test -s conftest.err && $GREP force_load conftest.err; then
7305
cat conftest.err >&5
7306
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7307
lt_cv_ld_force_load=yes
7309
cat conftest.err >&5
7311
rm -f conftest.err libconftest.a conftest conftest.c
7312
rm -rf conftest.dSYM
7315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7316
$as_echo "$lt_cv_ld_force_load" >&6; }
7318
rhapsody* | darwin1.[012])
7319
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7321
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7322
darwin*) # darwin 5.x on
7323
# if running on 10.5 or later, the deployment target defaults
7324
# to the OS version, if on x86, and 10.4, the deployment
7325
# target defaults to 10.4. Don't you love it?
7326
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7327
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7328
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7330
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7332
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7336
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7337
_lt_dar_single_mod='$single_module'
7339
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7340
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7342
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7344
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7345
_lt_dsymutil='~$DSYMUTIL $lib || :'
7353
ac_cpp='$CPP $CPPFLAGS'
7354
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7358
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7359
# On Suns, sometimes $CPP names a directory.
7360
if test -n "$CPP" && test -d "$CPP"; then
7363
if test -z "$CPP"; then
7364
if ${ac_cv_prog_CPP+:} false; then :
7365
$as_echo_n "(cached) " >&6
7367
# Double quotes because CPP needs to be expanded
7368
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7371
for ac_c_preproc_warn_flag in '' yes
7373
# Use a header file that comes with gcc, so configuring glibc
7374
# with a fresh cross-compiler works.
7375
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7376
# <limits.h> exists even on freestanding compilers.
7377
# On the NeXT, cc -E runs the code through the compiler's parser,
7378
# not just through cpp. "Syntax error" is here to catch this case.
7379
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380
/* end confdefs.h. */
7382
# include <limits.h>
7384
# include <assert.h>
7388
if ac_fn_c_try_cpp "$LINENO"; then :
7391
# Broken: fails on valid input.
7394
rm -f conftest.err conftest.i conftest.$ac_ext
7396
# OK, works on sane cases. Now check whether nonexistent headers
7397
# can be detected and how.
7398
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399
/* end confdefs.h. */
7400
#include <ac_nonexistent.h>
7402
if ac_fn_c_try_cpp "$LINENO"; then :
7403
# Broken: success on invalid input.
7406
# Passes both tests.
7410
rm -f conftest.err conftest.i conftest.$ac_ext
7413
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7414
rm -f conftest.i conftest.err conftest.$ac_ext
7415
if $ac_preproc_ok; then :
7427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7428
$as_echo "$CPP" >&6; }
7430
for ac_c_preproc_warn_flag in '' yes
7432
# Use a header file that comes with gcc, so configuring glibc
7433
# with a fresh cross-compiler works.
7434
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7435
# <limits.h> exists even on freestanding compilers.
7436
# On the NeXT, cc -E runs the code through the compiler's parser,
7437
# not just through cpp. "Syntax error" is here to catch this case.
7438
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439
/* end confdefs.h. */
7441
# include <limits.h>
7443
# include <assert.h>
7447
if ac_fn_c_try_cpp "$LINENO"; then :
7450
# Broken: fails on valid input.
7453
rm -f conftest.err conftest.i conftest.$ac_ext
7455
# OK, works on sane cases. Now check whether nonexistent headers
7456
# can be detected and how.
7457
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458
/* end confdefs.h. */
7459
#include <ac_nonexistent.h>
7461
if ac_fn_c_try_cpp "$LINENO"; then :
7462
# Broken: success on invalid input.
7465
# Passes both tests.
7469
rm -f conftest.err conftest.i conftest.$ac_ext
7472
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7473
rm -f conftest.i conftest.err conftest.$ac_ext
7474
if $ac_preproc_ok; then :
7477
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7478
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7479
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7480
See \`config.log' for more details" "$LINENO" 5; }
7484
ac_cpp='$CPP $CPPFLAGS'
7485
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7486
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7487
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7491
$as_echo_n "checking for ANSI C header files... " >&6; }
7492
if ${ac_cv_header_stdc+:} false; then :
7493
$as_echo_n "(cached) " >&6
7495
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496
/* end confdefs.h. */
7510
if ac_fn_c_try_compile "$LINENO"; then :
7511
ac_cv_header_stdc=yes
7513
ac_cv_header_stdc=no
7515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517
if test $ac_cv_header_stdc = yes; then
7518
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7519
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520
/* end confdefs.h. */
7524
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7525
$EGREP "memchr" >/dev/null 2>&1; then :
7528
ac_cv_header_stdc=no
7534
if test $ac_cv_header_stdc = yes; then
7535
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7536
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537
/* end confdefs.h. */
7541
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7542
$EGREP "free" >/dev/null 2>&1; then :
7545
ac_cv_header_stdc=no
7551
if test $ac_cv_header_stdc = yes; then
7552
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7553
if test "$cross_compiling" = yes; then :
7556
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557
/* end confdefs.h. */
7560
#if ((' ' & 0x0FF) == 0x020)
7561
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7562
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7564
# define ISLOWER(c) \
7565
(('a' <= (c) && (c) <= 'i') \
7566
|| ('j' <= (c) && (c) <= 'r') \
7567
|| ('s' <= (c) && (c) <= 'z'))
7568
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7571
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7576
for (i = 0; i < 256; i++)
7577
if (XOR (islower (i), ISLOWER (i))
7578
|| toupper (i) != TOUPPER (i))
7583
if ac_fn_c_try_run "$LINENO"; then :
7586
ac_cv_header_stdc=no
7588
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7589
conftest.$ac_objext conftest.beam conftest.$ac_ext
7594
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7595
$as_echo "$ac_cv_header_stdc" >&6; }
7596
if test $ac_cv_header_stdc = yes; then
7598
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7602
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7603
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7604
inttypes.h stdint.h unistd.h
7606
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7607
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7609
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7610
cat >>confdefs.h <<_ACEOF
7611
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7619
for ac_header in dlfcn.h
7621
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7623
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7624
cat >>confdefs.h <<_ACEOF
7625
#define HAVE_DLFCN_H 1
7637
enable_win32_dll=yes
7640
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7641
if test -n "$ac_tool_prefix"; then
7642
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7643
set dummy ${ac_tool_prefix}as; ac_word=$2
7644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645
$as_echo_n "checking for $ac_word... " >&6; }
7646
if ${ac_cv_prog_AS+:} false; then :
7647
$as_echo_n "(cached) " >&6
7649
if test -n "$AS"; then
7650
ac_cv_prog_AS="$AS" # Let the user override the test.
7652
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656
test -z "$as_dir" && as_dir=.
7657
for ac_exec_ext in '' $ac_executable_extensions; do
7658
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659
ac_cv_prog_AS="${ac_tool_prefix}as"
7660
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670
if test -n "$AS"; then
7671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7672
$as_echo "$AS" >&6; }
7674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675
$as_echo "no" >&6; }
7680
if test -z "$ac_cv_prog_AS"; then
7682
# Extract the first word of "as", so it can be a program name with args.
7683
set dummy as; ac_word=$2
7684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685
$as_echo_n "checking for $ac_word... " >&6; }
7686
if ${ac_cv_prog_ac_ct_AS+:} false; then :
7687
$as_echo_n "(cached) " >&6
7689
if test -n "$ac_ct_AS"; then
7690
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7692
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696
test -z "$as_dir" && as_dir=.
7697
for ac_exec_ext in '' $ac_executable_extensions; do
7698
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7699
ac_cv_prog_ac_ct_AS="as"
7700
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709
ac_ct_AS=$ac_cv_prog_ac_ct_AS
7710
if test -n "$ac_ct_AS"; then
7711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7712
$as_echo "$ac_ct_AS" >&6; }
7714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715
$as_echo "no" >&6; }
7718
if test "x$ac_ct_AS" = x; then
7721
case $cross_compiling:$ac_tool_warned in
7723
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7724
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7725
ac_tool_warned=yes ;;
7733
if test -n "$ac_tool_prefix"; then
7734
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7735
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7736
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737
$as_echo_n "checking for $ac_word... " >&6; }
7738
if ${ac_cv_prog_DLLTOOL+:} false; then :
7739
$as_echo_n "(cached) " >&6
7741
if test -n "$DLLTOOL"; then
7742
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748
test -z "$as_dir" && as_dir=.
7749
for ac_exec_ext in '' $ac_executable_extensions; do
7750
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7752
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7761
DLLTOOL=$ac_cv_prog_DLLTOOL
7762
if test -n "$DLLTOOL"; then
7763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7764
$as_echo "$DLLTOOL" >&6; }
7766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767
$as_echo "no" >&6; }
7772
if test -z "$ac_cv_prog_DLLTOOL"; then
7773
ac_ct_DLLTOOL=$DLLTOOL
7774
# Extract the first word of "dlltool", so it can be a program name with args.
7775
set dummy dlltool; ac_word=$2
7776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777
$as_echo_n "checking for $ac_word... " >&6; }
7778
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7779
$as_echo_n "(cached) " >&6
7781
if test -n "$ac_ct_DLLTOOL"; then
7782
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788
test -z "$as_dir" && as_dir=.
7789
for ac_exec_ext in '' $ac_executable_extensions; do
7790
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7792
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7802
if test -n "$ac_ct_DLLTOOL"; then
7803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7804
$as_echo "$ac_ct_DLLTOOL" >&6; }
7806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807
$as_echo "no" >&6; }
7810
if test "x$ac_ct_DLLTOOL" = x; then
7813
case $cross_compiling:$ac_tool_warned in
7815
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7816
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7817
ac_tool_warned=yes ;;
7819
DLLTOOL=$ac_ct_DLLTOOL
7822
DLLTOOL="$ac_cv_prog_DLLTOOL"
7825
if test -n "$ac_tool_prefix"; then
7826
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7827
set dummy ${ac_tool_prefix}objdump; ac_word=$2
7828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829
$as_echo_n "checking for $ac_word... " >&6; }
7830
if ${ac_cv_prog_OBJDUMP+:} false; then :
7831
$as_echo_n "(cached) " >&6
7833
if test -n "$OBJDUMP"; then
7834
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7836
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840
test -z "$as_dir" && as_dir=.
7841
for ac_exec_ext in '' $ac_executable_extensions; do
7842
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7844
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853
OBJDUMP=$ac_cv_prog_OBJDUMP
7854
if test -n "$OBJDUMP"; then
7855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7856
$as_echo "$OBJDUMP" >&6; }
7858
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859
$as_echo "no" >&6; }
7864
if test -z "$ac_cv_prog_OBJDUMP"; then
7865
ac_ct_OBJDUMP=$OBJDUMP
7866
# Extract the first word of "objdump", so it can be a program name with args.
7867
set dummy objdump; ac_word=$2
7868
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869
$as_echo_n "checking for $ac_word... " >&6; }
7870
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7871
$as_echo_n "(cached) " >&6
7873
if test -n "$ac_ct_OBJDUMP"; then
7874
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7876
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880
test -z "$as_dir" && as_dir=.
7881
for ac_exec_ext in '' $ac_executable_extensions; do
7882
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883
ac_cv_prog_ac_ct_OBJDUMP="objdump"
7884
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7894
if test -n "$ac_ct_OBJDUMP"; then
7895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7896
$as_echo "$ac_ct_OBJDUMP" >&6; }
7898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899
$as_echo "no" >&6; }
7902
if test "x$ac_ct_OBJDUMP" = x; then
7905
case $cross_compiling:$ac_tool_warned in
7907
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7908
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7909
ac_tool_warned=yes ;;
7911
OBJDUMP=$ac_ct_OBJDUMP
7914
OBJDUMP="$ac_cv_prog_OBJDUMP"
7920
test -z "$AS" && AS=as
7926
test -z "$DLLTOOL" && DLLTOOL=dlltool
7932
test -z "$OBJDUMP" && OBJDUMP=objdump
7944
# Check whether --enable-shared was given.
7945
if test "${enable_shared+set}" = set; then :
7946
enableval=$enable_shared; p=${PACKAGE-default}
7948
yes) enable_shared=yes ;;
7949
no) enable_shared=no ;;
7952
# Look at the argument we got. We use all the common list separators.
7953
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7954
for pkg in $enableval; do
7956
if test "X$pkg" = "X$p"; then
7975
# Check whether --enable-static was given.
7976
if test "${enable_static+set}" = set; then :
7977
enableval=$enable_static; p=${PACKAGE-default}
7979
yes) enable_static=yes ;;
7980
no) enable_static=no ;;
7983
# Look at the argument we got. We use all the common list separators.
7984
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7985
for pkg in $enableval; do
7987
if test "X$pkg" = "X$p"; then
8007
# Check whether --with-pic was given.
8008
if test "${with_pic+set}" = set; then :
8009
withval=$with_pic; lt_p=${PACKAGE-default}
8011
yes|no) pic_mode=$withval ;;
8014
# Look at the argument we got. We use all the common list separators.
8015
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8016
for lt_pkg in $withval; do
8018
if test "X$lt_pkg" = "X$lt_p"; then
8030
test -z "$pic_mode" && pic_mode=default
8038
# Check whether --enable-fast-install was given.
8039
if test "${enable_fast_install+set}" = set; then :
8040
enableval=$enable_fast_install; p=${PACKAGE-default}
8042
yes) enable_fast_install=yes ;;
8043
no) enable_fast_install=no ;;
8045
enable_fast_install=no
8046
# Look at the argument we got. We use all the common list separators.
8047
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8048
for pkg in $enableval; do
8050
if test "X$pkg" = "X$p"; then
8051
enable_fast_install=yes
8058
enable_fast_install=yes
8071
# This can be used to rebuild libtool when needed
8072
LIBTOOL_DEPS="$ltmain"
8074
# Always use our own libtool.
8075
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8106
test -z "$LN_S" && LN_S="ln -s"
8121
if test -n "${ZSH_VERSION+set}" ; then
8122
setopt NO_GLOB_SUBST
8125
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8126
$as_echo_n "checking for objdir... " >&6; }
8127
if ${lt_cv_objdir+:} false; then :
8128
$as_echo_n "(cached) " >&6
8130
rm -f .libs 2>/dev/null
8131
mkdir .libs 2>/dev/null
8132
if test -d .libs; then
8135
# MS-DOS does not allow filenames that begin with a dot.
8138
rmdir .libs 2>/dev/null
8140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8141
$as_echo "$lt_cv_objdir" >&6; }
8142
objdir=$lt_cv_objdir
8148
cat >>confdefs.h <<_ACEOF
8149
#define LT_OBJDIR "$lt_cv_objdir/"
8157
# AIX sometimes has problems with the GCC collect2 program. For some
8158
# reason, if we set the COLLECT_NAMES environment variable, the problems
8159
# vanish in a puff of smoke.
8160
if test "X${COLLECT_NAMES+set}" != Xset; then
8162
export COLLECT_NAMES
8169
can_build_shared=yes
8171
# All known linkers require a `.a' archive for static linking (except MSVC,
8172
# which needs '.lib').
8175
with_gnu_ld="$lt_cv_prog_gnu_ld"
8178
old_CFLAGS="$CFLAGS"
8180
# Set sane defaults for various variables
8181
test -z "$CC" && CC=cc
8182
test -z "$LTCC" && LTCC=$CC
8183
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8184
test -z "$LD" && LD=ld
8185
test -z "$ac_objext" && ac_objext=o
8187
for cc_temp in $compiler""; do
8189
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8190
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8195
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8198
# Only perform the check for file, if the check method requires it
8199
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8200
case $deplibs_check_method in
8202
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8204
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8205
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8206
$as_echo_n "(cached) " >&6
8210
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8213
lt_save_MAGIC_CMD="$MAGIC_CMD"
8214
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8215
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8216
for ac_dir in $ac_dummy; do
8218
test -z "$ac_dir" && ac_dir=.
8219
if test -f $ac_dir/${ac_tool_prefix}file; then
8220
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8221
if test -n "$file_magic_test_file"; then
8222
case $deplibs_check_method in
8224
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8225
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8226
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8227
$EGREP "$file_magic_regex" > /dev/null; then
8232
*** Warning: the command libtool uses to detect shared libraries,
8233
*** $file_magic_cmd, produces output that libtool cannot recognize.
8234
*** The result is that libtool may fail to recognize shared libraries
8235
*** as such. This will affect the creation of libtool libraries that
8236
*** depend on shared libraries, but programs linked with such libtool
8237
*** libraries will work regardless of this problem. Nevertheless, you
8238
*** may want to report the problem to your system manager and/or to
8239
*** bug-libtool@gnu.org
8249
MAGIC_CMD="$lt_save_MAGIC_CMD"
8254
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8255
if test -n "$MAGIC_CMD"; then
8256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8257
$as_echo "$MAGIC_CMD" >&6; }
8259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260
$as_echo "no" >&6; }
8267
if test -z "$lt_cv_path_MAGIC_CMD"; then
8268
if test -n "$ac_tool_prefix"; then
8269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8270
$as_echo_n "checking for file... " >&6; }
8271
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8272
$as_echo_n "(cached) " >&6
8276
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8279
lt_save_MAGIC_CMD="$MAGIC_CMD"
8280
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8281
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8282
for ac_dir in $ac_dummy; do
8284
test -z "$ac_dir" && ac_dir=.
8285
if test -f $ac_dir/file; then
8286
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8287
if test -n "$file_magic_test_file"; then
8288
case $deplibs_check_method in
8290
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8291
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8292
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8293
$EGREP "$file_magic_regex" > /dev/null; then
8298
*** Warning: the command libtool uses to detect shared libraries,
8299
*** $file_magic_cmd, produces output that libtool cannot recognize.
8300
*** The result is that libtool may fail to recognize shared libraries
8301
*** as such. This will affect the creation of libtool libraries that
8302
*** depend on shared libraries, but programs linked with such libtool
8303
*** libraries will work regardless of this problem. Nevertheless, you
8304
*** may want to report the problem to your system manager and/or to
8305
*** bug-libtool@gnu.org
8315
MAGIC_CMD="$lt_save_MAGIC_CMD"
8320
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8321
if test -n "$MAGIC_CMD"; then
8322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8323
$as_echo "$MAGIC_CMD" >&6; }
8325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326
$as_echo "no" >&6; }
8339
# Use C for the default configuration in the libtool script
8343
ac_cpp='$CPP $CPPFLAGS'
8344
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8349
# Source file extension for C test sources.
8352
# Object file extension for compiled C test sources.
8356
# Code to be used in simple compile tests
8357
lt_simple_compile_test_code="int some_variable = 0;"
8359
# Code to be used in simple link tests
8360
lt_simple_link_test_code='int main(){return(0);}'
8368
# If no C compiler was specified, use CC.
8371
# If no C compiler flags were specified, use CFLAGS.
8372
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8374
# Allow CC to be a program name with arguments.
8377
# Save the default compiler, since it gets overwritten when the other
8378
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8379
compiler_DEFAULT=$CC
8381
# save warnings/boilerplate of simple test code
8382
ac_outfile=conftest.$ac_objext
8383
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8384
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8385
_lt_compiler_boilerplate=`cat conftest.err`
8388
ac_outfile=conftest.$ac_objext
8389
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8390
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8391
_lt_linker_boilerplate=`cat conftest.err`
8396
## There is no encapsulation within the following macros, do not change
8397
## the running order or otherwise move them around unless you know exactly
8398
## what you are doing...
8399
if test -n "$compiler"; then
8401
lt_prog_compiler_no_builtin_flag=
8403
if test "$GCC" = yes; then
8404
case $cc_basename in
8406
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8408
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8412
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8413
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8414
$as_echo_n "(cached) " >&6
8416
lt_cv_prog_compiler_rtti_exceptions=no
8417
ac_outfile=conftest.$ac_objext
8418
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8419
lt_compiler_flag="-fno-rtti -fno-exceptions"
8420
# Insert the option either (1) after the last *FLAGS variable, or
8421
# (2) before a word containing "conftest.", or (3) at the end.
8422
# Note that $ac_compile itself does not contain backslashes and begins
8423
# with a dollar sign (not a hyphen), so the echo should work correctly.
8424
# The option is referenced via a variable to avoid confusing sed.
8425
lt_compile=`echo "$ac_compile" | $SED \
8426
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8427
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8428
-e 's:$: $lt_compiler_flag:'`
8429
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8430
(eval "$lt_compile" 2>conftest.err)
8432
cat conftest.err >&5
8433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434
if (exit $ac_status) && test -s "$ac_outfile"; then
8435
# The compiler can only warn and ignore the option if not recognized
8436
# So say no if there are warnings other than the usual output.
8437
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8438
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8439
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8440
lt_cv_prog_compiler_rtti_exceptions=yes
8446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8447
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8449
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8450
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8462
lt_prog_compiler_wl=
8463
lt_prog_compiler_pic=
8464
lt_prog_compiler_static=
8467
if test "$GCC" = yes; then
8468
lt_prog_compiler_wl='-Wl,'
8469
lt_prog_compiler_static='-static'
8473
# All AIX code is PIC.
8474
if test "$host_cpu" = ia64; then
8475
# AIX 5 now supports IA64 processor
8476
lt_prog_compiler_static='-Bstatic'
8483
# see comment about AmigaOS4 .so support
8484
lt_prog_compiler_pic='-fPIC'
8487
# FIXME: we need at least 68020 code to build shared libraries, but
8488
# adding the `-m68020' flag to GCC prevents building anything better,
8490
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8495
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8496
# PIC is the default for these OSes.
8499
mingw* | cygwin* | pw32* | os2* | cegcc*)
8500
# This hack is so that the source file can tell whether it is being
8501
# built for inclusion in a dll (and should export symbols for example).
8502
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8503
# (--disable-auto-import) libraries
8504
lt_prog_compiler_pic='-DDLL_EXPORT'
8507
darwin* | rhapsody*)
8508
# PIC is the default on this platform
8509
# Common symbols not allowed in MH_DYLIB files
8510
lt_prog_compiler_pic='-fno-common'
8514
# PIC is the default for Haiku.
8515
# The "-static" flag exists, but is broken.
8516
lt_prog_compiler_static=
8520
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8521
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8522
# sets the default TLS model and affects inlining.
8528
lt_prog_compiler_pic='-fPIC'
8534
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8535
# Instead, we relocate shared libraries at runtime.
8539
# Just because we use GCC doesn't mean we suddenly get shared libraries
8540
# on systems that don't support them.
8541
lt_prog_compiler_can_build_shared=no
8546
# QNX uses GNU C++, but need to define -shared option too, otherwise
8548
lt_prog_compiler_pic='-fPIC -shared'
8552
if test -d /usr/nec; then
8553
lt_prog_compiler_pic=-Kconform_pic
8558
lt_prog_compiler_pic='-fPIC'
8562
case $cc_basename in
8563
nvcc*) # Cuda Compiler Driver 2.2
8564
lt_prog_compiler_wl='-Xlinker '
8565
if test -n "$lt_prog_compiler_pic"; then
8566
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8571
# PORTME Check for flag to pass linker flags through the system compiler.
8574
lt_prog_compiler_wl='-Wl,'
8575
if test "$host_cpu" = ia64; then
8576
# AIX 5 now supports IA64 processor
8577
lt_prog_compiler_static='-Bstatic'
8579
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8583
mingw* | cygwin* | pw32* | os2* | cegcc*)
8584
# This hack is so that the source file can tell whether it is being
8585
# built for inclusion in a dll (and should export symbols for example).
8586
lt_prog_compiler_pic='-DDLL_EXPORT'
8589
hpux9* | hpux10* | hpux11*)
8590
lt_prog_compiler_wl='-Wl,'
8591
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8598
lt_prog_compiler_pic='+Z'
8601
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8602
lt_prog_compiler_static='${wl}-a ${wl}archive'
8605
irix5* | irix6* | nonstopux*)
8606
lt_prog_compiler_wl='-Wl,'
8607
# PIC (with -KPIC) is the default.
8608
lt_prog_compiler_static='-non_shared'
8611
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8612
case $cc_basename in
8613
# old Intel for x86_64 which still supported -KPIC.
8615
lt_prog_compiler_wl='-Wl,'
8616
lt_prog_compiler_pic='-KPIC'
8617
lt_prog_compiler_static='-static'
8619
# icc used to be incompatible with GCC.
8620
# ICC 10 doesn't accept -KPIC any more.
8622
lt_prog_compiler_wl='-Wl,'
8623
lt_prog_compiler_pic='-fPIC'
8624
lt_prog_compiler_static='-static'
8626
# Lahey Fortran 8.1.
8628
lt_prog_compiler_wl='-Wl,'
8629
lt_prog_compiler_pic='--shared'
8630
lt_prog_compiler_static='--static'
8633
# NAG Fortran compiler
8634
lt_prog_compiler_wl='-Wl,-Wl,,'
8635
lt_prog_compiler_pic='-PIC'
8636
lt_prog_compiler_static='-Bstatic'
8638
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8639
# Portland Group compilers (*not* the Pentium gcc compiler,
8640
# which looks to be a dead project)
8641
lt_prog_compiler_wl='-Wl,'
8642
lt_prog_compiler_pic='-fpic'
8643
lt_prog_compiler_static='-Bstatic'
8646
lt_prog_compiler_wl='-Wl,'
8647
# All Alpha code is PIC.
8648
lt_prog_compiler_static='-non_shared'
8650
xl* | bgxl* | bgf* | mpixl*)
8651
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8652
lt_prog_compiler_wl='-Wl,'
8653
lt_prog_compiler_pic='-qpic'
8654
lt_prog_compiler_static='-qstaticlink'
8657
case `$CC -V 2>&1 | sed 5q` in
8658
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8659
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8660
lt_prog_compiler_pic='-KPIC'
8661
lt_prog_compiler_static='-Bstatic'
8662
lt_prog_compiler_wl=''
8664
*Sun\ F* | *Sun*Fortran*)
8665
lt_prog_compiler_pic='-KPIC'
8666
lt_prog_compiler_static='-Bstatic'
8667
lt_prog_compiler_wl='-Qoption ld '
8671
lt_prog_compiler_pic='-KPIC'
8672
lt_prog_compiler_static='-Bstatic'
8673
lt_prog_compiler_wl='-Wl,'
8675
*Intel*\ [CF]*Compiler*)
8676
lt_prog_compiler_wl='-Wl,'
8677
lt_prog_compiler_pic='-fPIC'
8678
lt_prog_compiler_static='-static'
8681
lt_prog_compiler_wl='-Wl,'
8682
lt_prog_compiler_pic='-fpic'
8683
lt_prog_compiler_static='-Bstatic'
8691
lt_prog_compiler_pic='-KPIC'
8692
lt_prog_compiler_static='-Bstatic'
8696
# QNX uses GNU C++, but need to define -shared option too, otherwise
8698
lt_prog_compiler_pic='-fPIC -shared'
8701
osf3* | osf4* | osf5*)
8702
lt_prog_compiler_wl='-Wl,'
8703
# All OSF/1 code is PIC.
8704
lt_prog_compiler_static='-non_shared'
8708
lt_prog_compiler_static='-non_shared'
8712
lt_prog_compiler_pic='-KPIC'
8713
lt_prog_compiler_static='-Bstatic'
8714
case $cc_basename in
8715
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8716
lt_prog_compiler_wl='-Qoption ld ';;
8718
lt_prog_compiler_wl='-Wl,';;
8723
lt_prog_compiler_wl='-Qoption ld '
8724
lt_prog_compiler_pic='-PIC'
8725
lt_prog_compiler_static='-Bstatic'
8728
sysv4 | sysv4.2uw2* | sysv4.3*)
8729
lt_prog_compiler_wl='-Wl,'
8730
lt_prog_compiler_pic='-KPIC'
8731
lt_prog_compiler_static='-Bstatic'
8735
if test -d /usr/nec ;then
8736
lt_prog_compiler_pic='-Kconform_pic'
8737
lt_prog_compiler_static='-Bstatic'
8741
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8742
lt_prog_compiler_wl='-Wl,'
8743
lt_prog_compiler_pic='-KPIC'
8744
lt_prog_compiler_static='-Bstatic'
8748
lt_prog_compiler_wl='-Wl,'
8749
lt_prog_compiler_can_build_shared=no
8753
lt_prog_compiler_pic='-pic'
8754
lt_prog_compiler_static='-Bstatic'
8758
lt_prog_compiler_can_build_shared=no
8764
# For platforms which do not support PIC, -DPIC is meaningless:
8766
lt_prog_compiler_pic=
8769
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8774
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8775
if ${lt_cv_prog_compiler_pic+:} false; then :
8776
$as_echo_n "(cached) " >&6
8778
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8781
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8782
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8785
# Check to make sure the PIC flag actually works.
8787
if test -n "$lt_prog_compiler_pic"; then
8788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8789
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8790
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8791
$as_echo_n "(cached) " >&6
8793
lt_cv_prog_compiler_pic_works=no
8794
ac_outfile=conftest.$ac_objext
8795
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8796
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8797
# Insert the option either (1) after the last *FLAGS variable, or
8798
# (2) before a word containing "conftest.", or (3) at the end.
8799
# Note that $ac_compile itself does not contain backslashes and begins
8800
# with a dollar sign (not a hyphen), so the echo should work correctly.
8801
# The option is referenced via a variable to avoid confusing sed.
8802
lt_compile=`echo "$ac_compile" | $SED \
8803
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8804
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8805
-e 's:$: $lt_compiler_flag:'`
8806
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8807
(eval "$lt_compile" 2>conftest.err)
8809
cat conftest.err >&5
8810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811
if (exit $ac_status) && test -s "$ac_outfile"; then
8812
# The compiler can only warn and ignore the option if not recognized
8813
# So say no if there are warnings other than the usual output.
8814
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8815
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8816
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8817
lt_cv_prog_compiler_pic_works=yes
8823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8824
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8826
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8827
case $lt_prog_compiler_pic in
8829
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8832
lt_prog_compiler_pic=
8833
lt_prog_compiler_can_build_shared=no
8849
# Check to make sure the static flag actually works.
8851
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8853
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8854
if ${lt_cv_prog_compiler_static_works+:} false; then :
8855
$as_echo_n "(cached) " >&6
8857
lt_cv_prog_compiler_static_works=no
8858
save_LDFLAGS="$LDFLAGS"
8859
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8860
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8861
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8862
# The linker can only warn and ignore the option if not recognized
8863
# So say no if there are warnings
8864
if test -s conftest.err; then
8865
# Append any errors to the config.log.
8866
cat conftest.err 1>&5
8867
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8868
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8869
if diff conftest.exp conftest.er2 >/dev/null; then
8870
lt_cv_prog_compiler_static_works=yes
8873
lt_cv_prog_compiler_static_works=yes
8877
LDFLAGS="$save_LDFLAGS"
8880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8881
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8883
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8886
lt_prog_compiler_static=
8895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8896
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8897
if ${lt_cv_prog_compiler_c_o+:} false; then :
8898
$as_echo_n "(cached) " >&6
8900
lt_cv_prog_compiler_c_o=no
8901
$RM -r conftest 2>/dev/null
8905
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8907
lt_compiler_flag="-o out/conftest2.$ac_objext"
8908
# Insert the option either (1) after the last *FLAGS variable, or
8909
# (2) before a word containing "conftest.", or (3) at the end.
8910
# Note that $ac_compile itself does not contain backslashes and begins
8911
# with a dollar sign (not a hyphen), so the echo should work correctly.
8912
lt_compile=`echo "$ac_compile" | $SED \
8913
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8914
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8915
-e 's:$: $lt_compiler_flag:'`
8916
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8917
(eval "$lt_compile" 2>out/conftest.err)
8919
cat out/conftest.err >&5
8920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8923
# The compiler can only warn and ignore the option if not recognized
8924
# So say no if there are warnings
8925
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8926
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8927
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8928
lt_cv_prog_compiler_c_o=yes
8933
# SGI C++ compiler will create directory out/ii_files/ for
8934
# template instantiation
8935
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8936
$RM out/* && rmdir out
8942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8943
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8951
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8952
if ${lt_cv_prog_compiler_c_o+:} false; then :
8953
$as_echo_n "(cached) " >&6
8955
lt_cv_prog_compiler_c_o=no
8956
$RM -r conftest 2>/dev/null
8960
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8962
lt_compiler_flag="-o out/conftest2.$ac_objext"
8963
# Insert the option either (1) after the last *FLAGS variable, or
8964
# (2) before a word containing "conftest.", or (3) at the end.
8965
# Note that $ac_compile itself does not contain backslashes and begins
8966
# with a dollar sign (not a hyphen), so the echo should work correctly.
8967
lt_compile=`echo "$ac_compile" | $SED \
8968
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8969
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8970
-e 's:$: $lt_compiler_flag:'`
8971
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8972
(eval "$lt_compile" 2>out/conftest.err)
8974
cat out/conftest.err >&5
8975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8978
# The compiler can only warn and ignore the option if not recognized
8979
# So say no if there are warnings
8980
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8981
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8982
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8983
lt_cv_prog_compiler_c_o=yes
8988
# SGI C++ compiler will create directory out/ii_files/ for
8989
# template instantiation
8990
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8991
$RM out/* && rmdir out
8997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8998
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9003
hard_links="nottested"
9004
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9005
# do not overwrite the value of need_locks provided by the user
9006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9007
$as_echo_n "checking if we can lock with hard links... " >&6; }
9010
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9012
ln conftest.a conftest.b 2>&5 || hard_links=no
9013
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9015
$as_echo "$hard_links" >&6; }
9016
if test "$hard_links" = no; then
9017
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9018
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9030
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9031
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9034
allow_undefined_flag=
9035
always_export_symbols=no
9037
archive_expsym_cmds=
9038
compiler_needs_object=no
9039
enable_shared_with_static_runtimes=no
9040
export_dynamic_flag_spec=
9041
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9042
hardcode_automatic=no
9044
hardcode_direct_absolute=no
9045
hardcode_libdir_flag_spec=
9046
hardcode_libdir_separator=
9048
hardcode_shlibpath_var=unsupported
9050
link_all_deplibs=unknown
9053
old_archive_from_new_cmds=
9054
old_archive_from_expsyms_cmds=
9055
thread_safe_flag_spec=
9056
whole_archive_flag_spec=
9057
# include_expsyms should be a list of space-separated symbols to be *always*
9058
# included in the symbol list
9060
# exclude_expsyms can be an extended regexp of symbols to exclude
9061
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9062
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9063
# as well as any symbol that contains `d'.
9064
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9065
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9066
# platforms (ab)use it in PIC code, but their linkers get confused if
9067
# the symbol is explicitly referenced. Since portable code cannot
9068
# rely on this symbol name, it's probably fine to never include it in
9069
# preloaded symbol tables.
9070
# Exclude shared library initialization/finalization symbols.
9071
extract_expsyms_cmds=
9074
cygwin* | mingw* | pw32* | cegcc*)
9075
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9076
# When not using gcc, we currently assume that we are using
9077
# Microsoft Visual C++.
9078
if test "$GCC" != yes; then
9083
# we just hope/assume this is gcc and not c89 (= MSVC++)
9089
linux* | k*bsd*-gnu | gnu*)
9096
# On some targets, GNU ld is compatible enough with the native linker
9097
# that we're better off using the native interface for both.
9098
lt_use_gnu_ld_interface=no
9099
if test "$with_gnu_ld" = yes; then
9102
# The AIX port of GNU ld has always aspired to compatibility
9103
# with the native linker. However, as the warning in the GNU ld
9104
# block says, versions before 2.19.5* couldn't really create working
9105
# shared libraries, regardless of the interface used.
9106
case `$LD -v 2>&1` in
9107
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9108
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9109
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
9111
lt_use_gnu_ld_interface=yes
9116
lt_use_gnu_ld_interface=yes
9121
if test "$lt_use_gnu_ld_interface" = yes; then
9122
# If archive_cmds runs LD, not CC, wlarc should be empty
9125
# Set some defaults for GNU ld with shared library support. These
9126
# are reset later if shared libraries are not supported. Putting them
9127
# here allows them to be overridden if necessary.
9128
runpath_var=LD_RUN_PATH
9129
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9130
export_dynamic_flag_spec='${wl}--export-dynamic'
9131
# ancient GNU ld didn't support --whole-archive et. al.
9132
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9133
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9135
whole_archive_flag_spec=
9137
supports_anon_versioning=no
9138
case `$LD -v 2>&1` in
9139
*GNU\ gold*) supports_anon_versioning=yes ;;
9140
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9141
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9142
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9143
*\ 2.11.*) ;; # other 2.11 versions
9144
*) supports_anon_versioning=yes ;;
9147
# See if GNU ld supports shared libraries.
9150
# On AIX/PPC, the GNU linker is very broken
9151
if test "$host_cpu" != ia64; then
9155
*** Warning: the GNU linker, at least up to release 2.19, is reported
9156
*** to be unable to reliably create shared libraries on AIX.
9157
*** Therefore, libtool is disabling shared libraries support. If you
9158
*** really care for shared libraries, you may want to install binutils
9159
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9160
*** You will then need to restart the configuration process.
9169
# see comment about AmigaOS4 .so support
9170
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9171
archive_expsym_cmds=''
9174
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)'
9175
hardcode_libdir_flag_spec='-L$libdir'
9176
hardcode_minus_L=yes
9182
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9183
allow_undefined_flag=unsupported
9184
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9185
# support --undefined. This deserves some investigation. FIXME
9186
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192
cygwin* | mingw* | pw32* | cegcc*)
9193
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9194
# as there is no search path for DLLs.
9195
hardcode_libdir_flag_spec='-L$libdir'
9196
export_dynamic_flag_spec='${wl}--export-all-symbols'
9197
allow_undefined_flag=unsupported
9198
always_export_symbols=no
9199
enable_shared_with_static_runtimes=yes
9200
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9201
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9203
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9204
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9205
# If the export-symbols file already is a .def file (1st line
9206
# is EXPORTS), use it as is; otherwise, prepend...
9207
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9208
cp $export_symbols $output_objdir/$soname.def;
9210
echo EXPORTS > $output_objdir/$soname.def;
9211
cat $export_symbols >> $output_objdir/$soname.def;
9213
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9220
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9221
link_all_deplibs=yes
9226
hardcode_shlibpath_var=no
9227
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9228
export_dynamic_flag_spec='${wl}-E'
9229
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9230
# Instead, shared libraries are loaded at an image base (0x10000000 by
9231
# default) and relocated if they conflict, which is a slow very memory
9232
# consuming and fragmenting process. To avoid this, we pick a random,
9233
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9234
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9235
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9236
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'
9239
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9241
if test "$host_os" = linux-dietlibc; then
9242
case $cc_basename in
9243
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9246
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9247
&& test "$tmp_diet" = no
9249
tmp_addflag=' $pic_flag'
9250
tmp_sharedflag='-shared'
9251
case $cc_basename,$host_cpu in
9252
pgcc*) # Portland Group C compiler
9253
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9254
tmp_addflag=' $pic_flag'
9256
pgf77* | pgf90* | pgf95* | pgfortran*)
9257
# Portland Group f77 and f90 compilers
9258
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9259
tmp_addflag=' $pic_flag -Mnomain' ;;
9260
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9261
tmp_addflag=' -i_dynamic' ;;
9262
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9263
tmp_addflag=' -i_dynamic -nofor_main' ;;
9264
ifc* | ifort*) # Intel Fortran compiler
9265
tmp_addflag=' -nofor_main' ;;
9266
lf95*) # Lahey Fortran 8.1
9267
whole_archive_flag_spec=
9268
tmp_sharedflag='--shared' ;;
9269
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9270
tmp_sharedflag='-qmkshrobj'
9272
nvcc*) # Cuda Compiler Driver 2.2
9273
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9274
compiler_needs_object=yes
9277
case `$CC -V 2>&1 | sed 5q` in
9278
*Sun\ C*) # Sun C 5.9
9279
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9280
compiler_needs_object=yes
9281
tmp_sharedflag='-G' ;;
9282
*Sun\ F*) # Sun Fortran 8.3
9283
tmp_sharedflag='-G' ;;
9285
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9287
if test "x$supports_anon_versioning" = xyes; then
9288
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9289
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9290
echo "local: *; };" >> $output_objdir/$libname.ver~
9291
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9294
case $cc_basename in
9295
xlf* | bgf* | bgxlf* | mpixlf*)
9296
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9297
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9298
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9299
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9300
if test "x$supports_anon_versioning" = xyes; then
9301
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9302
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9303
echo "local: *; };" >> $output_objdir/$libname.ver~
9304
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9313
netbsd* | netbsdelf*-gnu)
9314
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9315
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9318
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9319
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9324
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9328
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9329
*** create shared libraries on Solaris systems. Therefore, libtool
9330
*** is disabling shared libraries support. We urge you to upgrade GNU
9331
*** binutils to release 2.9.1 or newer. Another option is to modify
9332
*** your PATH or compiler configuration so that the native linker is
9333
*** used, and then restart.
9336
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9337
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9338
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9344
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9345
case `$LD -v 2>&1` in
9346
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9350
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9351
*** reliably create shared libraries on SCO systems. Therefore, libtool
9352
*** is disabling shared libraries support. We urge you to upgrade GNU
9353
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9354
*** your PATH or compiler configuration so that the native linker is
9355
*** used, and then restart.
9360
# For security reasons, it is highly recommended that you always
9361
# use absolute paths for naming shared libraries, and exclude the
9362
# DT_RUNPATH tag from executables and libraries. But doing so
9363
# requires that you compile everything twice, which is a pain.
9364
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9365
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9366
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9367
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9376
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9379
hardcode_shlibpath_var=no
9383
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9384
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9385
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9392
if test "$ld_shlibs" = no; then
9394
hardcode_libdir_flag_spec=
9395
export_dynamic_flag_spec=
9396
whole_archive_flag_spec=
9399
# PORTME fill in a description of your system's linker (not GNU ld)
9402
allow_undefined_flag=unsupported
9403
always_export_symbols=yes
9404
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'
9405
# Note: this linker hardcodes the directories in LIBPATH if there
9406
# are no directories specified by -L.
9407
hardcode_minus_L=yes
9408
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9409
# Neither direct hardcoding nor static linking is supported with a
9411
hardcode_direct=unsupported
9416
if test "$host_cpu" = ia64; then
9417
# On IA64, the linker does run time linking by default, so we don't
9418
# have to do anything special.
9419
aix_use_runtimelinking=no
9420
exp_sym_flag='-Bexport'
9423
# If we're using GNU nm, then we don't want the "-C" option.
9424
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9425
# Also, AIX nm treats weak defined symbols like other global
9426
# defined symbols, whereas GNU nm marks them as "W".
9427
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9428
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9430
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'
9432
aix_use_runtimelinking=no
9434
# Test if we are trying to use run time linking or normal
9435
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9436
# need to do runtime linking.
9437
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9438
for ld_flag in $LDFLAGS; do
9439
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9440
aix_use_runtimelinking=yes
9447
exp_sym_flag='-bexport'
9448
no_entry_flag='-bnoentry'
9451
# When large executables or shared objects are built, AIX ld can
9452
# have problems creating the table of contents. If linking a library
9453
# or program results in "error TOC overflow" add -mminimal-toc to
9454
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9455
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9459
hardcode_direct_absolute=yes
9460
hardcode_libdir_separator=':'
9461
link_all_deplibs=yes
9462
file_list_spec='${wl}-f,'
9464
if test "$GCC" = yes; then
9465
case $host_os in aix4.[012]|aix4.[012].*)
9466
# We only want to do this on AIX 4.2 and lower, the check
9467
# below for broken collect2 doesn't work under 4.3+
9468
collect2name=`${CC} -print-prog-name=collect2`
9469
if test -f "$collect2name" &&
9470
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9472
# We have reworked collect2
9475
# We have old collect2
9476
hardcode_direct=unsupported
9477
# It fails to find uninstalled libraries when the uninstalled
9478
# path is not listed in the libpath. Setting hardcode_minus_L
9479
# to unsupported forces relinking
9480
hardcode_minus_L=yes
9481
hardcode_libdir_flag_spec='-L$libdir'
9482
hardcode_libdir_separator=
9486
shared_flag='-shared'
9487
if test "$aix_use_runtimelinking" = yes; then
9488
shared_flag="$shared_flag "'${wl}-G'
9493
if test "$host_cpu" = ia64; then
9494
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9495
# chokes on -Wl,-G. The following line is correct:
9498
if test "$aix_use_runtimelinking" = yes; then
9499
shared_flag='${wl}-G'
9501
shared_flag='${wl}-bM:SRE'
9506
export_dynamic_flag_spec='${wl}-bexpall'
9507
# It seems that -bexpall does not export symbols beginning with
9508
# underscore (_), so it is better to generate a list of symbols to export.
9509
always_export_symbols=yes
9510
if test "$aix_use_runtimelinking" = yes; then
9511
# Warning - without using the other runtime loading flags (-brtl),
9512
# -berok will link without error, but may produce a broken library.
9513
allow_undefined_flag='-berok'
9514
# Determine the default libpath from the value encoded in an
9516
if test "${lt_cv_aix_libpath+set}" = set; then
9517
aix_libpath=$lt_cv_aix_libpath
9519
if ${lt_cv_aix_libpath_+:} false; then :
9520
$as_echo_n "(cached) " >&6
9522
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523
/* end confdefs.h. */
9533
if ac_fn_c_try_link "$LINENO"; then :
9535
lt_aix_libpath_sed='
9536
/Import File Strings/,/^$/ {
9538
s/^0 *\([^ ]*\) *$/\1/
9542
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9543
# Check for a 64-bit object if we didn't find anything.
9544
if test -z "$lt_cv_aix_libpath_"; then
9545
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9548
rm -f core conftest.err conftest.$ac_objext \
9549
conftest$ac_exeext conftest.$ac_ext
9550
if test -z "$lt_cv_aix_libpath_"; then
9551
lt_cv_aix_libpath_="/usr/lib:/lib"
9556
aix_libpath=$lt_cv_aix_libpath_
9559
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9560
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9562
if test "$host_cpu" = ia64; then
9563
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9564
allow_undefined_flag="-z nodefs"
9565
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"
9567
# Determine the default libpath from the value encoded in an
9569
if test "${lt_cv_aix_libpath+set}" = set; then
9570
aix_libpath=$lt_cv_aix_libpath
9572
if ${lt_cv_aix_libpath_+:} false; then :
9573
$as_echo_n "(cached) " >&6
9575
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576
/* end confdefs.h. */
9586
if ac_fn_c_try_link "$LINENO"; then :
9588
lt_aix_libpath_sed='
9589
/Import File Strings/,/^$/ {
9591
s/^0 *\([^ ]*\) *$/\1/
9595
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9596
# Check for a 64-bit object if we didn't find anything.
9597
if test -z "$lt_cv_aix_libpath_"; then
9598
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9601
rm -f core conftest.err conftest.$ac_objext \
9602
conftest$ac_exeext conftest.$ac_ext
9603
if test -z "$lt_cv_aix_libpath_"; then
9604
lt_cv_aix_libpath_="/usr/lib:/lib"
9609
aix_libpath=$lt_cv_aix_libpath_
9612
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9613
# Warning - without using the other run time loading flags,
9614
# -berok will link without error, but may produce a broken library.
9615
no_undefined_flag=' ${wl}-bernotok'
9616
allow_undefined_flag=' ${wl}-berok'
9617
if test "$with_gnu_ld" = yes; then
9618
# We only use this code for GNU lds that support --whole-archive.
9619
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9621
# Exported symbols can be pulled into shared objects from archives
9622
whole_archive_flag_spec='$convenience'
9624
archive_cmds_need_lc=yes
9625
# This is similar to how AIX traditionally builds its shared libraries.
9626
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'
9634
# see comment about AmigaOS4 .so support
9635
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9636
archive_expsym_cmds=''
9639
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)'
9640
hardcode_libdir_flag_spec='-L$libdir'
9641
hardcode_minus_L=yes
9647
export_dynamic_flag_spec=-rdynamic
9650
cygwin* | mingw* | pw32* | cegcc*)
9651
# When not using gcc, we currently assume that we are using
9652
# Microsoft Visual C++.
9653
# hardcode_libdir_flag_spec is actually meaningless, as there is
9654
# no search path for DLLs.
9655
case $cc_basename in
9658
hardcode_libdir_flag_spec=' '
9659
allow_undefined_flag=unsupported
9660
always_export_symbols=yes
9662
# Tell ltmain to make .lib files, not .a files.
9664
# Tell ltmain to make .dll files, not .so files.
9666
# FIXME: Setting linknames here is a bad hack.
9667
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9668
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9669
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9671
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9673
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9675
# The linker will not automatically build a static lib if we build a DLL.
9676
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9677
enable_shared_with_static_runtimes=yes
9678
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9679
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9681
old_postinstall_cmds='chmod 644 $oldlib'
9682
postlink_cmds='lt_outputfile="@OUTPUT@"~
9683
lt_tool_outputfile="@TOOL_OUTPUT@"~
9684
case $lt_outputfile in
9687
lt_outputfile="$lt_outputfile.exe"
9688
lt_tool_outputfile="$lt_tool_outputfile.exe"
9691
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9692
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9693
$RM "$lt_outputfile.manifest";
9697
# Assume MSVC wrapper
9698
hardcode_libdir_flag_spec=' '
9699
allow_undefined_flag=unsupported
9700
# Tell ltmain to make .lib files, not .a files.
9702
# Tell ltmain to make .dll files, not .so files.
9704
# FIXME: Setting linknames here is a bad hack.
9705
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9706
# The linker will automatically build a .lib file if we build a DLL.
9707
old_archive_from_new_cmds='true'
9708
# FIXME: Should let the user specify the lib program.
9709
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9710
enable_shared_with_static_runtimes=yes
9715
darwin* | rhapsody*)
9718
archive_cmds_need_lc=no
9720
hardcode_automatic=yes
9721
hardcode_shlibpath_var=unsupported
9722
if test "$lt_cv_ld_force_load" = "yes"; then
9723
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9726
whole_archive_flag_spec=''
9728
link_all_deplibs=yes
9729
allow_undefined_flag="$_lt_dar_allow_undefined"
9730
case $cc_basename in
9731
ifort*) _lt_dar_can_shared=yes ;;
9732
*) _lt_dar_can_shared=$GCC ;;
9734
if test "$_lt_dar_can_shared" = "yes"; then
9735
output_verbose_link_cmd=func_echo_all
9736
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9737
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9738
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}"
9739
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}"
9748
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9749
hardcode_libdir_flag_spec='-L$libdir'
9750
hardcode_shlibpath_var=no
9753
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9754
# support. Future versions do this automatically, but an explicit c++rt0.o
9755
# does not break anything, and helps significantly (at the cost of a little
9758
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9759
hardcode_libdir_flag_spec='-R$libdir'
9761
hardcode_shlibpath_var=no
9764
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9766
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9768
hardcode_minus_L=yes
9769
hardcode_shlibpath_var=no
9772
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9773
freebsd* | dragonfly*)
9774
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9775
hardcode_libdir_flag_spec='-R$libdir'
9777
hardcode_shlibpath_var=no
9781
if test "$GCC" = yes; then
9782
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9784
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'
9786
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9787
hardcode_libdir_separator=:
9790
# hardcode_minus_L: Not really in the search PATH,
9791
# but as the default location of the library.
9792
hardcode_minus_L=yes
9793
export_dynamic_flag_spec='${wl}-E'
9797
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9798
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9800
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9802
if test "$with_gnu_ld" = no; then
9803
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9804
hardcode_libdir_separator=:
9806
hardcode_direct_absolute=yes
9807
export_dynamic_flag_spec='${wl}-E'
9808
# hardcode_minus_L: Not really in the search PATH,
9809
# but as the default location of the library.
9810
hardcode_minus_L=yes
9815
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9818
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9821
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9824
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9830
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9833
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9837
# Older versions of the 11.00 compiler do not understand -b yet
9838
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9840
$as_echo_n "checking if $CC understands -b... " >&6; }
9841
if ${lt_cv_prog_compiler__b+:} false; then :
9842
$as_echo_n "(cached) " >&6
9844
lt_cv_prog_compiler__b=no
9845
save_LDFLAGS="$LDFLAGS"
9846
LDFLAGS="$LDFLAGS -b"
9847
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9848
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9849
# The linker can only warn and ignore the option if not recognized
9850
# So say no if there are warnings
9851
if test -s conftest.err; then
9852
# Append any errors to the config.log.
9853
cat conftest.err 1>&5
9854
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9855
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9856
if diff conftest.exp conftest.er2 >/dev/null; then
9857
lt_cv_prog_compiler__b=yes
9860
lt_cv_prog_compiler__b=yes
9864
LDFLAGS="$save_LDFLAGS"
9867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9868
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9870
if test x"$lt_cv_prog_compiler__b" = xyes; then
9871
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9873
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9879
if test "$with_gnu_ld" = no; then
9880
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9881
hardcode_libdir_separator=:
9886
hardcode_shlibpath_var=no
9890
hardcode_direct_absolute=yes
9891
export_dynamic_flag_spec='${wl}-E'
9893
# hardcode_minus_L: Not really in the search PATH,
9894
# but as the default location of the library.
9895
hardcode_minus_L=yes
9901
irix5* | irix6* | nonstopux*)
9902
if test "$GCC" = yes; then
9903
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9904
# Try to use the -exported_symbol ld option, if it does not
9905
# work, assume that -exports_file does not work either and
9906
# implicitly export all symbols.
9907
# This should be the same for all languages, so no per-tag cache variable.
9908
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9909
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9910
if ${lt_cv_irix_exported_symbol+:} false; then :
9911
$as_echo_n "(cached) " >&6
9913
save_LDFLAGS="$LDFLAGS"
9914
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9915
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916
/* end confdefs.h. */
9917
int foo (void) { return 0; }
9919
if ac_fn_c_try_link "$LINENO"; then :
9920
lt_cv_irix_exported_symbol=yes
9922
lt_cv_irix_exported_symbol=no
9924
rm -f core conftest.err conftest.$ac_objext \
9925
conftest$ac_exeext conftest.$ac_ext
9926
LDFLAGS="$save_LDFLAGS"
9928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9929
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9930
if test "$lt_cv_irix_exported_symbol" = yes; then
9931
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9934
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9935
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9937
archive_cmds_need_lc='no'
9938
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939
hardcode_libdir_separator=:
9941
link_all_deplibs=yes
9944
netbsd* | netbsdelf*-gnu)
9945
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9946
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9948
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9950
hardcode_libdir_flag_spec='-R$libdir'
9952
hardcode_shlibpath_var=no
9956
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9958
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9959
hardcode_libdir_separator=:
9960
hardcode_shlibpath_var=no
9967
if test -f /usr/libexec/ld.so; then
9969
hardcode_shlibpath_var=no
9970
hardcode_direct_absolute=yes
9971
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9972
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9973
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9974
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9975
export_dynamic_flag_spec='${wl}-E'
9978
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9979
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9980
hardcode_libdir_flag_spec='-R$libdir'
9983
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9984
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9994
hardcode_libdir_flag_spec='-L$libdir'
9995
hardcode_minus_L=yes
9996
allow_undefined_flag=unsupported
9997
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'
9998
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10002
if test "$GCC" = yes; then
10003
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10004
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10006
allow_undefined_flag=' -expect_unresolved \*'
10007
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10009
archive_cmds_need_lc='no'
10010
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10011
hardcode_libdir_separator=:
10014
osf4* | osf5*) # as osf3* with the addition of -msym flag
10015
if test "$GCC" = yes; then
10016
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10017
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10018
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10020
allow_undefined_flag=' -expect_unresolved \*'
10021
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10022
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~
10023
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10025
# Both c and cxx compiler support -rpath directly
10026
hardcode_libdir_flag_spec='-rpath $libdir'
10028
archive_cmds_need_lc='no'
10029
hardcode_libdir_separator=:
10033
no_undefined_flag=' -z defs'
10034
if test "$GCC" = yes; then
10036
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10037
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10038
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10040
case `$CC -V 2>&1` in
10043
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10044
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10045
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10049
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10050
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10051
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10055
hardcode_libdir_flag_spec='-R$libdir'
10056
hardcode_shlibpath_var=no
10058
solaris2.[0-5] | solaris2.[0-5].*) ;;
10060
# The compiler driver will combine and reorder linker options,
10061
# but understands `-z linker_flag'. GCC discards it without `$wl',
10062
# but is careful enough not to reorder.
10063
# Supported since Solaris 2.6 (maybe 2.5.1?)
10064
if test "$GCC" = yes; then
10065
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10067
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10071
link_all_deplibs=yes
10075
if test "x$host_vendor" = xsequent; then
10076
# Use $CC to link under sequent, because it throws in some extra .o
10077
# files that make .init and .fini sections work.
10078
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10080
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10082
hardcode_libdir_flag_spec='-L$libdir'
10083
hardcode_direct=yes
10084
hardcode_minus_L=yes
10085
hardcode_shlibpath_var=no
10089
case $host_vendor in
10091
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092
hardcode_direct=yes # is this really true???
10095
## LD is ld it makes a PLAMLIB
10096
## CC just makes a GrossModule.
10097
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10098
reload_cmds='$CC -r -o $output$reload_objs'
10102
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10106
runpath_var='LD_RUN_PATH'
10107
hardcode_shlibpath_var=no
10111
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10112
hardcode_shlibpath_var=no
10113
export_dynamic_flag_spec='-Bexport'
10117
if test -d /usr/nec; then
10118
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10119
hardcode_shlibpath_var=no
10120
runpath_var=LD_RUN_PATH
10121
hardcode_runpath_var=yes
10126
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10127
no_undefined_flag='${wl}-z,text'
10128
archive_cmds_need_lc=no
10129
hardcode_shlibpath_var=no
10130
runpath_var='LD_RUN_PATH'
10132
if test "$GCC" = yes; then
10133
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10134
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10137
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10141
sysv5* | sco3.2v5* | sco5v6*)
10142
# Note: We can NOT use -z defs as we might desire, because we do not
10143
# link with -lc, and that would cause any symbols used from libc to
10144
# always be unresolved, which means just about no library would
10145
# ever link correctly. If we're not using GNU ld we use -z text
10146
# though, which does catch some bad symbols but isn't as heavy-handed
10148
no_undefined_flag='${wl}-z,text'
10149
allow_undefined_flag='${wl}-z,nodefs'
10150
archive_cmds_need_lc=no
10151
hardcode_shlibpath_var=no
10152
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10153
hardcode_libdir_separator=':'
10154
link_all_deplibs=yes
10155
export_dynamic_flag_spec='${wl}-Bexport'
10156
runpath_var='LD_RUN_PATH'
10158
if test "$GCC" = yes; then
10159
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10163
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10168
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10169
hardcode_libdir_flag_spec='-L$libdir'
10170
hardcode_shlibpath_var=no
10178
if test x$host_vendor = xsni; then
10180
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10181
export_dynamic_flag_spec='${wl}-Blargedynsym'
10187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10188
$as_echo "$ld_shlibs" >&6; }
10189
test "$ld_shlibs" = no && can_build_shared=no
10191
with_gnu_ld=$with_gnu_ld
10208
# Do we need to explicitly link libc?
10210
case "x$archive_cmds_need_lc" in
10212
# Assume -lc should be added
10213
archive_cmds_need_lc=yes
10215
if test "$enable_shared" = yes && test "$GCC" = yes; then
10216
case $archive_cmds in
10218
# FIXME: we may have to deal with multi-command sequences.
10221
# Test whether the compiler implicitly links with -lc since on some
10222
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10223
# to ld, don't add -lc before -lgcc.
10224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10225
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10226
if ${lt_cv_archive_cmds_need_lc+:} false; then :
10227
$as_echo_n "(cached) " >&6
10230
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10232
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10233
(eval $ac_compile) 2>&5
10235
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10236
test $ac_status = 0; } 2>conftest.err; then
10239
libobjs=conftest.$ac_objext
10241
wl=$lt_prog_compiler_wl
10242
pic_flag=$lt_prog_compiler_pic
10248
lt_save_allow_undefined_flag=$allow_undefined_flag
10249
allow_undefined_flag=
10250
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10251
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10253
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10254
test $ac_status = 0; }
10256
lt_cv_archive_cmds_need_lc=no
10258
lt_cv_archive_cmds_need_lc=yes
10260
allow_undefined_flag=$lt_save_allow_undefined_flag
10262
cat conftest.err 1>&5
10267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10268
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10269
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10428
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10430
if test "$GCC" = yes; then
10432
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10433
*) lt_awk_arg="/^libraries:/" ;;
10436
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10437
*) lt_sed_strip_eq="s,=/,/,g" ;;
10439
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10440
case $lt_search_path_spec in
10442
# if the path contains ";" then we assume it to be the separator
10443
# otherwise default to the standard path separator (i.e. ":") - it is
10444
# assumed that no part of a normal pathname contains ";" but that should
10445
# okay in the real world where ";" in dirpaths is itself problematic.
10446
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10449
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10452
# Ok, now we have the path, separated by spaces, we can step through it
10453
# and add multilib dir if necessary.
10454
lt_tmp_lt_search_path_spec=
10455
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10456
for lt_sys_path in $lt_search_path_spec; do
10457
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10458
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10460
test -d "$lt_sys_path" && \
10461
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10464
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10465
BEGIN {RS=" "; FS="/|\n";} {
10468
for (lt_i = NF; lt_i > 0; lt_i--) {
10469
if ($lt_i != "" && $lt_i != ".") {
10470
if ($lt_i == "..") {
10473
if (lt_count == 0) {
10474
lt_foo="/" $lt_i lt_foo;
10481
if (lt_foo != "") { lt_freq[lt_foo]++; }
10482
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10484
# AWK program above erroneously prepends '/' to C:/dos/paths
10487
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10488
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
10490
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10492
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10494
library_names_spec=
10495
libname_spec='lib$name'
10499
postuninstall_cmds=
10503
shlibpath_overrides_runpath=unknown
10505
dynamic_linker="$host_os ld.so"
10506
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10507
need_lib_prefix=unknown
10508
hardcode_into_libs=no
10510
# when you set need_version to no, make sure it does not cause -set_version
10511
# flags to be left without arguments
10512
need_version=unknown
10516
version_type=linux # correct to gnu/linux during the next big refactor
10517
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10518
shlibpath_var=LIBPATH
10520
# AIX 3 has no versioning support, so we append a major version to the name.
10521
soname_spec='${libname}${release}${shared_ext}$major'
10525
version_type=linux # correct to gnu/linux during the next big refactor
10528
hardcode_into_libs=yes
10529
if test "$host_cpu" = ia64; then
10530
# AIX 5 supports IA64
10531
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10532
shlibpath_var=LD_LIBRARY_PATH
10534
# With GCC up to 2.95.x, collect2 would create an import file
10535
# for dependence libraries. The import file would start with
10536
# the line `#! .'. This would cause the generated library to
10537
# depend on `.', always an invalid library. This was fixed in
10538
# development snapshots of GCC prior to 3.0.
10540
aix4 | aix4.[01] | aix4.[01].*)
10541
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10543
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10546
can_build_shared=no
10550
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10551
# soname into executable. Probably we can add versioning support to
10552
# collect2, so additional links can be useful in future.
10553
if test "$aix_use_runtimelinking" = yes; then
10554
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10555
# instead of lib<name>.a to let people know that these are not
10556
# typical AIX shared libraries.
10557
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559
# We preserve .a as extension for shared libraries through AIX4.2
10560
# and later when we are not doing run time linking.
10561
library_names_spec='${libname}${release}.a $libname.a'
10562
soname_spec='${libname}${release}${shared_ext}$major'
10564
shlibpath_var=LIBPATH
10571
# Since July 2007 AmigaOS4 officially supports .so libraries.
10572
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10573
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10576
library_names_spec='$libname.ixlibrary $libname.a'
10577
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10578
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10584
library_names_spec='${libname}${shared_ext}'
10585
dynamic_linker="$host_os ld.so"
10586
shlibpath_var=LIBRARY_PATH
10590
version_type=linux # correct to gnu/linux during the next big refactor
10592
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593
soname_spec='${libname}${release}${shared_ext}$major'
10594
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10595
shlibpath_var=LD_LIBRARY_PATH
10596
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10597
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10598
# the default ld.so.conf also contains /usr/contrib/lib and
10599
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10600
# libtool to hard-code these into programs
10603
cygwin* | mingw* | pw32* | cegcc*)
10604
version_type=windows
10609
case $GCC,$cc_basename in
10612
library_names_spec='$libname.dll.a'
10613
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10614
postinstall_cmds='base_file=`basename \${file}`~
10615
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10616
dldir=$destdir/`dirname \$dlpath`~
10617
test -d \$dldir || mkdir -p \$dldir~
10618
$install_prog $dir/$dlname \$dldir/$dlname~
10619
chmod a+x \$dldir/$dlname~
10620
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10621
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10623
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10624
dlpath=$dir/\$dldll~
10626
shlibpath_overrides_runpath=yes
10630
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10631
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10633
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10636
# MinGW DLLs use traditional 'lib' prefix
10637
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10640
# pw32 DLLs use 'pw' prefix rather than 'lib'
10641
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10644
dynamic_linker='Win32 ld.exe'
10649
libname_spec='$name'
10650
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10651
library_names_spec='${libname}.dll.lib'
10655
sys_lib_search_path_spec=
10658
for lt_path in $LIB
10661
# Let DOS variable expansion print the short 8.3 style file name.
10662
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10663
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10666
# Convert to MSYS style.
10667
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10670
# Convert to unix form, then to dos form, then back to unix form
10671
# but this time dos style (no spaces!) so that the unix form looks
10672
# like /cygdrive/c/PROGRA~1:/cygdr...
10673
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10674
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10675
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10678
sys_lib_search_path_spec="$LIB"
10679
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10680
# It is most probably a Windows format PATH.
10681
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10683
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10685
# FIXME: find the short name or the path components, as spaces are
10686
# common. (e.g. "Program Files" -> "PROGRA~1")
10690
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10691
postinstall_cmds='base_file=`basename \${file}`~
10692
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10693
dldir=$destdir/`dirname \$dlpath`~
10694
test -d \$dldir || mkdir -p \$dldir~
10695
$install_prog $dir/$dlname \$dldir/$dlname'
10696
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10697
dlpath=$dir/\$dldll~
10699
shlibpath_overrides_runpath=yes
10700
dynamic_linker='Win32 link.exe'
10704
# Assume MSVC wrapper
10705
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10706
dynamic_linker='Win32 ld.exe'
10709
# FIXME: first we should search . and the directory the executable is in
10713
darwin* | rhapsody*)
10714
dynamic_linker="$host_os dyld"
10715
version_type=darwin
10718
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10719
soname_spec='${libname}${release}${major}$shared_ext'
10720
shlibpath_overrides_runpath=yes
10721
shlibpath_var=DYLD_LIBRARY_PATH
10722
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10724
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10725
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10729
version_type=linux # correct to gnu/linux during the next big refactor
10732
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10733
soname_spec='${libname}${release}${shared_ext}$major'
10734
shlibpath_var=LD_LIBRARY_PATH
10737
freebsd* | dragonfly*)
10738
# DragonFly does not have aout. When/if they implement a new
10739
# versioning mechanism, adjust this.
10740
if test -x /usr/bin/objformat; then
10741
objformat=`/usr/bin/objformat`
10744
freebsd[23].*) objformat=aout ;;
10745
*) objformat=elf ;;
10748
version_type=freebsd-$objformat
10749
case $version_type in
10751
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10756
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10760
shlibpath_var=LD_LIBRARY_PATH
10763
shlibpath_overrides_runpath=yes
10765
freebsd3.[01]* | freebsdelf3.[01]*)
10766
shlibpath_overrides_runpath=yes
10767
hardcode_into_libs=yes
10769
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10770
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10771
shlibpath_overrides_runpath=no
10772
hardcode_into_libs=yes
10774
*) # from 4.6 on, and DragonFly
10775
shlibpath_overrides_runpath=yes
10776
hardcode_into_libs=yes
10782
version_type=linux # correct to gnu/linux during the next big refactor
10785
dynamic_linker="$host_os runtime_loader"
10786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10787
soname_spec='${libname}${release}${shared_ext}$major'
10788
shlibpath_var=LIBRARY_PATH
10789
shlibpath_overrides_runpath=yes
10790
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10791
hardcode_into_libs=yes
10794
hpux9* | hpux10* | hpux11*)
10795
# Give a soname corresponding to the major version so that dld.sl refuses to
10796
# link against other versions.
10803
hardcode_into_libs=yes
10804
dynamic_linker="$host_os dld.so"
10805
shlibpath_var=LD_LIBRARY_PATH
10806
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10807
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808
soname_spec='${libname}${release}${shared_ext}$major'
10809
if test "X$HPUX_IA64_MODE" = X32; then
10810
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10812
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10814
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10818
hardcode_into_libs=yes
10819
dynamic_linker="$host_os dld.sl"
10820
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10821
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10822
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10823
soname_spec='${libname}${release}${shared_ext}$major'
10824
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10825
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10829
dynamic_linker="$host_os dld.sl"
10830
shlibpath_var=SHLIB_PATH
10831
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833
soname_spec='${libname}${release}${shared_ext}$major'
10836
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10837
postinstall_cmds='chmod 555 $lib'
10838
# or fails outright, so override atomically:
10839
install_override_mode=555
10843
version_type=linux # correct to gnu/linux during the next big refactor
10846
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10847
soname_spec='${libname}${release}${shared_ext}$major'
10848
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10849
shlibpath_var=LD_LIBRARY_PATH
10850
shlibpath_overrides_runpath=no
10851
hardcode_into_libs=yes
10854
irix5* | irix6* | nonstopux*)
10856
nonstopux*) version_type=nonstopux ;;
10858
if test "$lt_cv_prog_gnu_ld" = yes; then
10859
version_type=linux # correct to gnu/linux during the next big refactor
10866
soname_spec='${libname}${release}${shared_ext}$major'
10867
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10869
irix5* | nonstopux*)
10870
libsuff= shlibsuff=
10873
case $LD in # libtool.m4 will add one of these switches to LD
10874
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10875
libsuff= shlibsuff= libmagic=32-bit;;
10876
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10877
libsuff=32 shlibsuff=N32 libmagic=N32;;
10878
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10879
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10880
*) libsuff= shlibsuff= libmagic=never-match;;
10884
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10885
shlibpath_overrides_runpath=no
10886
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10887
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10888
hardcode_into_libs=yes
10891
# No shared lib support for Linux oldld, aout, or coff.
10892
linux*oldld* | linux*aout* | linux*coff*)
10896
# This must be glibc/ELF.
10897
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10898
version_type=linux # correct to gnu/linux during the next big refactor
10901
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902
soname_spec='${libname}${release}${shared_ext}$major'
10903
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10904
shlibpath_var=LD_LIBRARY_PATH
10905
shlibpath_overrides_runpath=no
10907
# Some binutils ld are patched to set DT_RUNPATH
10908
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10909
$as_echo_n "(cached) " >&6
10911
lt_cv_shlibpath_overrides_runpath=no
10912
save_LDFLAGS=$LDFLAGS
10913
save_libdir=$libdir
10914
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10915
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10916
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10917
/* end confdefs.h. */
10927
if ac_fn_c_try_link "$LINENO"; then :
10928
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10929
lt_cv_shlibpath_overrides_runpath=yes
10932
rm -f core conftest.err conftest.$ac_objext \
10933
conftest$ac_exeext conftest.$ac_ext
10934
LDFLAGS=$save_LDFLAGS
10935
libdir=$save_libdir
10939
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10941
# This implies no fast_install, which is unacceptable.
10942
# Some rework will be needed to allow for fast_install
10943
# before this can be enabled.
10944
hardcode_into_libs=yes
10946
# Append ld.so.conf contents to the search path
10947
if test -f /etc/ld.so.conf; then
10948
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;s/"//g;/^$/d' | tr '\n' ' '`
10949
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10952
# We used to test for /lib/ld.so.1 and disable shared libraries on
10953
# powerpc, because MkLinux only supported shared libraries with the
10954
# GNU dynamic linker. Since this was broken with cross compilers,
10955
# most powerpc-linux boxes support dynamic linking these days and
10956
# people can always --disable-shared, the test was removed, and we
10957
# assume the GNU/Linux dynamic linker is in use.
10958
dynamic_linker='GNU/Linux ld.so'
10965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10966
soname_spec='${libname}${release}${shared_ext}$major'
10967
shlibpath_var=LD_LIBRARY_PATH
10968
shlibpath_overrides_runpath=no
10969
hardcode_into_libs=yes
10970
dynamic_linker='NetBSD ld.elf_so'
10977
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10979
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10980
dynamic_linker='NetBSD (a.out) ld.so'
10982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10983
soname_spec='${libname}${release}${shared_ext}$major'
10984
dynamic_linker='NetBSD ld.elf_so'
10986
shlibpath_var=LD_LIBRARY_PATH
10987
shlibpath_overrides_runpath=yes
10988
hardcode_into_libs=yes
10992
version_type=linux # correct to gnu/linux during the next big refactor
10993
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994
shlibpath_var=LD_LIBRARY_PATH
10995
shlibpath_overrides_runpath=yes
11002
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11003
soname_spec='${libname}${release}${shared_ext}$major'
11004
shlibpath_var=LD_LIBRARY_PATH
11005
shlibpath_overrides_runpath=no
11006
hardcode_into_libs=yes
11007
dynamic_linker='ldqnx.so'
11012
sys_lib_dlsearch_path_spec="/usr/lib"
11014
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11016
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11017
*) need_version=no ;;
11019
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11020
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11021
shlibpath_var=LD_LIBRARY_PATH
11022
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11024
openbsd2.[89] | openbsd2.[89].*)
11025
shlibpath_overrides_runpath=no
11028
shlibpath_overrides_runpath=yes
11032
shlibpath_overrides_runpath=yes
11037
libname_spec='$name'
11040
library_names_spec='$libname${shared_ext} $libname.a'
11041
dynamic_linker='OS/2 ld.exe'
11042
shlibpath_var=LIBPATH
11045
osf3* | osf4* | osf5*)
11049
soname_spec='${libname}${release}${shared_ext}$major'
11050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051
shlibpath_var=LD_LIBRARY_PATH
11052
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11053
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11061
version_type=linux # correct to gnu/linux during the next big refactor
11064
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065
soname_spec='${libname}${release}${shared_ext}$major'
11066
shlibpath_var=LD_LIBRARY_PATH
11067
shlibpath_overrides_runpath=yes
11068
hardcode_into_libs=yes
11069
# ldd complains unless libraries are executable
11070
postinstall_cmds='chmod +x $lib'
11075
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11076
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11077
shlibpath_var=LD_LIBRARY_PATH
11078
shlibpath_overrides_runpath=yes
11079
if test "$with_gnu_ld" = yes; then
11086
version_type=linux # correct to gnu/linux during the next big refactor
11087
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088
soname_spec='${libname}${release}${shared_ext}$major'
11089
shlibpath_var=LD_LIBRARY_PATH
11090
case $host_vendor in
11092
shlibpath_overrides_runpath=no
11094
runpath_var=LD_RUN_PATH
11102
shlibpath_overrides_runpath=no
11103
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11109
if test -d /usr/nec ;then
11110
version_type=linux # correct to gnu/linux during the next big refactor
11111
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11112
soname_spec='$libname${shared_ext}.$major'
11113
shlibpath_var=LD_LIBRARY_PATH
11117
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11118
version_type=freebsd-elf
11121
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11122
soname_spec='${libname}${release}${shared_ext}$major'
11123
shlibpath_var=LD_LIBRARY_PATH
11124
shlibpath_overrides_runpath=yes
11125
hardcode_into_libs=yes
11126
if test "$with_gnu_ld" = yes; then
11127
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11129
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11132
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11136
sys_lib_dlsearch_path_spec='/usr/lib'
11140
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11141
version_type=linux # correct to gnu/linux during the next big refactor
11144
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145
shlibpath_var=LD_LIBRARY_PATH
11146
shlibpath_overrides_runpath=no
11147
hardcode_into_libs=yes
11151
version_type=linux # correct to gnu/linux during the next big refactor
11152
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153
soname_spec='${libname}${release}${shared_ext}$major'
11154
shlibpath_var=LD_LIBRARY_PATH
11161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11162
$as_echo "$dynamic_linker" >&6; }
11163
test "$dynamic_linker" = no && can_build_shared=no
11165
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11166
if test "$GCC" = yes; then
11167
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11170
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11171
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11173
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11174
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11269
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11271
if test -n "$hardcode_libdir_flag_spec" ||
11272
test -n "$runpath_var" ||
11273
test "X$hardcode_automatic" = "Xyes" ; then
11275
# We can hardcode non-existent directories.
11276
if test "$hardcode_direct" != no &&
11277
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11278
# have to relink, otherwise we might link with an installed library
11279
# when we should be linking with a yet-to-be-installed one
11280
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11281
test "$hardcode_minus_L" != no; then
11282
# Linking always hardcodes the temporary library directory.
11283
hardcode_action=relink
11285
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11286
hardcode_action=immediate
11289
# We cannot hardcode anything, or else we can only hardcode existing
11291
hardcode_action=unsupported
11293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11294
$as_echo "$hardcode_action" >&6; }
11296
if test "$hardcode_action" = relink ||
11297
test "$inherit_rpath" = yes; then
11298
# Fast installation is not supported
11299
enable_fast_install=no
11300
elif test "$shlibpath_overrides_runpath" = yes ||
11301
test "$enable_shared" = no; then
11302
# Fast installation is not necessary
11303
enable_fast_install=needless
11311
if test "x$enable_dlopen" != xyes; then
11312
enable_dlopen=unknown
11313
enable_dlopen_self=unknown
11314
enable_dlopen_self_static=unknown
11321
lt_cv_dlopen="load_add_on"
11323
lt_cv_dlopen_self=yes
11326
mingw* | pw32* | cegcc*)
11327
lt_cv_dlopen="LoadLibrary"
11332
lt_cv_dlopen="dlopen"
11337
# if libdl is installed we need to link against it
11338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11339
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11340
if ${ac_cv_lib_dl_dlopen+:} false; then :
11341
$as_echo_n "(cached) " >&6
11343
ac_check_lib_save_LIBS=$LIBS
11345
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346
/* end confdefs.h. */
11348
/* Override any GCC internal prototype to avoid an error.
11349
Use char because int might match the return type of a GCC
11350
builtin and then its argument prototype would still apply. */
11363
if ac_fn_c_try_link "$LINENO"; then :
11364
ac_cv_lib_dl_dlopen=yes
11366
ac_cv_lib_dl_dlopen=no
11368
rm -f core conftest.err conftest.$ac_objext \
11369
conftest$ac_exeext conftest.$ac_ext
11370
LIBS=$ac_check_lib_save_LIBS
11372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11373
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11374
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11375
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11378
lt_cv_dlopen="dyld"
11380
lt_cv_dlopen_self=yes
11387
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11388
if test "x$ac_cv_func_shl_load" = xyes; then :
11389
lt_cv_dlopen="shl_load"
11391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11392
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11393
if ${ac_cv_lib_dld_shl_load+:} false; then :
11394
$as_echo_n "(cached) " >&6
11396
ac_check_lib_save_LIBS=$LIBS
11398
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399
/* end confdefs.h. */
11401
/* Override any GCC internal prototype to avoid an error.
11402
Use char because int might match the return type of a GCC
11403
builtin and then its argument prototype would still apply. */
11411
return shl_load ();
11416
if ac_fn_c_try_link "$LINENO"; then :
11417
ac_cv_lib_dld_shl_load=yes
11419
ac_cv_lib_dld_shl_load=no
11421
rm -f core conftest.err conftest.$ac_objext \
11422
conftest$ac_exeext conftest.$ac_ext
11423
LIBS=$ac_check_lib_save_LIBS
11425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11426
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11427
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11428
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11430
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11431
if test "x$ac_cv_func_dlopen" = xyes; then :
11432
lt_cv_dlopen="dlopen"
11434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11435
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11436
if ${ac_cv_lib_dl_dlopen+:} false; then :
11437
$as_echo_n "(cached) " >&6
11439
ac_check_lib_save_LIBS=$LIBS
11441
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442
/* end confdefs.h. */
11444
/* Override any GCC internal prototype to avoid an error.
11445
Use char because int might match the return type of a GCC
11446
builtin and then its argument prototype would still apply. */
11459
if ac_fn_c_try_link "$LINENO"; then :
11460
ac_cv_lib_dl_dlopen=yes
11462
ac_cv_lib_dl_dlopen=no
11464
rm -f core conftest.err conftest.$ac_objext \
11465
conftest$ac_exeext conftest.$ac_ext
11466
LIBS=$ac_check_lib_save_LIBS
11468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11469
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11470
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11471
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11474
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11475
if ${ac_cv_lib_svld_dlopen+:} false; then :
11476
$as_echo_n "(cached) " >&6
11478
ac_check_lib_save_LIBS=$LIBS
11479
LIBS="-lsvld $LIBS"
11480
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481
/* end confdefs.h. */
11483
/* Override any GCC internal prototype to avoid an error.
11484
Use char because int might match the return type of a GCC
11485
builtin and then its argument prototype would still apply. */
11498
if ac_fn_c_try_link "$LINENO"; then :
11499
ac_cv_lib_svld_dlopen=yes
11501
ac_cv_lib_svld_dlopen=no
11503
rm -f core conftest.err conftest.$ac_objext \
11504
conftest$ac_exeext conftest.$ac_ext
11505
LIBS=$ac_check_lib_save_LIBS
11507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11508
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11509
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11510
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11513
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11514
if ${ac_cv_lib_dld_dld_link+:} false; then :
11515
$as_echo_n "(cached) " >&6
11517
ac_check_lib_save_LIBS=$LIBS
11519
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520
/* end confdefs.h. */
11522
/* Override any GCC internal prototype to avoid an error.
11523
Use char because int might match the return type of a GCC
11524
builtin and then its argument prototype would still apply. */
11532
return dld_link ();
11537
if ac_fn_c_try_link "$LINENO"; then :
11538
ac_cv_lib_dld_dld_link=yes
11540
ac_cv_lib_dld_dld_link=no
11542
rm -f core conftest.err conftest.$ac_objext \
11543
conftest$ac_exeext conftest.$ac_ext
11544
LIBS=$ac_check_lib_save_LIBS
11546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11547
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11548
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11549
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11570
if test "x$lt_cv_dlopen" != xno; then
11576
case $lt_cv_dlopen in
11578
save_CPPFLAGS="$CPPFLAGS"
11579
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11581
save_LDFLAGS="$LDFLAGS"
11582
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11585
LIBS="$lt_cv_dlopen_libs $LIBS"
11587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11588
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11589
if ${lt_cv_dlopen_self+:} false; then :
11590
$as_echo_n "(cached) " >&6
11592
if test "$cross_compiling" = yes; then :
11593
lt_cv_dlopen_self=cross
11595
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11596
lt_status=$lt_dlunknown
11597
cat > conftest.$ac_ext <<_LT_EOF
11598
#line $LINENO "configure"
11599
#include "confdefs.h"
11608
# define LT_DLGLOBAL RTLD_GLOBAL
11611
# define LT_DLGLOBAL DL_GLOBAL
11613
# define LT_DLGLOBAL 0
11617
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11618
find out it does not work in some platform. */
11619
#ifndef LT_DLLAZY_OR_NOW
11621
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11624
# define LT_DLLAZY_OR_NOW DL_LAZY
11627
# define LT_DLLAZY_OR_NOW RTLD_NOW
11630
# define LT_DLLAZY_OR_NOW DL_NOW
11632
# define LT_DLLAZY_OR_NOW 0
11639
/* When -fvisbility=hidden is used, assume the code has been annotated
11640
correspondingly for the symbols needed. */
11641
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11642
int fnord () __attribute__((visibility("default")));
11645
int fnord () { return 42; }
11648
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11649
int status = $lt_dlunknown;
11653
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11656
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11657
else puts (dlerror ());
11659
/* dlclose (self); */
11667
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11668
(eval $ac_link) 2>&5
11670
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11671
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11672
(./conftest; exit; ) >&5 2>/dev/null
11674
case x$lt_status in
11675
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11676
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11677
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11680
# compilation failed
11681
lt_cv_dlopen_self=no
11688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11689
$as_echo "$lt_cv_dlopen_self" >&6; }
11691
if test "x$lt_cv_dlopen_self" = xyes; then
11692
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11694
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11695
if ${lt_cv_dlopen_self_static+:} false; then :
11696
$as_echo_n "(cached) " >&6
11698
if test "$cross_compiling" = yes; then :
11699
lt_cv_dlopen_self_static=cross
11701
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11702
lt_status=$lt_dlunknown
11703
cat > conftest.$ac_ext <<_LT_EOF
11704
#line $LINENO "configure"
11705
#include "confdefs.h"
11714
# define LT_DLGLOBAL RTLD_GLOBAL
11717
# define LT_DLGLOBAL DL_GLOBAL
11719
# define LT_DLGLOBAL 0
11723
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11724
find out it does not work in some platform. */
11725
#ifndef LT_DLLAZY_OR_NOW
11727
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11730
# define LT_DLLAZY_OR_NOW DL_LAZY
11733
# define LT_DLLAZY_OR_NOW RTLD_NOW
11736
# define LT_DLLAZY_OR_NOW DL_NOW
11738
# define LT_DLLAZY_OR_NOW 0
11745
/* When -fvisbility=hidden is used, assume the code has been annotated
11746
correspondingly for the symbols needed. */
11747
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11748
int fnord () __attribute__((visibility("default")));
11751
int fnord () { return 42; }
11754
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11755
int status = $lt_dlunknown;
11759
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11762
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11763
else puts (dlerror ());
11765
/* dlclose (self); */
11773
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11774
(eval $ac_link) 2>&5
11776
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11777
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11778
(./conftest; exit; ) >&5 2>/dev/null
11780
case x$lt_status in
11781
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11782
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11783
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11786
# compilation failed
11787
lt_cv_dlopen_self_static=no
11794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11795
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11798
CPPFLAGS="$save_CPPFLAGS"
11799
LDFLAGS="$save_LDFLAGS"
11804
case $lt_cv_dlopen_self in
11805
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11806
*) enable_dlopen_self=unknown ;;
11809
case $lt_cv_dlopen_self_static in
11810
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11811
*) enable_dlopen_self_static=unknown ;;
11833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11834
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11835
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11836
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11837
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11839
$as_echo "yes" >&6; }
11841
# FIXME - insert some real tests, host_os isn't really good enough
11844
if test -n "$STRIP" ; then
11845
striplib="$STRIP -x"
11846
old_striplib="$STRIP -S"
11847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11848
$as_echo "yes" >&6; }
11850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851
$as_echo "no" >&6; }
11855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856
$as_echo "no" >&6; }
11872
# Report which library types will actually be built
11873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11874
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11876
$as_echo "$can_build_shared" >&6; }
11878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11879
$as_echo_n "checking whether to build shared libraries... " >&6; }
11880
test "$can_build_shared" = "no" && enable_shared=no
11882
# On AIX, shared libraries and static libraries use the same namespace, and
11883
# are all built from PIC.
11886
test "$enable_shared" = yes && enable_static=no
11887
if test -n "$RANLIB"; then
11888
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11889
postinstall_cmds='$RANLIB $lib'
11894
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11895
test "$enable_shared" = yes && enable_static=no
11899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11900
$as_echo "$enable_shared" >&6; }
11902
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11903
$as_echo_n "checking whether to build static libraries... " >&6; }
11904
# Make sure either enable_shared or enable_static is yes.
11905
test "$enable_shared" = yes || enable_static=yes
11906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11907
$as_echo "$enable_static" >&6; }
11914
ac_cpp='$CPP $CPPFLAGS'
11915
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11916
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11917
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11935
ac_config_commands="$ac_config_commands libtool"
11940
# Only expand once:
11951
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11952
if test -n "$ac_tool_prefix"; then
11953
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11954
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956
$as_echo_n "checking for $ac_word... " >&6; }
11957
if ${ac_cv_path_PKG_CONFIG+:} false; then :
11958
$as_echo_n "(cached) " >&6
11960
case $PKG_CONFIG in
11962
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11965
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966
for as_dir in $PATH
11969
test -z "$as_dir" && as_dir=.
11970
for ac_exec_ext in '' $ac_executable_extensions; do
11971
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11972
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11973
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11983
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11984
if test -n "$PKG_CONFIG"; then
11985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11986
$as_echo "$PKG_CONFIG" >&6; }
11988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989
$as_echo "no" >&6; }
11994
if test -z "$ac_cv_path_PKG_CONFIG"; then
11995
ac_pt_PKG_CONFIG=$PKG_CONFIG
11996
# Extract the first word of "pkg-config", so it can be a program name with args.
11997
set dummy pkg-config; ac_word=$2
11998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999
$as_echo_n "checking for $ac_word... " >&6; }
12000
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12001
$as_echo_n "(cached) " >&6
12003
case $ac_pt_PKG_CONFIG in
12005
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009
for as_dir in $PATH
12012
test -z "$as_dir" && as_dir=.
12013
for ac_exec_ext in '' $ac_executable_extensions; do
12014
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12015
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12016
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12027
if test -n "$ac_pt_PKG_CONFIG"; then
12028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12029
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032
$as_echo "no" >&6; }
12035
if test "x$ac_pt_PKG_CONFIG" = x; then
12038
case $cross_compiling:$ac_tool_warned in
12040
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12041
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12042
ac_tool_warned=yes ;;
12044
PKG_CONFIG=$ac_pt_PKG_CONFIG
12047
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12051
if test -n "$PKG_CONFIG"; then
12052
_pkg_min_version=0.9.0
12053
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12054
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12055
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12057
$as_echo "yes" >&6; }
12059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060
$as_echo "no" >&6; }
12067
# Extract the first word of "gtkdoc-check", so it can be a program name with args.
12068
set dummy gtkdoc-check; ac_word=$2
12069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12070
$as_echo_n "checking for $ac_word... " >&6; }
12071
if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12072
$as_echo_n "(cached) " >&6
12074
case $GTKDOC_CHECK in
12076
ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12079
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080
for as_dir in $PATH
12083
test -z "$as_dir" && as_dir=.
12084
for ac_exec_ext in '' $ac_executable_extensions; do
12085
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12086
ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12087
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12097
GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12098
if test -n "$GTKDOC_CHECK"; then
12099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12100
$as_echo "$GTKDOC_CHECK" >&6; }
12102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103
$as_echo "no" >&6; }
12107
for ac_prog in gtkdoc-rebase
12109
# Extract the first word of "$ac_prog", so it can be a program name with args.
12110
set dummy $ac_prog; ac_word=$2
12111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12112
$as_echo_n "checking for $ac_word... " >&6; }
12113
if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
12114
$as_echo_n "(cached) " >&6
12116
case $GTKDOC_REBASE in
12118
ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122
for as_dir in $PATH
12125
test -z "$as_dir" && as_dir=.
12126
for ac_exec_ext in '' $ac_executable_extensions; do
12127
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12128
ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12129
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12139
GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12140
if test -n "$GTKDOC_REBASE"; then
12141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12142
$as_echo "$GTKDOC_REBASE" >&6; }
12144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145
$as_echo "no" >&6; }
12149
test -n "$GTKDOC_REBASE" && break
12151
test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12153
# Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12154
set dummy gtkdoc-mkpdf; ac_word=$2
12155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12156
$as_echo_n "checking for $ac_word... " >&6; }
12157
if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
12158
$as_echo_n "(cached) " >&6
12160
case $GTKDOC_MKPDF in
12162
ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12165
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12166
for as_dir in $PATH
12169
test -z "$as_dir" && as_dir=.
12170
for ac_exec_ext in '' $ac_executable_extensions; do
12171
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12172
ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12173
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12183
GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12184
if test -n "$GTKDOC_MKPDF"; then
12185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12186
$as_echo "$GTKDOC_MKPDF" >&6; }
12188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189
$as_echo "no" >&6; }
12195
# Check whether --with-html-dir was given.
12196
if test "${with_html_dir+set}" = set; then :
12197
withval=$with_html_dir;
12199
with_html_dir='${datadir}/gtk-doc/html'
12202
HTML_DIR="$with_html_dir"
12205
# Check whether --enable-gtk-doc was given.
12206
if test "${enable_gtk_doc+set}" = set; then :
12207
enableval=$enable_gtk_doc;
12213
if test x$enable_gtk_doc = xyes; then
12214
if test -n "$PKG_CONFIG" && \
12215
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.1\""; } >&5
12216
($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.1") 2>&5
12218
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12219
test $ac_status = 0; }; then
12222
as_fn_error $? "You need to have gtk-doc >= 1.1 installed to build $PACKAGE_NAME" "$LINENO" 5
12226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12227
$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12229
$as_echo "$enable_gtk_doc" >&6; }
12231
# Check whether --enable-gtk-doc-html was given.
12232
if test "${enable_gtk_doc_html+set}" = set; then :
12233
enableval=$enable_gtk_doc_html;
12235
enable_gtk_doc_html=yes
12238
# Check whether --enable-gtk-doc-pdf was given.
12239
if test "${enable_gtk_doc_pdf+set}" = set; then :
12240
enableval=$enable_gtk_doc_pdf;
12242
enable_gtk_doc_pdf=no
12246
if test -z "$GTKDOC_MKPDF"; then
12247
enable_gtk_doc_pdf=no
12251
if test x$enable_gtk_doc = xyes; then
12252
ENABLE_GTK_DOC_TRUE=
12253
ENABLE_GTK_DOC_FALSE='#'
12255
ENABLE_GTK_DOC_TRUE='#'
12256
ENABLE_GTK_DOC_FALSE=
12259
if test x$enable_gtk_doc_html = xyes; then
12260
GTK_DOC_BUILD_HTML_TRUE=
12261
GTK_DOC_BUILD_HTML_FALSE='#'
12263
GTK_DOC_BUILD_HTML_TRUE='#'
12264
GTK_DOC_BUILD_HTML_FALSE=
12267
if test x$enable_gtk_doc_pdf = xyes; then
12268
GTK_DOC_BUILD_PDF_TRUE=
12269
GTK_DOC_BUILD_PDF_FALSE='#'
12271
GTK_DOC_BUILD_PDF_TRUE='#'
12272
GTK_DOC_BUILD_PDF_FALSE=
12275
if test -n "$LIBTOOL"; then
12276
GTK_DOC_USE_LIBTOOL_TRUE=
12277
GTK_DOC_USE_LIBTOOL_FALSE='#'
12279
GTK_DOC_USE_LIBTOOL_TRUE='#'
12280
GTK_DOC_USE_LIBTOOL_FALSE=
12283
if test -n "$GTKDOC_REBASE"; then
12284
GTK_DOC_USE_REBASE_TRUE=
12285
GTK_DOC_USE_REBASE_FALSE='#'
12287
GTK_DOC_USE_REBASE_TRUE='#'
12288
GTK_DOC_USE_REBASE_FALSE=
12293
HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
12296
# Check whether --enable-ld-version-script was given.
12297
if test "${enable_ld_version_script+set}" = set; then :
12298
enableval=$enable_ld_version_script; have_ld_version_script=$enableval
12301
if test -z "$have_ld_version_script"; then
12302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
12303
$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
12304
save_LDFLAGS="$LDFLAGS"
12305
LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
12306
cat > conftest.map <<EOF
12309
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310
/* end confdefs.h. */
12320
if ac_fn_c_try_link "$LINENO"; then :
12321
accepts_syntax_errors=yes
12323
accepts_syntax_errors=no
12325
rm -f core conftest.err conftest.$ac_objext \
12326
conftest$ac_exeext conftest.$ac_ext
12327
if test "$accepts_syntax_errors" = no; then
12328
cat > conftest.map <<EOF
12337
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338
/* end confdefs.h. */
12348
if ac_fn_c_try_link "$LINENO"; then :
12349
have_ld_version_script=yes
12351
have_ld_version_script=no
12353
rm -f core conftest.err conftest.$ac_objext \
12354
conftest$ac_exeext conftest.$ac_ext
12356
have_ld_version_script=no
12359
LDFLAGS="$save_LDFLAGS"
12360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
12361
$as_echo "$have_ld_version_script" >&6; }
12363
if test "$have_ld_version_script" = "yes"; then
12364
HAVE_LD_VERSION_SCRIPT_TRUE=
12365
HAVE_LD_VERSION_SCRIPT_FALSE='#'
12367
HAVE_LD_VERSION_SCRIPT_TRUE='#'
12368
HAVE_LD_VERSION_SCRIPT_FALSE=
12375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBJSON" >&5
12376
$as_echo_n "checking for LIBJSON... " >&6; }
12378
if test -n "$LIBJSON_CFLAGS"; then
12379
pkg_cv_LIBJSON_CFLAGS="$LIBJSON_CFLAGS"
12380
elif test -n "$PKG_CONFIG"; then
12381
if test -n "$PKG_CONFIG" && \
12382
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
12383
($PKG_CONFIG --exists --print-errors "json-c") 2>&5
12385
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12386
test $ac_status = 0; }; then
12387
pkg_cv_LIBJSON_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
12388
test "x$?" != "x0" && pkg_failed=yes
12395
if test -n "$LIBJSON_LIBS"; then
12396
pkg_cv_LIBJSON_LIBS="$LIBJSON_LIBS"
12397
elif test -n "$PKG_CONFIG"; then
12398
if test -n "$PKG_CONFIG" && \
12399
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
12400
($PKG_CONFIG --exists --print-errors "json-c") 2>&5
12402
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12403
test $ac_status = 0; }; then
12404
pkg_cv_LIBJSON_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
12405
test "x$?" != "x0" && pkg_failed=yes
12415
if test $pkg_failed = yes; then
12416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417
$as_echo "no" >&6; }
12419
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12420
_pkg_short_errors_supported=yes
12422
_pkg_short_errors_supported=no
12424
if test $_pkg_short_errors_supported = yes; then
12425
LIBJSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
12427
LIBJSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
12429
# Put the nasty error message in config.log where it belongs
12430
echo "$LIBJSON_PKG_ERRORS" >&5
12435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBJSON" >&5
12436
$as_echo_n "checking for LIBJSON... " >&6; }
12438
if test -n "$LIBJSON_CFLAGS"; then
12439
pkg_cv_LIBJSON_CFLAGS="$LIBJSON_CFLAGS"
12440
elif test -n "$PKG_CONFIG"; then
12441
if test -n "$PKG_CONFIG" && \
12442
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
12443
($PKG_CONFIG --exists --print-errors "json") 2>&5
12445
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12446
test $ac_status = 0; }; then
12447
pkg_cv_LIBJSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
12448
test "x$?" != "x0" && pkg_failed=yes
12455
if test -n "$LIBJSON_LIBS"; then
12456
pkg_cv_LIBJSON_LIBS="$LIBJSON_LIBS"
12457
elif test -n "$PKG_CONFIG"; then
12458
if test -n "$PKG_CONFIG" && \
12459
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
12460
($PKG_CONFIG --exists --print-errors "json") 2>&5
12462
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12463
test $ac_status = 0; }; then
12464
pkg_cv_LIBJSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
12465
test "x$?" != "x0" && pkg_failed=yes
12475
if test $pkg_failed = yes; then
12476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477
$as_echo "no" >&6; }
12479
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12480
_pkg_short_errors_supported=yes
12482
_pkg_short_errors_supported=no
12484
if test $_pkg_short_errors_supported = yes; then
12485
LIBJSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
12487
LIBJSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
12489
# Put the nasty error message in config.log where it belongs
12490
echo "$LIBJSON_PKG_ERRORS" >&5
12492
as_fn_error $? "Package requirements (json) were not met:
12494
$LIBJSON_PKG_ERRORS
12496
Consider adjusting the PKG_CONFIG_PATH environment variable if you
12497
installed software in a non-standard prefix.
12499
Alternatively, you may set the environment variables LIBJSON_CFLAGS
12500
and LIBJSON_LIBS to avoid the need to call pkg-config.
12501
See the pkg-config man page for more details." "$LINENO" 5
12502
elif test $pkg_failed = untried; then
12503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504
$as_echo "no" >&6; }
12505
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12506
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12507
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12508
is in your PATH or set the PKG_CONFIG environment variable to the full
12509
path to pkg-config.
12511
Alternatively, you may set the environment variables LIBJSON_CFLAGS
12512
and LIBJSON_LIBS to avoid the need to call pkg-config.
12513
See the pkg-config man page for more details.
12515
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12516
See \`config.log' for more details" "$LINENO" 5; }
12518
LIBJSON_CFLAGS=$pkg_cv_LIBJSON_CFLAGS
12519
LIBJSON_LIBS=$pkg_cv_LIBJSON_LIBS
12520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12521
$as_echo "yes" >&6; }
12524
elif test $pkg_failed = untried; then
12525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526
$as_echo "no" >&6; }
12530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBJSON" >&5
12531
$as_echo_n "checking for LIBJSON... " >&6; }
12533
if test -n "$LIBJSON_CFLAGS"; then
12534
pkg_cv_LIBJSON_CFLAGS="$LIBJSON_CFLAGS"
12535
elif test -n "$PKG_CONFIG"; then
12536
if test -n "$PKG_CONFIG" && \
12537
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
12538
($PKG_CONFIG --exists --print-errors "json") 2>&5
12540
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12541
test $ac_status = 0; }; then
12542
pkg_cv_LIBJSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
12543
test "x$?" != "x0" && pkg_failed=yes
12550
if test -n "$LIBJSON_LIBS"; then
12551
pkg_cv_LIBJSON_LIBS="$LIBJSON_LIBS"
12552
elif test -n "$PKG_CONFIG"; then
12553
if test -n "$PKG_CONFIG" && \
12554
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
12555
($PKG_CONFIG --exists --print-errors "json") 2>&5
12557
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12558
test $ac_status = 0; }; then
12559
pkg_cv_LIBJSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
12560
test "x$?" != "x0" && pkg_failed=yes
12570
if test $pkg_failed = yes; then
12571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12572
$as_echo "no" >&6; }
12574
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12575
_pkg_short_errors_supported=yes
12577
_pkg_short_errors_supported=no
12579
if test $_pkg_short_errors_supported = yes; then
12580
LIBJSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
12582
LIBJSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
12584
# Put the nasty error message in config.log where it belongs
12585
echo "$LIBJSON_PKG_ERRORS" >&5
12587
as_fn_error $? "Package requirements (json) were not met:
12589
$LIBJSON_PKG_ERRORS
12591
Consider adjusting the PKG_CONFIG_PATH environment variable if you
12592
installed software in a non-standard prefix.
12594
Alternatively, you may set the environment variables LIBJSON_CFLAGS
12595
and LIBJSON_LIBS to avoid the need to call pkg-config.
12596
See the pkg-config man page for more details." "$LINENO" 5
12597
elif test $pkg_failed = untried; then
12598
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12599
$as_echo "no" >&6; }
12600
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12601
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12602
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12603
is in your PATH or set the PKG_CONFIG environment variable to the full
12604
path to pkg-config.
12606
Alternatively, you may set the environment variables LIBJSON_CFLAGS
12607
and LIBJSON_LIBS to avoid the need to call pkg-config.
12608
See the pkg-config man page for more details.
12610
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12611
See \`config.log' for more details" "$LINENO" 5; }
12613
LIBJSON_CFLAGS=$pkg_cv_LIBJSON_CFLAGS
12614
LIBJSON_LIBS=$pkg_cv_LIBJSON_LIBS
12615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12616
$as_echo "yes" >&6; }
12620
LIBJSON_CFLAGS=$pkg_cv_LIBJSON_CFLAGS
12621
LIBJSON_LIBS=$pkg_cv_LIBJSON_LIBS
12622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12623
$as_echo "yes" >&6; }
12627
# Check for json_object_object_get_ext
12628
am_save_CFLAGS="$CFLAGS"
12629
am_save_LIBS="$LIBS"
12630
CFLAGS="$CFLAGS $LIBJSON_CFLAGS"
12631
LIBS="$LIBS $LIBJSON_LIBS"
12632
for ac_func in json_object_object_get_ex
12634
ac_fn_c_check_func "$LINENO" "json_object_object_get_ex" "ac_cv_func_json_object_object_get_ex"
12635
if test "x$ac_cv_func_json_object_object_get_ex" = xyes; then :
12636
cat >>confdefs.h <<_ACEOF
12637
#define HAVE_JSON_OBJECT_OBJECT_GET_EX 1
12643
CFLAGS=$am_save_CFLAGS
12648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSSL" >&5
12649
$as_echo_n "checking for LIBSSL... " >&6; }
12651
if test -n "$LIBSSL_CFLAGS"; then
12652
pkg_cv_LIBSSL_CFLAGS="$LIBSSL_CFLAGS"
12653
elif test -n "$PKG_CONFIG"; then
12654
if test -n "$PKG_CONFIG" && \
12655
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
12656
($PKG_CONFIG --exists --print-errors "libssl") 2>&5
12658
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659
test $ac_status = 0; }; then
12660
pkg_cv_LIBSSL_CFLAGS=`$PKG_CONFIG --cflags "libssl" 2>/dev/null`
12661
test "x$?" != "x0" && pkg_failed=yes
12668
if test -n "$LIBSSL_LIBS"; then
12669
pkg_cv_LIBSSL_LIBS="$LIBSSL_LIBS"
12670
elif test -n "$PKG_CONFIG"; then
12671
if test -n "$PKG_CONFIG" && \
12672
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
12673
($PKG_CONFIG --exists --print-errors "libssl") 2>&5
12675
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12676
test $ac_status = 0; }; then
12677
pkg_cv_LIBSSL_LIBS=`$PKG_CONFIG --libs "libssl" 2>/dev/null`
12678
test "x$?" != "x0" && pkg_failed=yes
12688
if test $pkg_failed = yes; then
12689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690
$as_echo "no" >&6; }
12692
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12693
_pkg_short_errors_supported=yes
12695
_pkg_short_errors_supported=no
12697
if test $_pkg_short_errors_supported = yes; then
12698
LIBSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl" 2>&1`
12700
LIBSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl" 2>&1`
12702
# Put the nasty error message in config.log where it belongs
12703
echo "$LIBSSL_PKG_ERRORS" >&5
12705
as_fn_error $? "Package requirements (libssl) were not met:
12709
Consider adjusting the PKG_CONFIG_PATH environment variable if you
12710
installed software in a non-standard prefix.
12712
Alternatively, you may set the environment variables LIBSSL_CFLAGS
12713
and LIBSSL_LIBS to avoid the need to call pkg-config.
12714
See the pkg-config man page for more details." "$LINENO" 5
12715
elif test $pkg_failed = untried; then
12716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717
$as_echo "no" >&6; }
12718
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12719
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12720
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12721
is in your PATH or set the PKG_CONFIG environment variable to the full
12722
path to pkg-config.
12724
Alternatively, you may set the environment variables LIBSSL_CFLAGS
12725
and LIBSSL_LIBS to avoid the need to call pkg-config.
12726
See the pkg-config man page for more details.
12728
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12729
See \`config.log' for more details" "$LINENO" 5; }
12731
LIBSSL_CFLAGS=$pkg_cv_LIBSSL_CFLAGS
12732
LIBSSL_LIBS=$pkg_cv_LIBSSL_LIBS
12733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12734
$as_echo "yes" >&6; }
12740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
12741
$as_echo_n "checking for CHECK... " >&6; }
12743
if test -n "$CHECK_CFLAGS"; then
12744
pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
12745
elif test -n "$PKG_CONFIG"; then
12746
if test -n "$PKG_CONFIG" && \
12747
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check\""; } >&5
12748
($PKG_CONFIG --exists --print-errors "check") 2>&5
12750
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12751
test $ac_status = 0; }; then
12752
pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check" 2>/dev/null`
12753
test "x$?" != "x0" && pkg_failed=yes
12760
if test -n "$CHECK_LIBS"; then
12761
pkg_cv_CHECK_LIBS="$CHECK_LIBS"
12762
elif test -n "$PKG_CONFIG"; then
12763
if test -n "$PKG_CONFIG" && \
12764
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check\""; } >&5
12765
($PKG_CONFIG --exists --print-errors "check") 2>&5
12767
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12768
test $ac_status = 0; }; then
12769
pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check" 2>/dev/null`
12770
test "x$?" != "x0" && pkg_failed=yes
12780
if test $pkg_failed = yes; then
12781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782
$as_echo "no" >&6; }
12784
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12785
_pkg_short_errors_supported=yes
12787
_pkg_short_errors_supported=no
12789
if test $_pkg_short_errors_supported = yes; then
12790
CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check" 2>&1`
12792
CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check" 2>&1`
12794
# Put the nasty error message in config.log where it belongs
12795
echo "$CHECK_PKG_ERRORS" >&5
12797
as_fn_error $? "Package requirements (check) were not met:
12801
Consider adjusting the PKG_CONFIG_PATH environment variable if you
12802
installed software in a non-standard prefix.
12804
Alternatively, you may set the environment variables CHECK_CFLAGS
12805
and CHECK_LIBS to avoid the need to call pkg-config.
12806
See the pkg-config man page for more details." "$LINENO" 5
12807
elif test $pkg_failed = untried; then
12808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809
$as_echo "no" >&6; }
12810
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12811
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12812
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12813
is in your PATH or set the PKG_CONFIG environment variable to the full
12814
path to pkg-config.
12816
Alternatively, you may set the environment variables CHECK_CFLAGS
12817
and CHECK_LIBS to avoid the need to call pkg-config.
12818
See the pkg-config man page for more details.
12820
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12821
See \`config.log' for more details" "$LINENO" 5; }
12823
CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
12824
CHECK_LIBS=$pkg_cv_CHECK_LIBS
12825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12826
$as_echo "yes" >&6; }
12830
# Check whether --enable-gcc-warnings was given.
12831
if test "${enable_gcc_warnings+set}" = set; then :
12832
enableval=$enable_gcc_warnings; case $enableval in
12834
*) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
12836
gl_gcc_warnings=$enableval
12843
if test "$gl_gcc_warnings" = yes; then
12844
nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
12845
nw="$nw -Wpadded" # Struct's arenot padded
12846
nw="$nw -Wc++-compat" # We don't care strongly about C++ compilers
12847
nw="$nw -Wtraditional" # Warns on #elif which we use often
12848
nw="$nw -Wtraditional-conversion" # Too many warnings for now
12849
nw="$nw -Wconversion" # Too many warnings for now
12850
nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes?
12851
nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes?
12855
if test -n "$GCC"; then
12857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
12858
$as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
12859
if ${gl_cv_cc_nomfi_supported+:} false; then :
12860
$as_echo_n "(cached) " >&6
12863
gl_save_CFLAGS="$CFLAGS"
12864
CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
12865
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866
/* end confdefs.h. */
12876
if ac_fn_c_try_compile "$LINENO"; then :
12877
gl_cv_cc_nomfi_supported=yes
12879
gl_cv_cc_nomfi_supported=no
12881
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882
CFLAGS="$gl_save_CFLAGS"
12885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
12886
$as_echo "$gl_cv_cc_nomfi_supported" >&6; }
12888
if test "$gl_cv_cc_nomfi_supported" = yes; then
12889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
12890
$as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
12891
if ${gl_cv_cc_nomfi_needed+:} false; then :
12892
$as_echo_n "(cached) " >&6
12895
gl_save_CFLAGS="$CFLAGS"
12896
CFLAGS="$CFLAGS -W -Werror"
12897
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898
/* end confdefs.h. */
12901
typedef struct { int a; int b; } s_t;
12913
if ac_fn_c_try_compile "$LINENO"; then :
12914
gl_cv_cc_nomfi_needed=no
12916
gl_cv_cc_nomfi_needed=yes
12918
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919
CFLAGS="$gl_save_CFLAGS"
12923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
12924
$as_echo "$gl_cv_cc_nomfi_needed" >&6; }
12927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
12928
$as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
12929
if ${gl_cv_cc_uninitialized_supported+:} false; then :
12930
$as_echo_n "(cached) " >&6
12933
gl_save_CFLAGS="$CFLAGS"
12934
CFLAGS="$CFLAGS -Werror -Wuninitialized"
12935
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936
/* end confdefs.h. */
12946
if ac_fn_c_try_compile "$LINENO"; then :
12947
gl_cv_cc_uninitialized_supported=yes
12949
gl_cv_cc_uninitialized_supported=no
12951
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12952
CFLAGS="$gl_save_CFLAGS"
12955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
12956
$as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
12960
# List all gcc warning categories.
12961
# To compare this list to your installed GCC's, run this Bash command:
12964
# <(sed -n 's/^ *\(-[^ ]*\) .*/\1/p' manywarnings.m4 | sort) \
12965
# <(gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort |
12967
# awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec))
12970
for gl_manywarn_item in \
12974
-Waggressive-loop-optimizations \
12978
-Wbad-function-cast \
12979
-Wbuiltin-macro-redefined \
12981
-Wchar-subscripts \
12985
-Wcoverage-mismatch \
12989
-Wdeprecated-declarations \
12990
-Wdisabled-optimization \
12992
-Wdouble-promotion \
12997
-Wformat-contains-nul \
12998
-Wformat-extra-args \
12999
-Wformat-nonliteral \
13000
-Wformat-security \
13002
-Wformat-zero-length \
13003
-Wfree-nonheap-object \
13004
-Wignored-qualifiers \
13006
-Wimplicit-function-declaration \
13010
-Wint-to-pointer-cast \
13011
-Winvalid-memory-model \
13013
-Wjump-misses-init \
13016
-Wmaybe-uninitialized \
13018
-Wmissing-declarations \
13019
-Wmissing-field-initializers \
13020
-Wmissing-include-dirs \
13021
-Wmissing-parameter-type \
13022
-Wmissing-prototypes \
13027
-Wold-style-declaration \
13028
-Wold-style-definition \
13031
-Woverlength-strings \
13034
-Wpacked-bitfield-compat \
13038
-Wpointer-to-int-cast \
13040
-Wreturn-local-addr \
13044
-Wsizeof-pointer-memaccess \
13045
-Wstack-protector \
13046
-Wstrict-aliasing \
13047
-Wstrict-overflow \
13048
-Wstrict-prototypes \
13049
-Wsuggest-attribute=const \
13050
-Wsuggest-attribute=format \
13051
-Wsuggest-attribute=noreturn \
13052
-Wsuggest-attribute=pure \
13061
-Wunknown-pragmas \
13062
-Wunsafe-loop-optimizations \
13064
-Wunused-but-set-parameter \
13065
-Wunused-but-set-variable \
13066
-Wunused-function \
13068
-Wunused-local-typedefs \
13070
-Wunused-parameter \
13073
-Wunused-variable \
13075
-Wvariadic-macros \
13076
-Wvector-operation-performance \
13078
-Wvolatile-register-var \
13082
gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
13085
# gcc --help=warnings outputs an unusual form for this option; list
13086
# it here so that the above 'comm' command doesn't report a false match.
13087
gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc"
13089
# These are needed for older GCC versions.
13090
if test -n "$GCC"; then
13091
case `($CC --version) 2>/dev/null` in
13092
'gcc (GCC) '[0-3].* | \
13093
'gcc (GCC) '4.[0-7].*)
13094
gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option"
13095
gl_manywarn_set="$gl_manywarn_set -funit-at-a-time"
13100
# Disable specific options as needed.
13101
if test "$gl_cv_cc_nomfi_needed" = yes; then
13102
gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
13105
if test "$gl_cv_cc_uninitialized_supported" = no; then
13106
gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
13109
ws=$gl_manywarn_set
13117
*" $gl_warn_item "*)
13120
gl_warn_set="$gl_warn_set $gl_warn_item"
13127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
13128
$as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
13129
if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
13130
$as_echo_n "(cached) " >&6
13133
gl_save_compiler_FLAGS="$CFLAGS"
13134
as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
13135
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136
/* end confdefs.h. */
13146
if ac_fn_c_try_compile "$LINENO"; then :
13147
gl_cv_warn_c__Werror__Wunknown_warning_option=yes
13149
gl_cv_warn_c__Werror__Wunknown_warning_option=no
13151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152
CFLAGS="$gl_save_compiler_FLAGS"
13155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
13156
$as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
13157
if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
13158
gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
13160
gl_unknown_warnings_are_errors=
13164
as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
13165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
13166
$as_echo_n "checking whether C compiler handles $w... " >&6; }
13167
if eval \${$as_gl_Warn+:} false; then :
13168
$as_echo_n "(cached) " >&6
13171
gl_save_compiler_FLAGS="$CFLAGS"
13172
as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $w"
13173
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174
/* end confdefs.h. */
13184
if ac_fn_c_try_compile "$LINENO"; then :
13185
eval "$as_gl_Warn=yes"
13187
eval "$as_gl_Warn=no"
13189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13190
CFLAGS="$gl_save_compiler_FLAGS"
13193
eval ac_res=\$$as_gl_Warn
13194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13195
$as_echo "$ac_res" >&6; }
13196
if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
13197
as_fn_append WARN_CFLAGS " $w"
13204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
13205
$as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
13206
if ${gl_cv_warn_c__fdiagnostics_show_option+:} false; then :
13207
$as_echo_n "(cached) " >&6
13210
gl_save_compiler_FLAGS="$CFLAGS"
13211
as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
13212
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213
/* end confdefs.h. */
13223
if ac_fn_c_try_compile "$LINENO"; then :
13224
gl_cv_warn_c__fdiagnostics_show_option=yes
13226
gl_cv_warn_c__fdiagnostics_show_option=no
13228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13229
CFLAGS="$gl_save_compiler_FLAGS"
13232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
13233
$as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
13234
if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes; then :
13235
as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
13241
U2FS_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/\(.*\)\..*\..*/\1/g'`
13243
U2FS_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/.*\.\(.*\)\..*/\1/g'`
13245
U2FS_VERSION_PATCH=`echo $PACKAGE_VERSION | sed 's/.*\..*\.\(.*\)/\1/g'`
13247
U2FS_VERSION_NUMBER=`printf "0x%02x%02x%02x" $U2FS_VERSION_MAJOR \
13248
$U2FS_VERSION_MINOR $U2FS_VERSION_PATCH`
13251
ac_config_files="$ac_config_files Makefile gtk-doc/Makefile src/Makefile tests/Makefile u2f-server/Makefile u2f-server/u2f-server-version.h u2f-server/u2f-server.pc"
13253
cat >confcache <<\_ACEOF
13254
# This file is a shell script that caches the results of configure
13255
# tests run on this system so they can be shared between configure
13256
# scripts and configure runs, see configure's option --config-cache.
13257
# It is not useful on other systems. If it contains results you don't
13258
# want to keep, you may remove or edit it.
13260
# config.status only pays attention to the cache file if you give it
13261
# the --recheck option to rerun configure.
13263
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13264
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13265
# following values.
13269
# The following way of writing the cache mishandles newlines in values,
13270
# but we know of no workaround that is simple, portable, and efficient.
13271
# So, we kill variables containing newlines.
13272
# Ultrix sh set writes to stderr and can't be redirected directly,
13273
# and sets the high bit in the cache file unless we assign to the vars.
13275
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13276
eval ac_val=\$$ac_var
13280
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13281
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13284
_ | IFS | as_nl) ;; #(
13285
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13286
*) { eval $ac_var=; unset $ac_var;} ;;
13292
case $as_nl`(ac_space=' '; set) 2>&1` in #(
13293
*${as_nl}ac_space=\ *)
13294
# `set' does not quote correctly, so add quotes: double-quote
13295
# substitution turns \\\\ into \\, and sed turns \\ into \.
13298
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13301
# `set' quotes correctly as required by POSIX, so do not add quotes.
13302
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13311
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13313
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13315
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13316
if test -w "$cache_file"; then
13317
if test "x$cache_file" != "x/dev/null"; then
13318
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13319
$as_echo "$as_me: updating cache $cache_file" >&6;}
13320
if test ! -f "$cache_file" || test -h "$cache_file"; then
13321
cat confcache >"$cache_file"
13323
case $cache_file in #(
13325
mv -f confcache "$cache_file"$$ &&
13326
mv -f "$cache_file"$$ "$cache_file" ;; #(
13328
mv -f confcache "$cache_file" ;;
13333
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13334
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13339
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13340
# Let make expand exec_prefix.
13341
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13343
# Transform confdefs.h into DEFS.
13344
# Protect against shell expansion while executing Makefile rules.
13345
# Protect against Makefile macro expansion.
13347
# If the first sed substitution is executed (which looks for macros that
13348
# take arguments), then branch to the quote section. Otherwise,
13349
# look for a macro that doesn't take arguments.
13359
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13361
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13365
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13378
DEFS=`sed -n "$ac_script" confdefs.h`
13384
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13385
# 1. Remove the extension, and $U if already installed.
13386
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13387
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13388
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13389
# will be set to the directory where LIBOBJS objects are built.
13390
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13391
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13393
LIBOBJS=$ac_libobjs
13395
LTLIBOBJS=$ac_ltlibobjs
13398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13399
$as_echo_n "checking that generated files are newer than configure... " >&6; }
13400
if test -n "$am_sleep_pid"; then
13401
# Hide warnings about reused PIDs.
13402
wait $am_sleep_pid 2>/dev/null
13404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13405
$as_echo "done" >&6; }
13406
if test -n "$EXEEXT"; then
13408
am__EXEEXT_FALSE='#'
13410
am__EXEEXT_TRUE='#'
13414
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13415
as_fn_error $? "conditional \"AMDEP\" was never defined.
13416
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13418
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13419
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13420
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13422
if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13423
as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13424
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13426
if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13427
as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13428
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13430
if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13431
as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13432
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13434
if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13435
as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13436
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13438
if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13439
as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13440
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13442
if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13443
as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13444
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13447
: "${CONFIG_STATUS=./config.status}"
13449
ac_clean_files_save=$ac_clean_files
13450
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13451
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13452
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13454
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13456
# Generated by $as_me.
13457
# Run this file to recreate the current configuration.
13458
# Compiler output produced by configure, useful for debugging
13459
# configure, is in config.log if it exists.
13462
ac_cs_recheck=false
13465
SHELL=\${CONFIG_SHELL-$SHELL}
13468
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13469
## -------------------- ##
13470
## M4sh Initialization. ##
13471
## -------------------- ##
13473
# Be more Bourne compatible
13474
DUALCASE=1; export DUALCASE # for MKS sh
13475
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13478
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13479
# is contrary to our usage. Disable this feature.
13480
alias -g '${1+"$@"}'='"$@"'
13481
setopt NO_GLOB_SUBST
13483
case `(set -o) 2>/dev/null` in #(
13495
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13496
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13497
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13498
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13499
# Prefer a ksh shell builtin over an external printf program on Solaris,
13500
# but without wasting forks for bash or zsh.
13501
if test -z "$BASH_VERSION$ZSH_VERSION" \
13502
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13503
as_echo='print -r --'
13504
as_echo_n='print -rn --'
13505
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13506
as_echo='printf %s\n'
13507
as_echo_n='printf %s'
13509
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13510
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13511
as_echo_n='/usr/ucb/echo -n'
13513
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13514
as_echo_n_body='eval
13518
expr "X$arg" : "X\\(.*\\)$as_nl";
13519
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13521
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13523
export as_echo_n_body
13524
as_echo_n='sh -c $as_echo_n_body as_echo'
13526
export as_echo_body
13527
as_echo='sh -c $as_echo_body as_echo'
13530
# The user is always right.
13531
if test "${PATH_SEPARATOR+set}" != set; then
13533
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13534
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13541
# We need space, tab and new line, in precisely that order. Quoting is
13542
# there to prevent editors from complaining about space-tab.
13543
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13544
# splitting by setting IFS to empty value.)
13547
# Find who we are. Look in the path if we contain no directory separator.
13550
*[\\/]* ) as_myself=$0 ;;
13551
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552
for as_dir in $PATH
13555
test -z "$as_dir" && as_dir=.
13556
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13562
# We did not find ourselves, most probably we were run as `sh COMMAND'
13563
# in which case we are not to be found in the path.
13564
if test "x$as_myself" = x; then
13567
if test ! -f "$as_myself"; then
13568
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13572
# Unset variables that we do not need and which cause bugs (e.g. in
13573
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13574
# suppresses any "Segmentation fault" message there. '((' could
13575
# trigger a bug in pdksh 5.2.14.
13576
for as_var in BASH_ENV ENV MAIL MAILPATH
13577
do eval test x\${$as_var+set} = xset \
13578
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13594
# as_fn_error STATUS ERROR [LINENO LOG_FD]
13595
# ----------------------------------------
13596
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13597
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13598
# script with STATUS, using 1 if that was 0.
13601
as_status=$1; test $as_status -eq 0 && as_status=1
13603
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13604
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13606
$as_echo "$as_me: error: $2" >&2
13607
as_fn_exit $as_status
13611
# as_fn_set_status STATUS
13612
# -----------------------
13613
# Set $? to STATUS, without forking.
13614
as_fn_set_status ()
13617
} # as_fn_set_status
13619
# as_fn_exit STATUS
13620
# -----------------
13621
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13625
as_fn_set_status $1
13631
# Portably unset VAR.
13634
{ eval $1=; unset $1;}
13636
as_unset=as_fn_unset
13637
# as_fn_append VAR VALUE
13638
# ----------------------
13639
# Append the text in VALUE to the end of the definition contained in VAR. Take
13640
# advantage of any shell optimizations that allow amortized linear growth over
13641
# repeated appends, instead of the typical quadratic growth present in naive
13643
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13644
eval 'as_fn_append ()
13655
# as_fn_arith ARG...
13656
# ------------------
13657
# Perform arithmetic evaluation on the ARGs, and store the result in the
13658
# global $as_val. Take advantage of shells that can avoid forks. The arguments
13659
# must be portable across $(()) and expr.
13660
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13661
eval 'as_fn_arith ()
13668
as_val=`expr "$@" || test $? -eq 1`
13673
if expr a : '\(a\)' >/dev/null 2>&1 &&
13674
test "X`expr 00001 : '.*\(...\)'`" = X001; then
13680
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13681
as_basename=basename
13686
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13692
as_me=`$as_basename -- "$0" ||
13693
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13694
X"$0" : 'X\(//\)$' \| \
13695
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13697
sed '/^.*\/\([^/][^/]*\)\/*$/{
13711
# Avoid depending upon Character Ranges.
13712
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13713
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13714
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13715
as_cr_digits='0123456789'
13716
as_cr_alnum=$as_cr_Letters$as_cr_digits
13718
ECHO_C= ECHO_N= ECHO_T=
13719
case `echo -n x` in #(((((
13721
case `echo 'xy\c'` in
13722
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
13724
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13731
rm -f conf$$ conf$$.exe conf$$.file
13732
if test -d conf$$.dir; then
13733
rm -f conf$$.dir/conf$$.file
13736
mkdir conf$$.dir 2>/dev/null
13738
if (echo >conf$$.file) 2>/dev/null; then
13739
if ln -s conf$$.file conf$$ 2>/dev/null; then
13741
# ... but there are two gotchas:
13742
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13743
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13744
# In both cases, we have to default to `cp -pR'.
13745
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13747
elif ln conf$$.file conf$$ 2>/dev/null; then
13755
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13756
rmdir conf$$.dir 2>/dev/null
13761
# Create "$as_dir" as a directory, including parents if necessary.
13766
-*) as_dir=./$as_dir;;
13768
test -d "$as_dir" || eval $as_mkdir_p || {
13772
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13773
*) as_qdir=$as_dir;;
13775
as_dirs="'$as_qdir' $as_dirs"
13776
as_dir=`$as_dirname -- "$as_dir" ||
13777
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13778
X"$as_dir" : 'X\(//\)[^/]' \| \
13779
X"$as_dir" : 'X\(//\)$' \| \
13780
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13781
$as_echo X"$as_dir" |
13782
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13786
/^X\(\/\/\)[^/].*/{
13799
test -d "$as_dir" && break
13801
test -z "$as_dirs" || eval "mkdir $as_dirs"
13802
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13806
if mkdir -p . 2>/dev/null; then
13807
as_mkdir_p='mkdir -p "$as_dir"'
13809
test -d ./-p && rmdir ./-p
13814
# as_fn_executable_p FILE
13815
# -----------------------
13816
# Test if FILE is an executable regular file.
13817
as_fn_executable_p ()
13819
test -f "$1" && test -x "$1"
13820
} # as_fn_executable_p
13821
as_test_x='test -x'
13822
as_executable_p=as_fn_executable_p
13824
# Sed expression to map a string onto a valid CPP name.
13825
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13827
# Sed expression to map a string onto a valid variable name.
13828
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13832
## ----------------------------------- ##
13833
## Main body of $CONFIG_STATUS script. ##
13834
## ----------------------------------- ##
13836
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13838
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13839
# Save the log message, to keep $0 and so on meaningful, and to
13840
# report actual input values of CONFIG_FILES etc. instead of their
13841
# values after options handling.
13843
This file was extended by libu2f-server $as_me 0.0.0, which was
13844
generated by GNU Autoconf 2.69. Invocation command line was
13846
CONFIG_FILES = $CONFIG_FILES
13847
CONFIG_HEADERS = $CONFIG_HEADERS
13848
CONFIG_LINKS = $CONFIG_LINKS
13849
CONFIG_COMMANDS = $CONFIG_COMMANDS
13852
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13857
case $ac_config_files in *"
13858
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13863
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13864
# Files that config.status was made for.
13865
config_files="$ac_config_files"
13866
config_commands="$ac_config_commands"
13870
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13872
\`$as_me' instantiates files and other configuration actions
13873
from templates according to the current configuration. Unless the files
13874
and actions are specified as TAGs, all are instantiated by default.
13876
Usage: $0 [OPTION]... [TAG]...
13878
-h, --help print this help, then exit
13879
-V, --version print version number and configuration settings, then exit
13880
--config print configuration, then exit
13881
-q, --quiet, --silent
13882
do not print progress messages
13883
-d, --debug don't remove temporary files
13884
--recheck update $as_me by reconfiguring in the same conditions
13885
--file=FILE[:TEMPLATE]
13886
instantiate the configuration file FILE
13888
Configuration files:
13891
Configuration commands:
13894
Report bugs to <yubico-devel@googlegroups.com>."
13897
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13898
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13900
libu2f-server config.status 0.0.0
13901
configured by $0, generated by GNU Autoconf 2.69,
13902
with options \\"\$ac_cs_config\\"
13904
Copyright (C) 2012 Free Software Foundation, Inc.
13905
This config.status script is free software; the Free Software Foundation
13906
gives unlimited permission to copy, distribute and modify it."
13913
test -n "\$AWK" || AWK=awk
13916
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13917
# The default lists apply if the user does not specify any file.
13923
ac_option=`expr "X$1" : 'X\([^=]*\)='`
13924
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13928
ac_option=`expr "X$1" : 'X\([^=]*\)='`
13940
# Handling of the options.
13941
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13943
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13944
$as_echo "$ac_cs_version"; exit ;;
13945
--config | --confi | --conf | --con | --co | --c )
13946
$as_echo "$ac_cs_config"; exit ;;
13947
--debug | --debu | --deb | --de | --d | -d )
13949
--file | --fil | --fi | --f )
13952
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13953
'') as_fn_error $? "missing file argument" ;;
13955
as_fn_append CONFIG_FILES " '$ac_optarg'"
13956
ac_need_defaults=false;;
13957
--he | --h | --help | --hel | -h )
13958
$as_echo "$ac_cs_usage"; exit ;;
13959
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
13960
| -silent | --silent | --silen | --sile | --sil | --si | --s)
13963
# This is an error.
13964
-*) as_fn_error $? "unrecognized option: \`$1'
13965
Try \`$0 --help' for more information." ;;
13967
*) as_fn_append ac_config_targets " $1"
13968
ac_need_defaults=false ;;
13974
ac_configure_extra_args=
13976
if $ac_cs_silent; then
13978
ac_configure_extra_args="$ac_configure_extra_args --silent"
13982
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13983
if \$ac_cs_recheck; then
13984
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13986
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13987
CONFIG_SHELL='$SHELL'
13988
export CONFIG_SHELL
13993
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13997
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13998
## Running $as_me. ##
14004
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14008
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14011
# The HP-UX ksh and POSIX shell print the target directory to stdout
14012
# if CDPATH is set.
14013
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14015
sed_quote_subst='$sed_quote_subst'
14016
double_quote_subst='$double_quote_subst'
14017
delay_variable_subst='$delay_variable_subst'
14018
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14019
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14020
AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14021
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14022
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14023
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14024
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14025
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14026
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14027
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14028
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14029
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14030
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14031
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14032
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14033
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14034
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14035
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14036
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14037
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14038
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14039
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14040
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14041
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14042
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14043
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14044
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14045
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14046
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14047
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14048
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14049
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14050
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14051
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14052
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14053
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14054
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14055
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14056
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14057
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14058
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14059
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14060
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14061
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14062
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14063
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14064
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14065
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14066
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14067
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14068
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14069
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14070
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14071
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14072
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14073
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14074
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14075
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14076
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14077
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14078
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14079
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14080
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14081
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14082
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14083
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14084
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14085
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14086
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14087
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14088
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14089
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14090
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14091
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14092
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14093
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14094
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14095
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14096
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14097
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14098
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14099
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14100
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14101
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14102
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14103
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14104
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14105
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14106
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14107
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14108
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14109
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14110
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14111
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14112
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14113
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14114
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14115
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14116
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14117
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14118
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14119
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14120
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14121
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14122
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14123
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14124
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14125
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14126
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14127
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14128
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14129
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14130
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14131
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14132
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14133
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14134
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14135
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14136
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14137
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14138
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14139
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14140
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14141
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14142
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14143
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14144
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14145
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14146
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14147
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14148
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14151
LTCFLAGS='$LTCFLAGS'
14152
compiler='$compiler_DEFAULT'
14154
# A function that is used when there is no print builtin or printf.
14155
func_fallback_echo ()
14157
eval 'cat <<_LTECHO_EOF
14162
# Quote evaled strings.
14179
deplibs_check_method \
14183
sharedlib_from_linklib_cmd \
14186
archiver_list_spec \
14192
lt_cv_sys_global_symbol_pipe \
14193
lt_cv_sys_global_symbol_to_cdecl \
14194
lt_cv_sys_global_symbol_to_c_name_address \
14195
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14196
nm_file_list_spec \
14197
lt_prog_compiler_no_builtin_flag \
14198
lt_prog_compiler_pic \
14199
lt_prog_compiler_wl \
14200
lt_prog_compiler_static \
14201
lt_cv_prog_compiler_c_o \
14210
export_dynamic_flag_spec \
14211
whole_archive_flag_spec \
14212
compiler_needs_object \
14214
allow_undefined_flag \
14215
no_undefined_flag \
14216
hardcode_libdir_flag_spec \
14217
hardcode_libdir_separator \
14221
variables_saved_for_relink \
14223
library_names_spec \
14225
install_override_mode \
14229
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14230
*[\\\\\\\`\\"\\\$]*)
14231
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14234
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14239
# Double-quote double-evaled strings.
14240
for var in reload_cmds \
14241
old_postinstall_cmds \
14242
old_postuninstall_cmds \
14244
extract_expsyms_cmds \
14245
old_archive_from_new_cmds \
14246
old_archive_from_expsyms_cmds \
14248
archive_expsym_cmds \
14250
module_expsym_cmds \
14251
export_symbols_cmds \
14255
postuninstall_cmds \
14257
sys_lib_search_path_spec \
14258
sys_lib_dlsearch_path_spec; do
14259
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14260
*[\\\\\\\`\\"\\\$]*)
14261
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14264
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14269
ac_aux_dir='$ac_aux_dir'
14270
xsi_shell='$xsi_shell'
14271
lt_shell_append='$lt_shell_append'
14273
# See if we are running on zsh, and set the options which allow our
14274
# commands through without removal of \ escapes INIT.
14275
if test -n "\${ZSH_VERSION+set}" ; then
14276
setopt NO_GLOB_SUBST
14282
TIMESTAMP='$TIMESTAMP'
14291
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14293
# Handling of arguments.
14294
for ac_config_target in $ac_config_targets
14296
case $ac_config_target in
14297
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14298
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14299
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14300
"gtk-doc/Makefile") CONFIG_FILES="$CONFIG_FILES gtk-doc/Makefile" ;;
14301
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14302
"tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14303
"u2f-server/Makefile") CONFIG_FILES="$CONFIG_FILES u2f-server/Makefile" ;;
14304
"u2f-server/u2f-server-version.h") CONFIG_FILES="$CONFIG_FILES u2f-server/u2f-server-version.h" ;;
14305
"u2f-server/u2f-server.pc") CONFIG_FILES="$CONFIG_FILES u2f-server/u2f-server.pc" ;;
14307
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14312
# If the user did not use the arguments to specify the items to instantiate,
14313
# then the envvar interface is used. Set only those that are not.
14314
# We use the long form for the default assignment because of an extremely
14315
# bizarre bug on SunOS 4.1.3.
14316
if $ac_need_defaults; then
14317
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14318
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14321
# Have a temporary directory for convenience. Make it in the build tree
14322
# simply because there is no reason against having it here, and in addition,
14323
# creating and moving files from /tmp can sometimes cause problems.
14324
# Hook for its removal unless debugging.
14325
# Note that there is a small window in which the directory will not be cleaned:
14326
# after its creation but before its name has been assigned to `$tmp'.
14330
trap 'exit_status=$?
14331
: "${ac_tmp:=$tmp}"
14332
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14334
trap 'as_fn_exit 1' 1 2 13 15
14336
# Create a (secure) tmp directory for tmp files.
14339
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14343
tmp=./conf$$-$RANDOM
14344
(umask 077 && mkdir "$tmp")
14345
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14348
# Set up the scripts for CONFIG_FILES section.
14349
# No need to generate them if there are no CONFIG_FILES.
14350
# This happens for instance with `./config.status config.h'.
14351
if test -n "$CONFIG_FILES"; then
14354
ac_cr=`echo X | tr X '\015'`
14355
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14356
# But we know of no other shell where ac_cr would be empty at this
14357
# point, so we can use a bashism as a fallback.
14358
if test "x$ac_cr" = x; then
14359
eval ac_cr=\$\'\\r\'
14361
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14362
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14365
ac_cs_awk_cr=$ac_cr
14368
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14373
echo "cat >conf$$subs.awk <<_ACEOF" &&
14374
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14376
} >conf$$subs.sh ||
14377
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14378
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14380
for ac_last_try in false false false false false :; do
14381
. ./conf$$subs.sh ||
14382
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14384
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14385
if test $ac_delim_n = $ac_delim_num; then
14387
elif $ac_last_try; then
14388
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14390
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14393
rm -f conf$$subs.sh
14395
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14396
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14400
s/^/S["/; s/!.*/"]=/
14410
s/\(.\{148\}\)..*/\1/
14412
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14417
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14424
s/\(.\{148\}\)..*/\1/
14426
s/["\\]/\\&/g; s/^/"/; s/$/"/
14430
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14435
' <conf$$subs.awk | sed '
14440
' >>$CONFIG_STATUS || ac_write_fail=1
14441
rm -f conf$$subs.awk
14442
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14444
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14445
for (key in S) S_is_set[key] = 1
14451
nfields = split(line, field, "@")
14453
len = length(field[1])
14454
for (i = 2; i < nfields; i++) {
14456
keylen = length(key)
14457
if (S_is_set[key]) {
14459
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14460
len += length(value) + length(field[++i])
14471
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14472
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14473
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14476
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14477
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14480
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14481
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14482
# trailing colons and then remove the whole line if VPATH becomes empty
14483
# (actually we leave an empty line to preserve line numbers).
14484
if test "x$srcdir" = x.; then
14485
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14503
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14504
fi # test -n "$CONFIG_FILES"
14507
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
14512
:[FHLC]) ac_mode=$ac_tag; continue;;
14514
case $ac_mode$ac_tag in
14516
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14517
:[FH]-) ac_tag=-:-;;
14518
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14535
-) ac_f="$ac_tmp/stdin";;
14536
*) # Look for the file first in the build tree, then in the source tree
14537
# (if the path is not absolute). The absolute path cannot be DOS-style,
14538
# because $ac_f cannot contain `:'.
14542
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14544
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14546
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14547
as_fn_append ac_file_inputs " '$ac_f'"
14550
# Let's still pretend it is `configure' which instantiates (i.e., don't
14551
# use $as_me), people would be surprised to read:
14552
# /* config.h. Generated by config.status. */
14553
configure_input='Generated from '`
14554
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14556
if test x"$ac_file" != x-; then
14557
configure_input="$ac_file. $configure_input"
14558
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14559
$as_echo "$as_me: creating $ac_file" >&6;}
14561
# Neutralize special characters interpreted by sed in replacement strings.
14562
case $configure_input in #(
14563
*\&* | *\|* | *\\* )
14564
ac_sed_conf_input=`$as_echo "$configure_input" |
14565
sed 's/[\\\\&|]/\\\\&/g'`;; #(
14566
*) ac_sed_conf_input=$configure_input;;
14570
*:-:* | *:-) cat >"$ac_tmp/stdin" \
14571
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14576
ac_dir=`$as_dirname -- "$ac_file" ||
14577
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14578
X"$ac_file" : 'X\(//\)[^/]' \| \
14579
X"$ac_file" : 'X\(//\)$' \| \
14580
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14581
$as_echo X"$ac_file" |
14582
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14586
/^X\(\/\/\)[^/].*/{
14599
as_dir="$ac_dir"; as_fn_mkdir_p
14603
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14605
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14606
# A ".." for each directory in $ac_dir_suffix.
14607
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14608
case $ac_top_builddir_sub in
14609
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14610
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14613
ac_abs_top_builddir=$ac_pwd
14614
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14615
# for backward compatibility:
14616
ac_top_builddir=$ac_top_build_prefix
14619
.) # We are building in place.
14621
ac_top_srcdir=$ac_top_builddir_sub
14622
ac_abs_top_srcdir=$ac_pwd ;;
14623
[\\/]* | ?:[\\/]* ) # Absolute name.
14624
ac_srcdir=$srcdir$ac_dir_suffix;
14625
ac_top_srcdir=$srcdir
14626
ac_abs_top_srcdir=$srcdir ;;
14627
*) # Relative name.
14628
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14629
ac_top_srcdir=$ac_top_build_prefix$srcdir
14630
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14632
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14642
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14643
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14645
ac_MKDIR_P=$MKDIR_P
14647
[\\/$]* | ?:[\\/]* ) ;;
14648
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14652
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14653
# If the template does not know about datarootdir, expand it.
14654
# FIXME: This hack should be removed a few years after 2.60.
14655
ac_datarootdir_hack=; ac_datarootdir_seen=
14666
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14667
*datarootdir*) ac_datarootdir_seen=yes;;
14668
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14669
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14670
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14672
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14673
ac_datarootdir_hack='
14674
s&@datadir@&$datadir&g
14675
s&@docdir@&$docdir&g
14676
s&@infodir@&$infodir&g
14677
s&@localedir@&$localedir&g
14678
s&@mandir@&$mandir&g
14679
s&\\\${datarootdir}&$datarootdir&g' ;;
14683
# Neutralize VPATH when `$srcdir' = `.'.
14684
# Shell code in configure.ac might set extrasub.
14685
# FIXME: do we really want to maintain this feature?
14686
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14687
ac_sed_extra="$ac_vpsub
14690
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14692
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14693
s|@configure_input@|$ac_sed_conf_input|;t t
14694
s&@top_builddir@&$ac_top_builddir_sub&;t t
14695
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14696
s&@srcdir@&$ac_srcdir&;t t
14697
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14698
s&@top_srcdir@&$ac_top_srcdir&;t t
14699
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14700
s&@builddir@&$ac_builddir&;t t
14701
s&@abs_builddir@&$ac_abs_builddir&;t t
14702
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14703
s&@INSTALL@&$ac_INSTALL&;t t
14704
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14705
$ac_datarootdir_hack
14707
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14708
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14710
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14711
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14712
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14713
"$ac_tmp/out"`; test -z "$ac_out"; } &&
14714
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14715
which seems to be undefined. Please make sure it is defined" >&5
14716
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14717
which seems to be undefined. Please make sure it is defined" >&2;}
14719
rm -f "$ac_tmp/stdin"
14721
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14722
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14724
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14728
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14729
$as_echo "$as_me: executing $ac_file commands" >&6;}
14734
case $ac_file$ac_mode in
14735
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14736
# Older Autoconf quotes --file arguments for eval, but not when files
14737
# are listed without --file. Let's play safe and only enable the eval
14738
# if we detect the quoting.
14739
case $CONFIG_FILES in
14740
*\'*) eval set x "$CONFIG_FILES" ;;
14741
*) set x $CONFIG_FILES ;;
14746
# Strip MF so we end up with the name of the file.
14747
mf=`echo "$mf" | sed -e 's/:.*$//'`
14748
# Check whether this is an Automake generated Makefile or not.
14749
# We used to match only the files named 'Makefile.in', but
14750
# some people rename them; so instead we look at the file content.
14751
# Grep'ing the first line is not enough: some people post-process
14752
# each Makefile.in and add a new line on top of each file to say so.
14753
# Grep'ing the whole file is not good either: AIX grep has a line
14754
# limit of 2048, but all sed's we know have understand at least 4000.
14755
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14756
dirpart=`$as_dirname -- "$mf" ||
14757
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14758
X"$mf" : 'X\(//\)[^/]' \| \
14759
X"$mf" : 'X\(//\)$' \| \
14760
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14762
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14766
/^X\(\/\/\)[^/].*/{
14782
# Extract the definition of DEPDIR, am__include, and am__quote
14783
# from the Makefile without running 'make'.
14784
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14785
test -z "$DEPDIR" && continue
14786
am__include=`sed -n 's/^am__include = //p' < "$mf"`
14787
test -z "$am__include" && continue
14788
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14789
# Find all dependency output files, they are included files with
14790
# $(DEPDIR) in their names. We invoke sed twice because it is the
14791
# simplest approach to changing $(DEPDIR) to its actual value in the
14793
for file in `sed -n "
14794
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14795
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14796
# Make sure the directory exists.
14797
test -f "$dirpart/$file" && continue
14798
fdir=`$as_dirname -- "$file" ||
14799
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14800
X"$file" : 'X\(//\)[^/]' \| \
14801
X"$file" : 'X\(//\)$' \| \
14802
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14803
$as_echo X"$file" |
14804
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14808
/^X\(\/\/\)[^/].*/{
14821
as_dir=$dirpart/$fdir; as_fn_mkdir_p
14822
# echo "creating $dirpart/$file"
14823
echo '# dummy' > "$dirpart/$file"
14830
# See if we are running on zsh, and set the options which allow our
14831
# commands through without removal of \ escapes.
14832
if test -n "${ZSH_VERSION+set}" ; then
14833
setopt NO_GLOB_SUBST
14836
cfgfile="${ofile}T"
14837
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14840
cat <<_LT_EOF >> "$cfgfile"
14843
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14844
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14845
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14846
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14848
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14849
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14851
# Written by Gordon Matzigkeit, 1996
14853
# This file is part of GNU Libtool.
14855
# GNU Libtool is free software; you can redistribute it and/or
14856
# modify it under the terms of the GNU General Public License as
14857
# published by the Free Software Foundation; either version 2 of
14858
# the License, or (at your option) any later version.
14860
# As a special exception to the GNU General Public License,
14861
# if you distribute this file as part of a program or library that
14862
# is built using GNU Libtool, you may include this file under the
14863
# same distribution terms that you use for the rest of that program.
14865
# GNU Libtool is distributed in the hope that it will be useful,
14866
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14867
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14868
# GNU General Public License for more details.
14870
# You should have received a copy of the GNU General Public License
14871
# along with GNU Libtool; see the file COPYING. If not, a copy
14872
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14873
# obtained by writing to the Free Software Foundation, Inc.,
14874
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14877
# The names of the tagged configurations supported by this script.
14880
# ### BEGIN LIBTOOL CONFIG
14882
# Which release of libtool.m4 was used?
14883
macro_version=$macro_version
14884
macro_revision=$macro_revision
14886
# Assembler program.
14889
# DLL creation program.
14890
DLLTOOL=$lt_DLLTOOL
14892
# Object dumper program.
14893
OBJDUMP=$lt_OBJDUMP
14895
# Whether or not to build shared libraries.
14896
build_libtool_libs=$enable_shared
14898
# Whether or not to build static libraries.
14899
build_old_libs=$enable_static
14901
# What type of objects to build.
14904
# Whether or not to optimize for fast installation.
14905
fast_install=$enable_fast_install
14907
# Shell to use when invoking shell scripts.
14910
# An echo program that protects backslashes.
14913
# The PATH separator for the build system.
14914
PATH_SEPARATOR=$lt_PATH_SEPARATOR
14917
host_alias=$host_alias
14921
# The build system.
14922
build_alias=$build_alias
14926
# A sed program that does not truncate output.
14929
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14930
Xsed="\$SED -e 1s/^X//"
14932
# A grep program that handles long lines.
14938
# A literal string matcher.
14941
# A BSD- or MS-compatible name lister.
14944
# Whether we need soft or hard links.
14947
# What is the maximum length of a command?
14948
max_cmd_len=$max_cmd_len
14950
# Object file suffix (normally "o").
14953
# Executable file suffix (normally "").
14956
# whether the shell understands "unset".
14959
# turn spaces into newlines.
14962
# turn newlines into spaces.
14965
# convert \$build file names to \$host format.
14966
to_host_file_cmd=$lt_cv_to_host_file_cmd
14968
# convert \$build files to toolchain format.
14969
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14971
# Method to check whether dependent libraries are shared objects.
14972
deplibs_check_method=$lt_deplibs_check_method
14974
# Command to use when deplibs_check_method = "file_magic".
14975
file_magic_cmd=$lt_file_magic_cmd
14977
# How to find potential files when deplibs_check_method = "file_magic".
14978
file_magic_glob=$lt_file_magic_glob
14980
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14981
want_nocaseglob=$lt_want_nocaseglob
14983
# Command to associate shared and link libraries.
14984
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14989
# Flags to create an archive.
14990
AR_FLAGS=$lt_AR_FLAGS
14992
# How to feed a file listing to the archiver.
14993
archiver_list_spec=$lt_archiver_list_spec
14995
# A symbol stripping program.
14998
# Commands used to install an old-style archive.
15000
old_postinstall_cmds=$lt_old_postinstall_cmds
15001
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15003
# Whether to use a lock for old archive extraction.
15004
lock_old_archive_extraction=$lock_old_archive_extraction
15009
# LTCC compiler flags.
15010
LTCFLAGS=$lt_CFLAGS
15012
# Take the output of nm and produce a listing of raw symbols and C names.
15013
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15015
# Transform the output of nm in a proper C declaration.
15016
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15018
# Transform the output of nm in a C name address pair.
15019
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15021
# Transform the output of nm in a C name address pair when lib prefix is needed.
15022
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15024
# Specify filename containing input files for \$NM.
15025
nm_file_list_spec=$lt_nm_file_list_spec
15027
# The root where to search for dependent libraries,and in which our libraries should be installed.
15028
lt_sysroot=$lt_sysroot
15030
# The name of the directory that contains temporary libtool files.
15033
# Used to examine libraries when file_magic_cmd begins with "file".
15034
MAGIC_CMD=$MAGIC_CMD
15036
# Must we lock files when doing compilation?
15037
need_locks=$lt_need_locks
15040
MANIFEST_TOOL=$lt_MANIFEST_TOOL
15042
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15043
DSYMUTIL=$lt_DSYMUTIL
15045
# Tool to change global to local symbols on Mac OS X.
15048
# Tool to manipulate fat objects and archives on Mac OS X.
15051
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15054
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15055
OTOOL64=$lt_OTOOL64
15057
# Old archive suffix (normally "a").
15060
# Shared library suffix (normally ".so").
15061
shrext_cmds=$lt_shrext_cmds
15063
# The commands to extract the exported symbol list from a shared archive.
15064
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15066
# Variables whose values should be saved in libtool wrapper scripts and
15067
# restored at link time.
15068
variables_saved_for_relink=$lt_variables_saved_for_relink
15070
# Do we need the "lib" prefix for modules?
15071
need_lib_prefix=$need_lib_prefix
15073
# Do we need a version for libraries?
15074
need_version=$need_version
15076
# Library versioning type.
15077
version_type=$version_type
15079
# Shared library runtime path variable.
15080
runpath_var=$runpath_var
15082
# Shared library path variable.
15083
shlibpath_var=$shlibpath_var
15085
# Is shlibpath searched before the hard-coded library search path?
15086
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15088
# Format of library name prefix.
15089
libname_spec=$lt_libname_spec
15091
# List of archive names. First name is the real one, the rest are links.
15092
# The last name is the one that the linker finds with -lNAME
15093
library_names_spec=$lt_library_names_spec
15095
# The coded name of the library, if different from the real name.
15096
soname_spec=$lt_soname_spec
15098
# Permission mode override for installation of shared libraries.
15099
install_override_mode=$lt_install_override_mode
15101
# Command to use after installation of a shared archive.
15102
postinstall_cmds=$lt_postinstall_cmds
15104
# Command to use after uninstallation of a shared archive.
15105
postuninstall_cmds=$lt_postuninstall_cmds
15107
# Commands used to finish a libtool library installation in a directory.
15108
finish_cmds=$lt_finish_cmds
15110
# As "finish_cmds", except a single script fragment to be evaled but
15112
finish_eval=$lt_finish_eval
15114
# Whether we should hardcode library paths into libraries.
15115
hardcode_into_libs=$hardcode_into_libs
15117
# Compile-time system search path for libraries.
15118
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15120
# Run-time system search path for libraries.
15121
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15123
# Whether dlopen is supported.
15124
dlopen_support=$enable_dlopen
15126
# Whether dlopen of programs is supported.
15127
dlopen_self=$enable_dlopen_self
15129
# Whether dlopen of statically linked programs is supported.
15130
dlopen_self_static=$enable_dlopen_self_static
15132
# Commands to strip libraries.
15133
old_striplib=$lt_old_striplib
15134
striplib=$lt_striplib
15137
# The linker used to build libraries.
15140
# How to create reloadable object files.
15141
reload_flag=$lt_reload_flag
15142
reload_cmds=$lt_reload_cmds
15144
# Commands used to build an old-style archive.
15145
old_archive_cmds=$lt_old_archive_cmds
15147
# A language specific compiler.
15150
# Is the compiler the GNU compiler?
15153
# Compiler flag to turn off builtin functions.
15154
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15156
# Additional compiler flags for building library objects.
15157
pic_flag=$lt_lt_prog_compiler_pic
15159
# How to pass a linker flag through the compiler.
15160
wl=$lt_lt_prog_compiler_wl
15162
# Compiler flag to prevent dynamic linking.
15163
link_static_flag=$lt_lt_prog_compiler_static
15165
# Does compiler simultaneously support -c and -o options?
15166
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15168
# Whether or not to add -lc for building shared libraries.
15169
build_libtool_need_lc=$archive_cmds_need_lc
15171
# Whether or not to disallow shared libs when runtime libs are static.
15172
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15174
# Compiler flag to allow reflexive dlopens.
15175
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15177
# Compiler flag to generate shared objects directly from archives.
15178
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15180
# Whether the compiler copes with passing no objects directly.
15181
compiler_needs_object=$lt_compiler_needs_object
15183
# Create an old-style archive from a shared archive.
15184
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15186
# Create a temporary old-style archive to link instead of a shared archive.
15187
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15189
# Commands used to build a shared archive.
15190
archive_cmds=$lt_archive_cmds
15191
archive_expsym_cmds=$lt_archive_expsym_cmds
15193
# Commands used to build a loadable module if different from building
15194
# a shared archive.
15195
module_cmds=$lt_module_cmds
15196
module_expsym_cmds=$lt_module_expsym_cmds
15198
# Whether we are building with GNU ld or not.
15199
with_gnu_ld=$lt_with_gnu_ld
15201
# Flag that allows shared libraries with undefined symbols to be built.
15202
allow_undefined_flag=$lt_allow_undefined_flag
15204
# Flag that enforces no undefined symbols.
15205
no_undefined_flag=$lt_no_undefined_flag
15207
# Flag to hardcode \$libdir into a binary during linking.
15208
# This must work even if \$libdir does not exist
15209
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15211
# Whether we need a single "-rpath" flag with a separated argument.
15212
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15214
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15215
# DIR into the resulting binary.
15216
hardcode_direct=$hardcode_direct
15218
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15219
# DIR into the resulting binary and the resulting library dependency is
15220
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15221
# library is relocated.
15222
hardcode_direct_absolute=$hardcode_direct_absolute
15224
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15225
# into the resulting binary.
15226
hardcode_minus_L=$hardcode_minus_L
15228
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15229
# into the resulting binary.
15230
hardcode_shlibpath_var=$hardcode_shlibpath_var
15232
# Set to "yes" if building a shared library automatically hardcodes DIR
15233
# into the library and all subsequent libraries and executables linked
15235
hardcode_automatic=$hardcode_automatic
15237
# Set to yes if linker adds runtime paths of dependent libraries
15238
# to runtime path list.
15239
inherit_rpath=$inherit_rpath
15241
# Whether libtool must link a program against all its dependency libraries.
15242
link_all_deplibs=$link_all_deplibs
15244
# Set to "yes" if exported symbols are required.
15245
always_export_symbols=$always_export_symbols
15247
# The commands to list exported symbols.
15248
export_symbols_cmds=$lt_export_symbols_cmds
15250
# Symbols that should not be listed in the preloaded symbols.
15251
exclude_expsyms=$lt_exclude_expsyms
15253
# Symbols that must always be exported.
15254
include_expsyms=$lt_include_expsyms
15256
# Commands necessary for linking programs (against libraries) with templates.
15257
prelink_cmds=$lt_prelink_cmds
15259
# Commands necessary for finishing linking programs.
15260
postlink_cmds=$lt_postlink_cmds
15262
# Specify filename containing input files.
15263
file_list_spec=$lt_file_list_spec
15265
# How to hardcode a shared library path into an executable.
15266
hardcode_action=$hardcode_action
15268
# ### END LIBTOOL CONFIG
15274
cat <<\_LT_EOF >> "$cfgfile"
15275
# AIX sometimes has problems with the GCC collect2 program. For some
15276
# reason, if we set the COLLECT_NAMES environment variable, the problems
15277
# vanish in a puff of smoke.
15278
if test "X${COLLECT_NAMES+set}" != Xset; then
15280
export COLLECT_NAMES
15287
ltmain="$ac_aux_dir/ltmain.sh"
15290
# We use sed instead of cat because bash on DJGPP gets confused if
15291
# if finds mixed CR/LF and LF-only lines. Since sed operates in
15292
# text mode, it properly converts lines to CR/LF. This bash problem
15293
# is reportedly fixed, but why not run on old versions too?
15294
sed '$q' "$ltmain" >> "$cfgfile" \
15295
|| (rm -f "$cfgfile"; exit 1)
15297
if test x"$xsi_shell" = xyes; then
15298
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15302
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15303
\ * ) func_dirname_result="${3}" ;;\
15305
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15306
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15307
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15308
test 0 -eq $? || _lt_function_replace_fail=:
15311
sed -e '/^func_basename ()$/,/^} # func_basename /c\
15314
\ func_basename_result="${1##*/}"\
15315
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15316
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15317
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15318
test 0 -eq $? || _lt_function_replace_fail=:
15321
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15322
func_dirname_and_basename ()\
15325
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15326
\ * ) func_dirname_result="${3}" ;;\
15328
\ func_basename_result="${1##*/}"\
15329
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15330
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15331
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15332
test 0 -eq $? || _lt_function_replace_fail=:
15335
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15338
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15339
\ # positional parameters, so assign one to ordinary parameter first.\
15340
\ func_stripname_result=${3}\
15341
\ func_stripname_result=${func_stripname_result#"${1}"}\
15342
\ func_stripname_result=${func_stripname_result%"${2}"}\
15343
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15344
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15345
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15346
test 0 -eq $? || _lt_function_replace_fail=:
15349
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15350
func_split_long_opt ()\
15352
\ func_split_long_opt_name=${1%%=*}\
15353
\ func_split_long_opt_arg=${1#*=}\
15354
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15355
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15356
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15357
test 0 -eq $? || _lt_function_replace_fail=:
15360
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15361
func_split_short_opt ()\
15363
\ func_split_short_opt_arg=${1#??}\
15364
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15365
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15366
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15367
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15368
test 0 -eq $? || _lt_function_replace_fail=:
15371
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15375
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15376
\ *) func_lo2o_result=${1} ;;\
15378
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15379
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15380
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15381
test 0 -eq $? || _lt_function_replace_fail=:
15384
sed -e '/^func_xform ()$/,/^} # func_xform /c\
15387
func_xform_result=${1%.*}.lo\
15388
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15389
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15390
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15391
test 0 -eq $? || _lt_function_replace_fail=:
15394
sed -e '/^func_arith ()$/,/^} # func_arith /c\
15397
func_arith_result=$(( $* ))\
15398
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15399
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15400
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15401
test 0 -eq $? || _lt_function_replace_fail=:
15404
sed -e '/^func_len ()$/,/^} # func_len /c\
15407
func_len_result=${#1}\
15408
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15409
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15410
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15411
test 0 -eq $? || _lt_function_replace_fail=:
15415
if test x"$lt_shell_append" = xyes; then
15416
sed -e '/^func_append ()$/,/^} # func_append /c\
15419
eval "${1}+=\\${2}"\
15420
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15421
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15422
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15423
test 0 -eq $? || _lt_function_replace_fail=:
15426
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15427
func_append_quoted ()\
15429
\ func_quote_for_eval "${2}"\
15430
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15431
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15432
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15433
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15434
test 0 -eq $? || _lt_function_replace_fail=:
15437
# Save a `func_append' function call where possible by direct use of '+='
15438
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15439
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15440
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15441
test 0 -eq $? || _lt_function_replace_fail=:
15443
# Save a `func_append' function call even when '+=' is not available
15444
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15445
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15446
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15447
test 0 -eq $? || _lt_function_replace_fail=:
15450
if test x"$_lt_function_replace_fail" = x":"; then
15451
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15452
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15456
mv -f "$cfgfile" "$ofile" ||
15457
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15468
ac_clean_files=$ac_clean_files_save
15470
test $ac_write_fail = 0 ||
15471
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15474
# configure is writing to config.log, and then calls config.status.
15475
# config.status does its own redirection, appending to config.log.
15476
# Unfortunately, on DOS this fails, as config.log is still kept open
15477
# by configure, so config.status won't be able to write to it; its
15478
# output is simply discarded. So we exec the FD to /dev/null,
15479
# effectively closing config.log, so it can be properly (re)opened and
15480
# appended to by config.status. When coming back to configure, we
15481
# need to make the FD available again.
15482
if test "$no_create" != yes; then
15484
ac_config_status_args=
15485
test "$silent" = yes &&
15486
ac_config_status_args="$ac_config_status_args --quiet"
15488
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15490
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
15491
# would make configure fail if this is the last instruction.
15492
$ac_cs_success || as_fn_exit 1
15494
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15495
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15496
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15500
{ $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
15502
version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE major $U2FS_VERSION_MAJOR minor $U2FS_VERSION_MINOR patch $U2FS_VERSION_PATCH number $U2FS_VERSION_NUMBER
15504
Install prefix: ${prefix}
15506
Shared library: ${enable_shared}
15507
Static library: ${enable_static}
15508
JSON CFLAGS: $LIBJSON_CFLAGS
15509
JSON LIBS: $LIBJSON_LIBS
15510
OPENSSL CFLAGS: $LIBSSL_CFLAGS
15511
OPENSSL LIBS: $LIBSSL_LIBS
15512
CHECK CFLAGS: $CHECK_CFLAGS
15513
CHECK LIBS: $CHECK_LIBS
15515
$as_echo "$as_me: summary of build options:
15517
version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE major $U2FS_VERSION_MAJOR minor $U2FS_VERSION_MINOR patch $U2FS_VERSION_PATCH number $U2FS_VERSION_NUMBER
15519
Install prefix: ${prefix}
15521
Shared library: ${enable_shared}
15522
Static library: ${enable_static}
15523
JSON CFLAGS: $LIBJSON_CFLAGS
15524
JSON LIBS: $LIBJSON_LIBS
15525
OPENSSL CFLAGS: $LIBSSL_CFLAGS
15526
OPENSSL LIBS: $LIBSSL_LIBS
15527
CHECK CFLAGS: $CHECK_CFLAGS
15528
CHECK LIBS: $CHECK_LIBS