2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.71 for pkgconf 1.8.1.
5
# Report bugs to <https://github.com/pkgconf/pkgconf/issues/new>.
8
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12
# This configure script is free software; the Free Software Foundation
13
# gives unlimited permission to copy, distribute and modify it.
14
## -------------------- ##
15
## M4sh Initialization. ##
16
## -------------------- ##
18
# Be more Bourne compatible
19
DUALCASE=1; export DUALCASE # for MKS sh
21
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26
# is contrary to our usage. Disable this feature.
27
alias -g '${1+"$@"}'='"$@"'
30
case `(set -o) 2>/dev/null` in #(
40
# Reset variables that may have inherited troublesome values from
43
# IFS needs to be set, to space, tab, and newline, in precisely that order.
44
# (If _AS_PATH_WALK were called with IFS unset, it would have the
45
# side effect of setting IFS to empty, thus disabling word splitting.)
46
# Quoting is to prevent editors from complaining about space-tab.
56
# Ensure predictable behavior from utilities with locale-dependent output.
62
# We cannot yet rely on "unset" to work, but we need these variables
63
# to be unset--not just set to an empty or harmless value--now, to
64
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65
# also avoids known problems related to "unset" and subshell syntax
66
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68
do eval test \${$as_var+y} \
69
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72
# Ensure that fds 0, 1, and 2 are open.
73
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77
# The user is always right.
78
if ${PATH_SEPARATOR+false} :; then
80
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# Find who we are. Look in the path if we contain no directory separator.
90
*[\\/]* ) as_myself=$0 ;;
91
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
# Use a proper internal environment variable to ensure we don't fall
118
# into an infinite loop, continuously re-executing ourselves.
119
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120
_as_can_reexec=no; export _as_can_reexec;
121
# We cannot yet assume a decent shell, so we have to provide a
122
# neutralization value for shells without unset; and this also
123
# works around shells that cannot unset nonexistent variables.
124
# Preserve -v and -x to the replacement shell.
127
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129
*v*x* | *x*v* ) as_opts=-vx ;;
134
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135
# Admittedly, this is quite paranoid, since all the known shells bail
136
# out after a failed `exec'.
137
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140
# We don't want this to propagate to other subprocesses.
141
{ _as_can_reexec=; unset _as_can_reexec;}
142
if test "x$CONFIG_SHELL" = x; then
143
as_bourne_compatible="as_nop=:
144
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149
# is contrary to our usage. Disable this feature.
150
alias -g '\${1+\"\$@\"}'='\"\$@\"'
153
case \`(set -o) 2>/dev/null\` in #(
161
as_required="as_fn_return () { (exit \$1); }
162
as_fn_success () { as_fn_return 0; }
163
as_fn_failure () { as_fn_return 1; }
164
as_fn_ret_success () { return 0; }
165
as_fn_ret_failure () { return 1; }
168
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172
if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176
exitcode=1; echo positional parameters were not saved.
178
test x\$exitcode = x0 || exit 1
179
blah=\$(echo \$(echo blah))
180
test x\"\$blah\" = xblah || exit 1
182
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191
PATH=/empty FPATH=/empty; export PATH FPATH
192
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194
test \$(( 1 + 1 )) = 2 || exit 1"
195
if (eval "$as_required") 2>/dev/null
201
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213
*) as_dir=$as_dir/ ;;
218
for as_base in sh bash ksh sh5; do
219
# Try only shells that exist, to save several forks.
220
as_shell=$as_dir$as_base
221
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
224
CONFIG_SHELL=$as_shell as_have_required=yes
225
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
239
if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242
CONFIG_SHELL=$SHELL as_have_required=yes
247
if test "x$CONFIG_SHELL" != x
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
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270
if test x$as_have_required = xno
272
printf "%s\n" "$0: This script requires a shell more modern than all"
273
printf "%s\n" "$0: the shells that I found on your system."
274
if test ${ZSH_VERSION+y} ; then
275
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278
printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279
$0: https://github.com/pkgconf/pkgconf/issues/new about
280
$0: your system, including any error possibly output before
281
$0: this message. Then install a modern shell, or manually
282
$0: run the script under such a shell if you do have one."
288
SHELL=${CONFIG_SHELL-/bin/sh}
290
# Unset more variables known to interfere with behavior of common tools.
291
CLICOLOR_FORCE= GREP_OPTIONS=
292
unset CLICOLOR_FORCE GREP_OPTIONS
294
## --------------------- ##
295
## M4sh Shell Functions. ##
296
## --------------------- ##
299
# Portably unset VAR.
302
{ eval $1=; unset $1;}
307
# as_fn_set_status STATUS
308
# -----------------------
309
# Set $? to STATUS, without forking.
317
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326
# Do nothing but, unlike ":", preserve the value of $?.
335
# Create "$as_dir" as a directory, including parents if necessary.
340
-*) as_dir=./$as_dir;;
342
test -d "$as_dir" || eval $as_mkdir_p || {
346
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349
as_dirs="'$as_qdir' $as_dirs"
350
as_dir=`$as_dirname -- "$as_dir" ||
351
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352
X"$as_dir" : 'X\(//\)[^/]' \| \
353
X"$as_dir" : 'X\(//\)$' \| \
354
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355
printf "%s\n" X"$as_dir" |
356
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
373
test -d "$as_dir" && break
375
test -z "$as_dirs" || eval "mkdir $as_dirs"
376
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
381
# as_fn_executable_p FILE
382
# -----------------------
383
# Test if FILE is an executable regular file.
384
as_fn_executable_p ()
386
test -f "$1" && test -x "$1"
387
} # as_fn_executable_p
388
# as_fn_append VAR VALUE
389
# ----------------------
390
# Append the text in VALUE to the end of the definition contained in VAR. Take
391
# advantage of any shell optimizations that allow amortized linear growth over
392
# repeated appends, instead of the typical quadratic growth present in naive
394
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396
eval 'as_fn_append ()
409
# Perform arithmetic evaluation on the ARGs, and store the result in the
410
# global $as_val. Take advantage of shells that can avoid forks. The arguments
411
# must be portable across $(()) and expr.
412
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
421
as_val=`expr "$@" || test $? -eq 1`
427
# Do nothing but, unlike ":", preserve the value of $?.
434
# as_fn_error STATUS ERROR [LINENO LOG_FD]
435
# ----------------------------------------
436
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438
# script with STATUS, using 1 if that was 0.
441
as_status=$1; test $as_status -eq 0 && as_status=1
443
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446
printf "%s\n" "$as_me: error: $2" >&2
447
as_fn_exit $as_status
450
if expr a : '\(a\)' >/dev/null 2>&1 &&
451
test "X`expr 00001 : '.*\(...\)'`" = X001; then
457
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
463
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469
as_me=`$as_basename -- "$0" ||
470
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471
X"$0" : 'X\(//\)$' \| \
472
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473
printf "%s\n" X/"$0" |
474
sed '/^.*\/\([^/][^/]*\)\/*$/{
488
# Avoid depending upon Character Ranges.
489
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492
as_cr_digits='0123456789'
493
as_cr_alnum=$as_cr_Letters$as_cr_digits
496
as_lineno_1=$LINENO as_lineno_1a=$LINENO
497
as_lineno_2=$LINENO as_lineno_2a=$LINENO
498
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
512
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
516
chmod +x "$as_me.lineno" ||
517
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520
# already done that, so ensure we don't try to do so again and fall
521
# in an infinite loop. This has already happened in practice.
522
_as_can_reexec=no; export _as_can_reexec
523
# Don't try to exec as it changes $[0], causing all sort of problems
524
# (the dirname of $[0] is not the place where we might find the
525
# original and so on. Autoconf is especially sensitive to this).
527
# Exit status is that of the last command.
532
# Determine whether it's possible to make 'echo' print without a newline.
533
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534
# for compatibility with existing Makefiles.
535
ECHO_C= ECHO_N= ECHO_T=
536
case `echo -n x` in #(((((
538
case `echo 'xy\c'` in
539
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
541
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
548
# For backward compatibility with old third-party macros, we provide
549
# the shell variables $as_echo and $as_echo_n. New code should use
550
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551
as_echo='printf %s\n'
552
as_echo_n='printf %s'
555
rm -f conf$$ conf$$.exe conf$$.file
556
if test -d conf$$.dir; then
557
rm -f conf$$.dir/conf$$.file
560
mkdir conf$$.dir 2>/dev/null
562
if (echo >conf$$.file) 2>/dev/null; then
563
if ln -s conf$$.file conf$$ 2>/dev/null; then
565
# ... but there are two gotchas:
566
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568
# In both cases, we have to default to `cp -pR'.
569
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571
elif ln conf$$.file conf$$ 2>/dev/null; then
579
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580
rmdir conf$$.dir 2>/dev/null
582
if mkdir -p . 2>/dev/null; then
583
as_mkdir_p='mkdir -p "$as_dir"'
585
test -d ./-p && rmdir ./-p
590
as_executable_p=as_fn_executable_p
592
# Sed expression to map a string onto a valid CPP name.
593
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
# Sed expression to map a string onto a valid variable name.
596
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
SHELL=${CONFIG_SHELL-/bin/sh}
601
test -n "$DJDIR" || exec 7<&0 </dev/null
605
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606
# so uname gets run too.
607
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
612
ac_default_prefix=/usr/local
614
ac_config_libobj_dir=.
621
# Identity of this package.
622
PACKAGE_NAME='pkgconf'
623
PACKAGE_TARNAME='pkgconf'
624
PACKAGE_VERSION='1.8.1'
625
PACKAGE_STRING='pkgconf 1.8.1'
626
PACKAGE_BUGREPORT='https://github.com/pkgconf/pkgconf/issues/new'
629
ac_unique_file="cli/main.c"
630
# Factoring default headers for most tests.
631
ac_includes_default="\
642
#ifdef HAVE_INTTYPES_H
643
# include <inttypes.h>
648
#ifdef HAVE_STRINGS_H
649
# include <strings.h>
651
#ifdef HAVE_SYS_TYPES_H
652
# include <sys/types.h>
654
#ifdef HAVE_SYS_STAT_H
655
# include <sys/stat.h>
662
ac_subst_vars='am__EXEEXT_FALSE
726
INSTALL_STRIP_PROGRAM
776
program_transform_name
790
enable_option_checking
791
enable_dependency_tracking
805
with_system_includedir
807
ac_precious_vars='build_alias
819
# Initialize some variables set by options.
821
ac_init_version=false
822
ac_unrecognized_opts=
824
# The variables have the same names as the options, with
825
# dashes changed to underlines.
833
program_transform_name=s,x,x,
841
# Installation directory options.
842
# These are left unexpanded so users can "make install exec_prefix=/foo"
843
# and all the variables that are supposed to be based on exec_prefix
844
# by default will actually change.
845
# Use braces instead of parens because sh, perl, etc. also accept them.
846
# (The list follows the same order as the GNU Coding Standards.)
847
bindir='${exec_prefix}/bin'
848
sbindir='${exec_prefix}/sbin'
849
libexecdir='${exec_prefix}/libexec'
850
datarootdir='${prefix}/share'
851
datadir='${datarootdir}'
852
sysconfdir='${prefix}/etc'
853
sharedstatedir='${prefix}/com'
854
localstatedir='${prefix}/var'
855
runstatedir='${localstatedir}/run'
856
includedir='${prefix}/include'
857
oldincludedir='/usr/include'
858
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859
infodir='${datarootdir}/info'
864
libdir='${exec_prefix}/lib'
865
localedir='${datarootdir}/locale'
866
mandir='${datarootdir}/man'
872
# If the previous option needs an argument, assign it.
873
if test -n "$ac_prev"; then
874
eval $ac_prev=\$ac_option
880
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885
case $ac_dashdash$ac_option in
889
-bindir | --bindir | --bindi | --bind | --bin | --bi)
891
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894
-build | --build | --buil | --bui | --bu)
895
ac_prev=build_alias ;;
896
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
897
build_alias=$ac_optarg ;;
899
-cache-file | --cache-file | --cache-fil | --cache-fi \
900
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901
ac_prev=cache_file ;;
902
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904
cache_file=$ac_optarg ;;
907
cache_file=config.cache ;;
909
-datadir | --datadir | --datadi | --datad)
911
-datadir=* | --datadir=* | --datadi=* | --datad=*)
912
datadir=$ac_optarg ;;
914
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915
| --dataroo | --dataro | --datar)
916
ac_prev=datarootdir ;;
917
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919
datarootdir=$ac_optarg ;;
921
-disable-* | --disable-*)
922
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923
# Reject names that are not valid shell variable names.
924
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925
as_fn_error $? "invalid feature name: \`$ac_useropt'"
926
ac_useropt_orig=$ac_useropt
927
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
928
case $ac_user_opts in
932
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933
ac_unrecognized_sep=', ';;
935
eval enable_$ac_useropt=no ;;
937
-docdir | --docdir | --docdi | --doc | --do)
939
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947
-enable-* | --enable-*)
948
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949
# Reject names that are not valid shell variable names.
950
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951
as_fn_error $? "invalid feature name: \`$ac_useropt'"
952
ac_useropt_orig=$ac_useropt
953
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
954
case $ac_user_opts in
958
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959
ac_unrecognized_sep=', ';;
961
eval enable_$ac_useropt=\$ac_optarg ;;
963
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965
| --exec | --exe | --ex)
966
ac_prev=exec_prefix ;;
967
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969
| --exec=* | --exe=* | --ex=*)
970
exec_prefix=$ac_optarg ;;
972
-gas | --gas | --ga | --g)
973
# Obsolete; use --with-gas.
976
-help | --help | --hel | --he | -h)
978
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979
ac_init_help=recursive ;;
980
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981
ac_init_help=short ;;
983
-host | --host | --hos | --ho)
984
ac_prev=host_alias ;;
985
-host=* | --host=* | --hos=* | --ho=*)
986
host_alias=$ac_optarg ;;
988
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992
htmldir=$ac_optarg ;;
994
-includedir | --includedir | --includedi | --included | --include \
995
| --includ | --inclu | --incl | --inc)
996
ac_prev=includedir ;;
997
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998
| --includ=* | --inclu=* | --incl=* | --inc=*)
999
includedir=$ac_optarg ;;
1001
-infodir | --infodir | --infodi | --infod | --info | --inf)
1003
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004
infodir=$ac_optarg ;;
1006
-libdir | --libdir | --libdi | --libd)
1008
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1009
libdir=$ac_optarg ;;
1011
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012
| --libexe | --libex | --libe)
1013
ac_prev=libexecdir ;;
1014
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015
| --libexe=* | --libex=* | --libe=*)
1016
libexecdir=$ac_optarg ;;
1018
-localedir | --localedir | --localedi | --localed | --locale)
1019
ac_prev=localedir ;;
1020
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021
localedir=$ac_optarg ;;
1023
-localstatedir | --localstatedir | --localstatedi | --localstated \
1024
| --localstate | --localstat | --localsta | --localst | --locals)
1025
ac_prev=localstatedir ;;
1026
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028
localstatedir=$ac_optarg ;;
1030
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033
mandir=$ac_optarg ;;
1035
-nfp | --nfp | --nf)
1036
# Obsolete; use --without-fp.
1039
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040
| --no-cr | --no-c | -n)
1043
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049
| --oldin | --oldi | --old | --ol | --o)
1050
ac_prev=oldincludedir ;;
1051
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054
oldincludedir=$ac_optarg ;;
1056
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059
prefix=$ac_optarg ;;
1061
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1062
| --program-pre | --program-pr | --program-p)
1063
ac_prev=program_prefix ;;
1064
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1065
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066
program_prefix=$ac_optarg ;;
1068
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1069
| --program-suf | --program-su | --program-s)
1070
ac_prev=program_suffix ;;
1071
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1072
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073
program_suffix=$ac_optarg ;;
1075
-program-transform-name | --program-transform-name \
1076
| --program-transform-nam | --program-transform-na \
1077
| --program-transform-n | --program-transform- \
1078
| --program-transform | --program-transfor \
1079
| --program-transfo | --program-transf \
1080
| --program-trans | --program-tran \
1081
| --progr-tra | --program-tr | --program-t)
1082
ac_prev=program_transform_name ;;
1083
-program-transform-name=* | --program-transform-name=* \
1084
| --program-transform-nam=* | --program-transform-na=* \
1085
| --program-transform-n=* | --program-transform-=* \
1086
| --program-transform=* | --program-transfor=* \
1087
| --program-transfo=* | --program-transf=* \
1088
| --program-trans=* | --program-tran=* \
1089
| --progr-tra=* | --program-tr=* | --program-t=*)
1090
program_transform_name=$ac_optarg ;;
1092
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095
pdfdir=$ac_optarg ;;
1097
-psdir | --psdir | --psdi | --psd | --ps)
1099
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103
| -silent | --silent | --silen | --sile | --sil)
1106
-runstatedir | --runstatedir | --runstatedi | --runstated \
1107
| --runstate | --runstat | --runsta | --runst | --runs \
1108
| --run | --ru | --r)
1109
ac_prev=runstatedir ;;
1110
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1111
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1112
| --run=* | --ru=* | --r=*)
1113
runstatedir=$ac_optarg ;;
1115
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119
sbindir=$ac_optarg ;;
1121
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1122
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123
| --sharedst | --shareds | --shared | --share | --shar \
1125
ac_prev=sharedstatedir ;;
1126
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130
sharedstatedir=$ac_optarg ;;
1132
-site | --site | --sit)
1134
-site=* | --site=* | --sit=*)
1137
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140
srcdir=$ac_optarg ;;
1142
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143
| --syscon | --sysco | --sysc | --sys | --sy)
1144
ac_prev=sysconfdir ;;
1145
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147
sysconfdir=$ac_optarg ;;
1149
-target | --target | --targe | --targ | --tar | --ta | --t)
1150
ac_prev=target_alias ;;
1151
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152
target_alias=$ac_optarg ;;
1154
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1157
-version | --version | --versio | --versi | --vers | -V)
1158
ac_init_version=: ;;
1161
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162
# Reject names that are not valid shell variable names.
1163
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164
as_fn_error $? "invalid package name: \`$ac_useropt'"
1165
ac_useropt_orig=$ac_useropt
1166
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1167
case $ac_user_opts in
1171
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172
ac_unrecognized_sep=', ';;
1174
eval with_$ac_useropt=\$ac_optarg ;;
1176
-without-* | --without-*)
1177
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178
# Reject names that are not valid shell variable names.
1179
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180
as_fn_error $? "invalid package name: \`$ac_useropt'"
1181
ac_useropt_orig=$ac_useropt
1182
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1183
case $ac_user_opts in
1187
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188
ac_unrecognized_sep=', ';;
1190
eval with_$ac_useropt=no ;;
1193
# Obsolete; use --with-x.
1196
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197
| --x-incl | --x-inc | --x-in | --x-i)
1198
ac_prev=x_includes ;;
1199
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201
x_includes=$ac_optarg ;;
1203
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1204
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205
ac_prev=x_libraries ;;
1206
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208
x_libraries=$ac_optarg ;;
1210
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1211
Try \`$0 --help' for more information"
1215
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216
# Reject names that are not valid shell variable names.
1217
case $ac_envvar in #(
1218
'' | [0-9]* | *[!_$as_cr_alnum]* )
1219
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221
eval $ac_envvar=\$ac_optarg
1222
export $ac_envvar ;;
1225
# FIXME: should be removed in autoconf 3.0.
1226
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1227
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1229
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235
if test -n "$ac_prev"; then
1236
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237
as_fn_error $? "missing argument to $ac_option"
1240
if test -n "$ac_unrecognized_opts"; then
1241
case $enable_option_checking in
1243
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1244
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248
# Check all directory arguments for consistency.
1249
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250
datadir sysconfdir sharedstatedir localstatedir includedir \
1251
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252
libdir localedir mandir runstatedir
1254
eval ac_val=\$$ac_var
1255
# Remove trailing slashes.
1258
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259
eval $ac_var=\$ac_val;;
1261
# Be sure to have absolute directory names.
1263
[\\/$]* | ?:[\\/]* ) continue;;
1264
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269
# There might be people who depend on the old broken behavior: `$host'
1270
# used to hold the argument of --host etc.
1271
# FIXME: To remove some day.
1274
target=$target_alias
1276
# FIXME: To remove some day.
1277
if test "x$host_alias" != x; then
1278
if test "x$build_alias" = x; then
1279
cross_compiling=maybe
1280
elif test "x$build_alias" != "x$host_alias"; then
1286
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
test "$silent" = yes && exec 6>/dev/null
1291
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292
ac_ls_di=`ls -di .` &&
1293
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294
as_fn_error $? "working directory cannot be determined"
1295
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296
as_fn_error $? "pwd does not report name of working directory"
1299
# Find the source files, if location was not specified.
1300
if test -z "$srcdir"; then
1301
ac_srcdir_defaulted=yes
1302
# Try the directory containing this script, then the parent directory.
1303
ac_confdir=`$as_dirname -- "$as_myself" ||
1304
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305
X"$as_myself" : 'X\(//\)[^/]' \| \
1306
X"$as_myself" : 'X\(//\)$' \| \
1307
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308
printf "%s\n" X"$as_myself" |
1309
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327
if test ! -r "$srcdir/$ac_unique_file"; then
1331
ac_srcdir_defaulted=no
1333
if test ! -r "$srcdir/$ac_unique_file"; then
1334
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341
# When building in place, set srcdir=.
1342
if test "$ac_abs_confdir" = "$ac_pwd"; then
1345
# Remove unnecessary trailing slashes from srcdir.
1346
# Double slashes in file names in object file debugging info
1347
# mess up M-x gdb in Emacs.
1349
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351
for ac_var in $ac_precious_vars; do
1352
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353
eval ac_env_${ac_var}_value=\$${ac_var}
1354
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359
# Report the --help message.
1361
if test "$ac_init_help" = "long"; then
1362
# Omit some internal or obsolete options to make the list less imposing.
1363
# This message is too long to be a string in the A/UX 3.1 sh.
1365
\`configure' configures pkgconf 1.8.1 to adapt to many kinds of systems.
1367
Usage: $0 [OPTION]... [VAR=VALUE]...
1369
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370
VAR=VALUE. See below for descriptions of some of the useful variables.
1372
Defaults for the options are specified in brackets.
1375
-h, --help display this help and exit
1376
--help=short display options specific to this package
1377
--help=recursive display the short help of all the included packages
1378
-V, --version display version information and exit
1379
-q, --quiet, --silent do not print \`checking ...' messages
1380
--cache-file=FILE cache test results in FILE [disabled]
1381
-C, --config-cache alias for \`--cache-file=config.cache'
1382
-n, --no-create do not create output files
1383
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1385
Installation directories:
1386
--prefix=PREFIX install architecture-independent files in PREFIX
1387
[$ac_default_prefix]
1388
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1391
By default, \`make install' will install all the files in
1392
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1393
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394
for instance \`--prefix=\$HOME'.
1396
For better control, use the options below.
1398
Fine tuning of the installation directories:
1399
--bindir=DIR user executables [EPREFIX/bin]
1400
--sbindir=DIR system admin executables [EPREFIX/sbin]
1401
--libexecdir=DIR program executables [EPREFIX/libexec]
1402
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1403
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1404
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1405
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1406
--libdir=DIR object code libraries [EPREFIX/lib]
1407
--includedir=DIR C header files [PREFIX/include]
1408
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1409
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1410
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1411
--infodir=DIR info documentation [DATAROOTDIR/info]
1412
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1413
--mandir=DIR man documentation [DATAROOTDIR/man]
1414
--docdir=DIR documentation root [DATAROOTDIR/doc/pkgconf]
1415
--htmldir=DIR html documentation [DOCDIR]
1416
--dvidir=DIR dvi documentation [DOCDIR]
1417
--pdfdir=DIR pdf documentation [DOCDIR]
1418
--psdir=DIR ps documentation [DOCDIR]
1424
--program-prefix=PREFIX prepend PREFIX to installed program names
1425
--program-suffix=SUFFIX append SUFFIX to installed program names
1426
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1429
--build=BUILD configure for building on BUILD [guessed]
1430
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1434
if test -n "$ac_init_help"; then
1435
case $ac_init_help in
1436
short | recursive ) echo "Configuration of pkgconf 1.8.1:";;
1441
--disable-option-checking ignore unrecognized --enable/--with options
1442
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1444
--enable-dependency-tracking
1445
do not reject slow dependency extractors
1446
--disable-dependency-tracking
1447
speeds up one-time build
1448
--enable-silent-rules less verbose build output (undo: "make V=1")
1449
--disable-silent-rules verbose build output (undo: "make V=0")
1450
--enable-shared[=PKGS] build shared libraries [default=yes]
1451
--enable-static[=PKGS] build static libraries [default=yes]
1452
--enable-fast-install[=PKGS]
1453
optimize for fast installation [default=yes]
1454
--disable-libtool-lock avoid locking (might break parallel builds)
1455
--disable-largefile omit support for large files
1458
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1462
--with-aix-soname=aix|svr4|both
1463
shared library versioning (aka "SONAME") variant to
1464
provide on AIX, [default=aix].
1465
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1466
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1467
compiler's sysroot if not specified).
1468
--with-personality-dir specify the place where cross-compile personality
1470
--with-pkg-config-dir specify the place where pc files will be found
1471
--with-system-libdir specify the system library directory (default
1473
--with-system-includedir
1474
specify the system include directory (default
1477
Some influential environment variables:
1478
CC C compiler command
1479
CFLAGS C compiler flags
1480
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481
nonstandard directory <lib dir>
1482
LIBS libraries to pass to the linker, e.g. -l<library>
1483
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484
you have headers in a nonstandard directory <include dir>
1486
User-defined run-time library search path.
1489
Use these variables to override the choices made by `configure' or to help
1490
it to find libraries and programs with nonstandard names/locations.
1492
Report bugs to <https://github.com/pkgconf/pkgconf/issues/new>.
1497
if test "$ac_init_help" = "recursive"; then
1498
# If there are subdirs, report their specific --help.
1499
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500
test -d "$ac_dir" ||
1501
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1509
# A ".." for each directory in $ac_dir_suffix.
1510
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511
case $ac_top_builddir_sub in
1512
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516
ac_abs_top_builddir=$ac_pwd
1517
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518
# for backward compatibility:
1519
ac_top_builddir=$ac_top_build_prefix
1522
.) # We are building in place.
1524
ac_top_srcdir=$ac_top_builddir_sub
1525
ac_abs_top_srcdir=$ac_pwd ;;
1526
[\\/]* | ?:[\\/]* ) # Absolute name.
1527
ac_srcdir=$srcdir$ac_dir_suffix;
1528
ac_top_srcdir=$srcdir
1529
ac_abs_top_srcdir=$srcdir ;;
1531
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532
ac_top_srcdir=$ac_top_build_prefix$srcdir
1533
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
cd "$ac_dir" || { ac_status=$?; continue; }
1538
# Check for configure.gnu first; this name is used for a wrapper for
1539
# Metaconfig's "Configure" on case-insensitive file systems.
1540
if test -f "$ac_srcdir/configure.gnu"; then
1542
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543
elif test -f "$ac_srcdir/configure"; then
1545
$SHELL "$ac_srcdir/configure" --help=recursive
1547
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549
cd "$ac_pwd" || { ac_status=$?; break; }
1553
test -n "$ac_init_help" && exit $ac_status
1554
if $ac_init_version; then
1556
pkgconf configure 1.8.1
1557
generated by GNU Autoconf 2.71
1559
Copyright (C) 2021 Free Software Foundation, Inc.
1560
This configure script is free software; the Free Software Foundation
1561
gives unlimited permission to copy, distribute and modify it.
1566
## ------------------------ ##
1567
## Autoconf initialization. ##
1568
## ------------------------ ##
1570
# ac_fn_c_try_compile LINENO
1571
# --------------------------
1572
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1573
ac_fn_c_try_compile ()
1575
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576
rm -f conftest.$ac_objext conftest.beam
1577
if { { ac_try="$ac_compile"
1579
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580
*) ac_try_echo=$ac_try;;
1582
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583
printf "%s\n" "$ac_try_echo"; } >&5
1584
(eval "$ac_compile") 2>conftest.err
1586
if test -s conftest.err; then
1587
grep -v '^ *+' conftest.err >conftest.er1
1588
cat conftest.er1 >&5
1589
mv -f conftest.er1 conftest.err
1591
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592
test $ac_status = 0; } && {
1593
test -z "$ac_c_werror_flag" ||
1594
test ! -s conftest.err
1595
} && test -s conftest.$ac_objext
1599
printf "%s\n" "$as_me: failed program was:" >&5
1600
sed 's/^/| /' conftest.$ac_ext >&5
1604
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605
as_fn_set_status $ac_retval
1607
} # ac_fn_c_try_compile
1609
# ac_fn_c_try_link LINENO
1610
# -----------------------
1611
# Try to link conftest.$ac_ext, and return whether this succeeded.
1614
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1616
if { { ac_try="$ac_link"
1618
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619
*) ac_try_echo=$ac_try;;
1621
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622
printf "%s\n" "$ac_try_echo"; } >&5
1623
(eval "$ac_link") 2>conftest.err
1625
if test -s conftest.err; then
1626
grep -v '^ *+' conftest.err >conftest.er1
1627
cat conftest.er1 >&5
1628
mv -f conftest.er1 conftest.err
1630
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631
test $ac_status = 0; } && {
1632
test -z "$ac_c_werror_flag" ||
1633
test ! -s conftest.err
1634
} && test -s conftest$ac_exeext && {
1635
test "$cross_compiling" = yes ||
1636
test -x conftest$ac_exeext
1641
printf "%s\n" "$as_me: failed program was:" >&5
1642
sed 's/^/| /' conftest.$ac_ext >&5
1646
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1647
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1648
# interfere with the next link command; also delete a directory that is
1649
# left behind by Apple's compiler. We do this before executing the actions.
1650
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1651
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652
as_fn_set_status $ac_retval
1654
} # ac_fn_c_try_link
1656
# ac_fn_c_check_func LINENO FUNC VAR
1657
# ----------------------------------
1658
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1659
ac_fn_c_check_func ()
1661
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663
printf %s "checking for $2... " >&6; }
1664
if eval test \${$3+y}
1666
printf %s "(cached) " >&6
1668
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669
/* end confdefs.h. */
1670
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1671
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1672
#define $2 innocuous_$2
1674
/* System header to define __stub macros and hopefully few prototypes,
1675
which can conflict with char $2 (); below. */
1680
/* Override any GCC internal prototype to avoid an error.
1681
Use char because int might match the return type of a GCC
1682
builtin and then its argument prototype would still apply. */
1687
/* The GNU C library defines this for functions which it implements
1688
to always fail with ENOSYS. Some functions are actually named
1689
something starting with __ and the normal name is an alias. */
1690
#if defined __stub_$2 || defined __stub___$2
1702
if ac_fn_c_try_link "$LINENO"
1708
rm -f core conftest.err conftest.$ac_objext conftest.beam \
1709
conftest$ac_exeext conftest.$ac_ext
1712
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713
printf "%s\n" "$ac_res" >&6; }
1714
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
} # ac_fn_c_check_func
1718
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719
# -------------------------------------------------------
1720
# Tests whether HEADER exists and can be compiled using the include files in
1721
# INCLUDES, setting the cache variable VAR accordingly.
1722
ac_fn_c_check_header_compile ()
1724
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726
printf %s "checking for $2... " >&6; }
1727
if eval test \${$3+y}
1729
printf %s "(cached) " >&6
1731
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732
/* end confdefs.h. */
1736
if ac_fn_c_try_compile "$LINENO"
1742
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1745
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746
printf "%s\n" "$ac_res" >&6; }
1747
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749
} # ac_fn_c_check_header_compile
1751
# ac_fn_c_try_cpp LINENO
1752
# ----------------------
1753
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757
if { { ac_try="$ac_cpp conftest.$ac_ext"
1759
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760
*) ac_try_echo=$ac_try;;
1762
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763
printf "%s\n" "$ac_try_echo"; } >&5
1764
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766
if test -s conftest.err; then
1767
grep -v '^ *+' conftest.err >conftest.er1
1768
cat conftest.er1 >&5
1769
mv -f conftest.er1 conftest.err
1771
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772
test $ac_status = 0; } > conftest.i && {
1773
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774
test ! -s conftest.err
1779
printf "%s\n" "$as_me: failed program was:" >&5
1780
sed 's/^/| /' conftest.$ac_ext >&5
1784
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
as_fn_set_status $ac_retval
1788
ac_configure_args_raw=
1793
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1795
as_fn_append ac_configure_args_raw " '$ac_arg'"
1798
case $ac_configure_args_raw in
1802
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1803
ac_unsafe_a="$ac_unsafe_z#~"
1804
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1805
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1808
cat >config.log <<_ACEOF
1809
This file contains any messages produced by compilers while
1810
running configure, to aid debugging if configure makes a mistake.
1812
It was created by pkgconf $as_me 1.8.1, which was
1813
generated by GNU Autoconf 2.71. Invocation command line was
1815
$ $0$ac_configure_args_raw
1825
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1826
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1827
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1828
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1829
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1831
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1832
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1834
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1835
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1836
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1837
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1838
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1839
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1840
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848
case $as_dir in #(((
1851
*) as_dir=$as_dir/ ;;
1853
printf "%s\n" "PATH: $as_dir"
1869
# Keep a trace of the command line.
1870
# Strip out --no-create and --no-recursion so they do not pile up.
1871
# Strip out --silent because we don't want to record it for future runs.
1872
# Also quote any args containing shell meta-characters.
1873
# Make two passes to allow for proper duplicate-argument suppression.
1877
ac_must_keep_next=false
1883
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1884
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1885
| -silent | --silent | --silen | --sile | --sil)
1888
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1891
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1893
as_fn_append ac_configure_args1 " '$ac_arg'"
1894
if test $ac_must_keep_next = true; then
1895
ac_must_keep_next=false # Got value, back to normal.
1898
*=* | --config-cache | -C | -disable-* | --disable-* \
1899
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1900
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1901
| -with-* | --with-* | -without-* | --without-* | --x)
1902
case "$ac_configure_args0 " in
1903
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1906
-* ) ac_must_keep_next=true ;;
1909
as_fn_append ac_configure_args " '$ac_arg'"
1914
{ ac_configure_args0=; unset ac_configure_args0;}
1915
{ ac_configure_args1=; unset ac_configure_args1;}
1917
# When interrupted or exit'd, cleanup temporary files, and complete
1918
# config.log. We remove comments because anyway the quotes in there
1919
# would cause problems or look ugly.
1920
# WARNING: Use '\'' to represent an apostrophe within the trap.
1921
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1922
trap 'exit_status=$?
1925
# Save into config.log some information that might help in debugging.
1929
printf "%s\n" "## ---------------- ##
1930
## Cache variables. ##
1931
## ---------------- ##"
1933
# The following way of writing the cache mishandles newlines in values,
1935
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1936
eval ac_val=\$$ac_var
1940
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1941
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1944
_ | IFS | as_nl) ;; #(
1945
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1946
*) { eval $ac_var=; unset $ac_var;} ;;
1951
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1952
*${as_nl}ac_space=\ *)
1954
"s/'\''/'\''\\\\'\'''\''/g;
1955
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1958
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1965
printf "%s\n" "## ----------------- ##
1966
## Output variables. ##
1967
## ----------------- ##"
1969
for ac_var in $ac_subst_vars
1971
eval ac_val=\$$ac_var
1973
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975
printf "%s\n" "$ac_var='\''$ac_val'\''"
1979
if test -n "$ac_subst_files"; then
1980
printf "%s\n" "## ------------------- ##
1981
## File substitutions. ##
1982
## ------------------- ##"
1984
for ac_var in $ac_subst_files
1986
eval ac_val=\$$ac_var
1988
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990
printf "%s\n" "$ac_var='\''$ac_val'\''"
1995
if test -s confdefs.h; then
1996
printf "%s\n" "## ----------- ##
2003
test "$ac_signal" != 0 &&
2004
printf "%s\n" "$as_me: caught signal $ac_signal"
2005
printf "%s\n" "$as_me: exit $exit_status"
2007
rm -f core *.core core.conftest.* &&
2008
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2011
for ac_signal in 1 2 13 15; do
2012
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2016
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2017
rm -f -r conftest* confdefs.h
2019
printf "%s\n" "/* confdefs.h */" > confdefs.h
2021
# Predefined preprocessor variables.
2023
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2025
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2027
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2029
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2031
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2033
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2036
# Let the site file select an alternate cache file if it wants to.
2037
# Prefer an explicitly selected file to automatically selected ones.
2038
if test -n "$CONFIG_SITE"; then
2039
ac_site_files="$CONFIG_SITE"
2040
elif test "x$prefix" != xNONE; then
2041
ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2043
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2046
for ac_site_file in $ac_site_files
2048
case $ac_site_file in #(
2052
ac_site_file=./$ac_site_file ;;
2054
if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2055
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2056
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2057
sed 's/^/| /' "$ac_site_file" >&5
2059
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2060
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2061
as_fn_error $? "failed to load site script $ac_site_file
2062
See \`config.log' for more details" "$LINENO" 5; }
2066
if test -r "$cache_file"; then
2067
# Some versions of bash will fail to source /dev/null (special files
2068
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2069
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2070
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2071
printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2073
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2074
*) . "./$cache_file";;
2078
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2079
printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2083
# Test code for whether the C compiler supports C89 (global declarations)
2084
ac_c_conftest_c89_globals='
2085
/* Does the compiler advertise C89 conformance?
2086
Do not test the value of __STDC__, because some compilers set it to 0
2087
while being otherwise adequately conformant. */
2088
#if !defined __STDC__
2089
# error "Compiler does not advertise C89 conformance"
2095
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2096
struct buf { int x; };
2097
struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2098
static char *e (p, i)
2104
static char *f (char * (*g) (char **, int), char **p, ...)
2109
s = g (p, va_arg (v,int));
2114
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2115
function prototypes and stuff, but not \xHH hex character constants.
2116
These do not provoke an error unfortunately, instead are silently treated
2117
as an "x". The following induces an error, until -std is added to get
2118
proper ANSI mode. Curiously \x00 != x always comes out true, for an
2119
array size at least. It is necessary to write \x00 == 0 to get something
2120
that is true only with -std. */
2121
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2123
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2124
inside strings and character constants. */
2125
#define FOO(x) '\''x'\''
2126
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2128
int test (int i, double x);
2129
struct s1 {int (*f) (int a);};
2130
struct s2 {int (*f) (double a);};
2131
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2134
# Test code for whether the C compiler supports C89 (body of main).
2135
ac_c_conftest_c89_main='
2136
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2139
# Test code for whether the C compiler supports C99 (global declarations)
2140
ac_c_conftest_c99_globals='
2141
// Does the compiler advertise C99 conformance?
2142
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2143
# error "Compiler does not advertise C99 conformance"
2146
#include <stdbool.h>
2147
extern int puts (const char *);
2148
extern int printf (const char *, ...);
2149
extern int dprintf (int, const char *, ...);
2150
extern void *malloc (size_t);
2152
// Check varargs macros. These examples are taken from C99 6.10.3.5.
2153
// dprintf is used instead of fprintf to avoid needing to declare
2155
#define debug(...) dprintf (2, __VA_ARGS__)
2156
#define showlist(...) puts (#__VA_ARGS__)
2157
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2159
test_varargs_macros (void)
2164
debug ("X = %d\n", x);
2165
showlist (The first, second, and third items.);
2166
report (x>y, "x is %d but y is %d", x, y);
2169
// Check long long types.
2170
#define BIG64 18446744073709551615ull
2171
#define BIG32 4294967295ul
2172
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2174
#error "your preprocessor is broken"
2178
#error "your preprocessor is broken"
2180
static long long int bignum = -9223372036854775807LL;
2181
static unsigned long long int ubignum = BIG64;
2183
struct incomplete_array
2191
const wchar_t *name;
2195
typedef const char *ccp;
2198
test_restrict (ccp restrict text)
2200
// See if C++-style comments work.
2201
// Iterate through items via the restricted pointer.
2202
// Also check for declarations in for loops.
2203
for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2208
// Check varargs and va_copy.
2210
test_varargs (const char *format, ...)
2213
va_start (args, format);
2215
va_copy (args_copy, args);
2217
const char *str = "";
2225
case '\''s'\'': // string
2226
str = va_arg (args_copy, const char *);
2228
case '\''d'\'': // int
2229
number = va_arg (args_copy, int);
2231
case '\''f'\'': // float
2232
fnumber = va_arg (args_copy, double);
2241
return *str && number && fnumber;
2245
# Test code for whether the C compiler supports C99 (body of main).
2246
ac_c_conftest_c99_main='
2248
_Bool success = false;
2249
success |= (argc != 0);
2252
if (test_restrict ("String literal") == 0)
2254
char *restrict newvar = "Another string";
2257
success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2258
test_varargs_macros ();
2260
// Check flexible array members.
2261
struct incomplete_array *ia =
2262
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2264
for (int i = 0; i < ia->datasize; ++i)
2265
ia->data[i] = i * 1.234;
2267
// Check named initializers.
2268
struct named_init ni = {
2270
.name = L"Test wide string",
2271
.average = 543.34343,
2276
int dynamic_array[ni.number];
2277
dynamic_array[0] = argv[0][0];
2278
dynamic_array[ni.number - 1] = 543;
2280
// work around unused variable warnings
2281
ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2282
|| dynamic_array[ni.number - 1] != 543);
2285
# Test code for whether the C compiler supports C11 (global declarations)
2286
ac_c_conftest_c11_globals='
2287
// Does the compiler advertise C11 conformance?
2288
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2289
# error "Compiler does not advertise C11 conformance"
2293
char _Alignas (double) aligned_as_double;
2294
char _Alignas (0) no_special_alignment;
2295
extern char aligned_as_int;
2296
char _Alignas (0) _Alignas (int) aligned_as_int;
2301
int_alignment = _Alignof (int),
2302
int_array_alignment = _Alignof (int[100]),
2303
char_alignment = _Alignof (char)
2305
_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2308
int _Noreturn does_not_return (void) { for (;;) continue; }
2310
// Check _Static_assert.
2311
struct test_static_assert
2314
_Static_assert (sizeof (int) <= sizeof (long int),
2315
"_Static_assert does not work in struct");
2319
// Check UTF-8 literals.
2320
#define u8 syntax error!
2321
char const utf8_literal[] = u8"happens to be ASCII" "another string";
2323
// Check duplicate typedefs.
2324
typedef long *long_ptr;
2325
typedef long int *long_ptr;
2326
typedef long_ptr long_ptr;
2328
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2332
struct { int i; int j; };
2333
struct { int k; long int l; } w;
2339
# Test code for whether the C compiler supports C11 (body of main).
2340
ac_c_conftest_c11_main='
2341
_Static_assert ((offsetof (struct anonymous, i)
2342
== offsetof (struct anonymous, w.k)),
2343
"Anonymous union alignment botch");
2349
# Test code for whether the C compiler supports C11 (complete).
2350
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2351
${ac_c_conftest_c99_globals}
2352
${ac_c_conftest_c11_globals}
2355
main (int argc, char **argv)
2358
${ac_c_conftest_c89_main}
2359
${ac_c_conftest_c99_main}
2360
${ac_c_conftest_c11_main}
2365
# Test code for whether the C compiler supports C99 (complete).
2366
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2367
${ac_c_conftest_c99_globals}
2370
main (int argc, char **argv)
2373
${ac_c_conftest_c89_main}
2374
${ac_c_conftest_c99_main}
2379
# Test code for whether the C compiler supports C89 (complete).
2380
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2383
main (int argc, char **argv)
2386
${ac_c_conftest_c89_main}
2391
as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2392
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2393
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2394
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2395
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2396
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2397
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2398
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2399
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2401
# Auxiliary files required by this configure script.
2402
ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2404
# Locations in which to look for auxiliary files.
2405
ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2407
# Search for a directory containing all of the required auxiliary files,
2408
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2409
# If we don't find one directory that contains all the files we need,
2410
# we report the set of missing files from the *first* directory in
2411
# $ac_aux_dir_candidates and give up.
2412
ac_missing_aux_files=""
2413
ac_first_candidate=:
2414
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417
for as_dir in $ac_aux_dir_candidates
2420
case $as_dir in #(((
2423
*) as_dir=$as_dir/ ;;
2427
printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2428
ac_aux_dir_found=yes
2430
for ac_aux in $ac_aux_files
2432
# As a special case, if "install-sh" is required, that requirement
2433
# can be satisfied by any of "install-sh", "install.sh", or "shtool",
2434
# and $ac_install_sh is set appropriately for whichever one is found.
2435
if test x"$ac_aux" = x"install-sh"
2437
if test -f "${as_dir}install-sh"; then
2438
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2439
ac_install_sh="${as_dir}install-sh -c"
2440
elif test -f "${as_dir}install.sh"; then
2441
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2442
ac_install_sh="${as_dir}install.sh -c"
2443
elif test -f "${as_dir}shtool"; then
2444
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2445
ac_install_sh="${as_dir}shtool install -c"
2448
if $ac_first_candidate; then
2449
ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2455
if test -f "${as_dir}${ac_aux}"; then
2456
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2459
if $ac_first_candidate; then
2460
ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2467
if test "$ac_aux_dir_found" = yes; then
2468
ac_aux_dir="$as_dir"
2471
ac_first_candidate=false
2480
as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2484
# These three variables are undocumented and unsupported,
2485
# and are intended to be withdrawn in a future Autoconf release.
2486
# They can cause serious problems if a builder's source tree is in a directory
2487
# whose full name contains unusual characters.
2488
if test -f "${ac_aux_dir}config.guess"; then
2489
ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2491
if test -f "${ac_aux_dir}config.sub"; then
2492
ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2494
if test -f "$ac_aux_dir/configure"; then
2495
ac_configure="$SHELL ${ac_aux_dir}configure"
2498
# Check that the precious variables saved in the cache have kept the same
2500
ac_cache_corrupted=false
2501
for ac_var in $ac_precious_vars; do
2502
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2503
eval ac_new_set=\$ac_env_${ac_var}_set
2504
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2505
eval ac_new_val=\$ac_env_${ac_var}_value
2506
case $ac_old_set,$ac_new_set in
2508
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2509
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2510
ac_cache_corrupted=: ;;
2512
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2513
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2514
ac_cache_corrupted=: ;;
2517
if test "x$ac_old_val" != "x$ac_new_val"; then
2518
# differences in whitespace do not lead to failure.
2519
ac_old_val_w=`echo x $ac_old_val`
2520
ac_new_val_w=`echo x $ac_new_val`
2521
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2522
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2523
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2524
ac_cache_corrupted=:
2526
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2527
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2528
eval $ac_var=\$ac_old_val
2530
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2531
printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2532
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2533
printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2536
# Pass precious variables to config.status.
2537
if test "$ac_new_set" = set; then
2539
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2540
*) ac_arg=$ac_var=$ac_new_val ;;
2542
case " $ac_configure_args " in
2543
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2544
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2548
if $ac_cache_corrupted; then
2549
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2551
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2552
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2553
as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2554
and start over" "$LINENO" 5
2556
## -------------------- ##
2557
## Main body of script. ##
2558
## -------------------- ##
2561
ac_cpp='$CPP $CPPFLAGS'
2562
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580
# Expand $ac_aux_dir to an absolute path.
2581
am_aux_dir=`cd "$ac_aux_dir" && pwd`
2584
ac_cpp='$CPP $CPPFLAGS'
2585
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588
if test -n "$ac_tool_prefix"; then
2589
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2590
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2591
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592
printf %s "checking for $ac_word... " >&6; }
2593
if test ${ac_cv_prog_CC+y}
2595
printf %s "(cached) " >&6
2597
if test -n "$CC"; then
2598
ac_cv_prog_CC="$CC" # Let the user override the test.
2600
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604
case $as_dir in #(((
2607
*) as_dir=$as_dir/ ;;
2609
for ac_exec_ext in '' $ac_executable_extensions; do
2610
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2611
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2612
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2622
if test -n "$CC"; then
2623
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2624
printf "%s\n" "$CC" >&6; }
2626
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627
printf "%s\n" "no" >&6; }
2632
if test -z "$ac_cv_prog_CC"; then
2634
# Extract the first word of "gcc", so it can be a program name with args.
2635
set dummy gcc; ac_word=$2
2636
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637
printf %s "checking for $ac_word... " >&6; }
2638
if test ${ac_cv_prog_ac_ct_CC+y}
2640
printf %s "(cached) " >&6
2642
if test -n "$ac_ct_CC"; then
2643
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649
case $as_dir in #(((
2652
*) as_dir=$as_dir/ ;;
2654
for ac_exec_ext in '' $ac_executable_extensions; do
2655
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2656
ac_cv_prog_ac_ct_CC="gcc"
2657
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2666
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2667
if test -n "$ac_ct_CC"; then
2668
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2669
printf "%s\n" "$ac_ct_CC" >&6; }
2671
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672
printf "%s\n" "no" >&6; }
2675
if test "x$ac_ct_CC" = x; then
2678
case $cross_compiling:$ac_tool_warned in
2680
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2681
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2682
ac_tool_warned=yes ;;
2690
if test -z "$CC"; then
2691
if test -n "$ac_tool_prefix"; then
2692
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2693
set dummy ${ac_tool_prefix}cc; ac_word=$2
2694
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695
printf %s "checking for $ac_word... " >&6; }
2696
if test ${ac_cv_prog_CC+y}
2698
printf %s "(cached) " >&6
2700
if test -n "$CC"; then
2701
ac_cv_prog_CC="$CC" # Let the user override the test.
2703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707
case $as_dir in #(((
2710
*) as_dir=$as_dir/ ;;
2712
for ac_exec_ext in '' $ac_executable_extensions; do
2713
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2714
ac_cv_prog_CC="${ac_tool_prefix}cc"
2715
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2725
if test -n "$CC"; then
2726
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2727
printf "%s\n" "$CC" >&6; }
2729
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730
printf "%s\n" "no" >&6; }
2736
if test -z "$CC"; then
2737
# Extract the first word of "cc", so it can be a program name with args.
2738
set dummy cc; ac_word=$2
2739
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740
printf %s "checking for $ac_word... " >&6; }
2741
if test ${ac_cv_prog_CC+y}
2743
printf %s "(cached) " >&6
2745
if test -n "$CC"; then
2746
ac_cv_prog_CC="$CC" # Let the user override the test.
2749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753
case $as_dir in #(((
2756
*) as_dir=$as_dir/ ;;
2758
for ac_exec_ext in '' $ac_executable_extensions; do
2759
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2760
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2761
ac_prog_rejected=yes
2765
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2772
if test $ac_prog_rejected = yes; then
2773
# We found a bogon in the path, so make sure we never use it.
2774
set dummy $ac_cv_prog_CC
2776
if test $# != 0; then
2777
# We chose a different compiler from the bogus one.
2778
# However, it has the same basename, so the bogon will be chosen
2779
# first if we set CC to just the basename; use the full file name.
2781
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2787
if test -n "$CC"; then
2788
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2789
printf "%s\n" "$CC" >&6; }
2791
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792
printf "%s\n" "no" >&6; }
2797
if test -z "$CC"; then
2798
if test -n "$ac_tool_prefix"; then
2799
for ac_prog in cl.exe
2801
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2802
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2803
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804
printf %s "checking for $ac_word... " >&6; }
2805
if test ${ac_cv_prog_CC+y}
2807
printf %s "(cached) " >&6
2809
if test -n "$CC"; then
2810
ac_cv_prog_CC="$CC" # Let the user override the test.
2812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816
case $as_dir in #(((
2819
*) as_dir=$as_dir/ ;;
2821
for ac_exec_ext in '' $ac_executable_extensions; do
2822
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2823
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2824
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2834
if test -n "$CC"; then
2835
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836
printf "%s\n" "$CC" >&6; }
2838
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839
printf "%s\n" "no" >&6; }
2843
test -n "$CC" && break
2846
if test -z "$CC"; then
2848
for ac_prog in cl.exe
2850
# Extract the first word of "$ac_prog", so it can be a program name with args.
2851
set dummy $ac_prog; ac_word=$2
2852
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853
printf %s "checking for $ac_word... " >&6; }
2854
if test ${ac_cv_prog_ac_ct_CC+y}
2856
printf %s "(cached) " >&6
2858
if test -n "$ac_ct_CC"; then
2859
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2861
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865
case $as_dir in #(((
2868
*) as_dir=$as_dir/ ;;
2870
for ac_exec_ext in '' $ac_executable_extensions; do
2871
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2872
ac_cv_prog_ac_ct_CC="$ac_prog"
2873
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2882
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883
if test -n "$ac_ct_CC"; then
2884
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2885
printf "%s\n" "$ac_ct_CC" >&6; }
2887
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888
printf "%s\n" "no" >&6; }
2892
test -n "$ac_ct_CC" && break
2895
if test "x$ac_ct_CC" = x; then
2898
case $cross_compiling:$ac_tool_warned in
2900
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2901
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2902
ac_tool_warned=yes ;;
2909
if test -z "$CC"; then
2910
if test -n "$ac_tool_prefix"; then
2911
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2912
set dummy ${ac_tool_prefix}clang; ac_word=$2
2913
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914
printf %s "checking for $ac_word... " >&6; }
2915
if test ${ac_cv_prog_CC+y}
2917
printf %s "(cached) " >&6
2919
if test -n "$CC"; then
2920
ac_cv_prog_CC="$CC" # Let the user override the test.
2922
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926
case $as_dir in #(((
2929
*) as_dir=$as_dir/ ;;
2931
for ac_exec_ext in '' $ac_executable_extensions; do
2932
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2933
ac_cv_prog_CC="${ac_tool_prefix}clang"
2934
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2944
if test -n "$CC"; then
2945
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946
printf "%s\n" "$CC" >&6; }
2948
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949
printf "%s\n" "no" >&6; }
2954
if test -z "$ac_cv_prog_CC"; then
2956
# Extract the first word of "clang", so it can be a program name with args.
2957
set dummy clang; ac_word=$2
2958
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959
printf %s "checking for $ac_word... " >&6; }
2960
if test ${ac_cv_prog_ac_ct_CC+y}
2962
printf %s "(cached) " >&6
2964
if test -n "$ac_ct_CC"; then
2965
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971
case $as_dir in #(((
2974
*) as_dir=$as_dir/ ;;
2976
for ac_exec_ext in '' $ac_executable_extensions; do
2977
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2978
ac_cv_prog_ac_ct_CC="clang"
2979
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2988
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989
if test -n "$ac_ct_CC"; then
2990
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2991
printf "%s\n" "$ac_ct_CC" >&6; }
2993
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994
printf "%s\n" "no" >&6; }
2997
if test "x$ac_ct_CC" = x; then
3000
case $cross_compiling:$ac_tool_warned in
3002
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3003
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3004
ac_tool_warned=yes ;;
3015
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3016
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3017
as_fn_error $? "no acceptable C compiler found in \$PATH
3018
See \`config.log' for more details" "$LINENO" 5; }
3020
# Provide some information about the compiler.
3021
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3024
for ac_option in --version -v -V -qversion -version; do
3025
{ { ac_try="$ac_compiler $ac_option >&5"
3027
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028
*) ac_try_echo=$ac_try;;
3030
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031
printf "%s\n" "$ac_try_echo"; } >&5
3032
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3034
if test -s conftest.err; then
3036
... rest of stderr output deleted ...
3037
10q' conftest.err >conftest.er1
3038
cat conftest.er1 >&5
3040
rm -f conftest.er1 conftest.err
3041
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042
test $ac_status = 0; }
3045
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046
/* end confdefs.h. */
3056
ac_clean_files_save=$ac_clean_files
3057
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3058
# Try to create an executable without -o first, disregard a.out.
3059
# It will help us diagnose broken compilers, and finding out an intuition
3061
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3062
printf %s "checking whether the C compiler works... " >&6; }
3063
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3065
# The possible output files:
3066
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3069
for ac_file in $ac_files
3072
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3073
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3078
if { { ac_try="$ac_link_default"
3080
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081
*) ac_try_echo=$ac_try;;
3083
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084
printf "%s\n" "$ac_try_echo"; } >&5
3085
(eval "$ac_link_default") 2>&5
3087
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088
test $ac_status = 0; }
3090
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3091
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3092
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3093
# so that the user can short-circuit this test for compilers unknown to
3095
for ac_file in $ac_files ''
3097
test -f "$ac_file" || continue
3099
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3102
# We found the default executable, but exeext='' is most
3106
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3108
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3110
# We set ac_cv_exeext here because the later test for it is not
3111
# safe: cross compilers may not add the suffix if given an `-o'
3112
# argument, so we may need to know it at that point already.
3113
# Even if this section looks crufty: it has the advantage of
3120
test "$ac_cv_exeext" = no && ac_cv_exeext=
3125
if test -z "$ac_file"
3127
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128
printf "%s\n" "no" >&6; }
3129
printf "%s\n" "$as_me: failed program was:" >&5
3130
sed 's/^/| /' conftest.$ac_ext >&5
3132
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3134
as_fn_error 77 "C compiler cannot create executables
3135
See \`config.log' for more details" "$LINENO" 5; }
3137
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138
printf "%s\n" "yes" >&6; }
3140
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3141
printf %s "checking for C compiler default output file name... " >&6; }
3142
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3143
printf "%s\n" "$ac_file" >&6; }
3144
ac_exeext=$ac_cv_exeext
3146
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3147
ac_clean_files=$ac_clean_files_save
3148
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3149
printf %s "checking for suffix of executables... " >&6; }
3150
if { { ac_try="$ac_link"
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
printf "%s\n" "$ac_try_echo"; } >&5
3157
(eval "$ac_link") 2>&5
3159
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160
test $ac_status = 0; }
3162
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3163
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3164
# work properly (i.e., refer to `conftest.exe'), while it won't with
3166
for ac_file in conftest.exe conftest conftest.*; do
3167
test -f "$ac_file" || continue
3169
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3170
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3176
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3178
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3179
See \`config.log' for more details" "$LINENO" 5; }
3181
rm -f conftest conftest$ac_cv_exeext
3182
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3183
printf "%s\n" "$ac_cv_exeext" >&6; }
3185
rm -f conftest.$ac_ext
3186
EXEEXT=$ac_cv_exeext
3188
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189
/* end confdefs.h. */
3194
FILE *f = fopen ("conftest.out", "w");
3195
return ferror (f) || fclose (f) != 0;
3201
ac_clean_files="$ac_clean_files conftest.out"
3202
# Check that the compiler produces executables we can run. If not, either
3203
# the compiler is broken, or we cross compile.
3204
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3205
printf %s "checking whether we are cross compiling... " >&6; }
3206
if test "$cross_compiling" != yes; then
3207
{ { ac_try="$ac_link"
3209
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210
*) ac_try_echo=$ac_try;;
3212
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213
printf "%s\n" "$ac_try_echo"; } >&5
3214
(eval "$ac_link") 2>&5
3216
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217
test $ac_status = 0; }
3218
if { ac_try='./conftest$ac_cv_exeext'
3219
{ { case "(($ac_try" in
3220
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221
*) ac_try_echo=$ac_try;;
3223
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224
printf "%s\n" "$ac_try_echo"; } >&5
3225
(eval "$ac_try") 2>&5
3227
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228
test $ac_status = 0; }; }; then
3231
if test "$cross_compiling" = maybe; then
3234
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3236
as_fn_error 77 "cannot run C compiled programs.
3237
If you meant to cross compile, use \`--host'.
3238
See \`config.log' for more details" "$LINENO" 5; }
3242
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3243
printf "%s\n" "$cross_compiling" >&6; }
3245
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3246
ac_clean_files=$ac_clean_files_save
3247
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3248
printf %s "checking for suffix of object files... " >&6; }
3249
if test ${ac_cv_objext+y}
3251
printf %s "(cached) " >&6
3253
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254
/* end confdefs.h. */
3264
rm -f conftest.o conftest.obj
3265
if { { ac_try="$ac_compile"
3267
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268
*) ac_try_echo=$ac_try;;
3270
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271
printf "%s\n" "$ac_try_echo"; } >&5
3272
(eval "$ac_compile") 2>&5
3274
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275
test $ac_status = 0; }
3277
for ac_file in conftest.o conftest.obj conftest.*; do
3278
test -f "$ac_file" || continue;
3280
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3281
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3286
printf "%s\n" "$as_me: failed program was:" >&5
3287
sed 's/^/| /' conftest.$ac_ext >&5
3289
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3291
as_fn_error $? "cannot compute suffix of object files: cannot compile
3292
See \`config.log' for more details" "$LINENO" 5; }
3294
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3296
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3297
printf "%s\n" "$ac_cv_objext" >&6; }
3298
OBJEXT=$ac_cv_objext
3300
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3301
printf %s "checking whether the compiler supports GNU C... " >&6; }
3302
if test ${ac_cv_c_compiler_gnu+y}
3304
printf %s "(cached) " >&6
3306
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307
/* end confdefs.h. */
3320
if ac_fn_c_try_compile "$LINENO"
3326
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3327
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3330
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3331
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334
if test $ac_compiler_gnu = yes; then
3339
ac_test_CFLAGS=${CFLAGS+y}
3340
ac_save_CFLAGS=$CFLAGS
3341
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3342
printf %s "checking whether $CC accepts -g... " >&6; }
3343
if test ${ac_cv_prog_cc_g+y}
3345
printf %s "(cached) " >&6
3347
ac_save_c_werror_flag=$ac_c_werror_flag
3348
ac_c_werror_flag=yes
3351
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352
/* end confdefs.h. */
3362
if ac_fn_c_try_compile "$LINENO"
3367
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368
/* end confdefs.h. */
3378
if ac_fn_c_try_compile "$LINENO"
3382
ac_c_werror_flag=$ac_save_c_werror_flag
3384
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385
/* end confdefs.h. */
3395
if ac_fn_c_try_compile "$LINENO"
3399
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3401
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3403
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3404
ac_c_werror_flag=$ac_save_c_werror_flag
3406
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3407
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3408
if test $ac_test_CFLAGS; then
3409
CFLAGS=$ac_save_CFLAGS
3410
elif test $ac_cv_prog_cc_g = yes; then
3411
if test "$GCC" = yes; then
3417
if test "$GCC" = yes; then
3424
if test x$ac_prog_cc_stdc = xno
3426
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3427
printf %s "checking for $CC option to enable C11 features... " >&6; }
3428
if test ${ac_cv_prog_cc_c11+y}
3430
printf %s "(cached) " >&6
3432
ac_cv_prog_cc_c11=no
3434
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435
/* end confdefs.h. */
3436
$ac_c_conftest_c11_program
3438
for ac_arg in '' -std=gnu11
3440
CC="$ac_save_CC $ac_arg"
3441
if ac_fn_c_try_compile "$LINENO"
3443
ac_cv_prog_cc_c11=$ac_arg
3445
rm -f core conftest.err conftest.$ac_objext conftest.beam
3446
test "x$ac_cv_prog_cc_c11" != "xno" && break
3448
rm -f conftest.$ac_ext
3452
if test "x$ac_cv_prog_cc_c11" = xno
3454
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3455
printf "%s\n" "unsupported" >&6; }
3457
if test "x$ac_cv_prog_cc_c11" = x
3459
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3460
printf "%s\n" "none needed" >&6; }
3462
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3463
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3464
CC="$CC $ac_cv_prog_cc_c11"
3466
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3470
if test x$ac_prog_cc_stdc = xno
3472
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3473
printf %s "checking for $CC option to enable C99 features... " >&6; }
3474
if test ${ac_cv_prog_cc_c99+y}
3476
printf %s "(cached) " >&6
3478
ac_cv_prog_cc_c99=no
3480
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481
/* end confdefs.h. */
3482
$ac_c_conftest_c99_program
3484
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3486
CC="$ac_save_CC $ac_arg"
3487
if ac_fn_c_try_compile "$LINENO"
3489
ac_cv_prog_cc_c99=$ac_arg
3491
rm -f core conftest.err conftest.$ac_objext conftest.beam
3492
test "x$ac_cv_prog_cc_c99" != "xno" && break
3494
rm -f conftest.$ac_ext
3498
if test "x$ac_cv_prog_cc_c99" = xno
3500
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3501
printf "%s\n" "unsupported" >&6; }
3503
if test "x$ac_cv_prog_cc_c99" = x
3505
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3506
printf "%s\n" "none needed" >&6; }
3508
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3509
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3510
CC="$CC $ac_cv_prog_cc_c99"
3512
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3516
if test x$ac_prog_cc_stdc = xno
3518
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3519
printf %s "checking for $CC option to enable C89 features... " >&6; }
3520
if test ${ac_cv_prog_cc_c89+y}
3522
printf %s "(cached) " >&6
3524
ac_cv_prog_cc_c89=no
3526
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527
/* end confdefs.h. */
3528
$ac_c_conftest_c89_program
3530
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3532
CC="$ac_save_CC $ac_arg"
3533
if ac_fn_c_try_compile "$LINENO"
3535
ac_cv_prog_cc_c89=$ac_arg
3537
rm -f core conftest.err conftest.$ac_objext conftest.beam
3538
test "x$ac_cv_prog_cc_c89" != "xno" && break
3540
rm -f conftest.$ac_ext
3544
if test "x$ac_cv_prog_cc_c89" = xno
3546
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3547
printf "%s\n" "unsupported" >&6; }
3549
if test "x$ac_cv_prog_cc_c89" = x
3551
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3552
printf "%s\n" "none needed" >&6; }
3554
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3555
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3556
CC="$CC $ac_cv_prog_cc_c89"
3558
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3564
ac_cpp='$CPP $CPPFLAGS'
3565
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571
ac_cpp='$CPP $CPPFLAGS'
3572
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3576
printf %s "checking whether $CC understands -c and -o together... " >&6; }
3577
if test ${am_cv_prog_cc_c_o+y}
3579
printf %s "(cached) " >&6
3581
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582
/* end confdefs.h. */
3592
# Make sure it works both with $CC and with simple cc.
3593
# Following AC_PROG_CC_C_O, we do the test twice because some
3594
# compilers refuse to overwrite an existing .o file with -o,
3595
# though they will create one.
3596
am_cv_prog_cc_c_o=yes
3598
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3599
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602
(exit $ac_status); } \
3603
&& test -f conftest2.$ac_objext; then
3606
am_cv_prog_cc_c_o=no
3610
rm -f core conftest*
3613
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3614
printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3615
if test "$am_cv_prog_cc_c_o" != yes; then
3616
# Losing compiler, so override with the script.
3617
# FIXME: It is wrong to rewrite CC.
3618
# But if we don't then we get into trouble of one sort or another.
3619
# A longer-term fix would be to have automake use am__CC in this case,
3620
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3621
CC="$am_aux_dir/compile $CC"
3624
ac_cpp='$CPP $CPPFLAGS'
3625
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
3632
printf %s "checking whether C compiler accepts -Wall... " >&6; }
3633
if test ${ax_cv_check_cflags___Wall+y}
3635
printf %s "(cached) " >&6
3638
ax_check_save_flags=$CFLAGS
3639
CFLAGS="$CFLAGS -Wall"
3640
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641
/* end confdefs.h. */
3651
if ac_fn_c_try_compile "$LINENO"
3653
ax_cv_check_cflags___Wall=yes
3655
ax_cv_check_cflags___Wall=no
3657
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3658
CFLAGS=$ax_check_save_flags
3660
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
3661
printf "%s\n" "$ax_cv_check_cflags___Wall" >&6; }
3662
if test "x$ax_cv_check_cflags___Wall" = xyes
3664
CFLAGS="$CFLAGS -Wall"
3669
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
3670
printf %s "checking whether C compiler accepts -Wextra... " >&6; }
3671
if test ${ax_cv_check_cflags___Wextra+y}
3673
printf %s "(cached) " >&6
3676
ax_check_save_flags=$CFLAGS
3677
CFLAGS="$CFLAGS -Wextra"
3678
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679
/* end confdefs.h. */
3689
if ac_fn_c_try_compile "$LINENO"
3691
ax_cv_check_cflags___Wextra=yes
3693
ax_cv_check_cflags___Wextra=no
3695
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3696
CFLAGS=$ax_check_save_flags
3698
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextra" >&5
3699
printf "%s\n" "$ax_cv_check_cflags___Wextra" >&6; }
3700
if test "x$ax_cv_check_cflags___Wextra" = xyes
3702
CFLAGS="$CFLAGS -Wextra"
3707
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat=2" >&5
3708
printf %s "checking whether C compiler accepts -Wformat=2... " >&6; }
3709
if test ${ax_cv_check_cflags___Wformat_2+y}
3711
printf %s "(cached) " >&6
3714
ax_check_save_flags=$CFLAGS
3715
CFLAGS="$CFLAGS -Wformat=2"
3716
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717
/* end confdefs.h. */
3727
if ac_fn_c_try_compile "$LINENO"
3729
ax_cv_check_cflags___Wformat_2=yes
3731
ax_cv_check_cflags___Wformat_2=no
3733
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3734
CFLAGS=$ax_check_save_flags
3736
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_2" >&5
3737
printf "%s\n" "$ax_cv_check_cflags___Wformat_2" >&6; }
3738
if test "x$ax_cv_check_cflags___Wformat_2" = xyes
3740
CFLAGS="$CFLAGS -Wformat=2"
3745
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=gnu99" >&5
3746
printf %s "checking whether C compiler accepts -std=gnu99... " >&6; }
3747
if test ${ax_cv_check_cflags___std_gnu99+y}
3749
printf %s "(cached) " >&6
3752
ax_check_save_flags=$CFLAGS
3753
CFLAGS="$CFLAGS -std=gnu99"
3754
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755
/* end confdefs.h. */
3765
if ac_fn_c_try_compile "$LINENO"
3767
ax_cv_check_cflags___std_gnu99=yes
3769
ax_cv_check_cflags___std_gnu99=no
3771
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3772
CFLAGS=$ax_check_save_flags
3774
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_gnu99" >&5
3775
printf "%s\n" "$ax_cv_check_cflags___std_gnu99" >&6; }
3776
if test "x$ax_cv_check_cflags___std_gnu99" = xyes
3778
CFLAGS="$CFLAGS -std=gnu99"
3781
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=c99" >&5
3782
printf %s "checking whether C compiler accepts -std=c99... " >&6; }
3783
if test ${ax_cv_check_cflags___std_c99+y}
3785
printf %s "(cached) " >&6
3788
ax_check_save_flags=$CFLAGS
3789
CFLAGS="$CFLAGS -std=c99"
3790
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791
/* end confdefs.h. */
3801
if ac_fn_c_try_compile "$LINENO"
3803
ax_cv_check_cflags___std_c99=yes
3805
ax_cv_check_cflags___std_c99=no
3807
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3808
CFLAGS=$ax_check_save_flags
3810
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_c99" >&5
3811
printf "%s\n" "$ax_cv_check_cflags___std_c99" >&6; }
3812
if test "x$ax_cv_check_cflags___std_c99" = xyes
3814
CFLAGS="$CFLAGS -std=c99"
3822
ac_config_headers="$ac_config_headers libpkgconf/config.h"
3824
ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
3825
if test "x$ac_cv_func_strlcpy" = xyes
3827
printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
3830
ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
3831
if test "x$ac_cv_func_strlcat" = xyes
3833
printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
3836
ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
3837
if test "x$ac_cv_func_strndup" = xyes
3839
printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
3843
ac_header= ac_cache=
3844
for ac_item in $ac_header_c_list
3846
if test $ac_cache; then
3847
ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3848
if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3849
printf "%s\n" "#define $ac_item 1" >> confdefs.h
3851
ac_header= ac_cache=
3852
elif test $ac_header; then
3866
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3869
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3872
ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
3873
if test "x$ac_cv_header_sys_stat_h" = xyes
3875
printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
3879
am__api_version='1.16'
3882
# Find a good install program. We prefer a C program (faster),
3883
# so one script is as good as another. But avoid the broken or
3884
# incompatible versions:
3885
# SysV /etc/install, /usr/sbin/install
3886
# SunOS /usr/etc/install
3887
# IRIX /sbin/install
3889
# AmigaOS /C/install, which installs bootblocks on floppy discs
3890
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3891
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3892
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3893
# OS/2's system install, which has a completely different semantic
3894
# ./install, which can be erroneously created by make from ./install.sh.
3895
# Reject install programs that cannot install multiple files.
3896
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3897
printf %s "checking for a BSD-compatible install... " >&6; }
3898
if test -z "$INSTALL"; then
3899
if test ${ac_cv_path_install+y}
3901
printf %s "(cached) " >&6
3903
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907
case $as_dir in #(((
3910
*) as_dir=$as_dir/ ;;
3912
# Account for fact that we put trailing slashes in our PATH walk.
3915
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3916
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3919
# OSF1 and SCO ODT 3.0 have their own names for install.
3920
# Don't use installbsd from OSF since it installs stuff as root
3922
for ac_prog in ginstall scoinst install; do
3923
for ac_exec_ext in '' $ac_executable_extensions; do
3924
if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3925
if test $ac_prog = install &&
3926
grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3927
# AIX install. It has an incompatible calling convention.
3929
elif test $ac_prog = install &&
3930
grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3931
# program-specific install script used by HP pwplus--don't use.
3934
rm -rf conftest.one conftest.two conftest.dir
3935
echo one > conftest.one
3936
echo two > conftest.two
3938
if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3939
test -s conftest.one && test -s conftest.two &&
3940
test -s conftest.dir/conftest.one &&
3941
test -s conftest.dir/conftest.two
3943
ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3956
rm -rf conftest.one conftest.two conftest.dir
3959
if test ${ac_cv_path_install+y}; then
3960
INSTALL=$ac_cv_path_install
3962
# As a last resort, use the slow shell script. Don't cache a
3963
# value for INSTALL within a source directory, because that will
3964
# break other packages using the cache if that directory is
3965
# removed, or if the value is a relative name.
3966
INSTALL=$ac_install_sh
3969
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3970
printf "%s\n" "$INSTALL" >&6; }
3972
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3973
# It thinks the first close brace ends the variable substitution.
3974
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3976
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3978
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3980
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3981
printf %s "checking whether build environment is sane... " >&6; }
3982
# Reject unsafe characters in $srcdir or the absolute working directory
3983
# name. Accept space and tab only in the latter.
3987
*[\\\"\#\$\&\'\`$am_lf]*)
3988
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3991
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3992
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3995
# Do 'set' in a subshell so we don't clobber the current shell's
3996
# arguments. Must try -L first in case configure is actually a
3997
# symlink; some systems play weird games with the mod time of symlinks
3998
# (eg FreeBSD returns the mod time of the symlink's containing
4002
for am_try in 1 2; do
4003
echo "timestamp, slept: $am_has_slept" > conftest.file
4004
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4005
if test "$*" = "X"; then
4007
set X `ls -t "$srcdir/configure" conftest.file`
4009
if test "$*" != "X $srcdir/configure conftest.file" \
4010
&& test "$*" != "X conftest.file $srcdir/configure"; then
4012
# If neither matched, then we have a broken ls. This can happen
4013
# if, for instance, CONFIG_SHELL is bash and it inherits a
4014
# broken ls alias from the environment. This has actually
4015
# happened. Such a system could not be considered "sane".
4016
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4017
alias in your environment" "$LINENO" 5
4019
if test "$2" = conftest.file || test $am_try -eq 2; then
4026
test "$2" = conftest.file
4032
as_fn_error $? "newly created file is older than distributed files!
4033
Check your system clock" "$LINENO" 5
4035
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4036
printf "%s\n" "yes" >&6; }
4037
# If we didn't sleep, we still need to ensure time stamps of config.status and
4038
# generated files are strictly newer.
4040
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4047
test "$program_prefix" != NONE &&
4048
program_transform_name="s&^&$program_prefix&;$program_transform_name"
4049
# Use a double $ so make ignores it.
4050
test "$program_suffix" != NONE &&
4051
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4052
# Double any \ or $.
4053
# By default was `s,x,x', remove it if useless.
4054
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4055
program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4058
if test x"${MISSING+set}" != xset; then
4059
MISSING="\${SHELL} '$am_aux_dir/missing'"
4061
# Use eval to expand $SHELL
4062
if eval "$MISSING --is-lightweight"; then
4063
am_missing_run="$MISSING "
4066
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4067
printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4070
if test x"${install_sh+set}" != xset; then
4073
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4075
install_sh="\${SHELL} $am_aux_dir/install-sh"
4079
# Installed binaries are usually stripped using 'strip' when the user
4080
# run "make install-strip". However 'strip' might not be the right
4081
# tool to use in cross-compilation environments, therefore Automake
4082
# will honor the 'STRIP' environment variable to overrule this program.
4083
if test "$cross_compiling" != no; then
4084
if test -n "$ac_tool_prefix"; then
4085
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4086
set dummy ${ac_tool_prefix}strip; ac_word=$2
4087
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088
printf %s "checking for $ac_word... " >&6; }
4089
if test ${ac_cv_prog_STRIP+y}
4091
printf %s "(cached) " >&6
4093
if test -n "$STRIP"; then
4094
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100
case $as_dir in #(((
4103
*) as_dir=$as_dir/ ;;
4105
for ac_exec_ext in '' $ac_executable_extensions; do
4106
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4107
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4108
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4117
STRIP=$ac_cv_prog_STRIP
4118
if test -n "$STRIP"; then
4119
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4120
printf "%s\n" "$STRIP" >&6; }
4122
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123
printf "%s\n" "no" >&6; }
4128
if test -z "$ac_cv_prog_STRIP"; then
4130
# Extract the first word of "strip", so it can be a program name with args.
4131
set dummy strip; ac_word=$2
4132
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133
printf %s "checking for $ac_word... " >&6; }
4134
if test ${ac_cv_prog_ac_ct_STRIP+y}
4136
printf %s "(cached) " >&6
4138
if test -n "$ac_ct_STRIP"; then
4139
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4141
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145
case $as_dir in #(((
4148
*) as_dir=$as_dir/ ;;
4150
for ac_exec_ext in '' $ac_executable_extensions; do
4151
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4152
ac_cv_prog_ac_ct_STRIP="strip"
4153
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4162
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4163
if test -n "$ac_ct_STRIP"; then
4164
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4165
printf "%s\n" "$ac_ct_STRIP" >&6; }
4167
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168
printf "%s\n" "no" >&6; }
4171
if test "x$ac_ct_STRIP" = x; then
4174
case $cross_compiling:$ac_tool_warned in
4176
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4177
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4178
ac_tool_warned=yes ;;
4183
STRIP="$ac_cv_prog_STRIP"
4187
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4190
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4191
printf %s "checking for a race-free mkdir -p... " >&6; }
4192
if test -z "$MKDIR_P"; then
4193
if test ${ac_cv_path_mkdir+y}
4195
printf %s "(cached) " >&6
4197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4201
case $as_dir in #(((
4204
*) as_dir=$as_dir/ ;;
4206
for ac_prog in mkdir gmkdir; do
4207
for ac_exec_ext in '' $ac_executable_extensions; do
4208
as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4209
case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4210
'mkdir ('*'coreutils) '* | \
4212
'mkdir (fileutils) '4.1*)
4213
ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4223
test -d ./--version && rmdir ./--version
4224
if test ${ac_cv_path_mkdir+y}; then
4225
MKDIR_P="$ac_cv_path_mkdir -p"
4227
# As a last resort, use the slow shell script. Don't cache a
4228
# value for MKDIR_P within a source directory, because that will
4229
# break other packages using the cache if that directory is
4230
# removed, or if the value is a relative name.
4231
MKDIR_P="$ac_install_sh -d"
4234
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4235
printf "%s\n" "$MKDIR_P" >&6; }
4237
for ac_prog in gawk mawk nawk awk
4239
# Extract the first word of "$ac_prog", so it can be a program name with args.
4240
set dummy $ac_prog; ac_word=$2
4241
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242
printf %s "checking for $ac_word... " >&6; }
4243
if test ${ac_cv_prog_AWK+y}
4245
printf %s "(cached) " >&6
4247
if test -n "$AWK"; then
4248
ac_cv_prog_AWK="$AWK" # Let the user override the test.
4250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254
case $as_dir in #(((
4257
*) as_dir=$as_dir/ ;;
4259
for ac_exec_ext in '' $ac_executable_extensions; do
4260
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4261
ac_cv_prog_AWK="$ac_prog"
4262
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4272
if test -n "$AWK"; then
4273
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4274
printf "%s\n" "$AWK" >&6; }
4276
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277
printf "%s\n" "no" >&6; }
4281
test -n "$AWK" && break
4284
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4285
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4287
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4288
if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4290
printf %s "(cached) " >&6
4292
cat >conftest.make <<\_ACEOF
4295
@echo '@@@%%%=$(MAKE)=@@@%%%'
4297
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4298
case `${MAKE-make} -f conftest.make 2>/dev/null` in
4300
eval ac_cv_prog_make_${ac_make}_set=yes;;
4302
eval ac_cv_prog_make_${ac_make}_set=no;;
4306
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4307
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4308
printf "%s\n" "yes" >&6; }
4311
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312
printf "%s\n" "no" >&6; }
4313
SET_MAKE="MAKE=${MAKE-make}"
4316
rm -rf .tst 2>/dev/null
4317
mkdir .tst 2>/dev/null
4318
if test -d .tst; then
4323
rmdir .tst 2>/dev/null
4325
DEPDIR="${am__leading_dot}deps"
4327
ac_config_commands="$ac_config_commands depfiles"
4329
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4330
printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4331
cat > confinc.mk << 'END'
4333
@echo this is the am__doit target >confinc.out
4338
# BSD make does it like this.
4339
echo '.include "confinc.mk" # ignored' > confmf.BSD
4340
# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4341
echo 'include confinc.mk # ignored' > confmf.GNU
4343
for s in GNU BSD; do
4344
{ echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4345
(${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348
(exit $ac_status); }
4349
case $?:`cat confinc.out 2>/dev/null` in #(
4350
'0:this is the am__doit target') :
4353
am__include='.include' am__quote='"' ;; #(
4355
am__include='include' am__quote='' ;;
4360
if test "$am__include" != "#"; then
4361
_am_result="yes ($s style)"
4365
rm -f confinc.* confmf.*
4366
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4367
printf "%s\n" "${_am_result}" >&6; }
4369
# Check whether --enable-dependency-tracking was given.
4370
if test ${enable_dependency_tracking+y}
4372
enableval=$enable_dependency_tracking;
4375
if test "x$enable_dependency_tracking" != xno; then
4376
am_depcomp="$ac_aux_dir/depcomp"
4380
if test "x$enable_dependency_tracking" != xno; then
4389
# Check whether --enable-silent-rules was given.
4390
if test ${enable_silent_rules+y}
4392
enableval=$enable_silent_rules;
4395
case $enable_silent_rules in # (((
4396
yes) AM_DEFAULT_VERBOSITY=0;;
4397
no) AM_DEFAULT_VERBOSITY=1;;
4398
*) AM_DEFAULT_VERBOSITY=1;;
4400
am_make=${MAKE-make}
4401
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4402
printf %s "checking whether $am_make supports nested variables... " >&6; }
4403
if test ${am_cv_make_support_nested_variables+y}
4405
printf %s "(cached) " >&6
4407
if printf "%s\n" 'TRUE=$(BAR$(V))
4413
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4414
am_cv_make_support_nested_variables=yes
4416
am_cv_make_support_nested_variables=no
4419
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4420
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4421
if test $am_cv_make_support_nested_variables = yes; then
4423
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4425
AM_V=$AM_DEFAULT_VERBOSITY
4426
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4430
if test "`cd $srcdir && pwd`" != "`pwd`"; then
4431
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4432
# is not polluted with repeated "-I."
4433
am__isrc=' -I$(srcdir)'
4434
# test to see if srcdir already configured
4435
if test -f $srcdir/config.status; then
4436
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4440
# test whether we have cygpath
4441
if test -z "$CYGPATH_W"; then
4442
if (cygpath --version) >/dev/null 2>/dev/null; then
4443
CYGPATH_W='cygpath -w'
4450
# Define the identity of the package.
4455
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4458
printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4460
# Some tools Automake needs.
4462
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4465
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4468
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4471
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4474
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4476
# For better backward compatibility. To be removed once Automake 1.9.x
4477
# dies out for good. For more background, see:
4478
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4479
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4480
mkdir_p='$(MKDIR_P)'
4482
# We need awk for the "check" target (and possibly the TAP driver). The
4483
# system "awk" is bad on some platforms.
4484
# Always define AMTAR for backward compatibility. Yes, it's still used
4485
# in the wild :-( We should find a proper way to deprecate it ...
4489
# We'll loop over all known methods to create a tar archive until one works.
4490
_am_tools='gnutar pax cpio none'
4492
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4498
depcc="$CC" am_compiler_list=
4500
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4501
printf %s "checking dependency style of $depcc... " >&6; }
4502
if test ${am_cv_CC_dependencies_compiler_type+y}
4504
printf %s "(cached) " >&6
4506
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4507
# We make a subdir and do the tests there. Otherwise we can end up
4508
# making bogus files that we don't know about and never remove. For
4509
# instance it was reported that on HP-UX the gcc test will end up
4510
# making a dummy file named 'D' -- because '-MD' means "put the output
4514
# Copy depcomp to subdir because otherwise we won't find it if we're
4515
# using a relative directory.
4516
cp "$am_depcomp" conftest.dir
4518
# We will build objects and dependencies in a subdirectory because
4519
# it helps to detect inapplicable dependency modes. For instance
4520
# both Tru64's cc and ICC support -MD to output dependencies as a
4521
# side effect of compilation, but ICC will put the dependencies in
4522
# the current directory while Tru64 will put them in the object
4526
am_cv_CC_dependencies_compiler_type=none
4527
if test "$am_compiler_list" = ""; then
4528
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4531
case " $depcc " in #(
4532
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4535
for depmode in $am_compiler_list; do
4536
# Setup a source with many dependencies, because some compilers
4537
# like to wrap large dependency lists on column 80 (with \), and
4538
# we should not choose a depcomp mode which is confused by this.
4540
# We need to recreate these files for each test, as the compiler may
4541
# overwrite some of them when testing with obscure command lines.
4542
# This happens at least with the AIX C compiler.
4544
for i in 1 2 3 4 5 6; do
4545
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4546
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4547
# Solaris 10 /bin/sh.
4548
echo '/* dummy */' > sub/conftst$i.h
4550
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4552
# We check with '-c' and '-o' for the sake of the "dashmstdout"
4553
# mode. It turns out that the SunPro C++ compiler does not properly
4554
# handle '-M -o', and we need to detect this. Also, some Intel
4555
# versions had trouble with output in subdirs.
4556
am__obj=sub/conftest.${OBJEXT-o}
4557
am__minus_obj="-o $am__obj"
4560
# This depmode causes a compiler race in universal mode.
4561
test "$am__universal" = false || continue
4564
# After this tag, mechanisms are not by side-effect, so they'll
4565
# only be used when explicitly requested.
4566
if test "x$enable_dependency_tracking" = xyes; then
4572
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4573
# This compiler won't grok '-c -o', but also, the minuso test has
4574
# not run yet. These depmodes are late enough in the game, and
4575
# so weak that their functioning should not be impacted.
4576
am__obj=conftest.${OBJEXT-o}
4581
if depmode=$depmode \
4582
source=sub/conftest.c object=$am__obj \
4583
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4584
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4585
>/dev/null 2>conftest.err &&
4586
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4587
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4588
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4589
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4590
# icc doesn't choke on unknown options, it will just issue warnings
4591
# or remarks (even with -Werror). So we grep stderr for any message
4592
# that says an option was ignored or not supported.
4593
# When given -MP, icc 7.0 and 7.1 complain thusly:
4594
# icc: Command line warning: ignoring option '-M'; no argument required
4595
# The diagnosis changed in icc 8.0:
4596
# icc: Command line remark: option '-MP' not supported
4597
if (grep 'ignoring option' conftest.err ||
4598
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4599
am_cv_CC_dependencies_compiler_type=$depmode
4608
am_cv_CC_dependencies_compiler_type=none
4612
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4613
printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4614
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4617
test "x$enable_dependency_tracking" != xno \
4618
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4620
am__fastdepCC_FALSE='#'
4622
am__fastdepCC_TRUE='#'
4623
am__fastdepCC_FALSE=
4627
# Variables for tags utilities; see am/tags.am
4628
if test -z "$CTAGS"; then
4632
if test -z "$ETAGS"; then
4636
if test -z "$CSCOPE"; then
4642
# POSIX will say in a future version that running "rm -f" with no argument
4643
# is OK; and we want to be able to make that assumption in our Makefile
4644
# recipes. So use an aggressive probe to check that the usage we want is
4645
# actually supported "in the wild" to an acceptable degree.
4646
# See automake bug#10828.
4647
# To make any issue more visible, cause the running configure to be aborted
4648
# by default if the 'rm' program in use doesn't match our expectations; the
4649
# user can still override this though.
4650
if rm -f && rm -fr && rm -rf; then : OK; else
4654
Your 'rm' program seems unable to run without file operands specified
4655
on the command line, even when the '-f' option is present. This is contrary
4656
to the behaviour of most rm programs out there, and not conforming with
4657
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4659
Please tell bug-automake@gnu.org about your system, including the value
4660
of your $PATH and any error possibly output before this message. This
4661
can help us improve future automake versions.
4664
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4665
echo 'Configuration will proceed anyway, since you have set the' >&2
4666
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4670
Aborting the configuration process, to ensure you take notice of the issue.
4672
You can download and install GNU coreutils to get an 'rm' implementation
4673
that behaves properly: <https://www.gnu.org/software/coreutils/>.
4675
If you want to complete the configuration process using your problematic
4676
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4677
to "yes", and re-run configure.
4680
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4684
# Check whether --enable-silent-rules was given.
4685
if test ${enable_silent_rules+y}
4687
enableval=$enable_silent_rules;
4690
case $enable_silent_rules in # (((
4691
yes) AM_DEFAULT_VERBOSITY=0;;
4692
no) AM_DEFAULT_VERBOSITY=1;;
4693
*) AM_DEFAULT_VERBOSITY=0;;
4695
am_make=${MAKE-make}
4696
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4697
printf %s "checking whether $am_make supports nested variables... " >&6; }
4698
if test ${am_cv_make_support_nested_variables+y}
4700
printf %s "(cached) " >&6
4702
if printf "%s\n" 'TRUE=$(BAR$(V))
4708
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4709
am_cv_make_support_nested_variables=yes
4711
am_cv_make_support_nested_variables=no
4714
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4715
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4716
if test $am_cv_make_support_nested_variables = yes; then
4718
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4720
AM_V=$AM_DEFAULT_VERBOSITY
4721
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4727
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4728
printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4733
macro_version='2.4.7'
4734
macro_revision='2.4.7'
4749
ltmain=$ac_aux_dir/ltmain.sh
4753
# Make sure we can run config.sub.
4754
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4755
as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4757
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4758
printf %s "checking build system type... " >&6; }
4759
if test ${ac_cv_build+y}
4761
printf %s "(cached) " >&6
4763
ac_build_alias=$build_alias
4764
test "x$ac_build_alias" = x &&
4765
ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4766
test "x$ac_build_alias" = x &&
4767
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4768
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4769
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4772
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4773
printf "%s\n" "$ac_cv_build" >&6; }
4774
case $ac_cv_build in
4776
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4779
ac_save_IFS=$IFS; IFS='-'
4785
# Remember, the first character of IFS is used to create $*,
4786
# except with old shells:
4789
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4792
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4793
printf %s "checking host system type... " >&6; }
4794
if test ${ac_cv_host+y}
4796
printf %s "(cached) " >&6
4798
if test "x$host_alias" = x; then
4799
ac_cv_host=$ac_cv_build
4801
ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4802
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4806
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4807
printf "%s\n" "$ac_cv_host" >&6; }
4810
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4813
ac_save_IFS=$IFS; IFS='-'
4819
# Remember, the first character of IFS is used to create $*,
4820
# except with old shells:
4823
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4826
# Backslashify metacharacters that are still active within
4827
# double-quoted strings.
4828
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4830
# Same as above, but do not quote variable references.
4831
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4833
# Sed substitution to delay expansion of an escaped shell variable in a
4834
# double_quote_subst'ed string.
4835
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4837
# Sed substitution to delay expansion of an escaped single quote.
4838
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4840
# Sed substitution to avoid accidental globbing in evaled expressions
4841
no_glob_subst='s/\*/\\\*/g'
4843
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4844
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4845
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4847
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4848
printf %s "checking how to print strings... " >&6; }
4849
# Test print first, because it will be a builtin if present.
4850
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4851
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4853
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4856
# Use this function as a fallback that always works.
4857
func_fallback_echo ()
4859
eval 'cat <<_LTECHO_EOF
4863
ECHO='func_fallback_echo'
4866
# func_echo_all arg...
4867
# Invoke $ECHO with all args, space-separated.
4874
printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4875
printf "%s\n" "printf" >&6; } ;;
4876
print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4877
printf "%s\n" "print -r" >&6; } ;;
4878
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4879
printf "%s\n" "cat" >&6; } ;;
4895
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4896
printf %s "checking for a sed that does not truncate output... " >&6; }
4897
if test ${ac_cv_path_SED+y}
4899
printf %s "(cached) " >&6
4901
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4902
for ac_i in 1 2 3 4 5 6 7; do
4903
ac_script="$ac_script$as_nl$ac_script"
4905
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4906
{ ac_script=; unset ac_script;}
4907
if test -z "$SED"; then
4908
ac_path_SED_found=false
4909
# Loop through the user's path and test for each of PROGNAME-LIST
4910
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914
case $as_dir in #(((
4917
*) as_dir=$as_dir/ ;;
4919
for ac_prog in sed gsed
4921
for ac_exec_ext in '' $ac_executable_extensions; do
4922
ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4923
as_fn_executable_p "$ac_path_SED" || continue
4924
# Check for GNU ac_path_SED and select it if it is found.
4925
# Check for GNU $ac_path_SED
4926
case `"$ac_path_SED" --version 2>&1` in
4928
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4931
printf %s 0123456789 >"conftest.in"
4934
cat "conftest.in" "conftest.in" >"conftest.tmp"
4935
mv "conftest.tmp" "conftest.in"
4936
cp "conftest.in" "conftest.nl"
4937
printf "%s\n" '' >> "conftest.nl"
4938
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4939
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4940
as_fn_arith $ac_count + 1 && ac_count=$as_val
4941
if test $ac_count -gt ${ac_path_SED_max-0}; then
4942
# Best one so far, save it but keep looking for a better one
4943
ac_cv_path_SED="$ac_path_SED"
4944
ac_path_SED_max=$ac_count
4946
# 10*(2^10) chars as input seems more than enough
4947
test $ac_count -gt 10 && break
4949
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4952
$ac_path_SED_found && break 3
4957
if test -z "$ac_cv_path_SED"; then
4958
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4965
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4966
printf "%s\n" "$ac_cv_path_SED" >&6; }
4967
SED="$ac_cv_path_SED"
4970
test -z "$SED" && SED=sed
4971
Xsed="$SED -e 1s/^X//"
4983
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4984
printf %s "checking for grep that handles long lines and -e... " >&6; }
4985
if test ${ac_cv_path_GREP+y}
4987
printf %s "(cached) " >&6
4989
if test -z "$GREP"; then
4990
ac_path_GREP_found=false
4991
# Loop through the user's path and test for each of PROGNAME-LIST
4992
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4996
case $as_dir in #(((
4999
*) as_dir=$as_dir/ ;;
5001
for ac_prog in grep ggrep
5003
for ac_exec_ext in '' $ac_executable_extensions; do
5004
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5005
as_fn_executable_p "$ac_path_GREP" || continue
5006
# Check for GNU ac_path_GREP and select it if it is found.
5007
# Check for GNU $ac_path_GREP
5008
case `"$ac_path_GREP" --version 2>&1` in
5010
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5013
printf %s 0123456789 >"conftest.in"
5016
cat "conftest.in" "conftest.in" >"conftest.tmp"
5017
mv "conftest.tmp" "conftest.in"
5018
cp "conftest.in" "conftest.nl"
5019
printf "%s\n" 'GREP' >> "conftest.nl"
5020
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022
as_fn_arith $ac_count + 1 && ac_count=$as_val
5023
if test $ac_count -gt ${ac_path_GREP_max-0}; then
5024
# Best one so far, save it but keep looking for a better one
5025
ac_cv_path_GREP="$ac_path_GREP"
5026
ac_path_GREP_max=$ac_count
5028
# 10*(2^10) chars as input seems more than enough
5029
test $ac_count -gt 10 && break
5031
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5034
$ac_path_GREP_found && break 3
5039
if test -z "$ac_cv_path_GREP"; then
5040
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5043
ac_cv_path_GREP=$GREP
5047
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5048
printf "%s\n" "$ac_cv_path_GREP" >&6; }
5049
GREP="$ac_cv_path_GREP"
5052
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5053
printf %s "checking for egrep... " >&6; }
5054
if test ${ac_cv_path_EGREP+y}
5056
printf %s "(cached) " >&6
5058
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5059
then ac_cv_path_EGREP="$GREP -E"
5061
if test -z "$EGREP"; then
5062
ac_path_EGREP_found=false
5063
# Loop through the user's path and test for each of PROGNAME-LIST
5064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5068
case $as_dir in #(((
5071
*) as_dir=$as_dir/ ;;
5073
for ac_prog in egrep
5075
for ac_exec_ext in '' $ac_executable_extensions; do
5076
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5077
as_fn_executable_p "$ac_path_EGREP" || continue
5078
# Check for GNU ac_path_EGREP and select it if it is found.
5079
# Check for GNU $ac_path_EGREP
5080
case `"$ac_path_EGREP" --version 2>&1` in
5082
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5085
printf %s 0123456789 >"conftest.in"
5088
cat "conftest.in" "conftest.in" >"conftest.tmp"
5089
mv "conftest.tmp" "conftest.in"
5090
cp "conftest.in" "conftest.nl"
5091
printf "%s\n" 'EGREP' >> "conftest.nl"
5092
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5093
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5094
as_fn_arith $ac_count + 1 && ac_count=$as_val
5095
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5096
# Best one so far, save it but keep looking for a better one
5097
ac_cv_path_EGREP="$ac_path_EGREP"
5098
ac_path_EGREP_max=$ac_count
5100
# 10*(2^10) chars as input seems more than enough
5101
test $ac_count -gt 10 && break
5103
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5106
$ac_path_EGREP_found && break 3
5111
if test -z "$ac_cv_path_EGREP"; then
5112
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5115
ac_cv_path_EGREP=$EGREP
5120
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5121
printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5122
EGREP="$ac_cv_path_EGREP"
5125
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5126
printf %s "checking for fgrep... " >&6; }
5127
if test ${ac_cv_path_FGREP+y}
5129
printf %s "(cached) " >&6
5131
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5132
then ac_cv_path_FGREP="$GREP -F"
5134
if test -z "$FGREP"; then
5135
ac_path_FGREP_found=false
5136
# Loop through the user's path and test for each of PROGNAME-LIST
5137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5141
case $as_dir in #(((
5144
*) as_dir=$as_dir/ ;;
5146
for ac_prog in fgrep
5148
for ac_exec_ext in '' $ac_executable_extensions; do
5149
ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5150
as_fn_executable_p "$ac_path_FGREP" || continue
5151
# Check for GNU ac_path_FGREP and select it if it is found.
5152
# Check for GNU $ac_path_FGREP
5153
case `"$ac_path_FGREP" --version 2>&1` in
5155
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5158
printf %s 0123456789 >"conftest.in"
5161
cat "conftest.in" "conftest.in" >"conftest.tmp"
5162
mv "conftest.tmp" "conftest.in"
5163
cp "conftest.in" "conftest.nl"
5164
printf "%s\n" 'FGREP' >> "conftest.nl"
5165
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5166
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5167
as_fn_arith $ac_count + 1 && ac_count=$as_val
5168
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5169
# Best one so far, save it but keep looking for a better one
5170
ac_cv_path_FGREP="$ac_path_FGREP"
5171
ac_path_FGREP_max=$ac_count
5173
# 10*(2^10) chars as input seems more than enough
5174
test $ac_count -gt 10 && break
5176
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5179
$ac_path_FGREP_found && break 3
5184
if test -z "$ac_cv_path_FGREP"; then
5185
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5188
ac_cv_path_FGREP=$FGREP
5193
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5194
printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5195
FGREP="$ac_cv_path_FGREP"
5198
test -z "$GREP" && GREP=grep
5218
# Check whether --with-gnu-ld was given.
5219
if test ${with_gnu_ld+y}
5221
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5227
if test yes = "$GCC"; then
5228
# Check if gcc -print-prog-name=ld gives a path.
5229
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5230
printf %s "checking for ld used by $CC... " >&6; }
5233
# gcc leaves a trailing carriage return, which upsets mingw
5234
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5236
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5239
# Accept absolute paths.
5241
re_direlt='/[^/][^/]*/\.\./'
5242
# Canonicalize the pathname of ld
5243
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5244
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5245
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5247
test -z "$LD" && LD=$ac_prog
5250
# If it fails, then pretend we aren't using GCC.
5254
# If it is relative, then search for the first ld in PATH.
5258
elif test yes = "$with_gnu_ld"; then
5259
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5260
printf %s "checking for GNU ld... " >&6; }
5262
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5263
printf %s "checking for non-GNU ld... " >&6; }
5265
if test ${lt_cv_path_LD+y}
5267
printf %s "(cached) " >&6
5269
if test -z "$LD"; then
5270
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5271
for ac_dir in $PATH; do
5273
test -z "$ac_dir" && ac_dir=.
5274
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5275
lt_cv_path_LD=$ac_dir/$ac_prog
5276
# Check to see if the program is GNU ld. I'd rather use --version,
5277
# but apparently some variants of GNU ld only accept -v.
5278
# Break only if it was the GNU/non-GNU ld that we prefer.
5279
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5280
*GNU* | *'with BFD'*)
5281
test no != "$with_gnu_ld" && break
5284
test yes != "$with_gnu_ld" && break
5291
lt_cv_path_LD=$LD # Let the user override the test with a path.
5296
if test -n "$LD"; then
5297
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5298
printf "%s\n" "$LD" >&6; }
5300
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301
printf "%s\n" "no" >&6; }
5303
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5304
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5305
printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5306
if test ${lt_cv_prog_gnu_ld+y}
5308
printf %s "(cached) " >&6
5310
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5311
case `$LD -v 2>&1 </dev/null` in
5312
*GNU* | *'with BFD'*)
5313
lt_cv_prog_gnu_ld=yes
5316
lt_cv_prog_gnu_ld=no
5320
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5321
printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5322
with_gnu_ld=$lt_cv_prog_gnu_ld
5332
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5333
printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5334
if test ${lt_cv_path_NM+y}
5336
printf %s "(cached) " >&6
5338
if test -n "$NM"; then
5339
# Let the user override the test.
5342
lt_nm_to_check=${ac_tool_prefix}nm
5343
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5344
lt_nm_to_check="$lt_nm_to_check nm"
5346
for lt_tmp_nm in $lt_nm_to_check; do
5347
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5348
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5350
test -z "$ac_dir" && ac_dir=.
5351
tmp_nm=$ac_dir/$lt_tmp_nm
5352
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5353
# Check to see if the nm accepts a BSD-compat flag.
5354
# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5355
# nm: unknown option "B" ignored
5356
# Tru64's nm complains that /dev/null is an invalid object file
5357
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5359
mingw*) lt_bad_file=conftest.nm/nofile ;;
5360
*) lt_bad_file=/dev/null ;;
5362
case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5363
*$lt_bad_file* | *'Invalid file or object type'*)
5364
lt_cv_path_NM="$tmp_nm -B"
5368
case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5370
lt_cv_path_NM="$tmp_nm -p"
5374
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5375
continue # so that we can try to find one that supports BSD flags
5384
: ${lt_cv_path_NM=no}
5387
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5388
printf "%s\n" "$lt_cv_path_NM" >&6; }
5389
if test no != "$lt_cv_path_NM"; then
5392
# Didn't find any BSD compatible name lister, look for dumpbin.
5393
if test -n "$DUMPBIN"; then :
5394
# Let the user override the test.
5396
if test -n "$ac_tool_prefix"; then
5397
for ac_prog in dumpbin "link -dump"
5399
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5400
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5401
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402
printf %s "checking for $ac_word... " >&6; }
5403
if test ${ac_cv_prog_DUMPBIN+y}
5405
printf %s "(cached) " >&6
5407
if test -n "$DUMPBIN"; then
5408
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5410
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414
case $as_dir in #(((
5417
*) as_dir=$as_dir/ ;;
5419
for ac_exec_ext in '' $ac_executable_extensions; do
5420
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5421
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5422
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5431
DUMPBIN=$ac_cv_prog_DUMPBIN
5432
if test -n "$DUMPBIN"; then
5433
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5434
printf "%s\n" "$DUMPBIN" >&6; }
5436
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437
printf "%s\n" "no" >&6; }
5441
test -n "$DUMPBIN" && break
5444
if test -z "$DUMPBIN"; then
5445
ac_ct_DUMPBIN=$DUMPBIN
5446
for ac_prog in dumpbin "link -dump"
5448
# Extract the first word of "$ac_prog", so it can be a program name with args.
5449
set dummy $ac_prog; ac_word=$2
5450
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451
printf %s "checking for $ac_word... " >&6; }
5452
if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5454
printf %s "(cached) " >&6
5456
if test -n "$ac_ct_DUMPBIN"; then
5457
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463
case $as_dir in #(((
5466
*) as_dir=$as_dir/ ;;
5468
for ac_exec_ext in '' $ac_executable_extensions; do
5469
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5470
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5471
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5480
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5481
if test -n "$ac_ct_DUMPBIN"; then
5482
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5483
printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5485
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486
printf "%s\n" "no" >&6; }
5490
test -n "$ac_ct_DUMPBIN" && break
5493
if test "x$ac_ct_DUMPBIN" = x; then
5496
case $cross_compiling:$ac_tool_warned in
5498
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5499
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500
ac_tool_warned=yes ;;
5502
DUMPBIN=$ac_ct_DUMPBIN
5506
case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5508
DUMPBIN="$DUMPBIN -symbols -headers"
5516
if test : != "$DUMPBIN"; then
5520
test -z "$NM" && NM=nm
5527
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5528
printf %s "checking the name lister ($NM) interface... " >&6; }
5529
if test ${lt_cv_nm_interface+y}
5531
printf %s "(cached) " >&6
5533
lt_cv_nm_interface="BSD nm"
5534
echo "int some_variable = 0;" > conftest.$ac_ext
5535
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5536
(eval "$ac_compile" 2>conftest.err)
5537
cat conftest.err >&5
5538
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5539
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5540
cat conftest.err >&5
5541
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
5542
cat conftest.out >&5
5543
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5544
lt_cv_nm_interface="MS dumpbin"
5548
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5549
printf "%s\n" "$lt_cv_nm_interface" >&6; }
5551
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5552
printf %s "checking whether ln -s works... " >&6; }
5554
if test "$LN_S" = "ln -s"; then
5555
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5556
printf "%s\n" "yes" >&6; }
5558
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5559
printf "%s\n" "no, using $LN_S" >&6; }
5562
# find the maximum length of command line arguments
5563
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5564
printf %s "checking the maximum length of command line arguments... " >&6; }
5565
if test ${lt_cv_sys_max_cmd_len+y}
5567
printf %s "(cached) " >&6
5574
# On DJGPP, this test can blow up pretty badly due to problems in libc
5575
# (any single argument exceeding 2000 bytes causes a buffer overrun
5576
# during glob expansion). Even if it were fixed, the result of this
5577
# check would be larger than it should be.
5578
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5582
# Under GNU Hurd, this test is not required because there is
5583
# no limit to the length of command line arguments.
5584
# Libtool will interpret -1 as no limit whatsoever
5585
lt_cv_sys_max_cmd_len=-1;
5588
cygwin* | mingw* | cegcc*)
5589
# On Win9x/ME, this test blows up -- it succeeds, but takes
5590
# about 5 minutes as the teststring grows exponentially.
5591
# Worse, since 9x/ME are not pre-emptively multitasking,
5592
# you end up with a "frozen" computer, even though with patience
5593
# the test eventually succeeds (with a max line length of 256k).
5594
# Instead, let's just punt: use the minimum linelength reported by
5595
# all of the supported platforms: 8192 (on NT/2K/XP).
5596
lt_cv_sys_max_cmd_len=8192;
5600
# On MiNT this can take a long time and run out of memory.
5601
lt_cv_sys_max_cmd_len=8192;
5605
# On AmigaOS with pdksh, this test takes hours, literally.
5606
# So we just punt and use a minimum line length of 8192.
5607
lt_cv_sys_max_cmd_len=8192;
5610
bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5611
# This has been around since 386BSD, at least. Likely further.
5612
if test -x /sbin/sysctl; then
5613
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5614
elif test -x /usr/sbin/sysctl; then
5615
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5617
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5619
# And add a safety zone
5620
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5621
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5625
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5626
lt_cv_sys_max_cmd_len=196608
5630
# The test takes a long time on OS/2.
5631
lt_cv_sys_max_cmd_len=8192
5635
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5636
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5637
# nice to cause kernel panics so lets avoid the loop below.
5638
# First set a reasonable default.
5639
lt_cv_sys_max_cmd_len=16384
5641
if test -x /sbin/sysconfig; then
5642
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5643
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5648
lt_cv_sys_max_cmd_len=102400
5650
sysv5* | sco5v6* | sysv4.2uw2*)
5651
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5652
if test -n "$kargmax"; then
5653
lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5655
lt_cv_sys_max_cmd_len=32768
5659
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5660
if test -n "$lt_cv_sys_max_cmd_len" && \
5661
test undefined != "$lt_cv_sys_max_cmd_len"; then
5662
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5663
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5665
# Make teststring a little bigger before we do anything with it.
5666
# a 1K string should be a reasonable start.
5667
for i in 1 2 3 4 5 6 7 8; do
5668
teststring=$teststring$teststring
5670
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5671
# If test is not a shell built-in, we'll probably end up computing a
5672
# maximum length that is only half of the actual maximum length, but
5674
while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5675
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
5676
test 17 != "$i" # 1/2 MB should be enough
5679
teststring=$teststring$teststring
5681
# Only check the string length outside the loop.
5682
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5684
# Add a significant safety factor because C++ compilers can tack on
5685
# massive amounts of additional arguments before passing them to the
5686
# linker. It appears as though 1/2 is a usable value.
5687
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5694
if test -n "$lt_cv_sys_max_cmd_len"; then
5695
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5696
printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5698
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5699
printf "%s\n" "none" >&6; }
5701
max_cmd_len=$lt_cv_sys_max_cmd_len
5712
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5722
# test EBCDIC or ASCII
5723
case `echo X|tr X '\101'` in
5724
A) # ASCII based system
5725
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5726
lt_SP2NL='tr \040 \012'
5727
lt_NL2SP='tr \015\012 \040\040'
5729
*) # EBCDIC based system
5730
lt_SP2NL='tr \100 \n'
5731
lt_NL2SP='tr \r\n \100\100'
5743
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5744
printf %s "checking how to convert $build file names to $host format... " >&6; }
5745
if test ${lt_cv_to_host_file_cmd+y}
5747
printf %s "(cached) " >&6
5752
*-*-mingw* ) # actually msys
5753
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5756
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5758
* ) # otherwise, assume *nix
5759
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5765
*-*-mingw* ) # actually msys
5766
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5769
lt_cv_to_host_file_cmd=func_convert_file_noop
5771
* ) # otherwise, assume *nix
5772
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5776
* ) # unhandled hosts (and "normal" native builds)
5777
lt_cv_to_host_file_cmd=func_convert_file_noop
5783
to_host_file_cmd=$lt_cv_to_host_file_cmd
5784
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5785
printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5791
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5792
printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5793
if test ${lt_cv_to_tool_file_cmd+y}
5795
printf %s "(cached) " >&6
5797
#assume ordinary cross tools, or native build.
5798
lt_cv_to_tool_file_cmd=func_convert_file_noop
5802
*-*-mingw* ) # actually msys
5803
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5811
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5812
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5813
printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5819
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5820
printf %s "checking for $LD option to reload object files... " >&6; }
5821
if test ${lt_cv_ld_reload_flag+y}
5823
printf %s "(cached) " >&6
5825
lt_cv_ld_reload_flag='-r'
5827
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5828
printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5829
reload_flag=$lt_cv_ld_reload_flag
5830
case $reload_flag in
5832
*) reload_flag=" $reload_flag" ;;
5834
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5836
cygwin* | mingw* | pw32* | cegcc*)
5837
if test yes != "$GCC"; then
5842
if test yes = "$GCC"; then
5843
reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5845
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5858
if test -n "$ac_tool_prefix"; then
5859
# Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5860
set dummy ${ac_tool_prefix}file; ac_word=$2
5861
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862
printf %s "checking for $ac_word... " >&6; }
5863
if test ${ac_cv_prog_FILECMD+y}
5865
printf %s "(cached) " >&6
5867
if test -n "$FILECMD"; then
5868
ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5870
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874
case $as_dir in #(((
5877
*) as_dir=$as_dir/ ;;
5879
for ac_exec_ext in '' $ac_executable_extensions; do
5880
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5881
ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5882
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5891
FILECMD=$ac_cv_prog_FILECMD
5892
if test -n "$FILECMD"; then
5893
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5894
printf "%s\n" "$FILECMD" >&6; }
5896
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897
printf "%s\n" "no" >&6; }
5902
if test -z "$ac_cv_prog_FILECMD"; then
5903
ac_ct_FILECMD=$FILECMD
5904
# Extract the first word of "file", so it can be a program name with args.
5905
set dummy file; ac_word=$2
5906
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907
printf %s "checking for $ac_word... " >&6; }
5908
if test ${ac_cv_prog_ac_ct_FILECMD+y}
5910
printf %s "(cached) " >&6
5912
if test -n "$ac_ct_FILECMD"; then
5913
ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5915
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919
case $as_dir in #(((
5922
*) as_dir=$as_dir/ ;;
5924
for ac_exec_ext in '' $ac_executable_extensions; do
5925
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5926
ac_cv_prog_ac_ct_FILECMD="file"
5927
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5936
ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5937
if test -n "$ac_ct_FILECMD"; then
5938
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5939
printf "%s\n" "$ac_ct_FILECMD" >&6; }
5941
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942
printf "%s\n" "no" >&6; }
5945
if test "x$ac_ct_FILECMD" = x; then
5948
case $cross_compiling:$ac_tool_warned in
5950
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5951
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5952
ac_tool_warned=yes ;;
5954
FILECMD=$ac_ct_FILECMD
5957
FILECMD="$ac_cv_prog_FILECMD"
5966
if test -n "$ac_tool_prefix"; then
5967
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5968
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5969
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970
printf %s "checking for $ac_word... " >&6; }
5971
if test ${ac_cv_prog_OBJDUMP+y}
5973
printf %s "(cached) " >&6
5975
if test -n "$OBJDUMP"; then
5976
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5978
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982
case $as_dir in #(((
5985
*) as_dir=$as_dir/ ;;
5987
for ac_exec_ext in '' $ac_executable_extensions; do
5988
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5989
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5990
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5999
OBJDUMP=$ac_cv_prog_OBJDUMP
6000
if test -n "$OBJDUMP"; then
6001
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6002
printf "%s\n" "$OBJDUMP" >&6; }
6004
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005
printf "%s\n" "no" >&6; }
6010
if test -z "$ac_cv_prog_OBJDUMP"; then
6011
ac_ct_OBJDUMP=$OBJDUMP
6012
# Extract the first word of "objdump", so it can be a program name with args.
6013
set dummy objdump; ac_word=$2
6014
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015
printf %s "checking for $ac_word... " >&6; }
6016
if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6018
printf %s "(cached) " >&6
6020
if test -n "$ac_ct_OBJDUMP"; then
6021
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027
case $as_dir in #(((
6030
*) as_dir=$as_dir/ ;;
6032
for ac_exec_ext in '' $ac_executable_extensions; do
6033
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6034
ac_cv_prog_ac_ct_OBJDUMP="objdump"
6035
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6044
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6045
if test -n "$ac_ct_OBJDUMP"; then
6046
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6047
printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6049
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050
printf "%s\n" "no" >&6; }
6053
if test "x$ac_ct_OBJDUMP" = x; then
6056
case $cross_compiling:$ac_tool_warned in
6058
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6059
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6060
ac_tool_warned=yes ;;
6062
OBJDUMP=$ac_ct_OBJDUMP
6065
OBJDUMP="$ac_cv_prog_OBJDUMP"
6068
test -z "$OBJDUMP" && OBJDUMP=objdump
6078
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6079
printf %s "checking how to recognize dependent libraries... " >&6; }
6080
if test ${lt_cv_deplibs_check_method+y}
6082
printf %s "(cached) " >&6
6084
lt_cv_file_magic_cmd='$MAGIC_CMD'
6085
lt_cv_file_magic_test_file=
6086
lt_cv_deplibs_check_method='unknown'
6087
# Need to set the preceding variable on all platforms that support
6088
# interlibrary dependencies.
6089
# 'none' -- dependencies not supported.
6090
# 'unknown' -- same as none, but documents that we really don't know.
6091
# 'pass_all' -- all dependencies passed with no checks.
6092
# 'test_compile' -- check by making test program.
6093
# 'file_magic [[regex]]' -- check by looking for files in library path
6094
# that responds to the $file_magic_cmd with a given extended regex.
6095
# If you have 'file' or equivalent on your system and you're not sure
6096
# whether 'pass_all' will *always* work, you probably want this one.
6100
lt_cv_deplibs_check_method=pass_all
6104
lt_cv_deplibs_check_method=pass_all
6108
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6109
lt_cv_file_magic_cmd='$FILECMD -L'
6110
lt_cv_file_magic_test_file=/shlib/libc.so
6114
# func_win32_libid is a shell function defined in ltmain.sh
6115
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6116
lt_cv_file_magic_cmd='func_win32_libid'
6120
# Base MSYS/MinGW do not provide the 'file' command needed by
6121
# func_win32_libid shell function, so use a weaker test based on 'objdump',
6122
# unless we find 'file', for example because we are cross-compiling.
6123
if ( file / ) >/dev/null 2>&1; then
6124
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6125
lt_cv_file_magic_cmd='func_win32_libid'
6127
# Keep this pattern in sync with the one in func_win32_libid.
6128
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6129
lt_cv_file_magic_cmd='$OBJDUMP -f'
6134
# use the weaker test based on 'objdump'. See mingw*.
6135
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6136
lt_cv_file_magic_cmd='$OBJDUMP -f'
6139
darwin* | rhapsody*)
6140
lt_cv_deplibs_check_method=pass_all
6143
freebsd* | dragonfly* | midnightbsd*)
6144
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6147
# Not sure whether the presence of OpenBSD here was a mistake.
6148
# Let's accept both of them until this is cleared up.
6149
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6150
lt_cv_file_magic_cmd=$FILECMD
6151
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6155
lt_cv_deplibs_check_method=pass_all
6160
lt_cv_deplibs_check_method=pass_all
6163
hpux10.20* | hpux11*)
6164
lt_cv_file_magic_cmd=$FILECMD
6167
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6168
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6171
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]'
6172
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6175
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6176
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6182
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6183
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6186
irix5* | irix6* | nonstopux*)
6188
*-32|*"-32 ") libmagic=32-bit;;
6189
*-n32|*"-n32 ") libmagic=N32;;
6190
*-64|*"-64 ") libmagic=64-bit;;
6191
*) libmagic=never-match;;
6193
lt_cv_deplibs_check_method=pass_all
6196
# This must be glibc/ELF.
6197
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6198
lt_cv_deplibs_check_method=pass_all
6202
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6203
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6205
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6210
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6211
lt_cv_file_magic_cmd=$FILECMD
6212
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6216
lt_cv_deplibs_check_method=pass_all
6220
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6221
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6223
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6227
osf3* | osf4* | osf5*)
6228
lt_cv_deplibs_check_method=pass_all
6232
lt_cv_deplibs_check_method=pass_all
6236
lt_cv_deplibs_check_method=pass_all
6239
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6240
lt_cv_deplibs_check_method=pass_all
6244
case $host_vendor in
6246
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]'
6247
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6250
lt_cv_deplibs_check_method=pass_all
6253
lt_cv_file_magic_cmd='/bin/file'
6254
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6257
lt_cv_file_magic_cmd='/bin/file'
6258
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6259
lt_cv_file_magic_test_file=/lib/libc.so
6262
lt_cv_deplibs_check_method=pass_all
6265
lt_cv_deplibs_check_method=pass_all
6271
lt_cv_deplibs_check_method=pass_all
6274
lt_cv_deplibs_check_method=pass_all
6279
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6280
printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6284
if test "$build" = "$host"; then
6287
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6290
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6296
file_magic_cmd=$lt_cv_file_magic_cmd
6297
deplibs_check_method=$lt_cv_deplibs_check_method
6298
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6321
if test -n "$ac_tool_prefix"; then
6322
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6323
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6324
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325
printf %s "checking for $ac_word... " >&6; }
6326
if test ${ac_cv_prog_DLLTOOL+y}
6328
printf %s "(cached) " >&6
6330
if test -n "$DLLTOOL"; then
6331
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6333
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337
case $as_dir in #(((
6340
*) as_dir=$as_dir/ ;;
6342
for ac_exec_ext in '' $ac_executable_extensions; do
6343
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6344
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6345
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6354
DLLTOOL=$ac_cv_prog_DLLTOOL
6355
if test -n "$DLLTOOL"; then
6356
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6357
printf "%s\n" "$DLLTOOL" >&6; }
6359
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360
printf "%s\n" "no" >&6; }
6365
if test -z "$ac_cv_prog_DLLTOOL"; then
6366
ac_ct_DLLTOOL=$DLLTOOL
6367
# Extract the first word of "dlltool", so it can be a program name with args.
6368
set dummy dlltool; ac_word=$2
6369
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370
printf %s "checking for $ac_word... " >&6; }
6371
if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6373
printf %s "(cached) " >&6
6375
if test -n "$ac_ct_DLLTOOL"; then
6376
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382
case $as_dir in #(((
6385
*) as_dir=$as_dir/ ;;
6387
for ac_exec_ext in '' $ac_executable_extensions; do
6388
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6389
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6390
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6399
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6400
if test -n "$ac_ct_DLLTOOL"; then
6401
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6402
printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6404
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405
printf "%s\n" "no" >&6; }
6408
if test "x$ac_ct_DLLTOOL" = x; then
6411
case $cross_compiling:$ac_tool_warned in
6413
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415
ac_tool_warned=yes ;;
6417
DLLTOOL=$ac_ct_DLLTOOL
6420
DLLTOOL="$ac_cv_prog_DLLTOOL"
6423
test -z "$DLLTOOL" && DLLTOOL=dlltool
6434
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6435
printf %s "checking how to associate runtime and link libraries... " >&6; }
6436
if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6438
printf %s "(cached) " >&6
6440
lt_cv_sharedlib_from_linklib_cmd='unknown'
6443
cygwin* | mingw* | pw32* | cegcc*)
6444
# two different shell functions defined in ltmain.sh;
6445
# decide which one to use based on capabilities of $DLLTOOL
6446
case `$DLLTOOL --help 2>&1` in
6447
*--identify-strict*)
6448
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6451
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6456
# fallback: assume linklib IS sharedlib
6457
lt_cv_sharedlib_from_linklib_cmd=$ECHO
6462
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6463
printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6464
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6465
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6473
if test -n "$ac_tool_prefix"; then
6476
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6477
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6478
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479
printf %s "checking for $ac_word... " >&6; }
6480
if test ${ac_cv_prog_AR+y}
6482
printf %s "(cached) " >&6
6484
if test -n "$AR"; then
6485
ac_cv_prog_AR="$AR" # Let the user override the test.
6487
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491
case $as_dir in #(((
6494
*) as_dir=$as_dir/ ;;
6496
for ac_exec_ext in '' $ac_executable_extensions; do
6497
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6498
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6499
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6509
if test -n "$AR"; then
6510
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6511
printf "%s\n" "$AR" >&6; }
6513
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514
printf "%s\n" "no" >&6; }
6518
test -n "$AR" && break
6521
if test -z "$AR"; then
6525
# Extract the first word of "$ac_prog", so it can be a program name with args.
6526
set dummy $ac_prog; ac_word=$2
6527
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528
printf %s "checking for $ac_word... " >&6; }
6529
if test ${ac_cv_prog_ac_ct_AR+y}
6531
printf %s "(cached) " >&6
6533
if test -n "$ac_ct_AR"; then
6534
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540
case $as_dir in #(((
6543
*) as_dir=$as_dir/ ;;
6545
for ac_exec_ext in '' $ac_executable_extensions; do
6546
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6547
ac_cv_prog_ac_ct_AR="$ac_prog"
6548
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6557
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6558
if test -n "$ac_ct_AR"; then
6559
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6560
printf "%s\n" "$ac_ct_AR" >&6; }
6562
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563
printf "%s\n" "no" >&6; }
6567
test -n "$ac_ct_AR" && break
6570
if test "x$ac_ct_AR" = x; then
6573
case $cross_compiling:$ac_tool_warned in
6575
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6576
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577
ac_tool_warned=yes ;;
6590
# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6591
# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6592
# higher priority because thats what people were doing historically (setting
6593
# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6594
# variable obsoleted/removed.
6596
test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6597
lt_ar_flags=$AR_FLAGS
6604
# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6605
# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6612
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6613
printf %s "checking for archiver @FILE support... " >&6; }
6614
if test ${lt_cv_ar_at_file+y}
6616
printf %s "(cached) " >&6
6619
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620
/* end confdefs.h. */
6630
if ac_fn_c_try_compile "$LINENO"
6632
echo conftest.$ac_objext > conftest.lst
6633
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6634
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6635
(eval $lt_ar_try) 2>&5
6637
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6638
test $ac_status = 0; }
6639
if test 0 -eq "$ac_status"; then
6640
# Ensure the archiver fails upon bogus file names.
6641
rm -f conftest.$ac_objext libconftest.a
6642
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6643
(eval $lt_ar_try) 2>&5
6645
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6646
test $ac_status = 0; }
6647
if test 0 -ne "$ac_status"; then
6651
rm -f conftest.* libconftest.a
6654
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6657
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6658
printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6660
if test no = "$lt_cv_ar_at_file"; then
6663
archiver_list_spec=$lt_cv_ar_at_file
6672
if test -n "$ac_tool_prefix"; then
6673
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6674
set dummy ${ac_tool_prefix}strip; ac_word=$2
6675
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676
printf %s "checking for $ac_word... " >&6; }
6677
if test ${ac_cv_prog_STRIP+y}
6679
printf %s "(cached) " >&6
6681
if test -n "$STRIP"; then
6682
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6684
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688
case $as_dir in #(((
6691
*) as_dir=$as_dir/ ;;
6693
for ac_exec_ext in '' $ac_executable_extensions; do
6694
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6695
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6696
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6705
STRIP=$ac_cv_prog_STRIP
6706
if test -n "$STRIP"; then
6707
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6708
printf "%s\n" "$STRIP" >&6; }
6710
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711
printf "%s\n" "no" >&6; }
6716
if test -z "$ac_cv_prog_STRIP"; then
6718
# Extract the first word of "strip", so it can be a program name with args.
6719
set dummy strip; ac_word=$2
6720
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721
printf %s "checking for $ac_word... " >&6; }
6722
if test ${ac_cv_prog_ac_ct_STRIP+y}
6724
printf %s "(cached) " >&6
6726
if test -n "$ac_ct_STRIP"; then
6727
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733
case $as_dir in #(((
6736
*) as_dir=$as_dir/ ;;
6738
for ac_exec_ext in '' $ac_executable_extensions; do
6739
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6740
ac_cv_prog_ac_ct_STRIP="strip"
6741
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6750
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6751
if test -n "$ac_ct_STRIP"; then
6752
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6753
printf "%s\n" "$ac_ct_STRIP" >&6; }
6755
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756
printf "%s\n" "no" >&6; }
6759
if test "x$ac_ct_STRIP" = x; then
6762
case $cross_compiling:$ac_tool_warned in
6764
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6765
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6766
ac_tool_warned=yes ;;
6771
STRIP="$ac_cv_prog_STRIP"
6774
test -z "$STRIP" && STRIP=:
6781
if test -n "$ac_tool_prefix"; then
6782
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6783
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6784
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785
printf %s "checking for $ac_word... " >&6; }
6786
if test ${ac_cv_prog_RANLIB+y}
6788
printf %s "(cached) " >&6
6790
if test -n "$RANLIB"; then
6791
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797
case $as_dir in #(((
6800
*) as_dir=$as_dir/ ;;
6802
for ac_exec_ext in '' $ac_executable_extensions; do
6803
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6804
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6805
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6814
RANLIB=$ac_cv_prog_RANLIB
6815
if test -n "$RANLIB"; then
6816
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6817
printf "%s\n" "$RANLIB" >&6; }
6819
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820
printf "%s\n" "no" >&6; }
6825
if test -z "$ac_cv_prog_RANLIB"; then
6826
ac_ct_RANLIB=$RANLIB
6827
# Extract the first word of "ranlib", so it can be a program name with args.
6828
set dummy ranlib; ac_word=$2
6829
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830
printf %s "checking for $ac_word... " >&6; }
6831
if test ${ac_cv_prog_ac_ct_RANLIB+y}
6833
printf %s "(cached) " >&6
6835
if test -n "$ac_ct_RANLIB"; then
6836
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842
case $as_dir in #(((
6845
*) as_dir=$as_dir/ ;;
6847
for ac_exec_ext in '' $ac_executable_extensions; do
6848
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6849
ac_cv_prog_ac_ct_RANLIB="ranlib"
6850
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6859
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6860
if test -n "$ac_ct_RANLIB"; then
6861
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6862
printf "%s\n" "$ac_ct_RANLIB" >&6; }
6864
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865
printf "%s\n" "no" >&6; }
6868
if test "x$ac_ct_RANLIB" = x; then
6871
case $cross_compiling:$ac_tool_warned in
6873
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6874
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875
ac_tool_warned=yes ;;
6877
RANLIB=$ac_ct_RANLIB
6880
RANLIB="$ac_cv_prog_RANLIB"
6883
test -z "$RANLIB" && RANLIB=:
6890
# Determine commands to create old-style static archives.
6891
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6892
old_postinstall_cmds='chmod 644 $oldlib'
6893
old_postuninstall_cmds=
6895
if test -n "$RANLIB"; then
6898
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6901
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6904
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6909
lock_old_archive_extraction=yes ;;
6911
lock_old_archive_extraction=no ;;
6952
# If no C compiler was specified, use CC.
6955
# If no C compiler flags were specified, use CFLAGS.
6956
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6958
# Allow CC to be a program name with arguments.
6962
# Check for command to grab the raw symbol name followed by C symbol from nm.
6963
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6964
printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6965
if test ${lt_cv_sys_global_symbol_pipe+y}
6967
printf %s "(cached) " >&6
6970
# These are sane defaults that work on at least a few old systems.
6971
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6973
# Character class describing NM global symbol codes.
6974
symcode='[BCDEGRST]'
6976
# Regexp to match symbols that can be accessed directly from C.
6977
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6979
# Define system-specific variables.
6984
cygwin* | mingw* | pw32* | cegcc*)
6985
symcode='[ABCDGISTW]'
6988
if test ia64 = "$host_cpu"; then
6989
symcode='[ABCDEGRST]'
6993
symcode='[BCDEGRST]'
6996
symcode='[BCDEGQRST]'
7007
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7015
# If we're using GNU nm, then use its standard symbol codes.
7016
case `$NM -V 2>&1` in
7017
*GNU* | *'with BFD'*)
7018
symcode='[ABCDGIRSTW]' ;;
7021
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7022
# Gets list of data symbols to import.
7023
lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7024
# Adjust the below global symbol transforms to fixup imported variables.
7025
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7026
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7027
lt_c_name_lib_hook="\
7028
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7029
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7031
# Disable hooks by default.
7032
lt_cv_sys_global_symbol_to_import=
7038
# Transform an extracted symbol line into a proper C declaration.
7039
# Some systems (esp. on ia64) link data and code symbols differently,
7040
# so use this general approach.
7041
lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7043
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7044
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7046
# Transform an extracted symbol line into symbol name and symbol address
7047
lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7049
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7050
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7052
# Transform an extracted symbol line into symbol name with lib prefix and
7054
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7055
$lt_c_name_lib_hook\
7056
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7057
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7058
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7060
# Handle CRLF in mingw tool chain
7064
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7068
# Try without a prefix underscore, then with it.
7069
for ac_symprfx in "" "_"; do
7071
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7072
symxfrm="\\1 $ac_symprfx\\2 \\2"
7074
# Write the raw and C identifiers.
7075
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7076
# Fake it for dumpbin and say T for any non-static function,
7077
# D for any global variable and I for any imported variable.
7078
# Also find C++ and __fastcall symbols from MSVC++ or ICC,
7079
# which start with @ or ?.
7080
lt_cv_sys_global_symbol_pipe="$AWK '"\
7081
" {last_section=section; section=\$ 3};"\
7082
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7083
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7084
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7085
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7086
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7087
" \$ 0!~/External *\|/{next};"\
7088
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7089
" {if(hide[section]) next};"\
7090
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7091
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7092
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7093
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7094
" ' prfx=^$ac_symprfx"
7096
lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7098
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7100
# Check to see that the pipe works correctly.
7104
cat > conftest.$ac_ext <<_LT_EOF
7109
void nm_test_func(void);
7110
void nm_test_func(void){}
7114
int main(){nm_test_var='a';nm_test_func();return(0);}
7117
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7118
(eval $ac_compile) 2>&5
7120
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7121
test $ac_status = 0; }; then
7122
# Now try to grab the symbols.
7124
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7125
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7127
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7128
test $ac_status = 0; } && test -s "$nlist"; then
7129
# Try sorting and uniquifying the output.
7130
if sort "$nlist" | uniq > "$nlist"T; then
7131
mv -f "$nlist"T "$nlist"
7136
# Make sure that we snagged all the symbols we need.
7137
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7138
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7139
cat <<_LT_EOF > conftest.$ac_ext
7140
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7141
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7142
/* DATA imports from DLLs on WIN32 can't be const, because runtime
7143
relocations are performed -- see ld's documentation on pseudo-relocs. */
7144
# define LT_DLSYM_CONST
7145
#elif defined __osf__
7146
/* This system does not cope well with relocations in const data. */
7147
# define LT_DLSYM_CONST
7149
# define LT_DLSYM_CONST const
7157
# Now generate the symbol file.
7158
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7160
cat <<_LT_EOF >> conftest.$ac_ext
7162
/* The mapping between symbol names and symbols. */
7163
LT_DLSYM_CONST struct {
7167
lt__PROGRAM__LTX_preloaded_symbols[] =
7169
{ "@PROGRAM@", (void *) 0 },
7171
$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7172
cat <<\_LT_EOF >> conftest.$ac_ext
7176
/* This works around a problem in FreeBSD linker */
7177
#ifdef FREEBSD_WORKAROUND
7178
static const void *lt_preloaded_setup() {
7179
return lt__PROGRAM__LTX_preloaded_symbols;
7187
# Now try linking the two files.
7188
mv conftest.$ac_objext conftstm.$ac_objext
7189
lt_globsym_save_LIBS=$LIBS
7190
lt_globsym_save_CFLAGS=$CFLAGS
7191
LIBS=conftstm.$ac_objext
7192
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7193
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7194
(eval $ac_link) 2>&5
7196
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7197
test $ac_status = 0; } && test -s conftest$ac_exeext; then
7200
LIBS=$lt_globsym_save_LIBS
7201
CFLAGS=$lt_globsym_save_CFLAGS
7203
echo "cannot find nm_test_func in $nlist" >&5
7206
echo "cannot find nm_test_var in $nlist" >&5
7209
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7212
echo "$progname: failed program was:" >&5
7213
cat conftest.$ac_ext >&5
7215
rm -rf conftest* conftst*
7217
# Do not use the global_symbol_pipe unless it works.
7218
if test yes = "$pipe_works"; then
7221
lt_cv_sys_global_symbol_pipe=
7227
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7228
lt_cv_sys_global_symbol_to_cdecl=
7230
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7231
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7232
printf "%s\n" "failed" >&6; }
7234
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7235
printf "%s\n" "ok" >&6; }
7238
# Response file support.
7239
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7240
nm_file_list_spec='@'
7241
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7242
nm_file_list_spec='@'
7281
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7282
printf %s "checking for sysroot... " >&6; }
7284
# Check whether --with-sysroot was given.
7285
if test ${with_sysroot+y}
7287
withval=$with_sysroot;
7294
case $with_sysroot in #(
7296
if test yes = "$GCC"; then
7297
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7301
lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7306
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7307
printf "%s\n" "$with_sysroot" >&6; }
7308
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7312
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7313
printf "%s\n" "${lt_sysroot:-no}" >&6; }
7319
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7320
printf %s "checking for a working dd... " >&6; }
7321
if test ${ac_cv_path_lt_DD+y}
7323
printf %s "(cached) " >&6
7325
printf 0123456789abcdef0123456789abcdef >conftest.i
7326
cat conftest.i conftest.i >conftest2.i
7328
if test -z "$lt_DD"; then
7329
ac_path_lt_DD_found=false
7330
# Loop through the user's path and test for each of PROGNAME-LIST
7331
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335
case $as_dir in #(((
7338
*) as_dir=$as_dir/ ;;
7342
for ac_exec_ext in '' $ac_executable_extensions; do
7343
ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7344
as_fn_executable_p "$ac_path_lt_DD" || continue
7345
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7346
cmp -s conftest.i conftest.out \
7347
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7349
$ac_path_lt_DD_found && break 3
7354
if test -z "$ac_cv_path_lt_DD"; then
7358
ac_cv_path_lt_DD=$lt_DD
7361
rm -f conftest.i conftest2.i conftest.out
7363
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7364
printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7367
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7368
printf %s "checking how to truncate binary pipes... " >&6; }
7369
if test ${lt_cv_truncate_bin+y}
7371
printf %s "(cached) " >&6
7373
printf 0123456789abcdef0123456789abcdef >conftest.i
7374
cat conftest.i conftest.i >conftest2.i
7376
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7377
cmp -s conftest.i conftest.out \
7378
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7380
rm -f conftest.i conftest2.i conftest.out
7381
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7383
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7384
printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7392
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7395
for cc_temp in $*""; do
7397
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7398
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7403
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7406
# Check whether --enable-libtool-lock was given.
7407
if test ${enable_libtool_lock+y}
7409
enableval=$enable_libtool_lock;
7412
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7414
# Some flags need to be propagated to the compiler or linker for good
7418
# Find out what ABI is being produced by ac_compile, and set mode
7419
# options accordingly.
7420
echo 'int i;' > conftest.$ac_ext
7421
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7422
(eval $ac_compile) 2>&5
7424
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7425
test $ac_status = 0; }; then
7426
case `$FILECMD conftest.$ac_objext` in
7438
# Find out what ABI is being produced by ac_compile, and set linker
7439
# options accordingly.
7440
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7441
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7442
(eval $ac_compile) 2>&5
7444
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445
test $ac_status = 0; }; then
7446
if test yes = "$lt_cv_prog_gnu_ld"; then
7447
case `$FILECMD conftest.$ac_objext` in
7449
LD="${LD-ld} -melf32bsmip"
7452
LD="${LD-ld} -melf32bmipn32"
7455
LD="${LD-ld} -melf64bmip"
7459
case `$FILECMD conftest.$ac_objext` in
7476
# Find out what ABI is being produced by ac_compile, and set linker
7477
# options accordingly.
7478
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7479
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7480
(eval $ac_compile) 2>&5
7482
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7483
test $ac_status = 0; }; then
7485
case `$FILECMD conftest.$ac_objext` in
7493
case `$FILECMD conftest.$ac_objext` in
7495
emul="${emul}btsmip"
7498
emul="${emul}ltsmip"
7501
case `$FILECMD conftest.$ac_objext` in
7506
LD="${LD-ld} -m $emul"
7511
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7512
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7513
# Find out what ABI is being produced by ac_compile, and set linker
7514
# options accordingly. Note that the listed cases only cover the
7515
# situations where additional linker options are needed (such as when
7516
# doing 32-bit compilation for a host where ld defaults to 64-bit, or
7517
# vice versa); the common cases where no linker options are needed do
7518
# not appear in the list.
7519
echo 'int i;' > conftest.$ac_ext
7520
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7521
(eval $ac_compile) 2>&5
7523
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7524
test $ac_status = 0; }; then
7525
case `$FILECMD conftest.o` in
7528
x86_64-*kfreebsd*-gnu)
7529
LD="${LD-ld} -m elf_i386_fbsd"
7532
case `$FILECMD conftest.o` in
7534
LD="${LD-ld} -m elf32_x86_64"
7537
LD="${LD-ld} -m elf_i386"
7541
powerpc64le-*linux*)
7542
LD="${LD-ld} -m elf32lppclinux"
7545
LD="${LD-ld} -m elf32ppclinux"
7548
LD="${LD-ld} -m elf_s390"
7551
LD="${LD-ld} -m elf32_sparc"
7557
x86_64-*kfreebsd*-gnu)
7558
LD="${LD-ld} -m elf_x86_64_fbsd"
7561
LD="${LD-ld} -m elf_x86_64"
7564
LD="${LD-ld} -m elf64lppc"
7567
LD="${LD-ld} -m elf64ppc"
7569
s390*-*linux*|s390*-*tpf*)
7570
LD="${LD-ld} -m elf64_s390"
7573
LD="${LD-ld} -m elf64_sparc"
7583
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
7585
CFLAGS="$CFLAGS -belf"
7586
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7587
printf %s "checking whether the C compiler needs -belf... " >&6; }
7588
if test ${lt_cv_cc_needs_belf+y}
7590
printf %s "(cached) " >&6
7593
ac_cpp='$CPP $CPPFLAGS'
7594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7598
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599
/* end confdefs.h. */
7609
if ac_fn_c_try_link "$LINENO"
7611
lt_cv_cc_needs_belf=yes
7613
lt_cv_cc_needs_belf=no
7615
rm -f core conftest.err conftest.$ac_objext conftest.beam \
7616
conftest$ac_exeext conftest.$ac_ext
7618
ac_cpp='$CPP $CPPFLAGS'
7619
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7620
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7621
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7624
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7625
printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7626
if test yes != "$lt_cv_cc_needs_belf"; then
7627
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7632
# Find out what ABI is being produced by ac_compile, and set linker
7633
# options accordingly.
7634
echo 'int i;' > conftest.$ac_ext
7635
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7636
(eval $ac_compile) 2>&5
7638
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639
test $ac_status = 0; }; then
7640
case `$FILECMD conftest.o` in
7642
case $lt_cv_prog_gnu_ld in
7645
i?86-*-solaris*|x86_64-*-solaris*)
7646
LD="${LD-ld} -m elf_x86_64"
7649
LD="${LD-ld} -m elf64_sparc"
7652
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7653
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7658
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7670
need_locks=$enable_libtool_lock
7672
if test -n "$ac_tool_prefix"; then
7673
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7674
set dummy ${ac_tool_prefix}mt; ac_word=$2
7675
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676
printf %s "checking for $ac_word... " >&6; }
7677
if test ${ac_cv_prog_MANIFEST_TOOL+y}
7679
printf %s "(cached) " >&6
7681
if test -n "$MANIFEST_TOOL"; then
7682
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7684
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688
case $as_dir in #(((
7691
*) as_dir=$as_dir/ ;;
7693
for ac_exec_ext in '' $ac_executable_extensions; do
7694
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7695
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7696
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7705
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7706
if test -n "$MANIFEST_TOOL"; then
7707
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7708
printf "%s\n" "$MANIFEST_TOOL" >&6; }
7710
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711
printf "%s\n" "no" >&6; }
7716
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7717
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7718
# Extract the first word of "mt", so it can be a program name with args.
7719
set dummy mt; ac_word=$2
7720
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721
printf %s "checking for $ac_word... " >&6; }
7722
if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7724
printf %s "(cached) " >&6
7726
if test -n "$ac_ct_MANIFEST_TOOL"; then
7727
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733
case $as_dir in #(((
7736
*) as_dir=$as_dir/ ;;
7738
for ac_exec_ext in '' $ac_executable_extensions; do
7739
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7740
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7741
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7750
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7751
if test -n "$ac_ct_MANIFEST_TOOL"; then
7752
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7753
printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7755
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756
printf "%s\n" "no" >&6; }
7759
if test "x$ac_ct_MANIFEST_TOOL" = x; then
7762
case $cross_compiling:$ac_tool_warned in
7764
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7765
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7766
ac_tool_warned=yes ;;
7768
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7771
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7774
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7775
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7776
printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7777
if test ${lt_cv_path_mainfest_tool+y}
7779
printf %s "(cached) " >&6
7781
lt_cv_path_mainfest_tool=no
7782
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7783
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7784
cat conftest.err >&5
7785
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7786
lt_cv_path_mainfest_tool=yes
7790
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7791
printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7792
if test yes != "$lt_cv_path_mainfest_tool"; then
7802
rhapsody* | darwin*)
7803
if test -n "$ac_tool_prefix"; then
7804
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7805
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7806
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807
printf %s "checking for $ac_word... " >&6; }
7808
if test ${ac_cv_prog_DSYMUTIL+y}
7810
printf %s "(cached) " >&6
7812
if test -n "$DSYMUTIL"; then
7813
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7815
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819
case $as_dir in #(((
7822
*) as_dir=$as_dir/ ;;
7824
for ac_exec_ext in '' $ac_executable_extensions; do
7825
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7826
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7827
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7836
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7837
if test -n "$DSYMUTIL"; then
7838
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7839
printf "%s\n" "$DSYMUTIL" >&6; }
7841
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842
printf "%s\n" "no" >&6; }
7847
if test -z "$ac_cv_prog_DSYMUTIL"; then
7848
ac_ct_DSYMUTIL=$DSYMUTIL
7849
# Extract the first word of "dsymutil", so it can be a program name with args.
7850
set dummy dsymutil; ac_word=$2
7851
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852
printf %s "checking for $ac_word... " >&6; }
7853
if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7855
printf %s "(cached) " >&6
7857
if test -n "$ac_ct_DSYMUTIL"; then
7858
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7860
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864
case $as_dir in #(((
7867
*) as_dir=$as_dir/ ;;
7869
for ac_exec_ext in '' $ac_executable_extensions; do
7870
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7871
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7872
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7881
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7882
if test -n "$ac_ct_DSYMUTIL"; then
7883
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7884
printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7886
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887
printf "%s\n" "no" >&6; }
7890
if test "x$ac_ct_DSYMUTIL" = x; then
7893
case $cross_compiling:$ac_tool_warned in
7895
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7896
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7897
ac_tool_warned=yes ;;
7899
DSYMUTIL=$ac_ct_DSYMUTIL
7902
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7905
if test -n "$ac_tool_prefix"; then
7906
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7907
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7908
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909
printf %s "checking for $ac_word... " >&6; }
7910
if test ${ac_cv_prog_NMEDIT+y}
7912
printf %s "(cached) " >&6
7914
if test -n "$NMEDIT"; then
7915
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7917
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921
case $as_dir in #(((
7924
*) as_dir=$as_dir/ ;;
7926
for ac_exec_ext in '' $ac_executable_extensions; do
7927
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7928
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7929
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7938
NMEDIT=$ac_cv_prog_NMEDIT
7939
if test -n "$NMEDIT"; then
7940
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7941
printf "%s\n" "$NMEDIT" >&6; }
7943
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944
printf "%s\n" "no" >&6; }
7949
if test -z "$ac_cv_prog_NMEDIT"; then
7950
ac_ct_NMEDIT=$NMEDIT
7951
# Extract the first word of "nmedit", so it can be a program name with args.
7952
set dummy nmedit; ac_word=$2
7953
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954
printf %s "checking for $ac_word... " >&6; }
7955
if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7957
printf %s "(cached) " >&6
7959
if test -n "$ac_ct_NMEDIT"; then
7960
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966
case $as_dir in #(((
7969
*) as_dir=$as_dir/ ;;
7971
for ac_exec_ext in '' $ac_executable_extensions; do
7972
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7973
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7974
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7983
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7984
if test -n "$ac_ct_NMEDIT"; then
7985
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7986
printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7988
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989
printf "%s\n" "no" >&6; }
7992
if test "x$ac_ct_NMEDIT" = x; then
7995
case $cross_compiling:$ac_tool_warned in
7997
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7998
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7999
ac_tool_warned=yes ;;
8001
NMEDIT=$ac_ct_NMEDIT
8004
NMEDIT="$ac_cv_prog_NMEDIT"
8007
if test -n "$ac_tool_prefix"; then
8008
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8009
set dummy ${ac_tool_prefix}lipo; ac_word=$2
8010
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011
printf %s "checking for $ac_word... " >&6; }
8012
if test ${ac_cv_prog_LIPO+y}
8014
printf %s "(cached) " >&6
8016
if test -n "$LIPO"; then
8017
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023
case $as_dir in #(((
8026
*) as_dir=$as_dir/ ;;
8028
for ac_exec_ext in '' $ac_executable_extensions; do
8029
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8030
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8031
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8040
LIPO=$ac_cv_prog_LIPO
8041
if test -n "$LIPO"; then
8042
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8043
printf "%s\n" "$LIPO" >&6; }
8045
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046
printf "%s\n" "no" >&6; }
8051
if test -z "$ac_cv_prog_LIPO"; then
8053
# Extract the first word of "lipo", so it can be a program name with args.
8054
set dummy lipo; ac_word=$2
8055
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056
printf %s "checking for $ac_word... " >&6; }
8057
if test ${ac_cv_prog_ac_ct_LIPO+y}
8059
printf %s "(cached) " >&6
8061
if test -n "$ac_ct_LIPO"; then
8062
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068
case $as_dir in #(((
8071
*) as_dir=$as_dir/ ;;
8073
for ac_exec_ext in '' $ac_executable_extensions; do
8074
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8075
ac_cv_prog_ac_ct_LIPO="lipo"
8076
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8085
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8086
if test -n "$ac_ct_LIPO"; then
8087
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8088
printf "%s\n" "$ac_ct_LIPO" >&6; }
8090
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091
printf "%s\n" "no" >&6; }
8094
if test "x$ac_ct_LIPO" = x; then
8097
case $cross_compiling:$ac_tool_warned in
8099
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8100
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8101
ac_tool_warned=yes ;;
8106
LIPO="$ac_cv_prog_LIPO"
8109
if test -n "$ac_tool_prefix"; then
8110
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8111
set dummy ${ac_tool_prefix}otool; ac_word=$2
8112
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113
printf %s "checking for $ac_word... " >&6; }
8114
if test ${ac_cv_prog_OTOOL+y}
8116
printf %s "(cached) " >&6
8118
if test -n "$OTOOL"; then
8119
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125
case $as_dir in #(((
8128
*) as_dir=$as_dir/ ;;
8130
for ac_exec_ext in '' $ac_executable_extensions; do
8131
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8132
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8133
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8142
OTOOL=$ac_cv_prog_OTOOL
8143
if test -n "$OTOOL"; then
8144
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8145
printf "%s\n" "$OTOOL" >&6; }
8147
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148
printf "%s\n" "no" >&6; }
8153
if test -z "$ac_cv_prog_OTOOL"; then
8155
# Extract the first word of "otool", so it can be a program name with args.
8156
set dummy otool; ac_word=$2
8157
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158
printf %s "checking for $ac_word... " >&6; }
8159
if test ${ac_cv_prog_ac_ct_OTOOL+y}
8161
printf %s "(cached) " >&6
8163
if test -n "$ac_ct_OTOOL"; then
8164
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170
case $as_dir in #(((
8173
*) as_dir=$as_dir/ ;;
8175
for ac_exec_ext in '' $ac_executable_extensions; do
8176
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8177
ac_cv_prog_ac_ct_OTOOL="otool"
8178
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8187
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8188
if test -n "$ac_ct_OTOOL"; then
8189
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8190
printf "%s\n" "$ac_ct_OTOOL" >&6; }
8192
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193
printf "%s\n" "no" >&6; }
8196
if test "x$ac_ct_OTOOL" = x; then
8199
case $cross_compiling:$ac_tool_warned in
8201
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8202
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8203
ac_tool_warned=yes ;;
8208
OTOOL="$ac_cv_prog_OTOOL"
8211
if test -n "$ac_tool_prefix"; then
8212
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8213
set dummy ${ac_tool_prefix}otool64; ac_word=$2
8214
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215
printf %s "checking for $ac_word... " >&6; }
8216
if test ${ac_cv_prog_OTOOL64+y}
8218
printf %s "(cached) " >&6
8220
if test -n "$OTOOL64"; then
8221
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227
case $as_dir in #(((
8230
*) as_dir=$as_dir/ ;;
8232
for ac_exec_ext in '' $ac_executable_extensions; do
8233
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8234
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8235
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8244
OTOOL64=$ac_cv_prog_OTOOL64
8245
if test -n "$OTOOL64"; then
8246
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8247
printf "%s\n" "$OTOOL64" >&6; }
8249
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250
printf "%s\n" "no" >&6; }
8255
if test -z "$ac_cv_prog_OTOOL64"; then
8256
ac_ct_OTOOL64=$OTOOL64
8257
# Extract the first word of "otool64", so it can be a program name with args.
8258
set dummy otool64; ac_word=$2
8259
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260
printf %s "checking for $ac_word... " >&6; }
8261
if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8263
printf %s "(cached) " >&6
8265
if test -n "$ac_ct_OTOOL64"; then
8266
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8268
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272
case $as_dir in #(((
8275
*) as_dir=$as_dir/ ;;
8277
for ac_exec_ext in '' $ac_executable_extensions; do
8278
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8279
ac_cv_prog_ac_ct_OTOOL64="otool64"
8280
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8289
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8290
if test -n "$ac_ct_OTOOL64"; then
8291
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8292
printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8294
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295
printf "%s\n" "no" >&6; }
8298
if test "x$ac_ct_OTOOL64" = x; then
8301
case $cross_compiling:$ac_tool_warned in
8303
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8304
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8305
ac_tool_warned=yes ;;
8307
OTOOL64=$ac_ct_OTOOL64
8310
OTOOL64="$ac_cv_prog_OTOOL64"
8339
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8340
printf %s "checking for -single_module linker flag... " >&6; }
8341
if test ${lt_cv_apple_cc_single_mod+y}
8343
printf %s "(cached) " >&6
8345
lt_cv_apple_cc_single_mod=no
8346
if test -z "$LT_MULTI_MODULE"; then
8347
# By default we will add the -single_module flag. You can override
8348
# by either setting the environment variable LT_MULTI_MODULE
8349
# non-empty at configure time, or by adding -multi_module to the
8351
rm -rf libconftest.dylib*
8352
echo "int foo(void){return 1;}" > conftest.c
8353
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8354
-dynamiclib -Wl,-single_module conftest.c" >&5
8355
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8356
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8358
# If there is a non-empty error log, and "single_module"
8359
# appears in it, assume the flag caused a linker warning
8360
if test -s conftest.err && $GREP single_module conftest.err; then
8361
cat conftest.err >&5
8362
# Otherwise, if the output was created with a 0 exit code from
8363
# the compiler, it worked.
8364
elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8365
lt_cv_apple_cc_single_mod=yes
8367
cat conftest.err >&5
8369
rm -rf libconftest.dylib*
8373
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8374
printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8376
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8377
printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8378
if test ${lt_cv_ld_exported_symbols_list+y}
8380
printf %s "(cached) " >&6
8382
lt_cv_ld_exported_symbols_list=no
8383
save_LDFLAGS=$LDFLAGS
8384
echo "_main" > conftest.sym
8385
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8386
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387
/* end confdefs.h. */
8397
if ac_fn_c_try_link "$LINENO"
8399
lt_cv_ld_exported_symbols_list=yes
8401
lt_cv_ld_exported_symbols_list=no
8403
rm -f core conftest.err conftest.$ac_objext conftest.beam \
8404
conftest$ac_exeext conftest.$ac_ext
8405
LDFLAGS=$save_LDFLAGS
8408
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8409
printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8411
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8412
printf %s "checking for -force_load linker flag... " >&6; }
8413
if test ${lt_cv_ld_force_load+y}
8415
printf %s "(cached) " >&6
8417
lt_cv_ld_force_load=no
8418
cat > conftest.c << _LT_EOF
8419
int forced_loaded() { return 2;}
8421
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8422
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8423
echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8424
$AR $AR_FLAGS libconftest.a conftest.o 2>&5
8425
echo "$RANLIB libconftest.a" >&5
8426
$RANLIB libconftest.a 2>&5
8427
cat > conftest.c << _LT_EOF
8428
int main() { return 0;}
8430
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8431
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8433
if test -s conftest.err && $GREP force_load conftest.err; then
8434
cat conftest.err >&5
8435
elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8436
lt_cv_ld_force_load=yes
8438
cat conftest.err >&5
8440
rm -f conftest.err libconftest.a conftest conftest.c
8441
rm -rf conftest.dSYM
8444
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8445
printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8447
rhapsody* | darwin1.[012])
8448
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8450
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8452
case $MACOSX_DEPLOYMENT_TARGET,$host in
8453
10.[012],*|,*powerpc*-darwin[5-8]*)
8454
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8456
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8460
if test yes = "$lt_cv_apple_cc_single_mod"; then
8461
_lt_dar_single_mod='$single_module'
8463
if test yes = "$lt_cv_ld_exported_symbols_list"; then
8464
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8466
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8468
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8469
_lt_dsymutil='~$DSYMUTIL $lib || :'
8476
# func_munge_path_list VARIABLE PATH
8477
# -----------------------------------
8478
# VARIABLE is name of variable containing _space_ separated list of
8479
# directories to be munged by the contents of PATH, which is string
8482
# string "DIR[ DIR]" will be prepended to VARIABLE
8484
# string "DIR[ DIR]" will be appended to VARIABLE
8485
# "DIRP[:DIRP]::[DIRA:]DIRA"
8486
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8487
# "DIRA[ DIRA]" will be appended to VARIABLE
8489
# VARIABLE will be replaced by "DIR[ DIR]"
8490
func_munge_path_list ()
8496
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8499
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8502
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8503
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8506
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8511
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8513
if test "x$ac_cv_header_dlfcn_h" = xyes
8515
printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8533
# Check whether --enable-shared was given.
8534
if test ${enable_shared+y}
8536
enableval=$enable_shared; p=${PACKAGE-default}
8538
yes) enable_shared=yes ;;
8539
no) enable_shared=no ;;
8542
# Look at the argument we got. We use all the common list separators.
8543
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8544
for pkg in $enableval; do
8546
if test "X$pkg" = "X$p"; then
8565
# Check whether --enable-static was given.
8566
if test ${enable_static+y}
8568
enableval=$enable_static; p=${PACKAGE-default}
8570
yes) enable_static=yes ;;
8571
no) enable_static=no ;;
8574
# Look at the argument we got. We use all the common list separators.
8575
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8576
for pkg in $enableval; do
8578
if test "X$pkg" = "X$p"; then
8598
# Check whether --with-pic was given.
8599
if test ${with_pic+y}
8601
withval=$with_pic; lt_p=${PACKAGE-default}
8603
yes|no) pic_mode=$withval ;;
8606
# Look at the argument we got. We use all the common list separators.
8607
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8608
for lt_pkg in $withval; do
8610
if test "X$lt_pkg" = "X$lt_p"; then
8628
# Check whether --enable-fast-install was given.
8629
if test ${enable_fast_install+y}
8631
enableval=$enable_fast_install; p=${PACKAGE-default}
8633
yes) enable_fast_install=yes ;;
8634
no) enable_fast_install=no ;;
8636
enable_fast_install=no
8637
# Look at the argument we got. We use all the common list separators.
8638
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8639
for pkg in $enableval; do
8641
if test "X$pkg" = "X$p"; then
8642
enable_fast_install=yes
8649
enable_fast_install=yes
8659
shared_archive_member_spec=
8660
case $host,$enable_shared in
8661
power*-*-aix[5-9]*,yes)
8662
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8663
printf %s "checking which variant of shared library versioning to provide... " >&6; }
8665
# Check whether --with-aix-soname was given.
8666
if test ${with_aix_soname+y}
8668
withval=$with_aix_soname; case $withval in
8672
as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8675
lt_cv_with_aix_soname=$with_aix_soname
8677
if test ${lt_cv_with_aix_soname+y}
8679
printf %s "(cached) " >&6
8681
lt_cv_with_aix_soname=aix
8684
with_aix_soname=$lt_cv_with_aix_soname
8687
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8688
printf "%s\n" "$with_aix_soname" >&6; }
8689
if test aix != "$with_aix_soname"; then
8690
# For the AIX way of multilib, we name the shared archive member
8691
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8692
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8693
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8694
# the AIX toolchain works better with OBJECT_MODE set (default 32).
8695
if test 64 = "${OBJECT_MODE-32}"; then
8696
shared_archive_member_spec=shr_64
8698
shared_archive_member_spec=shr
8716
# This can be used to rebuild libtool when needed
8717
LIBTOOL_DEPS=$ltmain
8719
# Always use our own libtool.
8720
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8751
test -z "$LN_S" && LN_S="ln -s"
8766
if test -n "${ZSH_VERSION+set}"; then
8767
setopt NO_GLOB_SUBST
8770
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8771
printf %s "checking for objdir... " >&6; }
8772
if test ${lt_cv_objdir+y}
8774
printf %s "(cached) " >&6
8776
rm -f .libs 2>/dev/null
8777
mkdir .libs 2>/dev/null
8778
if test -d .libs; then
8781
# MS-DOS does not allow filenames that begin with a dot.
8784
rmdir .libs 2>/dev/null
8786
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8787
printf "%s\n" "$lt_cv_objdir" >&6; }
8788
objdir=$lt_cv_objdir
8794
printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8801
# AIX sometimes has problems with the GCC collect2 program. For some
8802
# reason, if we set the COLLECT_NAMES environment variable, the problems
8803
# vanish in a puff of smoke.
8804
if test set != "${COLLECT_NAMES+set}"; then
8806
export COLLECT_NAMES
8813
can_build_shared=yes
8815
# All known linkers require a '.a' archive for static linking (except MSVC and
8816
# ICC, which need '.lib').
8819
with_gnu_ld=$lt_cv_prog_gnu_ld
8824
# Set sane defaults for various variables
8825
test -z "$CC" && CC=cc
8826
test -z "$LTCC" && LTCC=$CC
8827
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8828
test -z "$LD" && LD=ld
8829
test -z "$ac_objext" && ac_objext=o
8831
func_cc_basename $compiler
8832
cc_basename=$func_cc_basename_result
8835
# Only perform the check for file, if the check method requires it
8836
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8837
case $deplibs_check_method in
8839
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8840
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8841
printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8842
if test ${lt_cv_path_MAGIC_CMD+y}
8844
printf %s "(cached) " >&6
8848
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8851
lt_save_MAGIC_CMD=$MAGIC_CMD
8852
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8853
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8854
for ac_dir in $ac_dummy; do
8856
test -z "$ac_dir" && ac_dir=.
8857
if test -f "$ac_dir/${ac_tool_prefix}file"; then
8858
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8859
if test -n "$file_magic_test_file"; then
8860
case $deplibs_check_method in
8862
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8863
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8864
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8865
$EGREP "$file_magic_regex" > /dev/null; then
8870
*** Warning: the command libtool uses to detect shared libraries,
8871
*** $file_magic_cmd, produces output that libtool cannot recognize.
8872
*** The result is that libtool may fail to recognize shared libraries
8873
*** as such. This will affect the creation of libtool libraries that
8874
*** depend on shared libraries, but programs linked with such libtool
8875
*** libraries will work regardless of this problem. Nevertheless, you
8876
*** may want to report the problem to your system manager and/or to
8877
*** bug-libtool@gnu.org
8887
MAGIC_CMD=$lt_save_MAGIC_CMD
8892
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8893
if test -n "$MAGIC_CMD"; then
8894
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8895
printf "%s\n" "$MAGIC_CMD" >&6; }
8897
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898
printf "%s\n" "no" >&6; }
8905
if test -z "$lt_cv_path_MAGIC_CMD"; then
8906
if test -n "$ac_tool_prefix"; then
8907
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8908
printf %s "checking for file... " >&6; }
8909
if test ${lt_cv_path_MAGIC_CMD+y}
8911
printf %s "(cached) " >&6
8915
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8918
lt_save_MAGIC_CMD=$MAGIC_CMD
8919
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8920
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8921
for ac_dir in $ac_dummy; do
8923
test -z "$ac_dir" && ac_dir=.
8924
if test -f "$ac_dir/file"; then
8925
lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8926
if test -n "$file_magic_test_file"; then
8927
case $deplibs_check_method in
8929
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8930
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8931
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8932
$EGREP "$file_magic_regex" > /dev/null; then
8937
*** Warning: the command libtool uses to detect shared libraries,
8938
*** $file_magic_cmd, produces output that libtool cannot recognize.
8939
*** The result is that libtool may fail to recognize shared libraries
8940
*** as such. This will affect the creation of libtool libraries that
8941
*** depend on shared libraries, but programs linked with such libtool
8942
*** libraries will work regardless of this problem. Nevertheless, you
8943
*** may want to report the problem to your system manager and/or to
8944
*** bug-libtool@gnu.org
8954
MAGIC_CMD=$lt_save_MAGIC_CMD
8959
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8960
if test -n "$MAGIC_CMD"; then
8961
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8962
printf "%s\n" "$MAGIC_CMD" >&6; }
8964
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965
printf "%s\n" "no" >&6; }
8978
# Use C for the default configuration in the libtool script
8982
ac_cpp='$CPP $CPPFLAGS'
8983
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8984
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8985
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8988
# Source file extension for C test sources.
8991
# Object file extension for compiled C test sources.
8995
# Code to be used in simple compile tests
8996
lt_simple_compile_test_code="int some_variable = 0;"
8998
# Code to be used in simple link tests
8999
lt_simple_link_test_code='int main(){return(0);}'
9007
# If no C compiler was specified, use CC.
9010
# If no C compiler flags were specified, use CFLAGS.
9011
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9013
# Allow CC to be a program name with arguments.
9016
# Save the default compiler, since it gets overwritten when the other
9017
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9018
compiler_DEFAULT=$CC
9020
# save warnings/boilerplate of simple test code
9021
ac_outfile=conftest.$ac_objext
9022
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9023
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9024
_lt_compiler_boilerplate=`cat conftest.err`
9027
ac_outfile=conftest.$ac_objext
9028
echo "$lt_simple_link_test_code" >conftest.$ac_ext
9029
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9030
_lt_linker_boilerplate=`cat conftest.err`
9035
## There is no encapsulation within the following macros, do not change
9036
## the running order or otherwise move them around unless you know exactly
9037
## what you are doing...
9038
if test -n "$compiler"; then
9040
lt_prog_compiler_no_builtin_flag=
9042
if test yes = "$GCC"; then
9043
case $cc_basename in
9045
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9047
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9050
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9051
printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9052
if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9054
printf %s "(cached) " >&6
9056
lt_cv_prog_compiler_rtti_exceptions=no
9057
ac_outfile=conftest.$ac_objext
9058
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9059
lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9060
# Insert the option either (1) after the last *FLAGS variable, or
9061
# (2) before a word containing "conftest.", or (3) at the end.
9062
# Note that $ac_compile itself does not contain backslashes and begins
9063
# with a dollar sign (not a hyphen), so the echo should work correctly.
9064
# The option is referenced via a variable to avoid confusing sed.
9065
lt_compile=`echo "$ac_compile" | $SED \
9066
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9067
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9068
-e 's:$: $lt_compiler_flag:'`
9069
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9070
(eval "$lt_compile" 2>conftest.err)
9072
cat conftest.err >&5
9073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074
if (exit $ac_status) && test -s "$ac_outfile"; then
9075
# The compiler can only warn and ignore the option if not recognized
9076
# So say no if there are warnings other than the usual output.
9077
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9078
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9079
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9080
lt_cv_prog_compiler_rtti_exceptions=yes
9086
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9087
printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9089
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9090
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9102
lt_prog_compiler_wl=
9103
lt_prog_compiler_pic=
9104
lt_prog_compiler_static=
9107
if test yes = "$GCC"; then
9108
lt_prog_compiler_wl='-Wl,'
9109
lt_prog_compiler_static='-static'
9113
# All AIX code is PIC.
9114
if test ia64 = "$host_cpu"; then
9115
# AIX 5 now supports IA64 processor
9116
lt_prog_compiler_static='-Bstatic'
9118
lt_prog_compiler_pic='-fPIC'
9124
# see comment about AmigaOS4 .so support
9125
lt_prog_compiler_pic='-fPIC'
9128
# FIXME: we need at least 68020 code to build shared libraries, but
9129
# adding the '-m68020' flag to GCC prevents building anything better,
9131
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9136
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9137
# PIC is the default for these OSes.
9140
mingw* | cygwin* | pw32* | os2* | cegcc*)
9141
# This hack is so that the source file can tell whether it is being
9142
# built for inclusion in a dll (and should export symbols for example).
9143
# Although the cygwin gcc ignores -fPIC, still need this for old-style
9144
# (--disable-auto-import) libraries
9145
lt_prog_compiler_pic='-DDLL_EXPORT'
9148
lt_prog_compiler_static='$wl-static'
9153
darwin* | rhapsody*)
9154
# PIC is the default on this platform
9155
# Common symbols not allowed in MH_DYLIB files
9156
lt_prog_compiler_pic='-fno-common'
9160
# PIC is the default for Haiku.
9161
# The "-static" flag exists, but is broken.
9162
lt_prog_compiler_static=
9166
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9167
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9168
# sets the default TLS model and affects inlining.
9174
lt_prog_compiler_pic='-fPIC'
9180
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
9181
# Instead, we relocate shared libraries at runtime.
9185
# Just because we use GCC doesn't mean we suddenly get shared libraries
9186
# on systems that don't support them.
9187
lt_prog_compiler_can_build_shared=no
9192
# QNX uses GNU C++, but need to define -shared option too, otherwise
9194
lt_prog_compiler_pic='-fPIC -shared'
9198
if test -d /usr/nec; then
9199
lt_prog_compiler_pic=-Kconform_pic
9204
lt_prog_compiler_pic='-fPIC'
9208
case $cc_basename in
9209
nvcc*) # Cuda Compiler Driver 2.2
9210
lt_prog_compiler_wl='-Xlinker '
9211
if test -n "$lt_prog_compiler_pic"; then
9212
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9217
# PORTME Check for flag to pass linker flags through the system compiler.
9220
lt_prog_compiler_wl='-Wl,'
9221
if test ia64 = "$host_cpu"; then
9222
# AIX 5 now supports IA64 processor
9223
lt_prog_compiler_static='-Bstatic'
9225
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9229
darwin* | rhapsody*)
9230
# PIC is the default on this platform
9231
# Common symbols not allowed in MH_DYLIB files
9232
lt_prog_compiler_pic='-fno-common'
9233
case $cc_basename in
9235
# NAG Fortran compiler
9236
lt_prog_compiler_wl='-Wl,-Wl,,'
9237
lt_prog_compiler_pic='-PIC'
9238
lt_prog_compiler_static='-Bstatic'
9243
mingw* | cygwin* | pw32* | os2* | cegcc*)
9244
# This hack is so that the source file can tell whether it is being
9245
# built for inclusion in a dll (and should export symbols for example).
9246
lt_prog_compiler_pic='-DDLL_EXPORT'
9249
lt_prog_compiler_static='$wl-static'
9254
hpux9* | hpux10* | hpux11*)
9255
lt_prog_compiler_wl='-Wl,'
9256
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9263
lt_prog_compiler_pic='+Z'
9266
# Is there a better lt_prog_compiler_static that works with the bundled CC?
9267
lt_prog_compiler_static='$wl-a ${wl}archive'
9270
irix5* | irix6* | nonstopux*)
9271
lt_prog_compiler_wl='-Wl,'
9272
# PIC (with -KPIC) is the default.
9273
lt_prog_compiler_static='-non_shared'
9276
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9277
case $cc_basename in
9278
# old Intel for x86_64, which still supported -KPIC.
9280
lt_prog_compiler_wl='-Wl,'
9281
lt_prog_compiler_pic='-KPIC'
9282
lt_prog_compiler_static='-static'
9284
# icc used to be incompatible with GCC.
9285
# ICC 10 doesn't accept -KPIC any more.
9287
lt_prog_compiler_wl='-Wl,'
9288
lt_prog_compiler_pic='-fPIC'
9289
lt_prog_compiler_static='-static'
9291
# Lahey Fortran 8.1.
9293
lt_prog_compiler_wl='-Wl,'
9294
lt_prog_compiler_pic='--shared'
9295
lt_prog_compiler_static='--static'
9298
# NAG Fortran compiler
9299
lt_prog_compiler_wl='-Wl,-Wl,,'
9300
lt_prog_compiler_pic='-PIC'
9301
lt_prog_compiler_static='-Bstatic'
9304
# Fabrice Bellard et al's Tiny C Compiler
9305
lt_prog_compiler_wl='-Wl,'
9306
lt_prog_compiler_pic='-fPIC'
9307
lt_prog_compiler_static='-static'
9309
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9310
# Portland Group compilers (*not* the Pentium gcc compiler,
9311
# which looks to be a dead project)
9312
lt_prog_compiler_wl='-Wl,'
9313
lt_prog_compiler_pic='-fpic'
9314
lt_prog_compiler_static='-Bstatic'
9317
lt_prog_compiler_wl='-Wl,'
9318
# All Alpha code is PIC.
9319
lt_prog_compiler_static='-non_shared'
9321
xl* | bgxl* | bgf* | mpixl*)
9322
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9323
lt_prog_compiler_wl='-Wl,'
9324
lt_prog_compiler_pic='-qpic'
9325
lt_prog_compiler_static='-qstaticlink'
9328
case `$CC -V 2>&1 | $SED 5q` in
9329
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9330
# Sun Fortran 8.3 passes all unrecognized flags to the linker
9331
lt_prog_compiler_pic='-KPIC'
9332
lt_prog_compiler_static='-Bstatic'
9333
lt_prog_compiler_wl=''
9335
*Sun\ F* | *Sun*Fortran*)
9336
lt_prog_compiler_pic='-KPIC'
9337
lt_prog_compiler_static='-Bstatic'
9338
lt_prog_compiler_wl='-Qoption ld '
9342
lt_prog_compiler_pic='-KPIC'
9343
lt_prog_compiler_static='-Bstatic'
9344
lt_prog_compiler_wl='-Wl,'
9346
*Intel*\ [CF]*Compiler*)
9347
lt_prog_compiler_wl='-Wl,'
9348
lt_prog_compiler_pic='-fPIC'
9349
lt_prog_compiler_static='-static'
9352
lt_prog_compiler_wl='-Wl,'
9353
lt_prog_compiler_pic='-fpic'
9354
lt_prog_compiler_static='-Bstatic'
9362
lt_prog_compiler_pic='-KPIC'
9363
lt_prog_compiler_static='-Bstatic'
9367
# QNX uses GNU C++, but need to define -shared option too, otherwise
9369
lt_prog_compiler_pic='-fPIC -shared'
9372
osf3* | osf4* | osf5*)
9373
lt_prog_compiler_wl='-Wl,'
9374
# All OSF/1 code is PIC.
9375
lt_prog_compiler_static='-non_shared'
9379
lt_prog_compiler_static='-non_shared'
9383
lt_prog_compiler_pic='-KPIC'
9384
lt_prog_compiler_static='-Bstatic'
9385
case $cc_basename in
9386
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9387
lt_prog_compiler_wl='-Qoption ld ';;
9389
lt_prog_compiler_wl='-Wl,';;
9394
lt_prog_compiler_wl='-Qoption ld '
9395
lt_prog_compiler_pic='-PIC'
9396
lt_prog_compiler_static='-Bstatic'
9399
sysv4 | sysv4.2uw2* | sysv4.3*)
9400
lt_prog_compiler_wl='-Wl,'
9401
lt_prog_compiler_pic='-KPIC'
9402
lt_prog_compiler_static='-Bstatic'
9406
if test -d /usr/nec; then
9407
lt_prog_compiler_pic='-Kconform_pic'
9408
lt_prog_compiler_static='-Bstatic'
9412
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9413
lt_prog_compiler_wl='-Wl,'
9414
lt_prog_compiler_pic='-KPIC'
9415
lt_prog_compiler_static='-Bstatic'
9419
lt_prog_compiler_wl='-Wl,'
9420
lt_prog_compiler_can_build_shared=no
9424
lt_prog_compiler_pic='-pic'
9425
lt_prog_compiler_static='-Bstatic'
9429
lt_prog_compiler_can_build_shared=no
9435
# For platforms that do not support PIC, -DPIC is meaningless:
9437
lt_prog_compiler_pic=
9440
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9444
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9445
printf %s "checking for $compiler option to produce PIC... " >&6; }
9446
if test ${lt_cv_prog_compiler_pic+y}
9448
printf %s "(cached) " >&6
9450
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9452
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9453
printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9454
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9457
# Check to make sure the PIC flag actually works.
9459
if test -n "$lt_prog_compiler_pic"; then
9460
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9461
printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9462
if test ${lt_cv_prog_compiler_pic_works+y}
9464
printf %s "(cached) " >&6
9466
lt_cv_prog_compiler_pic_works=no
9467
ac_outfile=conftest.$ac_objext
9468
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9469
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9470
# Insert the option either (1) after the last *FLAGS variable, or
9471
# (2) before a word containing "conftest.", or (3) at the end.
9472
# Note that $ac_compile itself does not contain backslashes and begins
9473
# with a dollar sign (not a hyphen), so the echo should work correctly.
9474
# The option is referenced via a variable to avoid confusing sed.
9475
lt_compile=`echo "$ac_compile" | $SED \
9476
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9477
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9478
-e 's:$: $lt_compiler_flag:'`
9479
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9480
(eval "$lt_compile" 2>conftest.err)
9482
cat conftest.err >&5
9483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484
if (exit $ac_status) && test -s "$ac_outfile"; then
9485
# The compiler can only warn and ignore the option if not recognized
9486
# So say no if there are warnings other than the usual output.
9487
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9488
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9489
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9490
lt_cv_prog_compiler_pic_works=yes
9496
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9497
printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9499
if test yes = "$lt_cv_prog_compiler_pic_works"; then
9500
case $lt_prog_compiler_pic in
9502
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9505
lt_prog_compiler_pic=
9506
lt_prog_compiler_can_build_shared=no
9522
# Check to make sure the static flag actually works.
9524
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9525
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9526
printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9527
if test ${lt_cv_prog_compiler_static_works+y}
9529
printf %s "(cached) " >&6
9531
lt_cv_prog_compiler_static_works=no
9532
save_LDFLAGS=$LDFLAGS
9533
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9534
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9535
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9536
# The linker can only warn and ignore the option if not recognized
9537
# So say no if there are warnings
9538
if test -s conftest.err; then
9539
# Append any errors to the config.log.
9540
cat conftest.err 1>&5
9541
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9542
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9543
if diff conftest.exp conftest.er2 >/dev/null; then
9544
lt_cv_prog_compiler_static_works=yes
9547
lt_cv_prog_compiler_static_works=yes
9551
LDFLAGS=$save_LDFLAGS
9554
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9555
printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9557
if test yes = "$lt_cv_prog_compiler_static_works"; then
9560
lt_prog_compiler_static=
9569
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9570
printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9571
if test ${lt_cv_prog_compiler_c_o+y}
9573
printf %s "(cached) " >&6
9575
lt_cv_prog_compiler_c_o=no
9576
$RM -r conftest 2>/dev/null
9580
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9582
lt_compiler_flag="-o out/conftest2.$ac_objext"
9583
# Insert the option either (1) after the last *FLAGS variable, or
9584
# (2) before a word containing "conftest.", or (3) at the end.
9585
# Note that $ac_compile itself does not contain backslashes and begins
9586
# with a dollar sign (not a hyphen), so the echo should work correctly.
9587
lt_compile=`echo "$ac_compile" | $SED \
9588
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9589
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9590
-e 's:$: $lt_compiler_flag:'`
9591
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9592
(eval "$lt_compile" 2>out/conftest.err)
9594
cat out/conftest.err >&5
9595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9598
# The compiler can only warn and ignore the option if not recognized
9599
# So say no if there are warnings
9600
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9601
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9602
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9603
lt_cv_prog_compiler_c_o=yes
9608
# SGI C++ compiler will create directory out/ii_files/ for
9609
# template instantiation
9610
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9611
$RM out/* && rmdir out
9617
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9618
printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9625
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9626
printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9627
if test ${lt_cv_prog_compiler_c_o+y}
9629
printf %s "(cached) " >&6
9631
lt_cv_prog_compiler_c_o=no
9632
$RM -r conftest 2>/dev/null
9636
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9638
lt_compiler_flag="-o out/conftest2.$ac_objext"
9639
# Insert the option either (1) after the last *FLAGS variable, or
9640
# (2) before a word containing "conftest.", or (3) at the end.
9641
# Note that $ac_compile itself does not contain backslashes and begins
9642
# with a dollar sign (not a hyphen), so the echo should work correctly.
9643
lt_compile=`echo "$ac_compile" | $SED \
9644
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9645
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9646
-e 's:$: $lt_compiler_flag:'`
9647
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9648
(eval "$lt_compile" 2>out/conftest.err)
9650
cat out/conftest.err >&5
9651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9654
# The compiler can only warn and ignore the option if not recognized
9655
# So say no if there are warnings
9656
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9657
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9658
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9659
lt_cv_prog_compiler_c_o=yes
9664
# SGI C++ compiler will create directory out/ii_files/ for
9665
# template instantiation
9666
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9667
$RM out/* && rmdir out
9673
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9674
printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9679
hard_links=nottested
9680
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9681
# do not overwrite the value of need_locks provided by the user
9682
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9683
printf %s "checking if we can lock with hard links... " >&6; }
9686
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9688
ln conftest.a conftest.b 2>&5 || hard_links=no
9689
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9690
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9691
printf "%s\n" "$hard_links" >&6; }
9692
if test no = "$hard_links"; then
9693
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9694
printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9706
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9707
printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9710
allow_undefined_flag=
9711
always_export_symbols=no
9713
archive_expsym_cmds=
9714
compiler_needs_object=no
9715
enable_shared_with_static_runtimes=no
9716
export_dynamic_flag_spec=
9717
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9718
hardcode_automatic=no
9720
hardcode_direct_absolute=no
9721
hardcode_libdir_flag_spec=
9722
hardcode_libdir_separator=
9724
hardcode_shlibpath_var=unsupported
9726
link_all_deplibs=unknown
9729
old_archive_from_new_cmds=
9730
old_archive_from_expsyms_cmds=
9731
thread_safe_flag_spec=
9732
whole_archive_flag_spec=
9733
# include_expsyms should be a list of space-separated symbols to be *always*
9734
# included in the symbol list
9736
# exclude_expsyms can be an extended regexp of symbols to exclude
9737
# it will be wrapped by ' (' and ')$', so one must not match beginning or
9738
# end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9739
# as well as any symbol that contains 'd'.
9740
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9741
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9742
# platforms (ab)use it in PIC code, but their linkers get confused if
9743
# the symbol is explicitly referenced. Since portable code cannot
9744
# rely on this symbol name, it's probably fine to never include it in
9745
# preloaded symbol tables.
9746
# Exclude shared library initialization/finalization symbols.
9747
extract_expsyms_cmds=
9750
cygwin* | mingw* | pw32* | cegcc*)
9751
# FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9752
# When not using gcc, we currently assume that we are using
9753
# Microsoft Visual C++ or Intel C++ Compiler.
9754
if test yes != "$GCC"; then
9759
# we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9769
# On some targets, GNU ld is compatible enough with the native linker
9770
# that we're better off using the native interface for both.
9771
lt_use_gnu_ld_interface=no
9772
if test yes = "$with_gnu_ld"; then
9775
# The AIX port of GNU ld has always aspired to compatibility
9776
# with the native linker. However, as the warning in the GNU ld
9777
# block says, versions before 2.19.5* couldn't really create working
9778
# shared libraries, regardless of the interface used.
9779
case `$LD -v 2>&1` in
9780
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9781
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9782
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
9784
lt_use_gnu_ld_interface=yes
9789
lt_use_gnu_ld_interface=yes
9794
if test yes = "$lt_use_gnu_ld_interface"; then
9795
# If archive_cmds runs LD, not CC, wlarc should be empty
9798
# Set some defaults for GNU ld with shared library support. These
9799
# are reset later if shared libraries are not supported. Putting them
9800
# here allows them to be overridden if necessary.
9801
runpath_var=LD_RUN_PATH
9802
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9803
export_dynamic_flag_spec='$wl--export-dynamic'
9804
# ancient GNU ld didn't support --whole-archive et. al.
9805
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9806
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9808
whole_archive_flag_spec=
9810
supports_anon_versioning=no
9811
case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9812
*GNU\ gold*) supports_anon_versioning=yes ;;
9813
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9814
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9815
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9816
*\ 2.11.*) ;; # other 2.11 versions
9817
*) supports_anon_versioning=yes ;;
9820
# See if GNU ld supports shared libraries.
9823
# On AIX/PPC, the GNU linker is very broken
9824
if test ia64 != "$host_cpu"; then
9828
*** Warning: the GNU linker, at least up to release 2.19, is reported
9829
*** to be unable to reliably create shared libraries on AIX.
9830
*** Therefore, libtool is disabling shared libraries support. If you
9831
*** really care for shared libraries, you may want to install binutils
9832
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9833
*** You will then need to restart the configuration process.
9842
# see comment about AmigaOS4 .so support
9843
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9844
archive_expsym_cmds=''
9847
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)'
9848
hardcode_libdir_flag_spec='-L$libdir'
9849
hardcode_minus_L=yes
9855
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9856
allow_undefined_flag=unsupported
9857
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9858
# support --undefined. This deserves some investigation. FIXME
9859
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9865
cygwin* | mingw* | pw32* | cegcc*)
9866
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9867
# as there is no search path for DLLs.
9868
hardcode_libdir_flag_spec='-L$libdir'
9869
export_dynamic_flag_spec='$wl--export-all-symbols'
9870
allow_undefined_flag=unsupported
9871
always_export_symbols=no
9872
enable_shared_with_static_runtimes=yes
9873
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'
9874
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9876
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9877
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9878
# If the export-symbols file already is a .def file, use it as
9879
# is; otherwise, prepend EXPORTS...
9880
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9881
cp $export_symbols $output_objdir/$soname.def;
9883
echo EXPORTS > $output_objdir/$soname.def;
9884
cat $export_symbols >> $output_objdir/$soname.def;
9886
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9893
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9894
link_all_deplibs=yes
9898
hardcode_libdir_flag_spec='-L$libdir'
9899
hardcode_minus_L=yes
9900
allow_undefined_flag=unsupported
9902
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9903
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9904
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9905
$ECHO EXPORTS >> $output_objdir/$libname.def~
9906
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9907
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9908
emximp -o $lib $output_objdir/$libname.def'
9909
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9910
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9911
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9912
$ECHO EXPORTS >> $output_objdir/$libname.def~
9914
if test EXPORTS = "`$SED 1q $export_symbols`"; then
9915
prefix_cmds="$prefix_cmds -e 1d";
9917
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9918
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9919
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9920
emximp -o $lib $output_objdir/$libname.def'
9921
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9922
enable_shared_with_static_runtimes=yes
9928
hardcode_shlibpath_var=no
9929
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9930
export_dynamic_flag_spec='$wl-E'
9931
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9932
# Instead, shared libraries are loaded at an image base (0x10000000 by
9933
# default) and relocated if they conflict, which is a slow very memory
9934
# consuming and fragmenting process. To avoid this, we pick a random,
9935
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9936
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9937
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9938
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'
9941
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9943
if test linux-dietlibc = "$host_os"; then
9944
case $cc_basename in
9945
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9948
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9949
&& test no = "$tmp_diet"
9951
tmp_addflag=' $pic_flag'
9952
tmp_sharedflag='-shared'
9953
case $cc_basename,$host_cpu in
9954
pgcc*) # Portland Group C compiler
9955
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'
9956
tmp_addflag=' $pic_flag'
9958
pgf77* | pgf90* | pgf95* | pgfortran*)
9959
# Portland Group f77 and f90 compilers
9960
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'
9961
tmp_addflag=' $pic_flag -Mnomain' ;;
9962
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9963
tmp_addflag=' -i_dynamic' ;;
9964
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9965
tmp_addflag=' -i_dynamic -nofor_main' ;;
9966
ifc* | ifort*) # Intel Fortran compiler
9967
tmp_addflag=' -nofor_main' ;;
9968
lf95*) # Lahey Fortran 8.1
9969
whole_archive_flag_spec=
9970
tmp_sharedflag='--shared' ;;
9971
nagfor*) # NAGFOR 5.3
9972
tmp_sharedflag='-Wl,-shared' ;;
9973
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9974
tmp_sharedflag='-qmkshrobj'
9976
nvcc*) # Cuda Compiler Driver 2.2
9977
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'
9978
compiler_needs_object=yes
9981
case `$CC -V 2>&1 | $SED 5q` in
9982
*Sun\ C*) # Sun C 5.9
9983
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'
9984
compiler_needs_object=yes
9985
tmp_sharedflag='-G' ;;
9986
*Sun\ F*) # Sun Fortran 8.3
9987
tmp_sharedflag='-G' ;;
9989
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9991
if test yes = "$supports_anon_versioning"; then
9992
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9993
cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9994
echo "local: *; };" >> $output_objdir/$libname.ver~
9995
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9998
case $cc_basename in
10000
export_dynamic_flag_spec='-rdynamic'
10002
xlf* | bgf* | bgxlf* | mpixlf*)
10003
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10004
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10005
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10006
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10007
if test yes = "$supports_anon_versioning"; then
10008
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10009
cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10010
echo "local: *; };" >> $output_objdir/$libname.ver~
10011
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10021
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10022
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10025
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10026
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10031
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10035
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10036
*** create shared libraries on Solaris systems. Therefore, libtool
10037
*** is disabling shared libraries support. We urge you to upgrade GNU
10038
*** binutils to release 2.9.1 or newer. Another option is to modify
10039
*** your PATH or compiler configuration so that the native linker is
10040
*** used, and then restart.
10043
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10044
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10045
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10051
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10052
case `$LD -v 2>&1` in
10053
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10057
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10058
*** reliably create shared libraries on SCO systems. Therefore, libtool
10059
*** is disabling shared libraries support. We urge you to upgrade GNU
10060
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10061
*** your PATH or compiler configuration so that the native linker is
10062
*** used, and then restart.
10067
# For security reasons, it is highly recommended that you always
10068
# use absolute paths for naming shared libraries, and exclude the
10069
# DT_RUNPATH tag from executables and libraries. But doing so
10070
# requires that you compile everything twice, which is a pain.
10071
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10072
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10073
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10074
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10083
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10085
hardcode_direct=yes
10086
hardcode_shlibpath_var=no
10090
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10091
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10092
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10099
if test no = "$ld_shlibs"; then
10101
hardcode_libdir_flag_spec=
10102
export_dynamic_flag_spec=
10103
whole_archive_flag_spec=
10106
# PORTME fill in a description of your system's linker (not GNU ld)
10109
allow_undefined_flag=unsupported
10110
always_export_symbols=yes
10111
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'
10112
# Note: this linker hardcodes the directories in LIBPATH if there
10113
# are no directories specified by -L.
10114
hardcode_minus_L=yes
10115
if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10116
# Neither direct hardcoding nor static linking is supported with a
10118
hardcode_direct=unsupported
10123
if test ia64 = "$host_cpu"; then
10124
# On IA64, the linker does run time linking by default, so we don't
10125
# have to do anything special.
10126
aix_use_runtimelinking=no
10127
exp_sym_flag='-Bexport'
10130
# If we're using GNU nm, then we don't want the "-C" option.
10131
# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10132
# Without the "-l" option, or with the "-B" option, AIX nm treats
10133
# weak defined symbols like other global defined symbols, whereas
10134
# GNU nm marks them as "W".
10135
# While the 'weak' keyword is ignored in the Export File, we need
10136
# it in the Import File for the 'aix-soname' feature, so we have
10137
# to replace the "-B" option with "-P" for AIX nm.
10138
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10139
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10141
export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10143
aix_use_runtimelinking=no
10145
# Test if we are trying to use run time linking or normal
10146
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10147
# have runtime linking enabled, and use it for executables.
10148
# For shared libraries, we enable/disable runtime linking
10149
# depending on the kind of the shared library created -
10150
# when "with_aix_soname,aix_use_runtimelinking" is:
10151
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10152
# "aix,yes" lib.so shared, rtl:yes, for executables
10153
# lib.a static archive
10154
# "both,no" lib.so.V(shr.o) shared, rtl:yes
10155
# lib.a(lib.so.V) shared, rtl:no, for executables
10156
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10157
# lib.a(lib.so.V) shared, rtl:no
10158
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10159
# lib.a static archive
10160
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10161
for ld_flag in $LDFLAGS; do
10162
if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10163
aix_use_runtimelinking=yes
10167
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10168
# With aix-soname=svr4, we create the lib.so.V shared archives only,
10169
# so we don't have lib.a shared libs to link our executables.
10170
# We have to force runtime linking in this case.
10171
aix_use_runtimelinking=yes
10172
LDFLAGS="$LDFLAGS -Wl,-brtl"
10177
exp_sym_flag='-bexport'
10178
no_entry_flag='-bnoentry'
10181
# When large executables or shared objects are built, AIX ld can
10182
# have problems creating the table of contents. If linking a library
10183
# or program results in "error TOC overflow" add -mminimal-toc to
10184
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10185
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10188
hardcode_direct=yes
10189
hardcode_direct_absolute=yes
10190
hardcode_libdir_separator=':'
10191
link_all_deplibs=yes
10192
file_list_spec='$wl-f,'
10193
case $with_aix_soname,$aix_use_runtimelinking in
10194
aix,*) ;; # traditional, no import file
10195
svr4,* | *,yes) # use import file
10196
# The Import File defines what to hardcode.
10198
hardcode_direct_absolute=no
10202
if test yes = "$GCC"; then
10203
case $host_os in aix4.[012]|aix4.[012].*)
10204
# We only want to do this on AIX 4.2 and lower, the check
10205
# below for broken collect2 doesn't work under 4.3+
10206
collect2name=`$CC -print-prog-name=collect2`
10207
if test -f "$collect2name" &&
10208
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10210
# We have reworked collect2
10213
# We have old collect2
10214
hardcode_direct=unsupported
10215
# It fails to find uninstalled libraries when the uninstalled
10216
# path is not listed in the libpath. Setting hardcode_minus_L
10217
# to unsupported forces relinking
10218
hardcode_minus_L=yes
10219
hardcode_libdir_flag_spec='-L$libdir'
10220
hardcode_libdir_separator=
10224
shared_flag='-shared'
10225
if test yes = "$aix_use_runtimelinking"; then
10226
shared_flag="$shared_flag "'$wl-G'
10228
# Need to ensure runtime linking is disabled for the traditional
10229
# shared library, or the linker may eventually find shared libraries
10230
# /with/ Import File - we do not want to mix them.
10231
shared_flag_aix='-shared'
10232
shared_flag_svr4='-shared $wl-G'
10235
if test ia64 = "$host_cpu"; then
10236
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10237
# chokes on -Wl,-G. The following line is correct:
10240
if test yes = "$aix_use_runtimelinking"; then
10241
shared_flag='$wl-G'
10243
shared_flag='$wl-bM:SRE'
10245
shared_flag_aix='$wl-bM:SRE'
10246
shared_flag_svr4='$wl-G'
10250
export_dynamic_flag_spec='$wl-bexpall'
10251
# It seems that -bexpall does not export symbols beginning with
10252
# underscore (_), so it is better to generate a list of symbols to export.
10253
always_export_symbols=yes
10254
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10255
# Warning - without using the other runtime loading flags (-brtl),
10256
# -berok will link without error, but may produce a broken library.
10257
allow_undefined_flag='-berok'
10258
# Determine the default libpath from the value encoded in an
10259
# empty executable.
10260
if test set = "${lt_cv_aix_libpath+set}"; then
10261
aix_libpath=$lt_cv_aix_libpath
10263
if test ${lt_cv_aix_libpath_+y}
10265
printf %s "(cached) " >&6
10267
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268
/* end confdefs.h. */
10278
if ac_fn_c_try_link "$LINENO"
10281
lt_aix_libpath_sed='
10282
/Import File Strings/,/^$/ {
10284
s/^0 *\([^ ]*\) *$/\1/
10288
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10289
# Check for a 64-bit object if we didn't find anything.
10290
if test -z "$lt_cv_aix_libpath_"; then
10291
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10294
rm -f core conftest.err conftest.$ac_objext conftest.beam \
10295
conftest$ac_exeext conftest.$ac_ext
10296
if test -z "$lt_cv_aix_libpath_"; then
10297
lt_cv_aix_libpath_=/usr/lib:/lib
10302
aix_libpath=$lt_cv_aix_libpath_
10305
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10306
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10308
if test ia64 = "$host_cpu"; then
10309
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10310
allow_undefined_flag="-z nodefs"
10311
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"
10313
# Determine the default libpath from the value encoded in an
10314
# empty executable.
10315
if test set = "${lt_cv_aix_libpath+set}"; then
10316
aix_libpath=$lt_cv_aix_libpath
10318
if test ${lt_cv_aix_libpath_+y}
10320
printf %s "(cached) " >&6
10322
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323
/* end confdefs.h. */
10333
if ac_fn_c_try_link "$LINENO"
10336
lt_aix_libpath_sed='
10337
/Import File Strings/,/^$/ {
10339
s/^0 *\([^ ]*\) *$/\1/
10343
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10344
# Check for a 64-bit object if we didn't find anything.
10345
if test -z "$lt_cv_aix_libpath_"; then
10346
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10349
rm -f core conftest.err conftest.$ac_objext conftest.beam \
10350
conftest$ac_exeext conftest.$ac_ext
10351
if test -z "$lt_cv_aix_libpath_"; then
10352
lt_cv_aix_libpath_=/usr/lib:/lib
10357
aix_libpath=$lt_cv_aix_libpath_
10360
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10361
# Warning - without using the other run time loading flags,
10362
# -berok will link without error, but may produce a broken library.
10363
no_undefined_flag=' $wl-bernotok'
10364
allow_undefined_flag=' $wl-berok'
10365
if test yes = "$with_gnu_ld"; then
10366
# We only use this code for GNU lds that support --whole-archive.
10367
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10369
# Exported symbols can be pulled into shared objects from archives
10370
whole_archive_flag_spec='$convenience'
10372
archive_cmds_need_lc=yes
10373
archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10374
# -brtl affects multiple linker settings, -berok does not and is overridden later
10375
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10376
if test svr4 != "$with_aix_soname"; then
10377
# This is similar to how AIX traditionally builds its shared libraries.
10378
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10380
if test aix != "$with_aix_soname"; then
10381
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10383
# used by -dlpreopen to get the symbols
10384
archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10386
archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10394
# see comment about AmigaOS4 .so support
10395
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10396
archive_expsym_cmds=''
10399
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)'
10400
hardcode_libdir_flag_spec='-L$libdir'
10401
hardcode_minus_L=yes
10407
export_dynamic_flag_spec=-rdynamic
10410
cygwin* | mingw* | pw32* | cegcc*)
10411
# When not using gcc, we currently assume that we are using
10412
# Microsoft Visual C++ or Intel C++ Compiler.
10413
# hardcode_libdir_flag_spec is actually meaningless, as there is
10414
# no search path for DLLs.
10415
case $cc_basename in
10417
# Native MSVC or ICC
10418
hardcode_libdir_flag_spec=' '
10419
allow_undefined_flag=unsupported
10420
always_export_symbols=yes
10422
# Tell ltmain to make .lib files, not .a files.
10424
# Tell ltmain to make .dll files, not .so files.
10426
# FIXME: Setting linknames here is a bad hack.
10427
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10428
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10429
cp "$export_symbols" "$output_objdir/$soname.def";
10430
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10432
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10434
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10436
# The linker will not automatically build a static lib if we build a DLL.
10437
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10438
enable_shared_with_static_runtimes=yes
10439
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10440
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10442
old_postinstall_cmds='chmod 644 $oldlib'
10443
postlink_cmds='lt_outputfile="@OUTPUT@"~
10444
lt_tool_outputfile="@TOOL_OUTPUT@"~
10445
case $lt_outputfile in
10448
lt_outputfile=$lt_outputfile.exe
10449
lt_tool_outputfile=$lt_tool_outputfile.exe
10452
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10453
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10454
$RM "$lt_outputfile.manifest";
10458
# Assume MSVC and ICC wrapper
10459
hardcode_libdir_flag_spec=' '
10460
allow_undefined_flag=unsupported
10461
# Tell ltmain to make .lib files, not .a files.
10463
# Tell ltmain to make .dll files, not .so files.
10465
# FIXME: Setting linknames here is a bad hack.
10466
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10467
# The linker will automatically build a .lib file if we build a DLL.
10468
old_archive_from_new_cmds='true'
10469
# FIXME: Should let the user specify the lib program.
10470
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10471
enable_shared_with_static_runtimes=yes
10476
darwin* | rhapsody*)
10479
archive_cmds_need_lc=no
10481
hardcode_automatic=yes
10482
hardcode_shlibpath_var=unsupported
10483
if test yes = "$lt_cv_ld_force_load"; then
10484
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\"`'
10487
whole_archive_flag_spec=''
10489
link_all_deplibs=yes
10490
allow_undefined_flag=$_lt_dar_allow_undefined
10491
case $cc_basename in
10492
ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10493
*) _lt_dar_can_shared=$GCC ;;
10495
if test yes = "$_lt_dar_can_shared"; then
10496
output_verbose_link_cmd=func_echo_all
10497
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10498
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10499
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"
10500
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"
10509
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10510
hardcode_libdir_flag_spec='-L$libdir'
10511
hardcode_shlibpath_var=no
10514
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10515
# support. Future versions do this automatically, but an explicit c++rt0.o
10516
# does not break anything, and helps significantly (at the cost of a little
10519
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10520
hardcode_libdir_flag_spec='-R$libdir'
10521
hardcode_direct=yes
10522
hardcode_shlibpath_var=no
10525
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
10527
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10528
hardcode_direct=yes
10529
hardcode_minus_L=yes
10530
hardcode_shlibpath_var=no
10533
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10534
freebsd* | dragonfly* | midnightbsd*)
10535
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10536
hardcode_libdir_flag_spec='-R$libdir'
10537
hardcode_direct=yes
10538
hardcode_shlibpath_var=no
10542
if test yes = "$GCC"; then
10543
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10545
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10547
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10548
hardcode_libdir_separator=:
10549
hardcode_direct=yes
10551
# hardcode_minus_L: Not really in the search PATH,
10552
# but as the default location of the library.
10553
hardcode_minus_L=yes
10554
export_dynamic_flag_spec='$wl-E'
10558
if test yes,no = "$GCC,$with_gnu_ld"; then
10559
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10561
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10563
if test no = "$with_gnu_ld"; then
10564
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10565
hardcode_libdir_separator=:
10566
hardcode_direct=yes
10567
hardcode_direct_absolute=yes
10568
export_dynamic_flag_spec='$wl-E'
10569
# hardcode_minus_L: Not really in the search PATH,
10570
# but as the default location of the library.
10571
hardcode_minus_L=yes
10576
if test yes,no = "$GCC,$with_gnu_ld"; then
10579
archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10582
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10585
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10591
archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10594
archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10598
# Older versions of the 11.00 compiler do not understand -b yet
10599
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10600
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10601
printf %s "checking if $CC understands -b... " >&6; }
10602
if test ${lt_cv_prog_compiler__b+y}
10604
printf %s "(cached) " >&6
10606
lt_cv_prog_compiler__b=no
10607
save_LDFLAGS=$LDFLAGS
10608
LDFLAGS="$LDFLAGS -b"
10609
echo "$lt_simple_link_test_code" > conftest.$ac_ext
10610
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10611
# The linker can only warn and ignore the option if not recognized
10612
# So say no if there are warnings
10613
if test -s conftest.err; then
10614
# Append any errors to the config.log.
10615
cat conftest.err 1>&5
10616
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10617
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10618
if diff conftest.exp conftest.er2 >/dev/null; then
10619
lt_cv_prog_compiler__b=yes
10622
lt_cv_prog_compiler__b=yes
10626
LDFLAGS=$save_LDFLAGS
10629
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10630
printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10632
if test yes = "$lt_cv_prog_compiler__b"; then
10633
archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10635
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10641
if test no = "$with_gnu_ld"; then
10642
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10643
hardcode_libdir_separator=:
10648
hardcode_shlibpath_var=no
10651
hardcode_direct=yes
10652
hardcode_direct_absolute=yes
10653
export_dynamic_flag_spec='$wl-E'
10655
# hardcode_minus_L: Not really in the search PATH,
10656
# but as the default location of the library.
10657
hardcode_minus_L=yes
10663
irix5* | irix6* | nonstopux*)
10664
if test yes = "$GCC"; then
10665
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'
10666
# Try to use the -exported_symbol ld option, if it does not
10667
# work, assume that -exports_file does not work either and
10668
# implicitly export all symbols.
10669
# This should be the same for all languages, so no per-tag cache variable.
10670
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10671
printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10672
if test ${lt_cv_irix_exported_symbol+y}
10674
printf %s "(cached) " >&6
10676
save_LDFLAGS=$LDFLAGS
10677
LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10678
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679
/* end confdefs.h. */
10680
int foo (void) { return 0; }
10682
if ac_fn_c_try_link "$LINENO"
10684
lt_cv_irix_exported_symbol=yes
10686
lt_cv_irix_exported_symbol=no
10688
rm -f core conftest.err conftest.$ac_objext conftest.beam \
10689
conftest$ac_exeext conftest.$ac_ext
10690
LDFLAGS=$save_LDFLAGS
10692
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10693
printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10694
if test yes = "$lt_cv_irix_exported_symbol"; then
10695
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'
10698
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'
10699
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'
10701
archive_cmds_need_lc='no'
10702
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10703
hardcode_libdir_separator=:
10705
link_all_deplibs=yes
10709
case $cc_basename in
10711
# Fabrice Bellard et al's Tiny C Compiler
10713
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10719
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10720
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10722
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10724
hardcode_libdir_flag_spec='-R$libdir'
10725
hardcode_direct=yes
10726
hardcode_shlibpath_var=no
10730
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10731
hardcode_direct=yes
10732
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10733
hardcode_libdir_separator=:
10734
hardcode_shlibpath_var=no
10740
openbsd* | bitrig*)
10741
if test -f /usr/libexec/ld.so; then
10742
hardcode_direct=yes
10743
hardcode_shlibpath_var=no
10744
hardcode_direct_absolute=yes
10745
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10746
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10747
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10748
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10749
export_dynamic_flag_spec='$wl-E'
10751
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10752
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10760
hardcode_libdir_flag_spec='-L$libdir'
10761
hardcode_minus_L=yes
10762
allow_undefined_flag=unsupported
10764
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10765
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10766
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10767
$ECHO EXPORTS >> $output_objdir/$libname.def~
10768
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10769
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10770
emximp -o $lib $output_objdir/$libname.def'
10771
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10772
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10773
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10774
$ECHO EXPORTS >> $output_objdir/$libname.def~
10775
prefix_cmds="$SED"~
10776
if test EXPORTS = "`$SED 1q $export_symbols`"; then
10777
prefix_cmds="$prefix_cmds -e 1d";
10779
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10780
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10781
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10782
emximp -o $lib $output_objdir/$libname.def'
10783
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10784
enable_shared_with_static_runtimes=yes
10789
if test yes = "$GCC"; then
10790
allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10791
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'
10793
allow_undefined_flag=' -expect_unresolved \*'
10794
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'
10796
archive_cmds_need_lc='no'
10797
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10798
hardcode_libdir_separator=:
10801
osf4* | osf5*) # as osf3* with the addition of -msym flag
10802
if test yes = "$GCC"; then
10803
allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10804
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'
10805
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10807
allow_undefined_flag=' -expect_unresolved \*'
10808
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'
10809
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~
10810
$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'
10812
# Both c and cxx compiler support -rpath directly
10813
hardcode_libdir_flag_spec='-rpath $libdir'
10815
archive_cmds_need_lc='no'
10816
hardcode_libdir_separator=:
10820
no_undefined_flag=' -z defs'
10821
if test yes = "$GCC"; then
10823
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10824
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10825
$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'
10827
case `$CC -V 2>&1` in
10830
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10831
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10832
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10836
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10837
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10838
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10842
hardcode_libdir_flag_spec='-R$libdir'
10843
hardcode_shlibpath_var=no
10845
solaris2.[0-5] | solaris2.[0-5].*) ;;
10847
# The compiler driver will combine and reorder linker options,
10848
# but understands '-z linker_flag'. GCC discards it without '$wl',
10849
# but is careful enough not to reorder.
10850
# Supported since Solaris 2.6 (maybe 2.5.1?)
10851
if test yes = "$GCC"; then
10852
whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10854
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10858
link_all_deplibs=yes
10862
if test sequent = "$host_vendor"; then
10863
# Use $CC to link under sequent, because it throws in some extra .o
10864
# files that make .init and .fini sections work.
10865
archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10867
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10869
hardcode_libdir_flag_spec='-L$libdir'
10870
hardcode_direct=yes
10871
hardcode_minus_L=yes
10872
hardcode_shlibpath_var=no
10876
case $host_vendor in
10878
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10879
hardcode_direct=yes # is this really true???
10882
## LD is ld it makes a PLAMLIB
10883
## CC just makes a GrossModule.
10884
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10885
reload_cmds='$CC -r -o $output$reload_objs'
10889
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10890
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10893
runpath_var='LD_RUN_PATH'
10894
hardcode_shlibpath_var=no
10898
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10899
hardcode_shlibpath_var=no
10900
export_dynamic_flag_spec='-Bexport'
10904
if test -d /usr/nec; then
10905
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10906
hardcode_shlibpath_var=no
10907
runpath_var=LD_RUN_PATH
10908
hardcode_runpath_var=yes
10913
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10914
no_undefined_flag='$wl-z,text'
10915
archive_cmds_need_lc=no
10916
hardcode_shlibpath_var=no
10917
runpath_var='LD_RUN_PATH'
10919
if test yes = "$GCC"; then
10920
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10923
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10924
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10928
sysv5* | sco3.2v5* | sco5v6*)
10929
# Note: We CANNOT use -z defs as we might desire, because we do not
10930
# link with -lc, and that would cause any symbols used from libc to
10931
# always be unresolved, which means just about no library would
10932
# ever link correctly. If we're not using GNU ld we use -z text
10933
# though, which does catch some bad symbols but isn't as heavy-handed
10935
no_undefined_flag='$wl-z,text'
10936
allow_undefined_flag='$wl-z,nodefs'
10937
archive_cmds_need_lc=no
10938
hardcode_shlibpath_var=no
10939
hardcode_libdir_flag_spec='$wl-R,$libdir'
10940
hardcode_libdir_separator=':'
10941
link_all_deplibs=yes
10942
export_dynamic_flag_spec='$wl-Bexport'
10943
runpath_var='LD_RUN_PATH'
10945
if test yes = "$GCC"; then
10946
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10955
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956
hardcode_libdir_flag_spec='-L$libdir'
10957
hardcode_shlibpath_var=no
10965
if test sni = "$host_vendor"; then
10967
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10968
export_dynamic_flag_spec='$wl-Blargedynsym'
10974
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10975
printf "%s\n" "$ld_shlibs" >&6; }
10976
test no = "$ld_shlibs" && can_build_shared=no
10978
with_gnu_ld=$with_gnu_ld
10995
# Do we need to explicitly link libc?
10997
case "x$archive_cmds_need_lc" in
10999
# Assume -lc should be added
11000
archive_cmds_need_lc=yes
11002
if test yes,yes = "$GCC,$enable_shared"; then
11003
case $archive_cmds in
11005
# FIXME: we may have to deal with multi-command sequences.
11008
# Test whether the compiler implicitly links with -lc since on some
11009
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11010
# to ld, don't add -lc before -lgcc.
11011
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11012
printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11013
if test ${lt_cv_archive_cmds_need_lc+y}
11015
printf %s "(cached) " >&6
11018
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11020
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11021
(eval $ac_compile) 2>&5
11023
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11024
test $ac_status = 0; } 2>conftest.err; then
11027
libobjs=conftest.$ac_objext
11029
wl=$lt_prog_compiler_wl
11030
pic_flag=$lt_prog_compiler_pic
11036
lt_save_allow_undefined_flag=$allow_undefined_flag
11037
allow_undefined_flag=
11038
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11039
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11041
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11042
test $ac_status = 0; }
11044
lt_cv_archive_cmds_need_lc=no
11046
lt_cv_archive_cmds_need_lc=yes
11048
allow_undefined_flag=$lt_save_allow_undefined_flag
11050
cat conftest.err 1>&5
11055
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11056
printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11057
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11215
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11216
printf %s "checking dynamic linker characteristics... " >&6; }
11218
if test yes = "$GCC"; then
11220
darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11221
*) lt_awk_arg='/^libraries:/' ;;
11224
mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11225
*) lt_sed_strip_eq='s|=/|/|g' ;;
11227
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11228
case $lt_search_path_spec in
11230
# if the path contains ";" then we assume it to be the separator
11231
# otherwise default to the standard path separator (i.e. ":") - it is
11232
# assumed that no part of a normal pathname contains ";" but that should
11233
# okay in the real world where ";" in dirpaths is itself problematic.
11234
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11237
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11240
# Ok, now we have the path, separated by spaces, we can step through it
11241
# and add multilib dir if necessary...
11242
lt_tmp_lt_search_path_spec=
11243
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11244
# ...but if some path component already ends with the multilib dir we assume
11245
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11246
case "$lt_multi_os_dir; $lt_search_path_spec " in
11247
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11251
for lt_sys_path in $lt_search_path_spec; do
11252
if test -d "$lt_sys_path$lt_multi_os_dir"; then
11253
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11254
elif test -n "$lt_multi_os_dir"; then
11255
test -d "$lt_sys_path" && \
11256
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11259
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11260
BEGIN {RS = " "; FS = "/|\n";} {
11263
for (lt_i = NF; lt_i > 0; lt_i--) {
11264
if ($lt_i != "" && $lt_i != ".") {
11265
if ($lt_i == "..") {
11268
if (lt_count == 0) {
11269
lt_foo = "/" $lt_i lt_foo;
11276
if (lt_foo != "") { lt_freq[lt_foo]++; }
11277
if (lt_freq[lt_foo] == 1) { print lt_foo; }
11279
# AWK program above erroneously prepends '/' to C:/dos/paths
11282
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11283
$SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11285
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11287
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11289
library_names_spec=
11290
libname_spec='lib$name'
11294
postuninstall_cmds=
11298
shlibpath_overrides_runpath=unknown
11300
dynamic_linker="$host_os ld.so"
11301
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11302
need_lib_prefix=unknown
11303
hardcode_into_libs=no
11305
# when you set need_version to no, make sure it does not cause -set_version
11306
# flags to be left without arguments
11307
need_version=unknown
11313
version_type=linux # correct to gnu/linux during the next big refactor
11314
library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11315
shlibpath_var=LIBPATH
11317
# AIX 3 has no versioning support, so we append a major version to the name.
11318
soname_spec='$libname$release$shared_ext$major'
11322
version_type=linux # correct to gnu/linux during the next big refactor
11325
hardcode_into_libs=yes
11326
if test ia64 = "$host_cpu"; then
11327
# AIX 5 supports IA64
11328
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11329
shlibpath_var=LD_LIBRARY_PATH
11331
# With GCC up to 2.95.x, collect2 would create an import file
11332
# for dependence libraries. The import file would start with
11333
# the line '#! .'. This would cause the generated library to
11334
# depend on '.', always an invalid library. This was fixed in
11335
# development snapshots of GCC prior to 3.0.
11337
aix4 | aix4.[01] | aix4.[01].*)
11338
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11340
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11343
can_build_shared=no
11347
# Using Import Files as archive members, it is possible to support
11348
# filename-based versioning of shared library archives on AIX. While
11349
# this would work for both with and without runtime linking, it will
11350
# prevent static linking of such archives. So we do filename-based
11351
# shared library versioning with .so extension only, which is used
11352
# when both runtime linking and shared linking is enabled.
11353
# Unfortunately, runtime linking may impact performance, so we do
11354
# not want this to be the default eventually. Also, we use the
11355
# versioned .so libs for executables only if there is the -brtl
11356
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11357
# To allow for filename-based versioning support, we need to create
11358
# libNAME.so.V as an archive file, containing:
11359
# *) an Import File, referring to the versioned filename of the
11360
# archive as well as the shared archive member, telling the
11361
# bitwidth (32 or 64) of that shared object, and providing the
11362
# list of exported symbols of that shared object, eventually
11363
# decorated with the 'weak' keyword
11364
# *) the shared object with the F_LOADONLY flag set, to really avoid
11365
# it being seen by the linker.
11366
# At run time we better use the real file rather than another symlink,
11367
# but for link time we create the symlink libNAME.so -> libNAME.so.V
11369
case $with_aix_soname,$aix_use_runtimelinking in
11370
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11371
# soname into executable. Probably we can add versioning support to
11372
# collect2, so additional links can be useful in future.
11373
aix,yes) # traditional libtool
11374
dynamic_linker='AIX unversionable lib.so'
11375
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11376
# instead of lib<name>.a to let people know that these are not
11377
# typical AIX shared libraries.
11378
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11380
aix,no) # traditional AIX only
11381
dynamic_linker='AIX lib.a(lib.so.V)'
11382
# We preserve .a as extension for shared libraries through AIX4.2
11383
# and later when we are not doing run time linking.
11384
library_names_spec='$libname$release.a $libname.a'
11385
soname_spec='$libname$release$shared_ext$major'
11387
svr4,*) # full svr4 only
11388
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11389
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11390
# We do not specify a path in Import Files, so LIBPATH fires.
11391
shlibpath_overrides_runpath=yes
11393
*,yes) # both, prefer svr4
11394
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11395
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11396
# unpreferred sharedlib libNAME.a needs extra handling
11397
postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11398
postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11399
# We do not specify a path in Import Files, so LIBPATH fires.
11400
shlibpath_overrides_runpath=yes
11402
*,no) # both, prefer aix
11403
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11404
library_names_spec='$libname$release.a $libname.a'
11405
soname_spec='$libname$release$shared_ext$major'
11406
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11407
postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11408
postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11411
shlibpath_var=LIBPATH
11418
# Since July 2007 AmigaOS4 officially supports .so libraries.
11419
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11420
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11423
library_names_spec='$libname.ixlibrary $libname.a'
11424
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11425
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11431
library_names_spec='$libname$shared_ext'
11432
dynamic_linker="$host_os ld.so"
11433
shlibpath_var=LIBRARY_PATH
11437
version_type=linux # correct to gnu/linux during the next big refactor
11439
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11440
soname_spec='$libname$release$shared_ext$major'
11441
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11442
shlibpath_var=LD_LIBRARY_PATH
11443
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11444
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11445
# the default ld.so.conf also contains /usr/contrib/lib and
11446
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11447
# libtool to hard-code these into programs
11450
cygwin* | mingw* | pw32* | cegcc*)
11451
version_type=windows
11456
case $GCC,$cc_basename in
11459
library_names_spec='$libname.dll.a'
11460
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11461
postinstall_cmds='base_file=`basename \$file`~
11462
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11463
dldir=$destdir/`dirname \$dlpath`~
11464
test -d \$dldir || mkdir -p \$dldir~
11465
$install_prog $dir/$dlname \$dldir/$dlname~
11466
chmod a+x \$dldir/$dlname~
11467
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11468
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11470
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11471
dlpath=$dir/\$dldll~
11473
shlibpath_overrides_runpath=yes
11477
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11478
soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11480
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11483
# MinGW DLLs use traditional 'lib' prefix
11484
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11487
# pw32 DLLs use 'pw' prefix rather than 'lib'
11488
library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11491
dynamic_linker='Win32 ld.exe'
11495
# Native MSVC or ICC
11496
libname_spec='$name'
11497
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11498
library_names_spec='$libname.dll.lib'
11502
sys_lib_search_path_spec=
11505
for lt_path in $LIB
11508
# Let DOS variable expansion print the short 8.3 style file name.
11509
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11510
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11513
# Convert to MSYS style.
11514
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11517
# Convert to unix form, then to dos form, then back to unix form
11518
# but this time dos style (no spaces!) so that the unix form looks
11519
# like /cygdrive/c/PROGRA~1:/cygdr...
11520
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11521
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11522
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11525
sys_lib_search_path_spec=$LIB
11526
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11527
# It is most probably a Windows format PATH.
11528
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11530
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11532
# FIXME: find the short name or the path components, as spaces are
11533
# common. (e.g. "Program Files" -> "PROGRA~1")
11537
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11538
postinstall_cmds='base_file=`basename \$file`~
11539
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11540
dldir=$destdir/`dirname \$dlpath`~
11541
test -d \$dldir || mkdir -p \$dldir~
11542
$install_prog $dir/$dlname \$dldir/$dlname'
11543
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11544
dlpath=$dir/\$dldll~
11546
shlibpath_overrides_runpath=yes
11547
dynamic_linker='Win32 link.exe'
11551
# Assume MSVC and ICC wrapper
11552
library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11553
dynamic_linker='Win32 ld.exe'
11556
# FIXME: first we should search . and the directory the executable is in
11560
darwin* | rhapsody*)
11561
dynamic_linker="$host_os dyld"
11562
version_type=darwin
11565
library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11566
soname_spec='$libname$release$major$shared_ext'
11567
shlibpath_overrides_runpath=yes
11568
shlibpath_var=DYLD_LIBRARY_PATH
11569
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11571
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11572
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11576
version_type=linux # correct to gnu/linux during the next big refactor
11579
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11580
soname_spec='$libname$release$shared_ext$major'
11581
shlibpath_var=LD_LIBRARY_PATH
11584
freebsd* | dragonfly* | midnightbsd*)
11585
# DragonFly does not have aout. When/if they implement a new
11586
# versioning mechanism, adjust this.
11587
if test -x /usr/bin/objformat; then
11588
objformat=`/usr/bin/objformat`
11591
freebsd[23].*) objformat=aout ;;
11592
*) objformat=elf ;;
11595
version_type=freebsd-$objformat
11596
case $version_type in
11598
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11599
soname_spec='$libname$release$shared_ext$major'
11604
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11608
shlibpath_var=LD_LIBRARY_PATH
11611
shlibpath_overrides_runpath=yes
11613
freebsd3.[01]* | freebsdelf3.[01]*)
11614
shlibpath_overrides_runpath=yes
11615
hardcode_into_libs=yes
11617
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11618
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11619
shlibpath_overrides_runpath=no
11620
hardcode_into_libs=yes
11622
*) # from 4.6 on, and DragonFly
11623
shlibpath_overrides_runpath=yes
11624
hardcode_into_libs=yes
11630
version_type=linux # correct to gnu/linux during the next big refactor
11633
dynamic_linker="$host_os runtime_loader"
11634
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11635
soname_spec='$libname$release$shared_ext$major'
11636
shlibpath_var=LIBRARY_PATH
11637
shlibpath_overrides_runpath=no
11638
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11639
hardcode_into_libs=yes
11642
hpux9* | hpux10* | hpux11*)
11643
# Give a soname corresponding to the major version so that dld.sl refuses to
11644
# link against other versions.
11651
hardcode_into_libs=yes
11652
dynamic_linker="$host_os dld.so"
11653
shlibpath_var=LD_LIBRARY_PATH
11654
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11655
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11656
soname_spec='$libname$release$shared_ext$major'
11657
if test 32 = "$HPUX_IA64_MODE"; then
11658
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11659
sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11661
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11662
sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11667
hardcode_into_libs=yes
11668
dynamic_linker="$host_os dld.sl"
11669
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11670
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11671
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11672
soname_spec='$libname$release$shared_ext$major'
11673
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11674
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11678
dynamic_linker="$host_os dld.sl"
11679
shlibpath_var=SHLIB_PATH
11680
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11681
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11682
soname_spec='$libname$release$shared_ext$major'
11685
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11686
postinstall_cmds='chmod 555 $lib'
11687
# or fails outright, so override atomically:
11688
install_override_mode=555
11692
version_type=linux # correct to gnu/linux during the next big refactor
11695
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11696
soname_spec='$libname$release$shared_ext$major'
11697
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11698
shlibpath_var=LD_LIBRARY_PATH
11699
shlibpath_overrides_runpath=no
11700
hardcode_into_libs=yes
11703
irix5* | irix6* | nonstopux*)
11705
nonstopux*) version_type=nonstopux ;;
11707
if test yes = "$lt_cv_prog_gnu_ld"; then
11708
version_type=linux # correct to gnu/linux during the next big refactor
11715
soname_spec='$libname$release$shared_ext$major'
11716
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11718
irix5* | nonstopux*)
11719
libsuff= shlibsuff=
11722
case $LD in # libtool.m4 will add one of these switches to LD
11723
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11724
libsuff= shlibsuff= libmagic=32-bit;;
11725
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11726
libsuff=32 shlibsuff=N32 libmagic=N32;;
11727
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11728
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11729
*) libsuff= shlibsuff= libmagic=never-match;;
11733
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11734
shlibpath_overrides_runpath=no
11735
sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11736
sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11737
hardcode_into_libs=yes
11740
# No shared lib support for Linux oldld, aout, or coff.
11741
linux*oldld* | linux*aout* | linux*coff*)
11746
version_type=none # Android doesn't support versioned libraries.
11749
library_names_spec='$libname$release$shared_ext'
11750
soname_spec='$libname$release$shared_ext'
11752
shlibpath_var=LD_LIBRARY_PATH
11753
shlibpath_overrides_runpath=yes
11755
# This implies no fast_install, which is unacceptable.
11756
# Some rework will be needed to allow for fast_install
11757
# before this can be enabled.
11758
hardcode_into_libs=yes
11760
dynamic_linker='Android linker'
11761
# Don't embed -rpath directories since the linker doesn't support them.
11762
hardcode_libdir_flag_spec='-L$libdir'
11765
# This must be glibc/ELF.
11766
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11767
version_type=linux # correct to gnu/linux during the next big refactor
11770
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11771
soname_spec='$libname$release$shared_ext$major'
11772
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11773
shlibpath_var=LD_LIBRARY_PATH
11774
shlibpath_overrides_runpath=no
11776
# Some binutils ld are patched to set DT_RUNPATH
11777
if test ${lt_cv_shlibpath_overrides_runpath+y}
11779
printf %s "(cached) " >&6
11781
lt_cv_shlibpath_overrides_runpath=no
11782
save_LDFLAGS=$LDFLAGS
11783
save_libdir=$libdir
11784
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11785
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11786
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787
/* end confdefs.h. */
11797
if ac_fn_c_try_link "$LINENO"
11799
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11801
lt_cv_shlibpath_overrides_runpath=yes
11804
rm -f core conftest.err conftest.$ac_objext conftest.beam \
11805
conftest$ac_exeext conftest.$ac_ext
11806
LDFLAGS=$save_LDFLAGS
11807
libdir=$save_libdir
11811
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11813
# This implies no fast_install, which is unacceptable.
11814
# Some rework will be needed to allow for fast_install
11815
# before this can be enabled.
11816
hardcode_into_libs=yes
11818
# Ideally, we could use ldconfig to report *all* directores which are
11819
# searched for libraries, however this is still not possible. Aside from not
11820
# being certain /sbin/ldconfig is available, command
11821
# 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11822
# even though it is searched at run-time. Try to do the best guess by
11823
# appending ld.so.conf contents (and includes) to the search path.
11824
if test -f /etc/ld.so.conf; then
11825
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' ' '`
11826
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11829
# We used to test for /lib/ld.so.1 and disable shared libraries on
11830
# powerpc, because MkLinux only supported shared libraries with the
11831
# GNU dynamic linker. Since this was broken with cross compilers,
11832
# most powerpc-linux boxes support dynamic linking these days and
11833
# people can always --disable-shared, the test was removed, and we
11834
# assume the GNU/Linux dynamic linker is in use.
11835
dynamic_linker='GNU/Linux ld.so'
11842
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11843
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11844
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11845
dynamic_linker='NetBSD (a.out) ld.so'
11847
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11848
soname_spec='$libname$release$shared_ext$major'
11849
dynamic_linker='NetBSD ld.elf_so'
11851
shlibpath_var=LD_LIBRARY_PATH
11852
shlibpath_overrides_runpath=yes
11853
hardcode_into_libs=yes
11857
version_type=linux # correct to gnu/linux during the next big refactor
11858
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11859
shlibpath_var=LD_LIBRARY_PATH
11860
shlibpath_overrides_runpath=yes
11867
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11868
soname_spec='$libname$release$shared_ext$major'
11869
shlibpath_var=LD_LIBRARY_PATH
11870
shlibpath_overrides_runpath=no
11871
hardcode_into_libs=yes
11872
dynamic_linker='ldqnx.so'
11875
openbsd* | bitrig*)
11877
sys_lib_dlsearch_path_spec=/usr/lib
11879
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11884
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11885
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11886
shlibpath_var=LD_LIBRARY_PATH
11887
shlibpath_overrides_runpath=yes
11891
libname_spec='$name'
11892
version_type=windows
11896
# OS/2 can only load a DLL with a base name of 8 characters or less.
11897
soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11898
v=$($ECHO $release$versuffix | tr -d .-);
11899
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11900
$ECHO $n$v`$shared_ext'
11901
library_names_spec='${libname}_dll.$libext'
11902
dynamic_linker='OS/2 ld.exe'
11903
shlibpath_var=BEGINLIBPATH
11904
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11905
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11906
postinstall_cmds='base_file=`basename \$file`~
11907
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11908
dldir=$destdir/`dirname \$dlpath`~
11909
test -d \$dldir || mkdir -p \$dldir~
11910
$install_prog $dir/$dlname \$dldir/$dlname~
11911
chmod a+x \$dldir/$dlname~
11912
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11913
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11915
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11916
dlpath=$dir/\$dldll~
11920
osf3* | osf4* | osf5*)
11924
soname_spec='$libname$release$shared_ext$major'
11925
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11926
shlibpath_var=LD_LIBRARY_PATH
11927
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11928
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11936
version_type=linux # correct to gnu/linux during the next big refactor
11939
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11940
soname_spec='$libname$release$shared_ext$major'
11941
shlibpath_var=LD_LIBRARY_PATH
11942
shlibpath_overrides_runpath=yes
11943
hardcode_into_libs=yes
11944
# ldd complains unless libraries are executable
11945
postinstall_cmds='chmod +x $lib'
11950
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11951
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11952
shlibpath_var=LD_LIBRARY_PATH
11953
shlibpath_overrides_runpath=yes
11954
if test yes = "$with_gnu_ld"; then
11961
version_type=linux # correct to gnu/linux during the next big refactor
11962
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11963
soname_spec='$libname$release$shared_ext$major'
11964
shlibpath_var=LD_LIBRARY_PATH
11965
case $host_vendor in
11967
shlibpath_overrides_runpath=no
11969
runpath_var=LD_RUN_PATH
11977
shlibpath_overrides_runpath=no
11978
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11984
if test -d /usr/nec; then
11985
version_type=linux # correct to gnu/linux during the next big refactor
11986
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11987
soname_spec='$libname$shared_ext.$major'
11988
shlibpath_var=LD_LIBRARY_PATH
11992
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11996
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11997
soname_spec='$libname$release$shared_ext$major'
11998
shlibpath_var=LD_LIBRARY_PATH
11999
shlibpath_overrides_runpath=yes
12000
hardcode_into_libs=yes
12001
if test yes = "$with_gnu_ld"; then
12002
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12004
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12007
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12011
sys_lib_dlsearch_path_spec='/usr/lib'
12015
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12016
version_type=linux # correct to gnu/linux during the next big refactor
12019
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12020
shlibpath_var=LD_LIBRARY_PATH
12021
shlibpath_overrides_runpath=no
12022
hardcode_into_libs=yes
12026
version_type=linux # correct to gnu/linux during the next big refactor
12027
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12028
soname_spec='$libname$release$shared_ext$major'
12029
shlibpath_var=LD_LIBRARY_PATH
12036
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12037
printf "%s\n" "$dynamic_linker" >&6; }
12038
test no = "$dynamic_linker" && can_build_shared=no
12040
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12041
if test yes = "$GCC"; then
12042
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12045
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12046
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12049
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12050
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12053
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12054
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12056
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12057
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12059
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12060
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12158
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12159
printf %s "checking how to hardcode library paths into programs... " >&6; }
12161
if test -n "$hardcode_libdir_flag_spec" ||
12162
test -n "$runpath_var" ||
12163
test yes = "$hardcode_automatic"; then
12165
# We can hardcode non-existent directories.
12166
if test no != "$hardcode_direct" &&
12167
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12168
# have to relink, otherwise we might link with an installed library
12169
# when we should be linking with a yet-to-be-installed one
12170
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12171
test no != "$hardcode_minus_L"; then
12172
# Linking always hardcodes the temporary library directory.
12173
hardcode_action=relink
12175
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12176
hardcode_action=immediate
12179
# We cannot hardcode anything, or else we can only hardcode existing
12181
hardcode_action=unsupported
12183
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12184
printf "%s\n" "$hardcode_action" >&6; }
12186
if test relink = "$hardcode_action" ||
12187
test yes = "$inherit_rpath"; then
12188
# Fast installation is not supported
12189
enable_fast_install=no
12190
elif test yes = "$shlibpath_overrides_runpath" ||
12191
test no = "$enable_shared"; then
12192
# Fast installation is not necessary
12193
enable_fast_install=needless
12201
if test yes != "$enable_dlopen"; then
12202
enable_dlopen=unknown
12203
enable_dlopen_self=unknown
12204
enable_dlopen_self_static=unknown
12211
lt_cv_dlopen=load_add_on
12213
lt_cv_dlopen_self=yes
12216
mingw* | pw32* | cegcc*)
12217
lt_cv_dlopen=LoadLibrary
12222
lt_cv_dlopen=dlopen
12227
# if libdl is installed we need to link against it
12228
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12229
printf %s "checking for dlopen in -ldl... " >&6; }
12230
if test ${ac_cv_lib_dl_dlopen+y}
12232
printf %s "(cached) " >&6
12234
ac_check_lib_save_LIBS=$LIBS
12236
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237
/* end confdefs.h. */
12239
/* Override any GCC internal prototype to avoid an error.
12240
Use char because int might match the return type of a GCC
12241
builtin and then its argument prototype would still apply. */
12251
if ac_fn_c_try_link "$LINENO"
12253
ac_cv_lib_dl_dlopen=yes
12255
ac_cv_lib_dl_dlopen=no
12257
rm -f core conftest.err conftest.$ac_objext conftest.beam \
12258
conftest$ac_exeext conftest.$ac_ext
12259
LIBS=$ac_check_lib_save_LIBS
12261
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12262
printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12263
if test "x$ac_cv_lib_dl_dlopen" = xyes
12265
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12270
lt_cv_dlopen_self=yes
12277
# Don't try to run any link tests for TPF. We know it's impossible
12278
# because TPF is a cross-compiler, and we know how we open DSOs.
12279
lt_cv_dlopen=dlopen
12281
lt_cv_dlopen_self=no
12285
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12286
if test "x$ac_cv_func_shl_load" = xyes
12288
lt_cv_dlopen=shl_load
12290
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12291
printf %s "checking for shl_load in -ldld... " >&6; }
12292
if test ${ac_cv_lib_dld_shl_load+y}
12294
printf %s "(cached) " >&6
12296
ac_check_lib_save_LIBS=$LIBS
12298
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299
/* end confdefs.h. */
12301
/* Override any GCC internal prototype to avoid an error.
12302
Use char because int might match the return type of a GCC
12303
builtin and then its argument prototype would still apply. */
12308
return shl_load ();
12313
if ac_fn_c_try_link "$LINENO"
12315
ac_cv_lib_dld_shl_load=yes
12317
ac_cv_lib_dld_shl_load=no
12319
rm -f core conftest.err conftest.$ac_objext conftest.beam \
12320
conftest$ac_exeext conftest.$ac_ext
12321
LIBS=$ac_check_lib_save_LIBS
12323
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12324
printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12325
if test "x$ac_cv_lib_dld_shl_load" = xyes
12327
lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12329
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12330
if test "x$ac_cv_func_dlopen" = xyes
12332
lt_cv_dlopen=dlopen
12334
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12335
printf %s "checking for dlopen in -ldl... " >&6; }
12336
if test ${ac_cv_lib_dl_dlopen+y}
12338
printf %s "(cached) " >&6
12340
ac_check_lib_save_LIBS=$LIBS
12342
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343
/* end confdefs.h. */
12345
/* Override any GCC internal prototype to avoid an error.
12346
Use char because int might match the return type of a GCC
12347
builtin and then its argument prototype would still apply. */
12357
if ac_fn_c_try_link "$LINENO"
12359
ac_cv_lib_dl_dlopen=yes
12361
ac_cv_lib_dl_dlopen=no
12363
rm -f core conftest.err conftest.$ac_objext conftest.beam \
12364
conftest$ac_exeext conftest.$ac_ext
12365
LIBS=$ac_check_lib_save_LIBS
12367
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12368
printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12369
if test "x$ac_cv_lib_dl_dlopen" = xyes
12371
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12373
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12374
printf %s "checking for dlopen in -lsvld... " >&6; }
12375
if test ${ac_cv_lib_svld_dlopen+y}
12377
printf %s "(cached) " >&6
12379
ac_check_lib_save_LIBS=$LIBS
12380
LIBS="-lsvld $LIBS"
12381
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382
/* end confdefs.h. */
12384
/* Override any GCC internal prototype to avoid an error.
12385
Use char because int might match the return type of a GCC
12386
builtin and then its argument prototype would still apply. */
12396
if ac_fn_c_try_link "$LINENO"
12398
ac_cv_lib_svld_dlopen=yes
12400
ac_cv_lib_svld_dlopen=no
12402
rm -f core conftest.err conftest.$ac_objext conftest.beam \
12403
conftest$ac_exeext conftest.$ac_ext
12404
LIBS=$ac_check_lib_save_LIBS
12406
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12407
printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12408
if test "x$ac_cv_lib_svld_dlopen" = xyes
12410
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12412
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12413
printf %s "checking for dld_link in -ldld... " >&6; }
12414
if test ${ac_cv_lib_dld_dld_link+y}
12416
printf %s "(cached) " >&6
12418
ac_check_lib_save_LIBS=$LIBS
12420
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421
/* end confdefs.h. */
12423
/* Override any GCC internal prototype to avoid an error.
12424
Use char because int might match the return type of a GCC
12425
builtin and then its argument prototype would still apply. */
12430
return dld_link ();
12435
if ac_fn_c_try_link "$LINENO"
12437
ac_cv_lib_dld_dld_link=yes
12439
ac_cv_lib_dld_dld_link=no
12441
rm -f core conftest.err conftest.$ac_objext conftest.beam \
12442
conftest$ac_exeext conftest.$ac_ext
12443
LIBS=$ac_check_lib_save_LIBS
12445
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12446
printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12447
if test "x$ac_cv_lib_dld_dld_link" = xyes
12449
lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12470
if test no = "$lt_cv_dlopen"; then
12476
case $lt_cv_dlopen in
12478
save_CPPFLAGS=$CPPFLAGS
12479
test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12481
save_LDFLAGS=$LDFLAGS
12482
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12485
LIBS="$lt_cv_dlopen_libs $LIBS"
12487
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12488
printf %s "checking whether a program can dlopen itself... " >&6; }
12489
if test ${lt_cv_dlopen_self+y}
12491
printf %s "(cached) " >&6
12493
if test yes = "$cross_compiling"; then :
12494
lt_cv_dlopen_self=cross
12496
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12497
lt_status=$lt_dlunknown
12498
cat > conftest.$ac_ext <<_LT_EOF
12499
#line $LINENO "configure"
12500
#include "confdefs.h"
12509
# define LT_DLGLOBAL RTLD_GLOBAL
12512
# define LT_DLGLOBAL DL_GLOBAL
12514
# define LT_DLGLOBAL 0
12518
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12519
find out it does not work in some platform. */
12520
#ifndef LT_DLLAZY_OR_NOW
12522
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12525
# define LT_DLLAZY_OR_NOW DL_LAZY
12528
# define LT_DLLAZY_OR_NOW RTLD_NOW
12531
# define LT_DLLAZY_OR_NOW DL_NOW
12533
# define LT_DLLAZY_OR_NOW 0
12540
/* When -fvisibility=hidden is used, assume the code has been annotated
12541
correspondingly for the symbols needed. */
12542
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12543
int fnord () __attribute__((visibility("default")));
12546
int fnord () { return 42; }
12549
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12550
int status = $lt_dlunknown;
12554
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12557
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12558
else puts (dlerror ());
12560
/* dlclose (self); */
12568
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12569
(eval $ac_link) 2>&5
12571
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12572
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12573
(./conftest; exit; ) >&5 2>/dev/null
12575
case x$lt_status in
12576
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12577
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12578
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12581
# compilation failed
12582
lt_cv_dlopen_self=no
12589
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12590
printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12592
if test yes = "$lt_cv_dlopen_self"; then
12593
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12594
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12595
printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12596
if test ${lt_cv_dlopen_self_static+y}
12598
printf %s "(cached) " >&6
12600
if test yes = "$cross_compiling"; then :
12601
lt_cv_dlopen_self_static=cross
12603
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12604
lt_status=$lt_dlunknown
12605
cat > conftest.$ac_ext <<_LT_EOF
12606
#line $LINENO "configure"
12607
#include "confdefs.h"
12616
# define LT_DLGLOBAL RTLD_GLOBAL
12619
# define LT_DLGLOBAL DL_GLOBAL
12621
# define LT_DLGLOBAL 0
12625
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12626
find out it does not work in some platform. */
12627
#ifndef LT_DLLAZY_OR_NOW
12629
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12632
# define LT_DLLAZY_OR_NOW DL_LAZY
12635
# define LT_DLLAZY_OR_NOW RTLD_NOW
12638
# define LT_DLLAZY_OR_NOW DL_NOW
12640
# define LT_DLLAZY_OR_NOW 0
12647
/* When -fvisibility=hidden is used, assume the code has been annotated
12648
correspondingly for the symbols needed. */
12649
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12650
int fnord () __attribute__((visibility("default")));
12653
int fnord () { return 42; }
12656
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12657
int status = $lt_dlunknown;
12661
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12664
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12665
else puts (dlerror ());
12667
/* dlclose (self); */
12675
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12676
(eval $ac_link) 2>&5
12678
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12679
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12680
(./conftest; exit; ) >&5 2>/dev/null
12682
case x$lt_status in
12683
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12684
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12685
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12688
# compilation failed
12689
lt_cv_dlopen_self_static=no
12696
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12697
printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12700
CPPFLAGS=$save_CPPFLAGS
12701
LDFLAGS=$save_LDFLAGS
12706
case $lt_cv_dlopen_self in
12707
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12708
*) enable_dlopen_self=unknown ;;
12711
case $lt_cv_dlopen_self_static in
12712
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12713
*) enable_dlopen_self_static=unknown ;;
12735
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12736
printf %s "checking whether stripping libraries is possible... " >&6; }
12737
if test -z "$STRIP"; then
12738
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739
printf "%s\n" "no" >&6; }
12741
if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12742
old_striplib="$STRIP --strip-debug"
12743
striplib="$STRIP --strip-unneeded"
12744
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12745
printf "%s\n" "yes" >&6; }
12749
# FIXME - insert some real tests, host_os isn't really good enough
12750
striplib="$STRIP -x"
12751
old_striplib="$STRIP -S"
12752
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12753
printf "%s\n" "yes" >&6; }
12756
if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12757
old_striplib="$STRIP --strip-debug"
12758
striplib="$STRIP --strip-unneeded"
12759
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12760
printf "%s\n" "yes" >&6; }
12762
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763
printf "%s\n" "no" >&6; }
12767
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768
printf "%s\n" "no" >&6; }
12785
# Report what library types will actually be built
12786
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12787
printf %s "checking if libtool supports shared libraries... " >&6; }
12788
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12789
printf "%s\n" "$can_build_shared" >&6; }
12791
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12792
printf %s "checking whether to build shared libraries... " >&6; }
12793
test no = "$can_build_shared" && enable_shared=no
12795
# On AIX, shared libraries and static libraries use the same namespace, and
12796
# are all built from PIC.
12799
test yes = "$enable_shared" && enable_static=no
12800
if test -n "$RANLIB"; then
12801
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12802
postinstall_cmds='$RANLIB $lib'
12807
if test ia64 != "$host_cpu"; then
12808
case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12809
yes,aix,yes) ;; # shared object as lib.so file only
12810
yes,svr4,*) ;; # shared object as lib.so archive member only
12811
yes,*) enable_static=no ;; # shared object in lib.a archive as well
12816
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12817
printf "%s\n" "$enable_shared" >&6; }
12819
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12820
printf %s "checking whether to build static libraries... " >&6; }
12821
# Make sure either enable_shared or enable_static is yes.
12822
test yes = "$enable_shared" || enable_static=yes
12823
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12824
printf "%s\n" "$enable_static" >&6; }
12831
ac_cpp='$CPP $CPPFLAGS'
12832
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12833
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12834
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12852
ac_config_commands="$ac_config_commands libtool"
12857
# Only expand once:
12861
# Check whether --enable-largefile was given.
12862
if test ${enable_largefile+y}
12864
enableval=$enable_largefile;
12867
if test "$enable_largefile" != no; then
12869
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12870
printf %s "checking for special C compiler options needed for large files... " >&6; }
12871
if test ${ac_cv_sys_largefile_CC+y}
12873
printf %s "(cached) " >&6
12875
ac_cv_sys_largefile_CC=no
12876
if test "$GCC" != yes; then
12879
# IRIX 6.2 and later do not support large files by default,
12880
# so use the C compiler's -n32 option if that helps.
12881
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12882
/* end confdefs.h. */
12883
#include <sys/types.h>
12884
/* Check that off_t can represent 2**63 - 1 correctly.
12885
We can't simply define LARGE_OFF_T to be 9223372036854775807,
12886
since some C++ compilers masquerading as C compilers
12887
incorrectly reject 9223372036854775807. */
12888
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12889
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12890
&& LARGE_OFF_T % 2147483647 == 1)
12900
if ac_fn_c_try_compile "$LINENO"
12904
rm -f core conftest.err conftest.$ac_objext conftest.beam
12906
if ac_fn_c_try_compile "$LINENO"
12908
ac_cv_sys_largefile_CC=' -n32'; break
12910
rm -f core conftest.err conftest.$ac_objext conftest.beam
12914
rm -f conftest.$ac_ext
12917
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12918
printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
12919
if test "$ac_cv_sys_largefile_CC" != no; then
12920
CC=$CC$ac_cv_sys_largefile_CC
12923
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12924
printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12925
if test ${ac_cv_sys_file_offset_bits+y}
12927
printf %s "(cached) " >&6
12930
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931
/* end confdefs.h. */
12932
#include <sys/types.h>
12933
/* Check that off_t can represent 2**63 - 1 correctly.
12934
We can't simply define LARGE_OFF_T to be 9223372036854775807,
12935
since some C++ compilers masquerading as C compilers
12936
incorrectly reject 9223372036854775807. */
12937
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12938
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12939
&& LARGE_OFF_T % 2147483647 == 1)
12949
if ac_fn_c_try_compile "$LINENO"
12951
ac_cv_sys_file_offset_bits=no; break
12953
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12954
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955
/* end confdefs.h. */
12956
#define _FILE_OFFSET_BITS 64
12957
#include <sys/types.h>
12958
/* Check that off_t can represent 2**63 - 1 correctly.
12959
We can't simply define LARGE_OFF_T to be 9223372036854775807,
12960
since some C++ compilers masquerading as C compilers
12961
incorrectly reject 9223372036854775807. */
12962
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12963
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12964
&& LARGE_OFF_T % 2147483647 == 1)
12974
if ac_fn_c_try_compile "$LINENO"
12976
ac_cv_sys_file_offset_bits=64; break
12978
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12979
ac_cv_sys_file_offset_bits=unknown
12983
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12984
printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
12985
case $ac_cv_sys_file_offset_bits in #(
12988
printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
12992
if test $ac_cv_sys_file_offset_bits = unknown; then
12993
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12994
printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
12995
if test ${ac_cv_sys_large_files+y}
12997
printf %s "(cached) " >&6
13000
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001
/* end confdefs.h. */
13002
#include <sys/types.h>
13003
/* Check that off_t can represent 2**63 - 1 correctly.
13004
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13005
since some C++ compilers masquerading as C compilers
13006
incorrectly reject 9223372036854775807. */
13007
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13008
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13009
&& LARGE_OFF_T % 2147483647 == 1)
13019
if ac_fn_c_try_compile "$LINENO"
13021
ac_cv_sys_large_files=no; break
13023
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13024
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025
/* end confdefs.h. */
13026
#define _LARGE_FILES 1
13027
#include <sys/types.h>
13028
/* Check that off_t can represent 2**63 - 1 correctly.
13029
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13030
since some C++ compilers masquerading as C compilers
13031
incorrectly reject 9223372036854775807. */
13032
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13033
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13034
&& LARGE_OFF_T % 2147483647 == 1)
13044
if ac_fn_c_try_compile "$LINENO"
13046
ac_cv_sys_large_files=1; break
13048
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13049
ac_cv_sys_large_files=unknown
13053
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13054
printf "%s\n" "$ac_cv_sys_large_files" >&6; }
13055
case $ac_cv_sys_large_files in #(
13058
printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
13067
# Check whether --with-personality-dir was given.
13068
if test ${with_personality_dir+y}
13070
withval=$with_personality_dir; PERSONALITY_PATH="$withval"
13072
PERSONALITY_PATH="${datadir}/pkgconfig/personality.d:${sysconfdir}/pkgconfig/personality.d"
13079
# Check whether --with-pkg-config-dir was given.
13080
if test ${with_pkg_config_dir+y}
13082
withval=$with_pkg_config_dir; PKG_DEFAULT_PATH="$withval"
13084
PKG_DEFAULT_PATH="${libdir}/pkgconfig:${datadir}/pkgconfig"
13091
# Check whether --with-system-libdir was given.
13092
if test ${with_system_libdir+y}
13094
withval=$with_system_libdir; SYSTEM_LIBDIR="$withval"
13096
SYSTEM_LIBDIR="${libdir}"
13103
# Check whether --with-system-includedir was given.
13104
if test ${with_system_includedir+y}
13106
withval=$with_system_includedir; SYSTEM_INCLUDEDIR="$withval"
13108
SYSTEM_INCLUDEDIR="${includedir}"
13115
ac_cpp='$CPP $CPPFLAGS'
13116
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13117
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13118
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13119
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13120
printf %s "checking how to run the C preprocessor... " >&6; }
13121
# On Suns, sometimes $CPP names a directory.
13122
if test -n "$CPP" && test -d "$CPP"; then
13125
if test -z "$CPP"; then
13126
if test ${ac_cv_prog_CPP+y}
13128
printf %s "(cached) " >&6
13130
# Double quotes because $CC needs to be expanded
13131
for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
13133
ac_preproc_ok=false
13134
for ac_c_preproc_warn_flag in '' yes
13136
# Use a header file that comes with gcc, so configuring glibc
13137
# with a fresh cross-compiler works.
13138
# On the NeXT, cc -E runs the code through the compiler's parser,
13139
# not just through cpp. "Syntax error" is here to catch this case.
13140
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141
/* end confdefs.h. */
13142
#include <limits.h>
13145
if ac_fn_c_try_cpp "$LINENO"
13149
# Broken: fails on valid input.
13152
rm -f conftest.err conftest.i conftest.$ac_ext
13154
# OK, works on sane cases. Now check whether nonexistent headers
13155
# can be detected and how.
13156
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157
/* end confdefs.h. */
13158
#include <ac_nonexistent.h>
13160
if ac_fn_c_try_cpp "$LINENO"
13162
# Broken: success on invalid input.
13165
# Passes both tests.
13169
rm -f conftest.err conftest.i conftest.$ac_ext
13172
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13173
rm -f conftest.i conftest.err conftest.$ac_ext
13180
ac_cv_prog_CPP=$CPP
13183
CPP=$ac_cv_prog_CPP
13185
ac_cv_prog_CPP=$CPP
13187
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13188
printf "%s\n" "$CPP" >&6; }
13189
ac_preproc_ok=false
13190
for ac_c_preproc_warn_flag in '' yes
13192
# Use a header file that comes with gcc, so configuring glibc
13193
# with a fresh cross-compiler works.
13194
# On the NeXT, cc -E runs the code through the compiler's parser,
13195
# not just through cpp. "Syntax error" is here to catch this case.
13196
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197
/* end confdefs.h. */
13198
#include <limits.h>
13201
if ac_fn_c_try_cpp "$LINENO"
13205
# Broken: fails on valid input.
13208
rm -f conftest.err conftest.i conftest.$ac_ext
13210
# OK, works on sane cases. Now check whether nonexistent headers
13211
# can be detected and how.
13212
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213
/* end confdefs.h. */
13214
#include <ac_nonexistent.h>
13216
if ac_fn_c_try_cpp "$LINENO"
13218
# Broken: success on invalid input.
13221
# Passes both tests.
13225
rm -f conftest.err conftest.i conftest.$ac_ext
13228
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13229
rm -f conftest.i conftest.err conftest.$ac_ext
13234
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13235
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13236
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13237
See \`config.log' for more details" "$LINENO" 5; }
13241
ac_cpp='$CPP $CPPFLAGS'
13242
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13243
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13244
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13247
ac_cpp='$CPP $CPPFLAGS'
13248
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13249
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13250
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13251
if test -n "$ac_tool_prefix"; then
13252
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13253
set dummy ${ac_tool_prefix}gcc; ac_word=$2
13254
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255
printf %s "checking for $ac_word... " >&6; }
13256
if test ${ac_cv_prog_CC+y}
13258
printf %s "(cached) " >&6
13260
if test -n "$CC"; then
13261
ac_cv_prog_CC="$CC" # Let the user override the test.
13263
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264
for as_dir in $PATH
13267
case $as_dir in #(((
13270
*) as_dir=$as_dir/ ;;
13272
for ac_exec_ext in '' $ac_executable_extensions; do
13273
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13274
ac_cv_prog_CC="${ac_tool_prefix}gcc"
13275
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13285
if test -n "$CC"; then
13286
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13287
printf "%s\n" "$CC" >&6; }
13289
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290
printf "%s\n" "no" >&6; }
13295
if test -z "$ac_cv_prog_CC"; then
13297
# Extract the first word of "gcc", so it can be a program name with args.
13298
set dummy gcc; ac_word=$2
13299
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300
printf %s "checking for $ac_word... " >&6; }
13301
if test ${ac_cv_prog_ac_ct_CC+y}
13303
printf %s "(cached) " >&6
13305
if test -n "$ac_ct_CC"; then
13306
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13308
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13309
for as_dir in $PATH
13312
case $as_dir in #(((
13315
*) as_dir=$as_dir/ ;;
13317
for ac_exec_ext in '' $ac_executable_extensions; do
13318
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13319
ac_cv_prog_ac_ct_CC="gcc"
13320
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13329
ac_ct_CC=$ac_cv_prog_ac_ct_CC
13330
if test -n "$ac_ct_CC"; then
13331
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13332
printf "%s\n" "$ac_ct_CC" >&6; }
13334
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335
printf "%s\n" "no" >&6; }
13338
if test "x$ac_ct_CC" = x; then
13341
case $cross_compiling:$ac_tool_warned in
13343
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13344
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13345
ac_tool_warned=yes ;;
13350
CC="$ac_cv_prog_CC"
13353
if test -z "$CC"; then
13354
if test -n "$ac_tool_prefix"; then
13355
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13356
set dummy ${ac_tool_prefix}cc; ac_word=$2
13357
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13358
printf %s "checking for $ac_word... " >&6; }
13359
if test ${ac_cv_prog_CC+y}
13361
printf %s "(cached) " >&6
13363
if test -n "$CC"; then
13364
ac_cv_prog_CC="$CC" # Let the user override the test.
13366
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367
for as_dir in $PATH
13370
case $as_dir in #(((
13373
*) as_dir=$as_dir/ ;;
13375
for ac_exec_ext in '' $ac_executable_extensions; do
13376
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13377
ac_cv_prog_CC="${ac_tool_prefix}cc"
13378
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13388
if test -n "$CC"; then
13389
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13390
printf "%s\n" "$CC" >&6; }
13392
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393
printf "%s\n" "no" >&6; }
13399
if test -z "$CC"; then
13400
# Extract the first word of "cc", so it can be a program name with args.
13401
set dummy cc; ac_word=$2
13402
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13403
printf %s "checking for $ac_word... " >&6; }
13404
if test ${ac_cv_prog_CC+y}
13406
printf %s "(cached) " >&6
13408
if test -n "$CC"; then
13409
ac_cv_prog_CC="$CC" # Let the user override the test.
13411
ac_prog_rejected=no
13412
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413
for as_dir in $PATH
13416
case $as_dir in #(((
13419
*) as_dir=$as_dir/ ;;
13421
for ac_exec_ext in '' $ac_executable_extensions; do
13422
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13423
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13424
ac_prog_rejected=yes
13428
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13435
if test $ac_prog_rejected = yes; then
13436
# We found a bogon in the path, so make sure we never use it.
13437
set dummy $ac_cv_prog_CC
13439
if test $# != 0; then
13440
# We chose a different compiler from the bogus one.
13441
# However, it has the same basename, so the bogon will be chosen
13442
# first if we set CC to just the basename; use the full file name.
13444
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13450
if test -n "$CC"; then
13451
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13452
printf "%s\n" "$CC" >&6; }
13454
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455
printf "%s\n" "no" >&6; }
13460
if test -z "$CC"; then
13461
if test -n "$ac_tool_prefix"; then
13462
for ac_prog in cl.exe
13464
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13465
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13466
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13467
printf %s "checking for $ac_word... " >&6; }
13468
if test ${ac_cv_prog_CC+y}
13470
printf %s "(cached) " >&6
13472
if test -n "$CC"; then
13473
ac_cv_prog_CC="$CC" # Let the user override the test.
13475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13476
for as_dir in $PATH
13479
case $as_dir in #(((
13482
*) as_dir=$as_dir/ ;;
13484
for ac_exec_ext in '' $ac_executable_extensions; do
13485
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13486
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13487
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13497
if test -n "$CC"; then
13498
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13499
printf "%s\n" "$CC" >&6; }
13501
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13502
printf "%s\n" "no" >&6; }
13506
test -n "$CC" && break
13509
if test -z "$CC"; then
13511
for ac_prog in cl.exe
13513
# Extract the first word of "$ac_prog", so it can be a program name with args.
13514
set dummy $ac_prog; ac_word=$2
13515
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13516
printf %s "checking for $ac_word... " >&6; }
13517
if test ${ac_cv_prog_ac_ct_CC+y}
13519
printf %s "(cached) " >&6
13521
if test -n "$ac_ct_CC"; then
13522
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13524
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13525
for as_dir in $PATH
13528
case $as_dir in #(((
13531
*) as_dir=$as_dir/ ;;
13533
for ac_exec_ext in '' $ac_executable_extensions; do
13534
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13535
ac_cv_prog_ac_ct_CC="$ac_prog"
13536
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13545
ac_ct_CC=$ac_cv_prog_ac_ct_CC
13546
if test -n "$ac_ct_CC"; then
13547
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13548
printf "%s\n" "$ac_ct_CC" >&6; }
13550
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551
printf "%s\n" "no" >&6; }
13555
test -n "$ac_ct_CC" && break
13558
if test "x$ac_ct_CC" = x; then
13561
case $cross_compiling:$ac_tool_warned in
13563
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13564
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13565
ac_tool_warned=yes ;;
13572
if test -z "$CC"; then
13573
if test -n "$ac_tool_prefix"; then
13574
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13575
set dummy ${ac_tool_prefix}clang; ac_word=$2
13576
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13577
printf %s "checking for $ac_word... " >&6; }
13578
if test ${ac_cv_prog_CC+y}
13580
printf %s "(cached) " >&6
13582
if test -n "$CC"; then
13583
ac_cv_prog_CC="$CC" # Let the user override the test.
13585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586
for as_dir in $PATH
13589
case $as_dir in #(((
13592
*) as_dir=$as_dir/ ;;
13594
for ac_exec_ext in '' $ac_executable_extensions; do
13595
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13596
ac_cv_prog_CC="${ac_tool_prefix}clang"
13597
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13607
if test -n "$CC"; then
13608
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13609
printf "%s\n" "$CC" >&6; }
13611
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612
printf "%s\n" "no" >&6; }
13617
if test -z "$ac_cv_prog_CC"; then
13619
# Extract the first word of "clang", so it can be a program name with args.
13620
set dummy clang; ac_word=$2
13621
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13622
printf %s "checking for $ac_word... " >&6; }
13623
if test ${ac_cv_prog_ac_ct_CC+y}
13625
printf %s "(cached) " >&6
13627
if test -n "$ac_ct_CC"; then
13628
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631
for as_dir in $PATH
13634
case $as_dir in #(((
13637
*) as_dir=$as_dir/ ;;
13639
for ac_exec_ext in '' $ac_executable_extensions; do
13640
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13641
ac_cv_prog_ac_ct_CC="clang"
13642
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13651
ac_ct_CC=$ac_cv_prog_ac_ct_CC
13652
if test -n "$ac_ct_CC"; then
13653
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13654
printf "%s\n" "$ac_ct_CC" >&6; }
13656
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657
printf "%s\n" "no" >&6; }
13660
if test "x$ac_ct_CC" = x; then
13663
case $cross_compiling:$ac_tool_warned in
13665
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13666
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13667
ac_tool_warned=yes ;;
13672
CC="$ac_cv_prog_CC"
13678
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13679
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13680
as_fn_error $? "no acceptable C compiler found in \$PATH
13681
See \`config.log' for more details" "$LINENO" 5; }
13683
# Provide some information about the compiler.
13684
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13687
for ac_option in --version -v -V -qversion -version; do
13688
{ { ac_try="$ac_compiler $ac_option >&5"
13689
case "(($ac_try" in
13690
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691
*) ac_try_echo=$ac_try;;
13693
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13694
printf "%s\n" "$ac_try_echo"; } >&5
13695
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
13697
if test -s conftest.err; then
13699
... rest of stderr output deleted ...
13700
10q' conftest.err >conftest.er1
13701
cat conftest.er1 >&5
13703
rm -f conftest.er1 conftest.err
13704
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13705
test $ac_status = 0; }
13708
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13709
printf %s "checking whether the compiler supports GNU C... " >&6; }
13710
if test ${ac_cv_c_compiler_gnu+y}
13712
printf %s "(cached) " >&6
13714
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715
/* end confdefs.h. */
13728
if ac_fn_c_try_compile "$LINENO"
13730
ac_compiler_gnu=yes
13734
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13735
ac_cv_c_compiler_gnu=$ac_compiler_gnu
13738
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13739
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13740
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13742
if test $ac_compiler_gnu = yes; then
13747
ac_test_CFLAGS=${CFLAGS+y}
13748
ac_save_CFLAGS=$CFLAGS
13749
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13750
printf %s "checking whether $CC accepts -g... " >&6; }
13751
if test ${ac_cv_prog_cc_g+y}
13753
printf %s "(cached) " >&6
13755
ac_save_c_werror_flag=$ac_c_werror_flag
13756
ac_c_werror_flag=yes
13759
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760
/* end confdefs.h. */
13770
if ac_fn_c_try_compile "$LINENO"
13772
ac_cv_prog_cc_g=yes
13775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776
/* end confdefs.h. */
13786
if ac_fn_c_try_compile "$LINENO"
13790
ac_c_werror_flag=$ac_save_c_werror_flag
13792
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793
/* end confdefs.h. */
13803
if ac_fn_c_try_compile "$LINENO"
13805
ac_cv_prog_cc_g=yes
13807
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13809
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13811
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13812
ac_c_werror_flag=$ac_save_c_werror_flag
13814
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13815
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13816
if test $ac_test_CFLAGS; then
13817
CFLAGS=$ac_save_CFLAGS
13818
elif test $ac_cv_prog_cc_g = yes; then
13819
if test "$GCC" = yes; then
13825
if test "$GCC" = yes; then
13832
if test x$ac_prog_cc_stdc = xno
13834
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13835
printf %s "checking for $CC option to enable C11 features... " >&6; }
13836
if test ${ac_cv_prog_cc_c11+y}
13838
printf %s "(cached) " >&6
13840
ac_cv_prog_cc_c11=no
13842
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843
/* end confdefs.h. */
13844
$ac_c_conftest_c11_program
13846
for ac_arg in '' -std=gnu11
13848
CC="$ac_save_CC $ac_arg"
13849
if ac_fn_c_try_compile "$LINENO"
13851
ac_cv_prog_cc_c11=$ac_arg
13853
rm -f core conftest.err conftest.$ac_objext conftest.beam
13854
test "x$ac_cv_prog_cc_c11" != "xno" && break
13856
rm -f conftest.$ac_ext
13860
if test "x$ac_cv_prog_cc_c11" = xno
13862
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13863
printf "%s\n" "unsupported" >&6; }
13865
if test "x$ac_cv_prog_cc_c11" = x
13867
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13868
printf "%s\n" "none needed" >&6; }
13870
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13871
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13872
CC="$CC $ac_cv_prog_cc_c11"
13874
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13875
ac_prog_cc_stdc=c11
13878
if test x$ac_prog_cc_stdc = xno
13880
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13881
printf %s "checking for $CC option to enable C99 features... " >&6; }
13882
if test ${ac_cv_prog_cc_c99+y}
13884
printf %s "(cached) " >&6
13886
ac_cv_prog_cc_c99=no
13888
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889
/* end confdefs.h. */
13890
$ac_c_conftest_c99_program
13892
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13894
CC="$ac_save_CC $ac_arg"
13895
if ac_fn_c_try_compile "$LINENO"
13897
ac_cv_prog_cc_c99=$ac_arg
13899
rm -f core conftest.err conftest.$ac_objext conftest.beam
13900
test "x$ac_cv_prog_cc_c99" != "xno" && break
13902
rm -f conftest.$ac_ext
13906
if test "x$ac_cv_prog_cc_c99" = xno
13908
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13909
printf "%s\n" "unsupported" >&6; }
13911
if test "x$ac_cv_prog_cc_c99" = x
13913
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13914
printf "%s\n" "none needed" >&6; }
13916
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13917
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13918
CC="$CC $ac_cv_prog_cc_c99"
13920
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13921
ac_prog_cc_stdc=c99
13924
if test x$ac_prog_cc_stdc = xno
13926
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13927
printf %s "checking for $CC option to enable C89 features... " >&6; }
13928
if test ${ac_cv_prog_cc_c89+y}
13930
printf %s "(cached) " >&6
13932
ac_cv_prog_cc_c89=no
13934
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935
/* end confdefs.h. */
13936
$ac_c_conftest_c89_program
13938
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13940
CC="$ac_save_CC $ac_arg"
13941
if ac_fn_c_try_compile "$LINENO"
13943
ac_cv_prog_cc_c89=$ac_arg
13945
rm -f core conftest.err conftest.$ac_objext conftest.beam
13946
test "x$ac_cv_prog_cc_c89" != "xno" && break
13948
rm -f conftest.$ac_ext
13952
if test "x$ac_cv_prog_cc_c89" = xno
13954
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13955
printf "%s\n" "unsupported" >&6; }
13957
if test "x$ac_cv_prog_cc_c89" = x
13959
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13960
printf "%s\n" "none needed" >&6; }
13962
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13963
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13964
CC="$CC $ac_cv_prog_cc_c89"
13966
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13967
ac_prog_cc_stdc=c89
13972
ac_cpp='$CPP $CPPFLAGS'
13973
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13974
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13975
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13979
ac_cpp='$CPP $CPPFLAGS'
13980
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13981
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13982
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13983
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13984
printf %s "checking whether $CC understands -c and -o together... " >&6; }
13985
if test ${am_cv_prog_cc_c_o+y}
13987
printf %s "(cached) " >&6
13989
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990
/* end confdefs.h. */
14000
# Make sure it works both with $CC and with simple cc.
14001
# Following AC_PROG_CC_C_O, we do the test twice because some
14002
# compilers refuse to overwrite an existing .o file with -o,
14003
# though they will create one.
14004
am_cv_prog_cc_c_o=yes
14005
for am_i in 1 2; do
14006
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14007
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010
(exit $ac_status); } \
14011
&& test -f conftest2.$ac_objext; then
14014
am_cv_prog_cc_c_o=no
14018
rm -f core conftest*
14021
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14022
printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14023
if test "$am_cv_prog_cc_c_o" != yes; then
14024
# Losing compiler, so override with the script.
14025
# FIXME: It is wrong to rewrite CC.
14026
# But if we don't then we get into trouble of one sort or another.
14027
# A longer-term fix would be to have automake use am__CC in this case,
14028
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14029
CC="$am_aux_dir/compile $CC"
14032
ac_cpp='$CPP $CPPFLAGS'
14033
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14034
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14035
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14039
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14040
printf %s "checking whether ln -s works... " >&6; }
14042
if test "$LN_S" = "ln -s"; then
14043
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14044
printf "%s\n" "yes" >&6; }
14046
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14047
printf "%s\n" "no, using $LN_S" >&6; }
14051
ac_config_files="$ac_config_files Makefile Kyuafile libpkgconf.pc tests/Kyuafile tests/test_env.sh"
14053
cat >confcache <<\_ACEOF
14054
# This file is a shell script that caches the results of configure
14055
# tests run on this system so they can be shared between configure
14056
# scripts and configure runs, see configure's option --config-cache.
14057
# It is not useful on other systems. If it contains results you don't
14058
# want to keep, you may remove or edit it.
14060
# config.status only pays attention to the cache file if you give it
14061
# the --recheck option to rerun configure.
14063
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14064
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14065
# following values.
14069
# The following way of writing the cache mishandles newlines in values,
14070
# but we know of no workaround that is simple, portable, and efficient.
14071
# So, we kill variables containing newlines.
14072
# Ultrix sh set writes to stderr and can't be redirected directly,
14073
# and sets the high bit in the cache file unless we assign to the vars.
14075
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14076
eval ac_val=\$$ac_var
14080
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14081
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14084
_ | IFS | as_nl) ;; #(
14085
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14086
*) { eval $ac_var=; unset $ac_var;} ;;
14092
case $as_nl`(ac_space=' '; set) 2>&1` in #(
14093
*${as_nl}ac_space=\ *)
14094
# `set' does not quote correctly, so add quotes: double-quote
14095
# substitution turns \\\\ into \\, and sed turns \\ into \.
14098
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14101
# `set' quotes correctly as required by POSIX, so do not add quotes.
14102
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14111
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14113
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14115
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14116
if test -w "$cache_file"; then
14117
if test "x$cache_file" != "x/dev/null"; then
14118
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14119
printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14120
if test ! -f "$cache_file" || test -h "$cache_file"; then
14121
cat confcache >"$cache_file"
14123
case $cache_file in #(
14125
mv -f confcache "$cache_file"$$ &&
14126
mv -f "$cache_file"$$ "$cache_file" ;; #(
14128
mv -f confcache "$cache_file" ;;
14133
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14134
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14139
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14140
# Let make expand exec_prefix.
14141
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14143
DEFS=-DHAVE_CONFIG_H
14148
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14149
# 1. Remove the extension, and $U if already installed.
14150
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14151
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14152
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14153
# will be set to the directory where LIBOBJS objects are built.
14154
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14155
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14157
LIBOBJS=$ac_libobjs
14159
LTLIBOBJS=$ac_ltlibobjs
14162
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14163
printf %s "checking that generated files are newer than configure... " >&6; }
14164
if test -n "$am_sleep_pid"; then
14165
# Hide warnings about reused PIDs.
14166
wait $am_sleep_pid 2>/dev/null
14168
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14169
printf "%s\n" "done" >&6; }
14170
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14171
as_fn_error $? "conditional \"AMDEP\" was never defined.
14172
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14174
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14175
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14176
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14178
if test -n "$EXEEXT"; then
14180
am__EXEEXT_FALSE='#'
14182
am__EXEEXT_TRUE='#'
14187
: "${CONFIG_STATUS=./config.status}"
14189
ac_clean_files_save=$ac_clean_files
14190
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14191
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14192
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14194
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14196
# Generated by $as_me.
14197
# Run this file to recreate the current configuration.
14198
# Compiler output produced by configure, useful for debugging
14199
# configure, is in config.log if it exists.
14202
ac_cs_recheck=false
14205
SHELL=\${CONFIG_SHELL-$SHELL}
14208
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14209
## -------------------- ##
14210
## M4sh Initialization. ##
14211
## -------------------- ##
14213
# Be more Bourne compatible
14214
DUALCASE=1; export DUALCASE # for MKS sh
14216
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14220
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14221
# is contrary to our usage. Disable this feature.
14222
alias -g '${1+"$@"}'='"$@"'
14223
setopt NO_GLOB_SUBST
14225
case `(set -o) 2>/dev/null` in #(
14235
# Reset variables that may have inherited troublesome values from
14238
# IFS needs to be set, to space, tab, and newline, in precisely that order.
14239
# (If _AS_PATH_WALK were called with IFS unset, it would have the
14240
# side effect of setting IFS to empty, thus disabling word splitting.)
14241
# Quoting is to prevent editors from complaining about space-tab.
14251
# Ensure predictable behavior from utilities with locale-dependent output.
14257
# We cannot yet rely on "unset" to work, but we need these variables
14258
# to be unset--not just set to an empty or harmless value--now, to
14259
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14260
# also avoids known problems related to "unset" and subshell syntax
14261
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14262
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14263
do eval test \${$as_var+y} \
14264
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14267
# Ensure that fds 0, 1, and 2 are open.
14268
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14269
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14270
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14272
# The user is always right.
14273
if ${PATH_SEPARATOR+false} :; then
14275
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14276
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14282
# Find who we are. Look in the path if we contain no directory separator.
14285
*[\\/]* ) as_myself=$0 ;;
14286
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287
for as_dir in $PATH
14290
case $as_dir in #(((
14293
*) as_dir=$as_dir/ ;;
14295
test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14301
# We did not find ourselves, most probably we were run as `sh COMMAND'
14302
# in which case we are not to be found in the path.
14303
if test "x$as_myself" = x; then
14306
if test ! -f "$as_myself"; then
14307
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14313
# as_fn_error STATUS ERROR [LINENO LOG_FD]
14314
# ----------------------------------------
14315
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14316
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14317
# script with STATUS, using 1 if that was 0.
14320
as_status=$1; test $as_status -eq 0 && as_status=1
14322
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14323
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14325
printf "%s\n" "$as_me: error: $2" >&2
14326
as_fn_exit $as_status
14331
# as_fn_set_status STATUS
14332
# -----------------------
14333
# Set $? to STATUS, without forking.
14334
as_fn_set_status ()
14337
} # as_fn_set_status
14339
# as_fn_exit STATUS
14340
# -----------------
14341
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14345
as_fn_set_status $1
14351
# Portably unset VAR.
14354
{ eval $1=; unset $1;}
14356
as_unset=as_fn_unset
14358
# as_fn_append VAR VALUE
14359
# ----------------------
14360
# Append the text in VALUE to the end of the definition contained in VAR. Take
14361
# advantage of any shell optimizations that allow amortized linear growth over
14362
# repeated appends, instead of the typical quadratic growth present in naive
14364
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14366
eval 'as_fn_append ()
14377
# as_fn_arith ARG...
14378
# ------------------
14379
# Perform arithmetic evaluation on the ARGs, and store the result in the
14380
# global $as_val. Take advantage of shells that can avoid forks. The arguments
14381
# must be portable across $(()) and expr.
14382
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14384
eval 'as_fn_arith ()
14391
as_val=`expr "$@" || test $? -eq 1`
14396
if expr a : '\(a\)' >/dev/null 2>&1 &&
14397
test "X`expr 00001 : '.*\(...\)'`" = X001; then
14403
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14404
as_basename=basename
14409
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14415
as_me=`$as_basename -- "$0" ||
14416
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14417
X"$0" : 'X\(//\)$' \| \
14418
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14419
printf "%s\n" X/"$0" |
14420
sed '/^.*\/\([^/][^/]*\)\/*$/{
14434
# Avoid depending upon Character Ranges.
14435
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14436
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14437
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14438
as_cr_digits='0123456789'
14439
as_cr_alnum=$as_cr_Letters$as_cr_digits
14442
# Determine whether it's possible to make 'echo' print without a newline.
14443
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14444
# for compatibility with existing Makefiles.
14445
ECHO_C= ECHO_N= ECHO_T=
14446
case `echo -n x` in #(((((
14448
case `echo 'xy\c'` in
14449
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
14451
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14458
# For backward compatibility with old third-party macros, we provide
14459
# the shell variables $as_echo and $as_echo_n. New code should use
14460
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14461
as_echo='printf %s\n'
14462
as_echo_n='printf %s'
14464
rm -f conf$$ conf$$.exe conf$$.file
14465
if test -d conf$$.dir; then
14466
rm -f conf$$.dir/conf$$.file
14469
mkdir conf$$.dir 2>/dev/null
14471
if (echo >conf$$.file) 2>/dev/null; then
14472
if ln -s conf$$.file conf$$ 2>/dev/null; then
14474
# ... but there are two gotchas:
14475
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14476
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14477
# In both cases, we have to default to `cp -pR'.
14478
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14480
elif ln conf$$.file conf$$ 2>/dev/null; then
14488
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14489
rmdir conf$$.dir 2>/dev/null
14494
# Create "$as_dir" as a directory, including parents if necessary.
14499
-*) as_dir=./$as_dir;;
14501
test -d "$as_dir" || eval $as_mkdir_p || {
14505
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14506
*) as_qdir=$as_dir;;
14508
as_dirs="'$as_qdir' $as_dirs"
14509
as_dir=`$as_dirname -- "$as_dir" ||
14510
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14511
X"$as_dir" : 'X\(//\)[^/]' \| \
14512
X"$as_dir" : 'X\(//\)$' \| \
14513
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14514
printf "%s\n" X"$as_dir" |
14515
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14519
/^X\(\/\/\)[^/].*/{
14532
test -d "$as_dir" && break
14534
test -z "$as_dirs" || eval "mkdir $as_dirs"
14535
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14539
if mkdir -p . 2>/dev/null; then
14540
as_mkdir_p='mkdir -p "$as_dir"'
14542
test -d ./-p && rmdir ./-p
14547
# as_fn_executable_p FILE
14548
# -----------------------
14549
# Test if FILE is an executable regular file.
14550
as_fn_executable_p ()
14552
test -f "$1" && test -x "$1"
14553
} # as_fn_executable_p
14554
as_test_x='test -x'
14555
as_executable_p=as_fn_executable_p
14557
# Sed expression to map a string onto a valid CPP name.
14558
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14560
# Sed expression to map a string onto a valid variable name.
14561
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14565
## ----------------------------------- ##
14566
## Main body of $CONFIG_STATUS script. ##
14567
## ----------------------------------- ##
14569
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14571
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14572
# Save the log message, to keep $0 and so on meaningful, and to
14573
# report actual input values of CONFIG_FILES etc. instead of their
14574
# values after options handling.
14576
This file was extended by pkgconf $as_me 1.8.1, which was
14577
generated by GNU Autoconf 2.71. Invocation command line was
14579
CONFIG_FILES = $CONFIG_FILES
14580
CONFIG_HEADERS = $CONFIG_HEADERS
14581
CONFIG_LINKS = $CONFIG_LINKS
14582
CONFIG_COMMANDS = $CONFIG_COMMANDS
14585
on `(hostname || uname -n) 2>/dev/null | sed 1q`
14590
case $ac_config_files in *"
14591
"*) set x $ac_config_files; shift; ac_config_files=$*;;
14594
case $ac_config_headers in *"
14595
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14599
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14600
# Files that config.status was made for.
14601
config_files="$ac_config_files"
14602
config_headers="$ac_config_headers"
14603
config_commands="$ac_config_commands"
14607
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14609
\`$as_me' instantiates files and other configuration actions
14610
from templates according to the current configuration. Unless the files
14611
and actions are specified as TAGs, all are instantiated by default.
14613
Usage: $0 [OPTION]... [TAG]...
14615
-h, --help print this help, then exit
14616
-V, --version print version number and configuration settings, then exit
14617
--config print configuration, then exit
14618
-q, --quiet, --silent
14619
do not print progress messages
14620
-d, --debug don't remove temporary files
14621
--recheck update $as_me by reconfiguring in the same conditions
14622
--file=FILE[:TEMPLATE]
14623
instantiate the configuration file FILE
14624
--header=FILE[:TEMPLATE]
14625
instantiate the configuration header FILE
14627
Configuration files:
14630
Configuration headers:
14633
Configuration commands:
14636
Report bugs to <https://github.com/pkgconf/pkgconf/issues/new>."
14639
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14640
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14641
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14642
ac_cs_config='$ac_cs_config_escaped'
14644
pkgconf config.status 1.8.1
14645
configured by $0, generated by GNU Autoconf 2.71,
14646
with options \\"\$ac_cs_config\\"
14648
Copyright (C) 2021 Free Software Foundation, Inc.
14649
This config.status script is free software; the Free Software Foundation
14650
gives unlimited permission to copy, distribute and modify it."
14657
test -n "\$AWK" || AWK=awk
14660
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14661
# The default lists apply if the user does not specify any file.
14667
ac_option=`expr "X$1" : 'X\([^=]*\)='`
14668
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14672
ac_option=`expr "X$1" : 'X\([^=]*\)='`
14684
# Handling of the options.
14685
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14687
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14688
printf "%s\n" "$ac_cs_version"; exit ;;
14689
--config | --confi | --conf | --con | --co | --c )
14690
printf "%s\n" "$ac_cs_config"; exit ;;
14691
--debug | --debu | --deb | --de | --d | -d )
14693
--file | --fil | --fi | --f )
14696
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14697
'') as_fn_error $? "missing file argument" ;;
14699
as_fn_append CONFIG_FILES " '$ac_optarg'"
14700
ac_need_defaults=false;;
14701
--header | --heade | --head | --hea )
14704
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14706
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14707
ac_need_defaults=false;;
14709
# Conflict between --help and --header
14710
as_fn_error $? "ambiguous option: \`$1'
14711
Try \`$0 --help' for more information.";;
14712
--help | --hel | -h )
14713
printf "%s\n" "$ac_cs_usage"; exit ;;
14714
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
14715
| -silent | --silent | --silen | --sile | --sil | --si | --s)
14718
# This is an error.
14719
-*) as_fn_error $? "unrecognized option: \`$1'
14720
Try \`$0 --help' for more information." ;;
14722
*) as_fn_append ac_config_targets " $1"
14723
ac_need_defaults=false ;;
14729
ac_configure_extra_args=
14731
if $ac_cs_silent; then
14733
ac_configure_extra_args="$ac_configure_extra_args --silent"
14737
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14738
if \$ac_cs_recheck; then
14739
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14741
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14742
CONFIG_SHELL='$SHELL'
14743
export CONFIG_SHELL
14748
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14752
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14753
## Running $as_me. ##
14755
printf "%s\n" "$ac_log"
14759
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14763
AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14766
# The HP-UX ksh and POSIX shell print the target directory to stdout
14767
# if CDPATH is set.
14768
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14770
sed_quote_subst='$sed_quote_subst'
14771
double_quote_subst='$double_quote_subst'
14772
delay_variable_subst='$delay_variable_subst'
14773
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14774
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14775
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14776
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14777
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14778
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14779
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14780
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14781
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14782
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14783
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14784
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14785
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14786
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14787
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14788
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14789
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14790
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14791
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14792
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14793
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14794
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14795
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14796
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14797
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14798
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14799
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14800
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14801
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14802
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14803
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14804
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14805
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14806
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14807
FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
14808
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14809
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14810
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14811
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14812
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14813
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14814
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14815
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14816
lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
14817
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14818
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14819
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14820
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14821
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14822
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14823
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14824
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14825
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14826
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14827
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14828
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14829
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14830
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14831
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14832
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14833
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"`'
14834
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14835
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14836
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14837
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14838
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14839
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14840
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14841
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14842
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14843
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14844
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14845
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14846
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14847
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14848
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14849
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14850
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14851
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14852
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14853
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14854
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14855
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14856
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14857
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14858
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14859
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14860
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14861
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14862
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14863
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14864
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14865
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14866
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14867
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14868
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14869
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14870
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14871
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14872
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14873
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14874
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14875
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14876
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14877
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14878
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14879
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14880
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14881
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14882
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14883
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14884
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14885
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14886
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14887
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14888
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14889
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14890
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14891
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14892
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14893
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14894
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14895
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14896
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14897
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14898
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14899
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14900
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14901
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14902
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14903
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14904
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14905
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14906
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14907
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14908
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14909
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14912
LTCFLAGS='$LTCFLAGS'
14913
compiler='$compiler_DEFAULT'
14915
# A function that is used when there is no print builtin or printf.
14916
func_fallback_echo ()
14918
eval 'cat <<_LTECHO_EOF
14923
# Quote evaled strings.
14939
deplibs_check_method \
14944
sharedlib_from_linklib_cmd \
14946
archiver_list_spec \
14952
lt_cv_sys_global_symbol_pipe \
14953
lt_cv_sys_global_symbol_to_cdecl \
14954
lt_cv_sys_global_symbol_to_import \
14955
lt_cv_sys_global_symbol_to_c_name_address \
14956
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14957
lt_cv_nm_interface \
14958
nm_file_list_spec \
14959
lt_cv_truncate_bin \
14960
lt_prog_compiler_no_builtin_flag \
14961
lt_prog_compiler_pic \
14962
lt_prog_compiler_wl \
14963
lt_prog_compiler_static \
14964
lt_cv_prog_compiler_c_o \
14973
export_dynamic_flag_spec \
14974
whole_archive_flag_spec \
14975
compiler_needs_object \
14977
allow_undefined_flag \
14978
no_undefined_flag \
14979
hardcode_libdir_flag_spec \
14980
hardcode_libdir_separator \
14984
variables_saved_for_relink \
14986
library_names_spec \
14988
install_override_mode \
14992
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14993
*[\\\\\\\`\\"\\\$]*)
14994
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14997
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15002
# Double-quote double-evaled strings.
15003
for var in reload_cmds \
15004
old_postinstall_cmds \
15005
old_postuninstall_cmds \
15007
extract_expsyms_cmds \
15008
old_archive_from_new_cmds \
15009
old_archive_from_expsyms_cmds \
15011
archive_expsym_cmds \
15013
module_expsym_cmds \
15014
export_symbols_cmds \
15018
postuninstall_cmds \
15020
sys_lib_search_path_spec \
15021
configure_time_dlsearch_path \
15022
configure_time_lt_sys_library_path; do
15023
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15024
*[\\\\\\\`\\"\\\$]*)
15025
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15028
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15033
ac_aux_dir='$ac_aux_dir'
15035
# See if we are running on zsh, and set the options that allow our
15036
# commands through without removal of \ escapes INIT.
15037
if test -n "\${ZSH_VERSION+set}"; then
15038
setopt NO_GLOB_SUBST
15052
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15054
# Handling of arguments.
15055
for ac_config_target in $ac_config_targets
15057
case $ac_config_target in
15058
"libpkgconf/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libpkgconf/config.h" ;;
15059
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15060
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15061
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15062
"Kyuafile") CONFIG_FILES="$CONFIG_FILES Kyuafile" ;;
15063
"libpkgconf.pc") CONFIG_FILES="$CONFIG_FILES libpkgconf.pc" ;;
15064
"tests/Kyuafile") CONFIG_FILES="$CONFIG_FILES tests/Kyuafile" ;;
15065
"tests/test_env.sh") CONFIG_FILES="$CONFIG_FILES tests/test_env.sh" ;;
15067
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15072
# If the user did not use the arguments to specify the items to instantiate,
15073
# then the envvar interface is used. Set only those that are not.
15074
# We use the long form for the default assignment because of an extremely
15075
# bizarre bug on SunOS 4.1.3.
15076
if $ac_need_defaults; then
15077
test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15078
test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15079
test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15082
# Have a temporary directory for convenience. Make it in the build tree
15083
# simply because there is no reason against having it here, and in addition,
15084
# creating and moving files from /tmp can sometimes cause problems.
15085
# Hook for its removal unless debugging.
15086
# Note that there is a small window in which the directory will not be cleaned:
15087
# after its creation but before its name has been assigned to `$tmp'.
15091
trap 'exit_status=$?
15092
: "${ac_tmp:=$tmp}"
15093
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15095
trap 'as_fn_exit 1' 1 2 13 15
15097
# Create a (secure) tmp directory for tmp files.
15100
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15104
tmp=./conf$$-$RANDOM
15105
(umask 077 && mkdir "$tmp")
15106
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15109
# Set up the scripts for CONFIG_FILES section.
15110
# No need to generate them if there are no CONFIG_FILES.
15111
# This happens for instance with `./config.status config.h'.
15112
if test -n "$CONFIG_FILES"; then
15115
ac_cr=`echo X | tr X '\015'`
15116
# On cygwin, bash can eat \r inside `` if the user requested igncr.
15117
# But we know of no other shell where ac_cr would be empty at this
15118
# point, so we can use a bashism as a fallback.
15119
if test "x$ac_cr" = x; then
15120
eval ac_cr=\$\'\\r\'
15122
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15123
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15126
ac_cs_awk_cr=$ac_cr
15129
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15134
echo "cat >conf$$subs.awk <<_ACEOF" &&
15135
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15137
} >conf$$subs.sh ||
15138
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15139
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15141
for ac_last_try in false false false false false :; do
15142
. ./conf$$subs.sh ||
15143
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15145
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15146
if test $ac_delim_n = $ac_delim_num; then
15148
elif $ac_last_try; then
15149
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15151
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15154
rm -f conf$$subs.sh
15156
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15157
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15161
s/^/S["/; s/!.*/"]=/
15171
s/\(.\{148\}\)..*/\1/
15173
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15178
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15185
s/\(.\{148\}\)..*/\1/
15187
s/["\\]/\\&/g; s/^/"/; s/$/"/
15191
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15196
' <conf$$subs.awk | sed '
15201
' >>$CONFIG_STATUS || ac_write_fail=1
15202
rm -f conf$$subs.awk
15203
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15205
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15206
for (key in S) S_is_set[key] = 1
15212
nfields = split(line, field, "@")
15214
len = length(field[1])
15215
for (i = 2; i < nfields; i++) {
15217
keylen = length(key)
15218
if (S_is_set[key]) {
15220
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15221
len += length(value) + length(field[++i])
15232
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15233
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15234
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15237
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15238
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15241
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15242
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15243
# trailing colons and then remove the whole line if VPATH becomes empty
15244
# (actually we leave an empty line to preserve line numbers).
15245
if test "x$srcdir" = x.; then
15246
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15264
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15265
fi # test -n "$CONFIG_FILES"
15267
# Set up the scripts for CONFIG_HEADERS section.
15268
# No need to generate them if there are no CONFIG_HEADERS.
15269
# This happens for instance with `./config.status Makefile'.
15270
if test -n "$CONFIG_HEADERS"; then
15271
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15275
# Transform confdefs.h into an awk script `defines.awk', embedded as
15276
# here-document in config.status, that substitutes the proper values into
15277
# config.h.in to produce config.h.
15279
# Create a delimiter string that does not exist in confdefs.h, to ease
15280
# handling of long lines.
15282
for ac_last_try in false false :; do
15283
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15284
if test -z "$ac_tt"; then
15286
elif $ac_last_try; then
15287
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15289
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15293
# For the awk script, D is an array of macro values keyed by name,
15294
# likewise P contains macro parameters if any. Preserve backslash
15295
# newline sequences.
15297
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15299
s/.\{148\}/&'"$ac_delim"'/g
15302
s/^[ ]*#[ ]*define[ ][ ]*/ /
15309
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15311
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15315
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15316
D["\1"]=" \3\\\\\\n"\\/p
15318
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15323
s/.\{148\}/&'"$ac_delim"'/g
15328
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15331
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15333
' <confdefs.h | sed '
15334
s/'"$ac_delim"'/"\\\
15335
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15337
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15338
for (key in D) D_is_set[key] = 1
15341
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15343
split(line, arg, " ")
15344
if (arg[1] == "#") {
15348
defundef = substr(arg[1], 2)
15351
split(mac1, mac2, "(") #)
15353
prefix = substr(line, 1, index(line, defundef) - 1)
15354
if (D_is_set[macro]) {
15355
# Preserve the white space surrounding the "#".
15356
print prefix "define", macro P[macro] D[macro]
15359
# Replace #undef with comments. This is necessary, for example,
15360
# in the case of _POSIX_SOURCE, which is predefined and required
15361
# on some systems where configure will not decide to define it.
15362
if (defundef == "undef") {
15363
print "/*", prefix defundef, macro, "*/"
15371
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15372
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15373
fi # test -n "$CONFIG_HEADERS"
15376
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15381
:[FHLC]) ac_mode=$ac_tag; continue;;
15383
case $ac_mode$ac_tag in
15385
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15386
:[FH]-) ac_tag=-:-;;
15387
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15404
-) ac_f="$ac_tmp/stdin";;
15405
*) # Look for the file first in the build tree, then in the source tree
15406
# (if the path is not absolute). The absolute path cannot be DOS-style,
15407
# because $ac_f cannot contain `:'.
15411
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15413
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15415
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15416
as_fn_append ac_file_inputs " '$ac_f'"
15419
# Let's still pretend it is `configure' which instantiates (i.e., don't
15420
# use $as_me), people would be surprised to read:
15421
# /* config.h. Generated by config.status. */
15422
configure_input='Generated from '`
15423
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15425
if test x"$ac_file" != x-; then
15426
configure_input="$ac_file. $configure_input"
15427
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15428
printf "%s\n" "$as_me: creating $ac_file" >&6;}
15430
# Neutralize special characters interpreted by sed in replacement strings.
15431
case $configure_input in #(
15432
*\&* | *\|* | *\\* )
15433
ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15434
sed 's/[\\\\&|]/\\\\&/g'`;; #(
15435
*) ac_sed_conf_input=$configure_input;;
15439
*:-:* | *:-) cat >"$ac_tmp/stdin" \
15440
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15445
ac_dir=`$as_dirname -- "$ac_file" ||
15446
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15447
X"$ac_file" : 'X\(//\)[^/]' \| \
15448
X"$ac_file" : 'X\(//\)$' \| \
15449
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15450
printf "%s\n" X"$ac_file" |
15451
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15455
/^X\(\/\/\)[^/].*/{
15468
as_dir="$ac_dir"; as_fn_mkdir_p
15472
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15474
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15475
# A ".." for each directory in $ac_dir_suffix.
15476
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15477
case $ac_top_builddir_sub in
15478
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15479
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15482
ac_abs_top_builddir=$ac_pwd
15483
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15484
# for backward compatibility:
15485
ac_top_builddir=$ac_top_build_prefix
15488
.) # We are building in place.
15490
ac_top_srcdir=$ac_top_builddir_sub
15491
ac_abs_top_srcdir=$ac_pwd ;;
15492
[\\/]* | ?:[\\/]* ) # Absolute name.
15493
ac_srcdir=$srcdir$ac_dir_suffix;
15494
ac_top_srcdir=$srcdir
15495
ac_abs_top_srcdir=$srcdir ;;
15496
*) # Relative name.
15497
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15498
ac_top_srcdir=$ac_top_build_prefix$srcdir
15499
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15501
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15511
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15512
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15514
ac_MKDIR_P=$MKDIR_P
15516
[\\/$]* | ?:[\\/]* ) ;;
15517
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15521
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15522
# If the template does not know about datarootdir, expand it.
15523
# FIXME: This hack should be removed a few years after 2.60.
15524
ac_datarootdir_hack=; ac_datarootdir_seen=
15535
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15536
*datarootdir*) ac_datarootdir_seen=yes;;
15537
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15538
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15539
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15541
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15542
ac_datarootdir_hack='
15543
s&@datadir@&$datadir&g
15544
s&@docdir@&$docdir&g
15545
s&@infodir@&$infodir&g
15546
s&@localedir@&$localedir&g
15547
s&@mandir@&$mandir&g
15548
s&\\\${datarootdir}&$datarootdir&g' ;;
15552
# Neutralize VPATH when `$srcdir' = `.'.
15553
# Shell code in configure.ac might set extrasub.
15554
# FIXME: do we really want to maintain this feature?
15555
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15556
ac_sed_extra="$ac_vpsub
15559
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15562
s|@configure_input@|$ac_sed_conf_input|;t t
15563
s&@top_builddir@&$ac_top_builddir_sub&;t t
15564
s&@top_build_prefix@&$ac_top_build_prefix&;t t
15565
s&@srcdir@&$ac_srcdir&;t t
15566
s&@abs_srcdir@&$ac_abs_srcdir&;t t
15567
s&@top_srcdir@&$ac_top_srcdir&;t t
15568
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15569
s&@builddir@&$ac_builddir&;t t
15570
s&@abs_builddir@&$ac_abs_builddir&;t t
15571
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15572
s&@INSTALL@&$ac_INSTALL&;t t
15573
s&@MKDIR_P@&$ac_MKDIR_P&;t t
15574
$ac_datarootdir_hack
15576
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15577
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15579
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15580
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15581
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15582
"$ac_tmp/out"`; test -z "$ac_out"; } &&
15583
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15584
which seems to be undefined. Please make sure it is defined" >&5
15585
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15586
which seems to be undefined. Please make sure it is defined" >&2;}
15588
rm -f "$ac_tmp/stdin"
15590
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15591
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15593
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15599
if test x"$ac_file" != x-; then
15601
printf "%s\n" "/* $configure_input */" >&1 \
15602
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15603
} >"$ac_tmp/config.h" \
15604
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15605
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15606
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15607
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15610
mv "$ac_tmp/config.h" "$ac_file" \
15611
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15614
printf "%s\n" "/* $configure_input */" >&1 \
15615
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15616
|| as_fn_error $? "could not create -" "$LINENO" 5
15618
# Compute "$ac_file"'s index in $config_headers.
15621
for _am_header in $config_headers :; do
15622
case $_am_header in
15623
$_am_arg | $_am_arg:* )
15626
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
15629
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15630
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15631
X"$_am_arg" : 'X\(//\)[^/]' \| \
15632
X"$_am_arg" : 'X\(//\)$' \| \
15633
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15634
printf "%s\n" X"$_am_arg" |
15635
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15639
/^X\(\/\/\)[^/].*/{
15651
s/.*/./; q'`/stamp-h$_am_stamp_count
15654
:C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15655
printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15660
case $ac_file$ac_mode in
15661
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15662
# Older Autoconf quotes --file arguments for eval, but not when files
15663
# are listed without --file. Let's play safe and only enable the eval
15664
# if we detect the quoting.
15665
# TODO: see whether this extra hack can be removed once we start
15666
# requiring Autoconf 2.70 or later.
15667
case $CONFIG_FILES in #(
15669
eval set x "$CONFIG_FILES" ;; #(
15671
set x $CONFIG_FILES ;; #(
15676
# Used to flag and report bootstrapping failures.
15680
# Strip MF so we end up with the name of the file.
15681
am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
15682
# Check whether this is an Automake generated Makefile which includes
15683
# dependency-tracking related rules and includes.
15684
# Grep'ing the whole file directly is not great: AIX grep has a line
15685
# limit of 2048, but all sed's we know have understand at least 4000.
15686
sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15688
am_dirpart=`$as_dirname -- "$am_mf" ||
15689
$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15690
X"$am_mf" : 'X\(//\)[^/]' \| \
15691
X"$am_mf" : 'X\(//\)$' \| \
15692
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15693
printf "%s\n" X"$am_mf" |
15694
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15698
/^X\(\/\/\)[^/].*/{
15711
am_filepart=`$as_basename -- "$am_mf" ||
15712
$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15713
X"$am_mf" : 'X\(//\)$' \| \
15714
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15715
printf "%s\n" X/"$am_mf" |
15716
sed '/^.*\/\([^/][^/]*\)\/*$/{
15729
{ echo "$as_me:$LINENO: cd "$am_dirpart" \
15730
&& sed -e '/# am--include-marker/d' "$am_filepart" \
15731
| $MAKE -f - am--depfiles" >&5
15732
(cd "$am_dirpart" \
15733
&& sed -e '/# am--include-marker/d' "$am_filepart" \
15734
| $MAKE -f - am--depfiles) >&5 2>&5
15736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737
(exit $ac_status); } || am_rc=$?
15739
if test $am_rc -ne 0; then
15740
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15741
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15742
as_fn_error $? "Something went wrong bootstrapping makefile fragments
15743
for automatic dependency tracking. If GNU make was not used, consider
15744
re-running the configure script with MAKE=\"gmake\" (or whatever is
15745
necessary). You can also try re-running configure with the
15746
'--disable-dependency-tracking' option to at least be able to build
15747
the package (albeit without support for automatic dependency tracking).
15748
See \`config.log' for more details" "$LINENO" 5; }
15750
{ am_dirpart=; unset am_dirpart;}
15751
{ am_filepart=; unset am_filepart;}
15752
{ am_mf=; unset am_mf;}
15753
{ am_rc=; unset am_rc;}
15754
rm -f conftest-deps.mk
15759
# See if we are running on zsh, and set the options that allow our
15760
# commands through without removal of \ escapes.
15761
if test -n "${ZSH_VERSION+set}"; then
15762
setopt NO_GLOB_SUBST
15766
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15769
cat <<_LT_EOF >> "$cfgfile"
15771
# Generated automatically by $as_me ($PACKAGE) $VERSION
15772
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15773
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15775
# Provide generalized library-building support services.
15776
# Written by Gordon Matzigkeit, 1996
15778
# Copyright (C) 2014 Free Software Foundation, Inc.
15779
# This is free software; see the source for copying conditions. There is NO
15780
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15782
# GNU Libtool is free software; you can redistribute it and/or modify
15783
# it under the terms of the GNU General Public License as published by
15784
# the Free Software Foundation; either version 2 of of the License, or
15785
# (at your option) any later version.
15787
# As a special exception to the GNU General Public License, if you
15788
# distribute this file as part of a program or library that is built
15789
# using GNU Libtool, you may include this file under the same
15790
# distribution terms that you use for the rest of that program.
15792
# GNU Libtool is distributed in the hope that it will be useful, but
15793
# WITHOUT ANY WARRANTY; without even the implied warranty of
15794
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15795
# GNU General Public License for more details.
15797
# You should have received a copy of the GNU General Public License
15798
# along with this program. If not, see <http://www.gnu.org/licenses/>.
15801
# The names of the tagged configurations supported by this script.
15804
# Configured defaults for sys_lib_dlsearch_path munging.
15805
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15807
# ### BEGIN LIBTOOL CONFIG
15809
# Which release of libtool.m4 was used?
15810
macro_version=$macro_version
15811
macro_revision=$macro_revision
15813
# Whether or not to build shared libraries.
15814
build_libtool_libs=$enable_shared
15816
# Whether or not to build static libraries.
15817
build_old_libs=$enable_static
15819
# What type of objects to build.
15822
# Whether or not to optimize for fast installation.
15823
fast_install=$enable_fast_install
15825
# Shared archive member basename,for filename based shared library versioning on AIX.
15826
shared_archive_member_spec=$shared_archive_member_spec
15828
# Shell to use when invoking shell scripts.
15831
# An echo program that protects backslashes.
15834
# The PATH separator for the build system.
15835
PATH_SEPARATOR=$lt_PATH_SEPARATOR
15838
host_alias=$host_alias
15842
# The build system.
15843
build_alias=$build_alias
15847
# A sed program that does not truncate output.
15850
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15851
Xsed="\$SED -e 1s/^X//"
15853
# A grep program that handles long lines.
15859
# A literal string matcher.
15862
# A BSD- or MS-compatible name lister.
15865
# Whether we need soft or hard links.
15868
# What is the maximum length of a command?
15869
max_cmd_len=$max_cmd_len
15871
# Object file suffix (normally "o").
15874
# Executable file suffix (normally "").
15877
# whether the shell understands "unset".
15880
# turn spaces into newlines.
15883
# turn newlines into spaces.
15886
# convert \$build file names to \$host format.
15887
to_host_file_cmd=$lt_cv_to_host_file_cmd
15889
# convert \$build files to toolchain format.
15890
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15892
# A file(cmd) program that detects file types.
15893
FILECMD=$lt_FILECMD
15895
# An object symbol dumper.
15896
OBJDUMP=$lt_OBJDUMP
15898
# Method to check whether dependent libraries are shared objects.
15899
deplibs_check_method=$lt_deplibs_check_method
15901
# Command to use when deplibs_check_method = "file_magic".
15902
file_magic_cmd=$lt_file_magic_cmd
15904
# How to find potential files when deplibs_check_method = "file_magic".
15905
file_magic_glob=$lt_file_magic_glob
15907
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15908
want_nocaseglob=$lt_want_nocaseglob
15910
# DLL creation program.
15911
DLLTOOL=$lt_DLLTOOL
15913
# Command to associate shared and link libraries.
15914
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15919
# Flags to create an archive (by configure).
15920
lt_ar_flags=$lt_ar_flags
15922
# Flags to create an archive.
15923
AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
15925
# How to feed a file listing to the archiver.
15926
archiver_list_spec=$lt_archiver_list_spec
15928
# A symbol stripping program.
15931
# Commands used to install an old-style archive.
15933
old_postinstall_cmds=$lt_old_postinstall_cmds
15934
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15936
# Whether to use a lock for old archive extraction.
15937
lock_old_archive_extraction=$lock_old_archive_extraction
15942
# LTCC compiler flags.
15943
LTCFLAGS=$lt_CFLAGS
15945
# Take the output of nm and produce a listing of raw symbols and C names.
15946
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15948
# Transform the output of nm in a proper C declaration.
15949
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15951
# Transform the output of nm into a list of symbols to manually relocate.
15952
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15954
# Transform the output of nm in a C name address pair.
15955
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15957
# Transform the output of nm in a C name address pair when lib prefix is needed.
15958
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15960
# The name lister interface.
15961
nm_interface=$lt_lt_cv_nm_interface
15963
# Specify filename containing input files for \$NM.
15964
nm_file_list_spec=$lt_nm_file_list_spec
15966
# The root where to search for dependent libraries,and where our libraries should be installed.
15967
lt_sysroot=$lt_sysroot
15969
# Command to truncate a binary pipe.
15970
lt_truncate_bin=$lt_lt_cv_truncate_bin
15972
# The name of the directory that contains temporary libtool files.
15975
# Used to examine libraries when file_magic_cmd begins with "file".
15976
MAGIC_CMD=$MAGIC_CMD
15978
# Must we lock files when doing compilation?
15979
need_locks=$lt_need_locks
15982
MANIFEST_TOOL=$lt_MANIFEST_TOOL
15984
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15985
DSYMUTIL=$lt_DSYMUTIL
15987
# Tool to change global to local symbols on Mac OS X.
15990
# Tool to manipulate fat objects and archives on Mac OS X.
15993
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15996
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15997
OTOOL64=$lt_OTOOL64
15999
# Old archive suffix (normally "a").
16002
# Shared library suffix (normally ".so").
16003
shrext_cmds=$lt_shrext_cmds
16005
# The commands to extract the exported symbol list from a shared archive.
16006
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16008
# Variables whose values should be saved in libtool wrapper scripts and
16009
# restored at link time.
16010
variables_saved_for_relink=$lt_variables_saved_for_relink
16012
# Do we need the "lib" prefix for modules?
16013
need_lib_prefix=$need_lib_prefix
16015
# Do we need a version for libraries?
16016
need_version=$need_version
16018
# Library versioning type.
16019
version_type=$version_type
16021
# Shared library runtime path variable.
16022
runpath_var=$runpath_var
16024
# Shared library path variable.
16025
shlibpath_var=$shlibpath_var
16027
# Is shlibpath searched before the hard-coded library search path?
16028
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16030
# Format of library name prefix.
16031
libname_spec=$lt_libname_spec
16033
# List of archive names. First name is the real one, the rest are links.
16034
# The last name is the one that the linker finds with -lNAME
16035
library_names_spec=$lt_library_names_spec
16037
# The coded name of the library, if different from the real name.
16038
soname_spec=$lt_soname_spec
16040
# Permission mode override for installation of shared libraries.
16041
install_override_mode=$lt_install_override_mode
16043
# Command to use after installation of a shared archive.
16044
postinstall_cmds=$lt_postinstall_cmds
16046
# Command to use after uninstallation of a shared archive.
16047
postuninstall_cmds=$lt_postuninstall_cmds
16049
# Commands used to finish a libtool library installation in a directory.
16050
finish_cmds=$lt_finish_cmds
16052
# As "finish_cmds", except a single script fragment to be evaled but
16054
finish_eval=$lt_finish_eval
16056
# Whether we should hardcode library paths into libraries.
16057
hardcode_into_libs=$hardcode_into_libs
16059
# Compile-time system search path for libraries.
16060
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16062
# Detected run-time system search path for libraries.
16063
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16065
# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16066
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16068
# Whether dlopen is supported.
16069
dlopen_support=$enable_dlopen
16071
# Whether dlopen of programs is supported.
16072
dlopen_self=$enable_dlopen_self
16074
# Whether dlopen of statically linked programs is supported.
16075
dlopen_self_static=$enable_dlopen_self_static
16077
# Commands to strip libraries.
16078
old_striplib=$lt_old_striplib
16079
striplib=$lt_striplib
16082
# The linker used to build libraries.
16085
# How to create reloadable object files.
16086
reload_flag=$lt_reload_flag
16087
reload_cmds=$lt_reload_cmds
16089
# Commands used to build an old-style archive.
16090
old_archive_cmds=$lt_old_archive_cmds
16092
# A language specific compiler.
16095
# Is the compiler the GNU compiler?
16098
# Compiler flag to turn off builtin functions.
16099
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16101
# Additional compiler flags for building library objects.
16102
pic_flag=$lt_lt_prog_compiler_pic
16104
# How to pass a linker flag through the compiler.
16105
wl=$lt_lt_prog_compiler_wl
16107
# Compiler flag to prevent dynamic linking.
16108
link_static_flag=$lt_lt_prog_compiler_static
16110
# Does compiler simultaneously support -c and -o options?
16111
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16113
# Whether or not to add -lc for building shared libraries.
16114
build_libtool_need_lc=$archive_cmds_need_lc
16116
# Whether or not to disallow shared libs when runtime libs are static.
16117
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16119
# Compiler flag to allow reflexive dlopens.
16120
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16122
# Compiler flag to generate shared objects directly from archives.
16123
whole_archive_flag_spec=$lt_whole_archive_flag_spec
16125
# Whether the compiler copes with passing no objects directly.
16126
compiler_needs_object=$lt_compiler_needs_object
16128
# Create an old-style archive from a shared archive.
16129
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16131
# Create a temporary old-style archive to link instead of a shared archive.
16132
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16134
# Commands used to build a shared archive.
16135
archive_cmds=$lt_archive_cmds
16136
archive_expsym_cmds=$lt_archive_expsym_cmds
16138
# Commands used to build a loadable module if different from building
16139
# a shared archive.
16140
module_cmds=$lt_module_cmds
16141
module_expsym_cmds=$lt_module_expsym_cmds
16143
# Whether we are building with GNU ld or not.
16144
with_gnu_ld=$lt_with_gnu_ld
16146
# Flag that allows shared libraries with undefined symbols to be built.
16147
allow_undefined_flag=$lt_allow_undefined_flag
16149
# Flag that enforces no undefined symbols.
16150
no_undefined_flag=$lt_no_undefined_flag
16152
# Flag to hardcode \$libdir into a binary during linking.
16153
# This must work even if \$libdir does not exist
16154
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16156
# Whether we need a single "-rpath" flag with a separated argument.
16157
hardcode_libdir_separator=$lt_hardcode_libdir_separator
16159
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16160
# DIR into the resulting binary.
16161
hardcode_direct=$hardcode_direct
16163
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16164
# DIR into the resulting binary and the resulting library dependency is
16165
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
16166
# library is relocated.
16167
hardcode_direct_absolute=$hardcode_direct_absolute
16169
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16170
# into the resulting binary.
16171
hardcode_minus_L=$hardcode_minus_L
16173
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16174
# into the resulting binary.
16175
hardcode_shlibpath_var=$hardcode_shlibpath_var
16177
# Set to "yes" if building a shared library automatically hardcodes DIR
16178
# into the library and all subsequent libraries and executables linked
16180
hardcode_automatic=$hardcode_automatic
16182
# Set to yes if linker adds runtime paths of dependent libraries
16183
# to runtime path list.
16184
inherit_rpath=$inherit_rpath
16186
# Whether libtool must link a program against all its dependency libraries.
16187
link_all_deplibs=$link_all_deplibs
16189
# Set to "yes" if exported symbols are required.
16190
always_export_symbols=$always_export_symbols
16192
# The commands to list exported symbols.
16193
export_symbols_cmds=$lt_export_symbols_cmds
16195
# Symbols that should not be listed in the preloaded symbols.
16196
exclude_expsyms=$lt_exclude_expsyms
16198
# Symbols that must always be exported.
16199
include_expsyms=$lt_include_expsyms
16201
# Commands necessary for linking programs (against libraries) with templates.
16202
prelink_cmds=$lt_prelink_cmds
16204
# Commands necessary for finishing linking programs.
16205
postlink_cmds=$lt_postlink_cmds
16207
# Specify filename containing input files.
16208
file_list_spec=$lt_file_list_spec
16210
# How to hardcode a shared library path into an executable.
16211
hardcode_action=$hardcode_action
16213
# ### END LIBTOOL CONFIG
16217
cat <<'_LT_EOF' >> "$cfgfile"
16219
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16221
# func_munge_path_list VARIABLE PATH
16222
# -----------------------------------
16223
# VARIABLE is name of variable containing _space_ separated list of
16224
# directories to be munged by the contents of PATH, which is string
16227
# string "DIR[ DIR]" will be prepended to VARIABLE
16229
# string "DIR[ DIR]" will be appended to VARIABLE
16230
# "DIRP[:DIRP]::[DIRA:]DIRA"
16231
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16232
# "DIRA[ DIRA]" will be appended to VARIABLE
16234
# VARIABLE will be replaced by "DIR[ DIR]"
16235
func_munge_path_list ()
16241
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16244
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16247
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16248
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16251
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16257
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16258
func_cc_basename ()
16260
for cc_temp in $*""; do
16262
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16263
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16268
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16272
# ### END FUNCTIONS SHARED WITH CONFIGURE
16278
cat <<\_LT_EOF >> "$cfgfile"
16279
# AIX sometimes has problems with the GCC collect2 program. For some
16280
# reason, if we set the COLLECT_NAMES environment variable, the problems
16281
# vanish in a puff of smoke.
16282
if test set != "${COLLECT_NAMES+set}"; then
16284
export COLLECT_NAMES
16292
ltmain=$ac_aux_dir/ltmain.sh
16295
# We use sed instead of cat because bash on DJGPP gets confused if
16296
# if finds mixed CR/LF and LF-only lines. Since sed operates in
16297
# text mode, it properly converts lines to CR/LF. This bash problem
16298
# is reportedly fixed, but why not run on old versions too?
16299
$SED '$q' "$ltmain" >> "$cfgfile" \
16300
|| (rm -f "$cfgfile"; exit 1)
16302
mv -f "$cfgfile" "$ofile" ||
16303
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16314
ac_clean_files=$ac_clean_files_save
16316
test $ac_write_fail = 0 ||
16317
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16320
# configure is writing to config.log, and then calls config.status.
16321
# config.status does its own redirection, appending to config.log.
16322
# Unfortunately, on DOS this fails, as config.log is still kept open
16323
# by configure, so config.status won't be able to write to it; its
16324
# output is simply discarded. So we exec the FD to /dev/null,
16325
# effectively closing config.log, so it can be properly (re)opened and
16326
# appended to by config.status. When coming back to configure, we
16327
# need to make the FD available again.
16328
if test "$no_create" != yes; then
16330
ac_config_status_args=
16331
test "$silent" = yes &&
16332
ac_config_status_args="$ac_config_status_args --quiet"
16334
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16336
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
16337
# would make configure fail if this is the last instruction.
16338
$ac_cs_success || as_fn_exit 1
16340
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16341
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16342
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}