2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for jq 1.4.
5
# Report bugs to <mu@netsoc.tcd.ie>.
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
94
*[\\/]* ) as_myself=$0 ;;
95
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99
test -z "$as_dir" && as_dir=.
100
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
111
if test ! -f "$as_myself"; then
112
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there. '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
# Use a proper internal environment variable to ensure we don't fall
138
# into an infinite loop, continuously re-executing ourselves.
139
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
_as_can_reexec=no; export _as_can_reexec;
141
# We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149
*v*x* | *x*v* ) as_opts=-vx ;;
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160
# We don't want this to propagate to other subprocesses.
161
{ _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
# is contrary to our usage. Disable this feature.
168
alias -g '\${1+\"\$@\"}'='\"\$@\"'
171
case \`(set -o) 2>/dev/null\` in #(
179
as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
exitcode=1; echo positional parameters were not saved.
195
test x\$exitcode = x0 || exit 1
197
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
PATH=/empty FPATH=/empty; export PATH FPATH
207
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209
test \$(( 1 + 1 )) = 2 || exit 1"
210
if (eval "$as_required") 2>/dev/null; then :
215
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
test -z "$as_dir" && as_dir=.
227
for as_base in sh bash ksh sh5; do
228
# Try only shells that exist, to save several forks.
229
as_shell=$as_dir/$as_base
230
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
CONFIG_SHELL=$as_shell as_have_required=yes
233
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243
CONFIG_SHELL=$SHELL as_have_required=yes
248
if test "x$CONFIG_SHELL" != x; then :
250
# We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258
*v*x* | *x*v* ) as_opts=-vx ;;
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270
if test x$as_have_required = xno; then :
271
$as_echo "$0: This script requires a shell more modern than all"
272
$as_echo "$0: the shells that I found on your system."
273
if test x${ZSH_VERSION+set} = xset ; then
274
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
277
$as_echo "$0: Please tell bug-autoconf@gnu.org and mu@netsoc.tcd.ie
278
$0: about your system, including any error possibly output
279
$0: before this message. Then install a modern shell, or
280
$0: manually run the script under such a shell if you do
287
SHELL=${CONFIG_SHELL-/bin/sh}
289
# Unset more variables known to interfere with behavior of common tools.
290
CLICOLOR_FORCE= GREP_OPTIONS=
291
unset CLICOLOR_FORCE GREP_OPTIONS
293
## --------------------- ##
294
## M4sh Shell Functions. ##
295
## --------------------- ##
298
# Portably unset VAR.
301
{ eval $1=; unset $1;}
305
# as_fn_set_status STATUS
306
# -----------------------
307
# Set $? to STATUS, without forking.
315
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325
# Create "$as_dir" as a directory, including parents if necessary.
330
-*) as_dir=./$as_dir;;
332
test -d "$as_dir" || eval $as_mkdir_p || {
336
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339
as_dirs="'$as_qdir' $as_dirs"
340
as_dir=`$as_dirname -- "$as_dir" ||
341
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342
X"$as_dir" : 'X\(//\)[^/]' \| \
343
X"$as_dir" : 'X\(//\)$' \| \
344
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345
$as_echo X"$as_dir" |
346
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363
test -d "$as_dir" && break
365
test -z "$as_dirs" || eval "mkdir $as_dirs"
366
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371
# as_fn_executable_p FILE
372
# -----------------------
373
# Test if FILE is an executable regular file.
374
as_fn_executable_p ()
376
test -f "$1" && test -x "$1"
377
} # as_fn_executable_p
378
# as_fn_append VAR VALUE
379
# ----------------------
380
# Append the text in VALUE to the end of the definition contained in VAR. Take
381
# advantage of any shell optimizations that allow amortized linear growth over
382
# repeated appends, instead of the typical quadratic growth present in naive
384
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385
eval 'as_fn_append ()
398
# Perform arithmetic evaluation on the ARGs, and store the result in the
399
# global $as_val. Take advantage of shells that can avoid forks. The arguments
400
# must be portable across $(()) and expr.
401
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409
as_val=`expr "$@" || test $? -eq 1`
414
# as_fn_error STATUS ERROR [LINENO LOG_FD]
415
# ----------------------------------------
416
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418
# script with STATUS, using 1 if that was 0.
421
as_status=$1; test $as_status -eq 0 && as_status=1
423
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426
$as_echo "$as_me: error: $2" >&2
427
as_fn_exit $as_status
430
if expr a : '\(a\)' >/dev/null 2>&1 &&
431
test "X`expr 00001 : '.*\(...\)'`" = X001; then
437
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449
as_me=`$as_basename -- "$0" ||
450
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451
X"$0" : 'X\(//\)$' \| \
452
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454
sed '/^.*\/\([^/][^/]*\)\/*$/{
468
# Avoid depending upon Character Ranges.
469
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472
as_cr_digits='0123456789'
473
as_cr_alnum=$as_cr_Letters$as_cr_digits
476
as_lineno_1=$LINENO as_lineno_1a=$LINENO
477
as_lineno_2=$LINENO as_lineno_2a=$LINENO
478
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496
chmod +x "$as_me.lineno" ||
497
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500
# already done that, so ensure we don't try to do so again and fall
501
# in an infinite loop. This has already happened in practice.
502
_as_can_reexec=no; export _as_can_reexec
503
# Don't try to exec as it changes $[0], causing all sort of problems
504
# (the dirname of $[0] is not the place where we might find the
505
# original and so on. Autoconf is especially sensitive to this).
507
# Exit status is that of the last command.
511
ECHO_C= ECHO_N= ECHO_T=
512
case `echo -n x` in #(((((
514
case `echo 'xy\c'` in
515
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
517
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524
rm -f conf$$ conf$$.exe conf$$.file
525
if test -d conf$$.dir; then
526
rm -f conf$$.dir/conf$$.file
529
mkdir conf$$.dir 2>/dev/null
531
if (echo >conf$$.file) 2>/dev/null; then
532
if ln -s conf$$.file conf$$ 2>/dev/null; then
534
# ... but there are two gotchas:
535
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537
# In both cases, we have to default to `cp -pR'.
538
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540
elif ln conf$$.file conf$$ 2>/dev/null; then
548
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549
rmdir conf$$.dir 2>/dev/null
551
if mkdir -p . 2>/dev/null; then
552
as_mkdir_p='mkdir -p "$as_dir"'
554
test -d ./-p && rmdir ./-p
559
as_executable_p=as_fn_executable_p
561
# Sed expression to map a string onto a valid CPP name.
562
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
# Sed expression to map a string onto a valid variable name.
565
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
SHELL=${CONFIG_SHELL-/bin/sh}
570
test -n "$DJDIR" || exec 7<&0 </dev/null
574
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575
# so uname gets run too.
576
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
ac_default_prefix=/usr/local
583
ac_config_libobj_dir=.
590
# Identity of this package.
593
PACKAGE_VERSION='1.4'
594
PACKAGE_STRING='jq 1.4'
595
PACKAGE_BUGREPORT='mu@netsoc.tcd.ie'
596
PACKAGE_URL='http://stedolan.github.com/jq/'
598
# Factoring default headers for most tests.
599
ac_includes_default="\
601
#ifdef HAVE_SYS_TYPES_H
602
# include <sys/types.h>
604
#ifdef HAVE_SYS_STAT_H
605
# include <sys/stat.h>
611
# ifdef HAVE_STDLIB_H
616
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621
#ifdef HAVE_STRINGS_H
622
# include <strings.h>
624
#ifdef HAVE_INTTYPES_H
625
# include <inttypes.h>
634
ac_subst_vars='am__EXEEXT_FALSE
641
LIB_pthread_key_create
711
INSTALL_STRIP_PROGRAM
753
program_transform_name
766
enable_option_checking
768
enable_dependency_tracking
779
ac_precious_vars='build_alias
792
# Initialize some variables set by options.
794
ac_init_version=false
795
ac_unrecognized_opts=
797
# The variables have the same names as the options, with
798
# dashes changed to underlines.
806
program_transform_name=s,x,x,
814
# Installation directory options.
815
# These are left unexpanded so users can "make install exec_prefix=/foo"
816
# and all the variables that are supposed to be based on exec_prefix
817
# by default will actually change.
818
# Use braces instead of parens because sh, perl, etc. also accept them.
819
# (The list follows the same order as the GNU Coding Standards.)
820
bindir='${exec_prefix}/bin'
821
sbindir='${exec_prefix}/sbin'
822
libexecdir='${exec_prefix}/libexec'
823
datarootdir='${prefix}/share'
824
datadir='${datarootdir}'
825
sysconfdir='${prefix}/etc'
826
sharedstatedir='${prefix}/com'
827
localstatedir='${prefix}/var'
828
includedir='${prefix}/include'
829
oldincludedir='/usr/include'
830
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831
infodir='${datarootdir}/info'
836
libdir='${exec_prefix}/lib'
837
localedir='${datarootdir}/locale'
838
mandir='${datarootdir}/man'
844
# If the previous option needs an argument, assign it.
845
if test -n "$ac_prev"; then
846
eval $ac_prev=\$ac_option
852
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857
# Accept the important Cygnus configure options, so we can diagnose typos.
859
case $ac_dashdash$ac_option in
863
-bindir | --bindir | --bindi | --bind | --bin | --bi)
865
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868
-build | --build | --buil | --bui | --bu)
869
ac_prev=build_alias ;;
870
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
871
build_alias=$ac_optarg ;;
873
-cache-file | --cache-file | --cache-fil | --cache-fi \
874
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875
ac_prev=cache_file ;;
876
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878
cache_file=$ac_optarg ;;
881
cache_file=config.cache ;;
883
-datadir | --datadir | --datadi | --datad)
885
-datadir=* | --datadir=* | --datadi=* | --datad=*)
886
datadir=$ac_optarg ;;
888
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889
| --dataroo | --dataro | --datar)
890
ac_prev=datarootdir ;;
891
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893
datarootdir=$ac_optarg ;;
895
-disable-* | --disable-*)
896
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897
# Reject names that are not valid shell variable names.
898
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899
as_fn_error $? "invalid feature name: $ac_useropt"
900
ac_useropt_orig=$ac_useropt
901
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902
case $ac_user_opts in
906
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907
ac_unrecognized_sep=', ';;
909
eval enable_$ac_useropt=no ;;
911
-docdir | --docdir | --docdi | --doc | --do)
913
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921
-enable-* | --enable-*)
922
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928
case $ac_user_opts in
932
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933
ac_unrecognized_sep=', ';;
935
eval enable_$ac_useropt=\$ac_optarg ;;
937
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939
| --exec | --exe | --ex)
940
ac_prev=exec_prefix ;;
941
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943
| --exec=* | --exe=* | --ex=*)
944
exec_prefix=$ac_optarg ;;
946
-gas | --gas | --ga | --g)
947
# Obsolete; use --with-gas.
950
-help | --help | --hel | --he | -h)
952
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953
ac_init_help=recursive ;;
954
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955
ac_init_help=short ;;
957
-host | --host | --hos | --ho)
958
ac_prev=host_alias ;;
959
-host=* | --host=* | --hos=* | --ho=*)
960
host_alias=$ac_optarg ;;
962
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966
htmldir=$ac_optarg ;;
968
-includedir | --includedir | --includedi | --included | --include \
969
| --includ | --inclu | --incl | --inc)
970
ac_prev=includedir ;;
971
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972
| --includ=* | --inclu=* | --incl=* | --inc=*)
973
includedir=$ac_optarg ;;
975
-infodir | --infodir | --infodi | --infod | --info | --inf)
977
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978
infodir=$ac_optarg ;;
980
-libdir | --libdir | --libdi | --libd)
982
-libdir=* | --libdir=* | --libdi=* | --libd=*)
985
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986
| --libexe | --libex | --libe)
987
ac_prev=libexecdir ;;
988
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989
| --libexe=* | --libex=* | --libe=*)
990
libexecdir=$ac_optarg ;;
992
-localedir | --localedir | --localedi | --localed | --locale)
994
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995
localedir=$ac_optarg ;;
997
-localstatedir | --localstatedir | --localstatedi | --localstated \
998
| --localstate | --localstat | --localsta | --localst | --locals)
999
ac_prev=localstatedir ;;
1000
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002
localstatedir=$ac_optarg ;;
1004
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007
mandir=$ac_optarg ;;
1009
-nfp | --nfp | --nf)
1010
# Obsolete; use --without-fp.
1013
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014
| --no-cr | --no-c | -n)
1017
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023
| --oldin | --oldi | --old | --ol | --o)
1024
ac_prev=oldincludedir ;;
1025
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028
oldincludedir=$ac_optarg ;;
1030
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033
prefix=$ac_optarg ;;
1035
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1036
| --program-pre | --program-pr | --program-p)
1037
ac_prev=program_prefix ;;
1038
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1039
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040
program_prefix=$ac_optarg ;;
1042
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1043
| --program-suf | --program-su | --program-s)
1044
ac_prev=program_suffix ;;
1045
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1046
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047
program_suffix=$ac_optarg ;;
1049
-program-transform-name | --program-transform-name \
1050
| --program-transform-nam | --program-transform-na \
1051
| --program-transform-n | --program-transform- \
1052
| --program-transform | --program-transfor \
1053
| --program-transfo | --program-transf \
1054
| --program-trans | --program-tran \
1055
| --progr-tra | --program-tr | --program-t)
1056
ac_prev=program_transform_name ;;
1057
-program-transform-name=* | --program-transform-name=* \
1058
| --program-transform-nam=* | --program-transform-na=* \
1059
| --program-transform-n=* | --program-transform-=* \
1060
| --program-transform=* | --program-transfor=* \
1061
| --program-transfo=* | --program-transf=* \
1062
| --program-trans=* | --program-tran=* \
1063
| --progr-tra=* | --program-tr=* | --program-t=*)
1064
program_transform_name=$ac_optarg ;;
1066
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069
pdfdir=$ac_optarg ;;
1071
-psdir | --psdir | --psdi | --psd | --ps)
1073
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077
| -silent | --silent | --silen | --sile | --sil)
1080
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084
sbindir=$ac_optarg ;;
1086
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1087
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088
| --sharedst | --shareds | --shared | --share | --shar \
1090
ac_prev=sharedstatedir ;;
1091
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095
sharedstatedir=$ac_optarg ;;
1097
-site | --site | --sit)
1099
-site=* | --site=* | --sit=*)
1102
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105
srcdir=$ac_optarg ;;
1107
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108
| --syscon | --sysco | --sysc | --sys | --sy)
1109
ac_prev=sysconfdir ;;
1110
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112
sysconfdir=$ac_optarg ;;
1114
-target | --target | --targe | --targ | --tar | --ta | --t)
1115
ac_prev=target_alias ;;
1116
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117
target_alias=$ac_optarg ;;
1119
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1122
-version | --version | --versio | --versi | --vers | -V)
1123
ac_init_version=: ;;
1126
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127
# Reject names that are not valid shell variable names.
1128
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129
as_fn_error $? "invalid package name: $ac_useropt"
1130
ac_useropt_orig=$ac_useropt
1131
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132
case $ac_user_opts in
1136
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137
ac_unrecognized_sep=', ';;
1139
eval with_$ac_useropt=\$ac_optarg ;;
1141
-without-* | --without-*)
1142
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143
# Reject names that are not valid shell variable names.
1144
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145
as_fn_error $? "invalid package name: $ac_useropt"
1146
ac_useropt_orig=$ac_useropt
1147
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148
case $ac_user_opts in
1152
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153
ac_unrecognized_sep=', ';;
1155
eval with_$ac_useropt=no ;;
1158
# Obsolete; use --with-x.
1161
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162
| --x-incl | --x-inc | --x-in | --x-i)
1163
ac_prev=x_includes ;;
1164
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166
x_includes=$ac_optarg ;;
1168
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1169
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170
ac_prev=x_libraries ;;
1171
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173
x_libraries=$ac_optarg ;;
1175
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1176
Try \`$0 --help' for more information"
1180
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181
# Reject names that are not valid shell variable names.
1182
case $ac_envvar in #(
1183
'' | [0-9]* | *[!_$as_cr_alnum]* )
1184
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186
eval $ac_envvar=\$ac_optarg
1187
export $ac_envvar ;;
1190
# FIXME: should be removed in autoconf 3.0.
1191
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200
if test -n "$ac_prev"; then
1201
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202
as_fn_error $? "missing argument to $ac_option"
1205
if test -n "$ac_unrecognized_opts"; then
1206
case $enable_option_checking in
1208
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213
# Check all directory arguments for consistency.
1214
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215
datadir sysconfdir sharedstatedir localstatedir includedir \
1216
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217
libdir localedir mandir
1219
eval ac_val=\$$ac_var
1220
# Remove trailing slashes.
1223
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224
eval $ac_var=\$ac_val;;
1226
# Be sure to have absolute directory names.
1228
[\\/$]* | ?:[\\/]* ) continue;;
1229
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234
# There might be people who depend on the old broken behavior: `$host'
1235
# used to hold the argument of --host etc.
1236
# FIXME: To remove some day.
1239
target=$target_alias
1241
# FIXME: To remove some day.
1242
if test "x$host_alias" != x; then
1243
if test "x$build_alias" = x; then
1244
cross_compiling=maybe
1245
elif test "x$build_alias" != "x$host_alias"; then
1251
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
test "$silent" = yes && exec 6>/dev/null
1256
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257
ac_ls_di=`ls -di .` &&
1258
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259
as_fn_error $? "working directory cannot be determined"
1260
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261
as_fn_error $? "pwd does not report name of working directory"
1264
# Find the source files, if location was not specified.
1265
if test -z "$srcdir"; then
1266
ac_srcdir_defaulted=yes
1267
# Try the directory containing this script, then the parent directory.
1268
ac_confdir=`$as_dirname -- "$as_myself" ||
1269
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270
X"$as_myself" : 'X\(//\)[^/]' \| \
1271
X"$as_myself" : 'X\(//\)$' \| \
1272
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273
$as_echo X"$as_myself" |
1274
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292
if test ! -r "$srcdir/$ac_unique_file"; then
1296
ac_srcdir_defaulted=no
1298
if test ! -r "$srcdir/$ac_unique_file"; then
1299
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306
# When building in place, set srcdir=.
1307
if test "$ac_abs_confdir" = "$ac_pwd"; then
1310
# Remove unnecessary trailing slashes from srcdir.
1311
# Double slashes in file names in object file debugging info
1312
# mess up M-x gdb in Emacs.
1314
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316
for ac_var in $ac_precious_vars; do
1317
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318
eval ac_env_${ac_var}_value=\$${ac_var}
1319
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324
# Report the --help message.
1326
if test "$ac_init_help" = "long"; then
1327
# Omit some internal or obsolete options to make the list less imposing.
1328
# This message is too long to be a string in the A/UX 3.1 sh.
1330
\`configure' configures jq 1.4 to adapt to many kinds of systems.
1332
Usage: $0 [OPTION]... [VAR=VALUE]...
1334
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335
VAR=VALUE. See below for descriptions of some of the useful variables.
1337
Defaults for the options are specified in brackets.
1340
-h, --help display this help and exit
1341
--help=short display options specific to this package
1342
--help=recursive display the short help of all the included packages
1343
-V, --version display version information and exit
1344
-q, --quiet, --silent do not print \`checking ...' messages
1345
--cache-file=FILE cache test results in FILE [disabled]
1346
-C, --config-cache alias for \`--cache-file=config.cache'
1347
-n, --no-create do not create output files
1348
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
Installation directories:
1351
--prefix=PREFIX install architecture-independent files in PREFIX
1352
[$ac_default_prefix]
1353
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356
By default, \`make install' will install all the files in
1357
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359
for instance \`--prefix=\$HOME'.
1361
For better control, use the options below.
1363
Fine tuning of the installation directories:
1364
--bindir=DIR user executables [EPREFIX/bin]
1365
--sbindir=DIR system admin executables [EPREFIX/sbin]
1366
--libexecdir=DIR program executables [EPREFIX/libexec]
1367
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370
--libdir=DIR object code libraries [EPREFIX/lib]
1371
--includedir=DIR C header files [PREFIX/include]
1372
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1373
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375
--infodir=DIR info documentation [DATAROOTDIR/info]
1376
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377
--mandir=DIR man documentation [DATAROOTDIR/man]
1378
--docdir=DIR documentation root [DATAROOTDIR/doc/jq]
1379
--htmldir=DIR html documentation [DOCDIR]
1380
--dvidir=DIR dvi documentation [DOCDIR]
1381
--pdfdir=DIR pdf documentation [DOCDIR]
1382
--psdir=DIR ps documentation [DOCDIR]
1388
--program-prefix=PREFIX prepend PREFIX to installed program names
1389
--program-suffix=SUFFIX append SUFFIX to installed program names
1390
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393
--build=BUILD configure for building on BUILD [guessed]
1394
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1398
if test -n "$ac_init_help"; then
1399
case $ac_init_help in
1400
short | recursive ) echo "Configuration of jq 1.4:";;
1405
--disable-option-checking ignore unrecognized --enable/--with options
1406
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408
--enable-silent-rules less verbose build output (undo: "make V=1")
1409
--disable-silent-rules verbose build output (undo: "make V=0")
1410
--enable-dependency-tracking
1411
do not reject slow dependency extractors
1412
--disable-dependency-tracking
1413
speeds up one-time build
1414
--enable-shared[=PKGS] build shared libraries [default=yes]
1415
--enable-static[=PKGS] build static libraries [default=yes]
1416
--enable-fast-install[=PKGS]
1417
optimize for fast installation [default=yes]
1418
--disable-libtool-lock avoid locking (might break parallel builds)
1419
--disable-docs don't build docs
1420
--enable-pthread-tls Enable use of pthread thread local storage
1423
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1425
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1427
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1428
--with-sysroot=DIR Search for dependent libraries within DIR
1429
(or the compiler's sysroot if not specified).
1431
Some influential environment variables:
1432
CC C compiler command
1433
CFLAGS C compiler flags
1434
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435
nonstandard directory <lib dir>
1436
LIBS libraries to pass to the linker, e.g. -l<library>
1437
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438
you have headers in a nonstandard directory <include dir>
1440
YACC The `Yet Another Compiler Compiler' implementation to use.
1441
Defaults to the first program found out of: `bison -y', `byacc',
1443
YFLAGS The list of arguments that will be passed by default to $YACC.
1444
This script will default YFLAGS to the empty string to avoid a
1445
default value of `-d' given by some make applications.
1447
Use these variables to override the choices made by `configure' or to help
1448
it to find libraries and programs with nonstandard names/locations.
1450
Report bugs to <mu@netsoc.tcd.ie>.
1451
jq home page: <http://stedolan.github.com/jq/>.
1456
if test "$ac_init_help" = "recursive"; then
1457
# If there are subdirs, report their specific --help.
1458
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459
test -d "$ac_dir" ||
1460
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468
# A ".." for each directory in $ac_dir_suffix.
1469
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470
case $ac_top_builddir_sub in
1471
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475
ac_abs_top_builddir=$ac_pwd
1476
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477
# for backward compatibility:
1478
ac_top_builddir=$ac_top_build_prefix
1481
.) # We are building in place.
1483
ac_top_srcdir=$ac_top_builddir_sub
1484
ac_abs_top_srcdir=$ac_pwd ;;
1485
[\\/]* | ?:[\\/]* ) # Absolute name.
1486
ac_srcdir=$srcdir$ac_dir_suffix;
1487
ac_top_srcdir=$srcdir
1488
ac_abs_top_srcdir=$srcdir ;;
1490
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491
ac_top_srcdir=$ac_top_build_prefix$srcdir
1492
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
cd "$ac_dir" || { ac_status=$?; continue; }
1497
# Check for guested configure.
1498
if test -f "$ac_srcdir/configure.gnu"; then
1500
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501
elif test -f "$ac_srcdir/configure"; then
1503
$SHELL "$ac_srcdir/configure" --help=recursive
1505
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507
cd "$ac_pwd" || { ac_status=$?; break; }
1511
test -n "$ac_init_help" && exit $ac_status
1512
if $ac_init_version; then
1515
generated by GNU Autoconf 2.69
1517
Copyright (C) 2012 Free Software Foundation, Inc.
1518
This configure script is free software; the Free Software Foundation
1519
gives unlimited permission to copy, distribute and modify it.
1524
## ------------------------ ##
1525
## Autoconf initialization. ##
1526
## ------------------------ ##
1528
# ac_fn_c_try_compile LINENO
1529
# --------------------------
1530
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1531
ac_fn_c_try_compile ()
1533
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534
rm -f conftest.$ac_objext
1535
if { { ac_try="$ac_compile"
1537
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538
*) ac_try_echo=$ac_try;;
1540
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541
$as_echo "$ac_try_echo"; } >&5
1542
(eval "$ac_compile") 2>conftest.err
1544
if test -s conftest.err; then
1545
grep -v '^ *+' conftest.err >conftest.er1
1546
cat conftest.er1 >&5
1547
mv -f conftest.er1 conftest.err
1549
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550
test $ac_status = 0; } && {
1551
test -z "$ac_c_werror_flag" ||
1552
test ! -s conftest.err
1553
} && test -s conftest.$ac_objext; then :
1556
$as_echo "$as_me: failed program was:" >&5
1557
sed 's/^/| /' conftest.$ac_ext >&5
1561
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562
as_fn_set_status $ac_retval
1564
} # ac_fn_c_try_compile
1566
# ac_fn_c_try_cpp LINENO
1567
# ----------------------
1568
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1571
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572
if { { ac_try="$ac_cpp conftest.$ac_ext"
1574
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575
*) ac_try_echo=$ac_try;;
1577
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578
$as_echo "$ac_try_echo"; } >&5
1579
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581
if test -s conftest.err; then
1582
grep -v '^ *+' conftest.err >conftest.er1
1583
cat conftest.er1 >&5
1584
mv -f conftest.er1 conftest.err
1586
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587
test $ac_status = 0; } > conftest.i && {
1588
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1589
test ! -s conftest.err
1593
$as_echo "$as_me: failed program was:" >&5
1594
sed 's/^/| /' conftest.$ac_ext >&5
1598
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599
as_fn_set_status $ac_retval
1603
# ac_fn_c_try_link LINENO
1604
# -----------------------
1605
# Try to link conftest.$ac_ext, and return whether this succeeded.
1608
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609
rm -f conftest.$ac_objext conftest$ac_exeext
1610
if { { ac_try="$ac_link"
1612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613
*) ac_try_echo=$ac_try;;
1615
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616
$as_echo "$ac_try_echo"; } >&5
1617
(eval "$ac_link") 2>conftest.err
1619
if test -s conftest.err; then
1620
grep -v '^ *+' conftest.err >conftest.er1
1621
cat conftest.er1 >&5
1622
mv -f conftest.er1 conftest.err
1624
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625
test $ac_status = 0; } && {
1626
test -z "$ac_c_werror_flag" ||
1627
test ! -s conftest.err
1628
} && test -s conftest$ac_exeext && {
1629
test "$cross_compiling" = yes ||
1630
test -x conftest$ac_exeext
1634
$as_echo "$as_me: failed program was:" >&5
1635
sed 's/^/| /' conftest.$ac_ext >&5
1639
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1640
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1641
# interfere with the next link command; also delete a directory that is
1642
# left behind by Apple's compiler. We do this before executing the actions.
1643
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
as_fn_set_status $ac_retval
1647
} # ac_fn_c_try_link
1649
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1650
# -------------------------------------------------------
1651
# Tests whether HEADER exists and can be compiled using the include files in
1652
# INCLUDES, setting the cache variable VAR accordingly.
1653
ac_fn_c_check_header_compile ()
1655
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657
$as_echo_n "checking for $2... " >&6; }
1658
if eval \${$3+:} false; then :
1659
$as_echo_n "(cached) " >&6
1661
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662
/* end confdefs.h. */
1666
if ac_fn_c_try_compile "$LINENO"; then :
1671
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675
$as_echo "$ac_res" >&6; }
1676
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
} # ac_fn_c_check_header_compile
1680
# ac_fn_c_try_run LINENO
1681
# ----------------------
1682
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683
# that executables *can* be run.
1686
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687
if { { ac_try="$ac_link"
1689
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690
*) ac_try_echo=$ac_try;;
1692
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693
$as_echo "$ac_try_echo"; } >&5
1694
(eval "$ac_link") 2>&5
1696
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698
{ { case "(($ac_try" in
1699
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700
*) ac_try_echo=$ac_try;;
1702
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703
$as_echo "$ac_try_echo"; } >&5
1704
(eval "$ac_try") 2>&5
1706
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707
test $ac_status = 0; }; }; then :
1710
$as_echo "$as_me: program exited with status $ac_status" >&5
1711
$as_echo "$as_me: failed program was:" >&5
1712
sed 's/^/| /' conftest.$ac_ext >&5
1714
ac_retval=$ac_status
1716
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
as_fn_set_status $ac_retval
1722
# ac_fn_c_check_func LINENO FUNC VAR
1723
# ----------------------------------
1724
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1725
ac_fn_c_check_func ()
1727
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729
$as_echo_n "checking for $2... " >&6; }
1730
if eval \${$3+:} false; then :
1731
$as_echo_n "(cached) " >&6
1733
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734
/* end confdefs.h. */
1735
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737
#define $2 innocuous_$2
1739
/* System header to define __stub macros and hopefully few prototypes,
1740
which can conflict with char $2 (); below.
1741
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742
<limits.h> exists even on freestanding compilers. */
1745
# include <limits.h>
1747
# include <assert.h>
1752
/* Override any GCC internal prototype to avoid an error.
1753
Use char because int might match the return type of a GCC
1754
builtin and then its argument prototype would still apply. */
1759
/* The GNU C library defines this for functions which it implements
1760
to always fail with ENOSYS. Some functions are actually named
1761
something starting with __ and the normal name is an alias. */
1762
#if defined __stub_$2 || defined __stub___$2
1774
if ac_fn_c_try_link "$LINENO"; then :
1779
rm -f core conftest.err conftest.$ac_objext \
1780
conftest$ac_exeext conftest.$ac_ext
1783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784
$as_echo "$ac_res" >&6; }
1785
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
} # ac_fn_c_check_func
1788
cat >config.log <<_ACEOF
1789
This file contains any messages produced by compilers while
1790
running configure, to aid debugging if configure makes a mistake.
1792
It was created by jq $as_me 1.4, which was
1793
generated by GNU Autoconf 2.69. Invocation command line was
1805
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1806
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1807
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1808
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1809
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1811
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1812
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1814
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1815
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1816
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1817
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1818
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1819
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1820
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828
test -z "$as_dir" && as_dir=.
1829
$as_echo "PATH: $as_dir"
1845
# Keep a trace of the command line.
1846
# Strip out --no-create and --no-recursion so they do not pile up.
1847
# Strip out --silent because we don't want to record it for future runs.
1848
# Also quote any args containing shell meta-characters.
1849
# Make two passes to allow for proper duplicate-argument suppression.
1853
ac_must_keep_next=false
1859
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1860
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1861
| -silent | --silent | --silen | --sile | --sil)
1864
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1867
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1869
as_fn_append ac_configure_args1 " '$ac_arg'"
1870
if test $ac_must_keep_next = true; then
1871
ac_must_keep_next=false # Got value, back to normal.
1874
*=* | --config-cache | -C | -disable-* | --disable-* \
1875
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1876
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1877
| -with-* | --with-* | -without-* | --without-* | --x)
1878
case "$ac_configure_args0 " in
1879
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1882
-* ) ac_must_keep_next=true ;;
1885
as_fn_append ac_configure_args " '$ac_arg'"
1890
{ ac_configure_args0=; unset ac_configure_args0;}
1891
{ ac_configure_args1=; unset ac_configure_args1;}
1893
# When interrupted or exit'd, cleanup temporary files, and complete
1894
# config.log. We remove comments because anyway the quotes in there
1895
# would cause problems or look ugly.
1896
# WARNING: Use '\'' to represent an apostrophe within the trap.
1897
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1898
trap 'exit_status=$?
1899
# Save into config.log some information that might help in debugging.
1903
$as_echo "## ---------------- ##
1904
## Cache variables. ##
1905
## ---------------- ##"
1907
# The following way of writing the cache mishandles newlines in values,
1909
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1910
eval ac_val=\$$ac_var
1914
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1915
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1918
_ | IFS | as_nl) ;; #(
1919
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1920
*) { eval $ac_var=; unset $ac_var;} ;;
1925
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1926
*${as_nl}ac_space=\ *)
1928
"s/'\''/'\''\\\\'\'''\''/g;
1929
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1932
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1939
$as_echo "## ----------------- ##
1940
## Output variables. ##
1941
## ----------------- ##"
1943
for ac_var in $ac_subst_vars
1945
eval ac_val=\$$ac_var
1947
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1949
$as_echo "$ac_var='\''$ac_val'\''"
1953
if test -n "$ac_subst_files"; then
1954
$as_echo "## ------------------- ##
1955
## File substitutions. ##
1956
## ------------------- ##"
1958
for ac_var in $ac_subst_files
1960
eval ac_val=\$$ac_var
1962
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1964
$as_echo "$ac_var='\''$ac_val'\''"
1969
if test -s confdefs.h; then
1970
$as_echo "## ----------- ##
1977
test "$ac_signal" != 0 &&
1978
$as_echo "$as_me: caught signal $ac_signal"
1979
$as_echo "$as_me: exit $exit_status"
1981
rm -f core *.core core.conftest.* &&
1982
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1985
for ac_signal in 1 2 13 15; do
1986
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1990
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1991
rm -f -r conftest* confdefs.h
1993
$as_echo "/* confdefs.h */" > confdefs.h
1995
# Predefined preprocessor variables.
1997
cat >>confdefs.h <<_ACEOF
1998
#define PACKAGE_NAME "$PACKAGE_NAME"
2001
cat >>confdefs.h <<_ACEOF
2002
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2005
cat >>confdefs.h <<_ACEOF
2006
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2009
cat >>confdefs.h <<_ACEOF
2010
#define PACKAGE_STRING "$PACKAGE_STRING"
2013
cat >>confdefs.h <<_ACEOF
2014
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2017
cat >>confdefs.h <<_ACEOF
2018
#define PACKAGE_URL "$PACKAGE_URL"
2022
# Let the site file select an alternate cache file if it wants to.
2023
# Prefer an explicitly selected file to automatically selected ones.
2026
if test -n "$CONFIG_SITE"; then
2027
# We do not want a PATH search for config.site.
2028
case $CONFIG_SITE in #((
2029
-*) ac_site_file1=./$CONFIG_SITE;;
2030
*/*) ac_site_file1=$CONFIG_SITE;;
2031
*) ac_site_file1=./$CONFIG_SITE;;
2033
elif test "x$prefix" != xNONE; then
2034
ac_site_file1=$prefix/share/config.site
2035
ac_site_file2=$prefix/etc/config.site
2037
ac_site_file1=$ac_default_prefix/share/config.site
2038
ac_site_file2=$ac_default_prefix/etc/config.site
2040
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2042
test "x$ac_site_file" = xNONE && continue
2043
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2044
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2045
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2046
sed 's/^/| /' "$ac_site_file" >&5
2048
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2049
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2050
as_fn_error $? "failed to load site script $ac_site_file
2051
See \`config.log' for more details" "$LINENO" 5; }
2055
if test -r "$cache_file"; then
2056
# Some versions of bash will fail to source /dev/null (special files
2057
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2058
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2059
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2060
$as_echo "$as_me: loading cache $cache_file" >&6;}
2062
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2063
*) . "./$cache_file";;
2067
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2068
$as_echo "$as_me: creating cache $cache_file" >&6;}
2072
# Check that the precious variables saved in the cache have kept the same
2074
ac_cache_corrupted=false
2075
for ac_var in $ac_precious_vars; do
2076
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2077
eval ac_new_set=\$ac_env_${ac_var}_set
2078
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2079
eval ac_new_val=\$ac_env_${ac_var}_value
2080
case $ac_old_set,$ac_new_set in
2082
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2083
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2084
ac_cache_corrupted=: ;;
2086
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2087
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2088
ac_cache_corrupted=: ;;
2091
if test "x$ac_old_val" != "x$ac_new_val"; then
2092
# differences in whitespace do not lead to failure.
2093
ac_old_val_w=`echo x $ac_old_val`
2094
ac_new_val_w=`echo x $ac_new_val`
2095
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2096
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2097
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2098
ac_cache_corrupted=:
2100
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2101
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2102
eval $ac_var=\$ac_old_val
2104
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2105
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2106
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2107
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2110
# Pass precious variables to config.status.
2111
if test "$ac_new_set" = set; then
2113
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2114
*) ac_arg=$ac_var=$ac_new_val ;;
2116
case " $ac_configure_args " in
2117
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2118
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2122
if $ac_cache_corrupted; then
2123
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2124
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2125
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2126
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2127
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2129
## -------------------- ##
2130
## Main body of script. ##
2131
## -------------------- ##
2134
ac_cpp='$CPP $CPPFLAGS'
2135
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143
for ac_dir in config "$srcdir"/config; do
2144
if test -f "$ac_dir/install-sh"; then
2146
ac_install_sh="$ac_aux_dir/install-sh -c"
2148
elif test -f "$ac_dir/install.sh"; then
2150
ac_install_sh="$ac_aux_dir/install.sh -c"
2152
elif test -f "$ac_dir/shtool"; then
2154
ac_install_sh="$ac_aux_dir/shtool install -c"
2158
if test -z "$ac_aux_dir"; then
2159
as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2162
# These three variables are undocumented and unsupported,
2163
# and are intended to be withdrawn in a future Autoconf release.
2164
# They can cause serious problems if a builder's source tree is in a directory
2165
# whose full name contains unusual characters.
2166
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2167
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2168
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2171
am__api_version='1.14'
2173
# Find a good install program. We prefer a C program (faster),
2174
# so one script is as good as another. But avoid the broken or
2175
# incompatible versions:
2176
# SysV /etc/install, /usr/sbin/install
2177
# SunOS /usr/etc/install
2178
# IRIX /sbin/install
2180
# AmigaOS /C/install, which installs bootblocks on floppy discs
2181
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2182
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2183
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2184
# OS/2's system install, which has a completely different semantic
2185
# ./install, which can be erroneously created by make from ./install.sh.
2186
# Reject install programs that cannot install multiple files.
2187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2188
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2189
if test -z "$INSTALL"; then
2190
if ${ac_cv_path_install+:} false; then :
2191
$as_echo_n "(cached) " >&6
2193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197
test -z "$as_dir" && as_dir=.
2198
# Account for people who put trailing slashes in PATH elements.
2199
case $as_dir/ in #((
2200
./ | .// | /[cC]/* | \
2201
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2202
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2205
# OSF1 and SCO ODT 3.0 have their own names for install.
2206
# Don't use installbsd from OSF since it installs stuff as root
2208
for ac_prog in ginstall scoinst install; do
2209
for ac_exec_ext in '' $ac_executable_extensions; do
2210
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2211
if test $ac_prog = install &&
2212
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2213
# AIX install. It has an incompatible calling convention.
2215
elif test $ac_prog = install &&
2216
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2217
# program-specific install script used by HP pwplus--don't use.
2220
rm -rf conftest.one conftest.two conftest.dir
2221
echo one > conftest.one
2222
echo two > conftest.two
2224
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2225
test -s conftest.one && test -s conftest.two &&
2226
test -s conftest.dir/conftest.one &&
2227
test -s conftest.dir/conftest.two
2229
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2242
rm -rf conftest.one conftest.two conftest.dir
2245
if test "${ac_cv_path_install+set}" = set; then
2246
INSTALL=$ac_cv_path_install
2248
# As a last resort, use the slow shell script. Don't cache a
2249
# value for INSTALL within a source directory, because that will
2250
# break other packages using the cache if that directory is
2251
# removed, or if the value is a relative name.
2252
INSTALL=$ac_install_sh
2255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2256
$as_echo "$INSTALL" >&6; }
2258
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2259
# It thinks the first close brace ends the variable substitution.
2260
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2262
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2264
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2267
$as_echo_n "checking whether build environment is sane... " >&6; }
2268
# Reject unsafe characters in $srcdir or the absolute working directory
2269
# name. Accept space and tab only in the latter.
2273
*[\\\"\#\$\&\'\`$am_lf]*)
2274
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2277
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2278
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2281
# Do 'set' in a subshell so we don't clobber the current shell's
2282
# arguments. Must try -L first in case configure is actually a
2283
# symlink; some systems play weird games with the mod time of symlinks
2284
# (eg FreeBSD returns the mod time of the symlink's containing
2288
for am_try in 1 2; do
2289
echo "timestamp, slept: $am_has_slept" > conftest.file
2290
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2291
if test "$*" = "X"; then
2293
set X `ls -t "$srcdir/configure" conftest.file`
2295
if test "$*" != "X $srcdir/configure conftest.file" \
2296
&& test "$*" != "X conftest.file $srcdir/configure"; then
2298
# If neither matched, then we have a broken ls. This can happen
2299
# if, for instance, CONFIG_SHELL is bash and it inherits a
2300
# broken ls alias from the environment. This has actually
2301
# happened. Such a system could not be considered "sane".
2302
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2303
alias in your environment" "$LINENO" 5
2305
if test "$2" = conftest.file || test $am_try -eq 2; then
2312
test "$2" = conftest.file
2318
as_fn_error $? "newly created file is older than distributed files!
2319
Check your system clock" "$LINENO" 5
2321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2322
$as_echo "yes" >&6; }
2323
# If we didn't sleep, we still need to ensure time stamps of config.status and
2324
# generated files are strictly newer.
2326
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2333
test "$program_prefix" != NONE &&
2334
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2335
# Use a double $ so make ignores it.
2336
test "$program_suffix" != NONE &&
2337
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2338
# Double any \ or $.
2339
# By default was `s,x,x', remove it if useless.
2340
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2341
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2343
# expand $ac_aux_dir to an absolute path
2344
am_aux_dir=`cd $ac_aux_dir && pwd`
2346
if test x"${MISSING+set}" != xset; then
2349
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2351
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2354
# Use eval to expand $SHELL
2355
if eval "$MISSING --is-lightweight"; then
2356
am_missing_run="$MISSING "
2359
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2360
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2363
if test x"${install_sh}" != xset; then
2366
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2368
install_sh="\${SHELL} $am_aux_dir/install-sh"
2372
# Installed binaries are usually stripped using 'strip' when the user
2373
# run "make install-strip". However 'strip' might not be the right
2374
# tool to use in cross-compilation environments, therefore Automake
2375
# will honor the 'STRIP' environment variable to overrule this program.
2376
if test "$cross_compiling" != no; then
2377
if test -n "$ac_tool_prefix"; then
2378
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2379
set dummy ${ac_tool_prefix}strip; ac_word=$2
2380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2381
$as_echo_n "checking for $ac_word... " >&6; }
2382
if ${ac_cv_prog_STRIP+:} false; then :
2383
$as_echo_n "(cached) " >&6
2385
if test -n "$STRIP"; then
2386
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2388
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392
test -z "$as_dir" && as_dir=.
2393
for ac_exec_ext in '' $ac_executable_extensions; do
2394
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2395
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2396
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2405
STRIP=$ac_cv_prog_STRIP
2406
if test -n "$STRIP"; then
2407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2408
$as_echo "$STRIP" >&6; }
2410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2411
$as_echo "no" >&6; }
2416
if test -z "$ac_cv_prog_STRIP"; then
2418
# Extract the first word of "strip", so it can be a program name with args.
2419
set dummy strip; ac_word=$2
2420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2421
$as_echo_n "checking for $ac_word... " >&6; }
2422
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2423
$as_echo_n "(cached) " >&6
2425
if test -n "$ac_ct_STRIP"; then
2426
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2428
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432
test -z "$as_dir" && as_dir=.
2433
for ac_exec_ext in '' $ac_executable_extensions; do
2434
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435
ac_cv_prog_ac_ct_STRIP="strip"
2436
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2445
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2446
if test -n "$ac_ct_STRIP"; then
2447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2448
$as_echo "$ac_ct_STRIP" >&6; }
2450
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2451
$as_echo "no" >&6; }
2454
if test "x$ac_ct_STRIP" = x; then
2457
case $cross_compiling:$ac_tool_warned in
2459
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2460
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2461
ac_tool_warned=yes ;;
2466
STRIP="$ac_cv_prog_STRIP"
2470
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2473
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2474
if test -z "$MKDIR_P"; then
2475
if ${ac_cv_path_mkdir+:} false; then :
2476
$as_echo_n "(cached) " >&6
2478
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2482
test -z "$as_dir" && as_dir=.
2483
for ac_prog in mkdir gmkdir; do
2484
for ac_exec_ext in '' $ac_executable_extensions; do
2485
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2486
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2487
'mkdir (GNU coreutils) '* | \
2488
'mkdir (coreutils) '* | \
2489
'mkdir (fileutils) '4.1*)
2490
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2500
test -d ./--version && rmdir ./--version
2501
if test "${ac_cv_path_mkdir+set}" = set; then
2502
MKDIR_P="$ac_cv_path_mkdir -p"
2504
# As a last resort, use the slow shell script. Don't cache a
2505
# value for MKDIR_P within a source directory, because that will
2506
# break other packages using the cache if that directory is
2507
# removed, or if the value is a relative name.
2508
MKDIR_P="$ac_install_sh -d"
2511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2512
$as_echo "$MKDIR_P" >&6; }
2514
for ac_prog in gawk mawk nawk awk
2516
# Extract the first word of "$ac_prog", so it can be a program name with args.
2517
set dummy $ac_prog; ac_word=$2
2518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519
$as_echo_n "checking for $ac_word... " >&6; }
2520
if ${ac_cv_prog_AWK+:} false; then :
2521
$as_echo_n "(cached) " >&6
2523
if test -n "$AWK"; then
2524
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530
test -z "$as_dir" && as_dir=.
2531
for ac_exec_ext in '' $ac_executable_extensions; do
2532
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533
ac_cv_prog_AWK="$ac_prog"
2534
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544
if test -n "$AWK"; then
2545
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2546
$as_echo "$AWK" >&6; }
2548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549
$as_echo "no" >&6; }
2553
test -n "$AWK" && break
2556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2557
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2559
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2560
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2561
$as_echo_n "(cached) " >&6
2563
cat >conftest.make <<\_ACEOF
2566
@echo '@@@%%%=$(MAKE)=@@@%%%'
2568
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2569
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2571
eval ac_cv_prog_make_${ac_make}_set=yes;;
2573
eval ac_cv_prog_make_${ac_make}_set=no;;
2577
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2579
$as_echo "yes" >&6; }
2582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583
$as_echo "no" >&6; }
2584
SET_MAKE="MAKE=${MAKE-make}"
2587
rm -rf .tst 2>/dev/null
2588
mkdir .tst 2>/dev/null
2589
if test -d .tst; then
2594
rmdir .tst 2>/dev/null
2596
# Check whether --enable-silent-rules was given.
2597
if test "${enable_silent_rules+set}" = set; then :
2598
enableval=$enable_silent_rules;
2601
case $enable_silent_rules in # (((
2602
yes) AM_DEFAULT_VERBOSITY=0;;
2603
no) AM_DEFAULT_VERBOSITY=1;;
2604
*) AM_DEFAULT_VERBOSITY=1;;
2606
am_make=${MAKE-make}
2607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2608
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2609
if ${am_cv_make_support_nested_variables+:} false; then :
2610
$as_echo_n "(cached) " >&6
2612
if $as_echo 'TRUE=$(BAR$(V))
2618
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2619
am_cv_make_support_nested_variables=yes
2621
am_cv_make_support_nested_variables=no
2624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2625
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2626
if test $am_cv_make_support_nested_variables = yes; then
2628
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2630
AM_V=$AM_DEFAULT_VERBOSITY
2631
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2635
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2636
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2637
# is not polluted with repeated "-I."
2638
am__isrc=' -I$(srcdir)'
2639
# test to see if srcdir already configured
2640
if test -f $srcdir/config.status; then
2641
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2645
# test whether we have cygpath
2646
if test -z "$CYGPATH_W"; then
2647
if (cygpath --version) >/dev/null 2>/dev/null; then
2648
CYGPATH_W='cygpath -w'
2655
# Define the identity of the package.
2660
cat >>confdefs.h <<_ACEOF
2661
#define PACKAGE "$PACKAGE"
2665
cat >>confdefs.h <<_ACEOF
2666
#define VERSION "$VERSION"
2669
# Some tools Automake needs.
2671
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2674
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2677
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2680
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2683
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2685
# For better backward compatibility. To be removed once Automake 1.9.x
2686
# dies out for good. For more background, see:
2687
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2688
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2689
mkdir_p='$(MKDIR_P)'
2691
# We need awk for the "check" target. The system "awk" is bad on
2693
# Always define AMTAR for backward compatibility. Yes, it's still used
2694
# in the wild :-( We should find a proper way to deprecate it ...
2698
# We'll loop over all known methods to create a tar archive until one works.
2699
_am_tools='gnutar pax cpio none'
2701
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2708
# POSIX will say in a future version that running "rm -f" with no argument
2709
# is OK; and we want to be able to make that assumption in our Makefile
2710
# recipes. So use an aggressive probe to check that the usage we want is
2711
# actually supported "in the wild" to an acceptable degree.
2712
# See automake bug#10828.
2713
# To make any issue more visible, cause the running configure to be aborted
2714
# by default if the 'rm' program in use doesn't match our expectations; the
2715
# user can still override this though.
2716
if rm -f && rm -fr && rm -rf; then : OK; else
2720
Your 'rm' program seems unable to run without file operands specified
2721
on the command line, even when the '-f' option is present. This is contrary
2722
to the behaviour of most rm programs out there, and not conforming with
2723
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2725
Please tell bug-automake@gnu.org about your system, including the value
2726
of your $PATH and any error possibly output before this message. This
2727
can help us improve future automake versions.
2730
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2731
echo 'Configuration will proceed anyway, since you have set the' >&2
2732
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2736
Aborting the configuration process, to ensure you take notice of the issue.
2738
You can download and install GNU coreutils to get an 'rm' implementation
2739
that behaves properly: <http://www.gnu.org/software/coreutils/>.
2741
If you want to complete the configuration process using your problematic
2742
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2743
to "yes", and re-run configure.
2746
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2749
# Check whether --enable-silent-rules was given.
2750
if test "${enable_silent_rules+set}" = set; then :
2751
enableval=$enable_silent_rules;
2754
case $enable_silent_rules in # (((
2755
yes) AM_DEFAULT_VERBOSITY=0;;
2756
no) AM_DEFAULT_VERBOSITY=1;;
2757
*) AM_DEFAULT_VERBOSITY=0;;
2759
am_make=${MAKE-make}
2760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2761
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2762
if ${am_cv_make_support_nested_variables+:} false; then :
2763
$as_echo_n "(cached) " >&6
2765
if $as_echo 'TRUE=$(BAR$(V))
2771
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2772
am_cv_make_support_nested_variables=yes
2774
am_cv_make_support_nested_variables=no
2777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2778
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2779
if test $am_cv_make_support_nested_variables = yes; then
2781
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2783
AM_V=$AM_DEFAULT_VERBOSITY
2784
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2788
DEPDIR="${am__leading_dot}deps"
2790
ac_config_commands="$ac_config_commands depfiles"
2793
am_make=${MAKE-make}
2794
cat > confinc << 'END'
2796
@echo this is the am__doit target
2799
# If we don't find an include directive, just comment out the code.
2800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2801
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2805
# First try GNU make style include.
2806
echo "include confinc" > confmf
2807
# Ignore all kinds of additional output from 'make'.
2808
case `$am_make -s -f confmf 2> /dev/null` in #(
2809
*the\ am__doit\ target*)
2815
# Now try BSD make style include.
2816
if test "$am__include" = "#"; then
2817
echo '.include "confinc"' > confmf
2818
case `$am_make -s -f confmf 2> /dev/null` in #(
2819
*the\ am__doit\ target*)
2820
am__include=.include
2828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2829
$as_echo "$_am_result" >&6; }
2830
rm -f confinc confmf
2832
# Check whether --enable-dependency-tracking was given.
2833
if test "${enable_dependency_tracking+set}" = set; then :
2834
enableval=$enable_dependency_tracking;
2837
if test "x$enable_dependency_tracking" != xno; then
2838
am_depcomp="$ac_aux_dir/depcomp"
2842
if test "x$enable_dependency_tracking" != xno; then
2852
ac_cpp='$CPP $CPPFLAGS'
2853
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2856
if test -n "$ac_tool_prefix"; then
2857
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2858
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860
$as_echo_n "checking for $ac_word... " >&6; }
2861
if ${ac_cv_prog_CC+:} false; then :
2862
$as_echo_n "(cached) " >&6
2864
if test -n "$CC"; then
2865
ac_cv_prog_CC="$CC" # Let the user override the test.
2867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871
test -z "$as_dir" && as_dir=.
2872
for ac_exec_ext in '' $ac_executable_extensions; do
2873
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2875
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885
if test -n "$CC"; then
2886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2887
$as_echo "$CC" >&6; }
2889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890
$as_echo "no" >&6; }
2895
if test -z "$ac_cv_prog_CC"; then
2897
# Extract the first word of "gcc", so it can be a program name with args.
2898
set dummy gcc; ac_word=$2
2899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900
$as_echo_n "checking for $ac_word... " >&6; }
2901
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2902
$as_echo_n "(cached) " >&6
2904
if test -n "$ac_ct_CC"; then
2905
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2907
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911
test -z "$as_dir" && as_dir=.
2912
for ac_exec_ext in '' $ac_executable_extensions; do
2913
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914
ac_cv_prog_ac_ct_CC="gcc"
2915
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2925
if test -n "$ac_ct_CC"; then
2926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2927
$as_echo "$ac_ct_CC" >&6; }
2929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930
$as_echo "no" >&6; }
2933
if test "x$ac_ct_CC" = x; then
2936
case $cross_compiling:$ac_tool_warned in
2938
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2939
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940
ac_tool_warned=yes ;;
2948
if test -z "$CC"; then
2949
if test -n "$ac_tool_prefix"; then
2950
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2951
set dummy ${ac_tool_prefix}cc; ac_word=$2
2952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953
$as_echo_n "checking for $ac_word... " >&6; }
2954
if ${ac_cv_prog_CC+:} false; then :
2955
$as_echo_n "(cached) " >&6
2957
if test -n "$CC"; then
2958
ac_cv_prog_CC="$CC" # Let the user override the test.
2960
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964
test -z "$as_dir" && as_dir=.
2965
for ac_exec_ext in '' $ac_executable_extensions; do
2966
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967
ac_cv_prog_CC="${ac_tool_prefix}cc"
2968
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978
if test -n "$CC"; then
2979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2980
$as_echo "$CC" >&6; }
2982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983
$as_echo "no" >&6; }
2989
if test -z "$CC"; then
2990
# Extract the first word of "cc", so it can be a program name with args.
2991
set dummy cc; ac_word=$2
2992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993
$as_echo_n "checking for $ac_word... " >&6; }
2994
if ${ac_cv_prog_CC+:} false; then :
2995
$as_echo_n "(cached) " >&6
2997
if test -n "$CC"; then
2998
ac_cv_prog_CC="$CC" # Let the user override the test.
3001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005
test -z "$as_dir" && as_dir=.
3006
for ac_exec_ext in '' $ac_executable_extensions; do
3007
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3009
ac_prog_rejected=yes
3013
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020
if test $ac_prog_rejected = yes; then
3021
# We found a bogon in the path, so make sure we never use it.
3022
set dummy $ac_cv_prog_CC
3024
if test $# != 0; then
3025
# We chose a different compiler from the bogus one.
3026
# However, it has the same basename, so the bogon will be chosen
3027
# first if we set CC to just the basename; use the full file name.
3029
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3035
if test -n "$CC"; then
3036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3037
$as_echo "$CC" >&6; }
3039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040
$as_echo "no" >&6; }
3045
if test -z "$CC"; then
3046
if test -n "$ac_tool_prefix"; then
3047
for ac_prog in cl.exe
3049
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3050
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052
$as_echo_n "checking for $ac_word... " >&6; }
3053
if ${ac_cv_prog_CC+:} false; then :
3054
$as_echo_n "(cached) " >&6
3056
if test -n "$CC"; then
3057
ac_cv_prog_CC="$CC" # Let the user override the test.
3059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063
test -z "$as_dir" && as_dir=.
3064
for ac_exec_ext in '' $ac_executable_extensions; do
3065
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3066
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3067
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077
if test -n "$CC"; then
3078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079
$as_echo "$CC" >&6; }
3081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082
$as_echo "no" >&6; }
3086
test -n "$CC" && break
3089
if test -z "$CC"; then
3091
for ac_prog in cl.exe
3093
# Extract the first word of "$ac_prog", so it can be a program name with args.
3094
set dummy $ac_prog; ac_word=$2
3095
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096
$as_echo_n "checking for $ac_word... " >&6; }
3097
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3098
$as_echo_n "(cached) " >&6
3100
if test -n "$ac_ct_CC"; then
3101
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3103
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107
test -z "$as_dir" && as_dir=.
3108
for ac_exec_ext in '' $ac_executable_extensions; do
3109
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110
ac_cv_prog_ac_ct_CC="$ac_prog"
3111
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3121
if test -n "$ac_ct_CC"; then
3122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3123
$as_echo "$ac_ct_CC" >&6; }
3125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126
$as_echo "no" >&6; }
3130
test -n "$ac_ct_CC" && break
3133
if test "x$ac_ct_CC" = x; then
3136
case $cross_compiling:$ac_tool_warned in
3138
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3139
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3140
ac_tool_warned=yes ;;
3149
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151
as_fn_error $? "no acceptable C compiler found in \$PATH
3152
See \`config.log' for more details" "$LINENO" 5; }
3154
# Provide some information about the compiler.
3155
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3158
for ac_option in --version -v -V -qversion; do
3159
{ { ac_try="$ac_compiler $ac_option >&5"
3161
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162
*) ac_try_echo=$ac_try;;
3164
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165
$as_echo "$ac_try_echo"; } >&5
3166
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3168
if test -s conftest.err; then
3170
... rest of stderr output deleted ...
3171
10q' conftest.err >conftest.er1
3172
cat conftest.er1 >&5
3174
rm -f conftest.er1 conftest.err
3175
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176
test $ac_status = 0; }
3179
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180
/* end confdefs.h. */
3190
ac_clean_files_save=$ac_clean_files
3191
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3192
# Try to create an executable without -o first, disregard a.out.
3193
# It will help us diagnose broken compilers, and finding out an intuition
3195
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3196
$as_echo_n "checking whether the C compiler works... " >&6; }
3197
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3199
# The possible output files:
3200
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3203
for ac_file in $ac_files
3206
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3207
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3212
if { { ac_try="$ac_link_default"
3214
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215
*) ac_try_echo=$ac_try;;
3217
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218
$as_echo "$ac_try_echo"; } >&5
3219
(eval "$ac_link_default") 2>&5
3221
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222
test $ac_status = 0; }; then :
3223
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3224
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3225
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3226
# so that the user can short-circuit this test for compilers unknown to
3228
for ac_file in $ac_files ''
3230
test -f "$ac_file" || continue
3232
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3235
# We found the default executable, but exeext='' is most
3239
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3241
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3243
# We set ac_cv_exeext here because the later test for it is not
3244
# safe: cross compilers may not add the suffix if given an `-o'
3245
# argument, so we may need to know it at that point already.
3246
# Even if this section looks crufty: it has the advantage of
3253
test "$ac_cv_exeext" = no && ac_cv_exeext=
3258
if test -z "$ac_file"; then :
3259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260
$as_echo "no" >&6; }
3261
$as_echo "$as_me: failed program was:" >&5
3262
sed 's/^/| /' conftest.$ac_ext >&5
3264
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266
as_fn_error 77 "C compiler cannot create executables
3267
See \`config.log' for more details" "$LINENO" 5; }
3269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270
$as_echo "yes" >&6; }
3272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3273
$as_echo_n "checking for C compiler default output file name... " >&6; }
3274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3275
$as_echo "$ac_file" >&6; }
3276
ac_exeext=$ac_cv_exeext
3278
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3279
ac_clean_files=$ac_clean_files_save
3280
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3281
$as_echo_n "checking for suffix of executables... " >&6; }
3282
if { { ac_try="$ac_link"
3284
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285
*) ac_try_echo=$ac_try;;
3287
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288
$as_echo "$ac_try_echo"; } >&5
3289
(eval "$ac_link") 2>&5
3291
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292
test $ac_status = 0; }; then :
3293
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3294
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3295
# work properly (i.e., refer to `conftest.exe'), while it won't with
3297
for ac_file in conftest.exe conftest conftest.*; do
3298
test -f "$ac_file" || continue
3300
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3301
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3307
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3310
See \`config.log' for more details" "$LINENO" 5; }
3312
rm -f conftest conftest$ac_cv_exeext
3313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3314
$as_echo "$ac_cv_exeext" >&6; }
3316
rm -f conftest.$ac_ext
3317
EXEEXT=$ac_cv_exeext
3319
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320
/* end confdefs.h. */
3325
FILE *f = fopen ("conftest.out", "w");
3326
return ferror (f) || fclose (f) != 0;
3332
ac_clean_files="$ac_clean_files conftest.out"
3333
# Check that the compiler produces executables we can run. If not, either
3334
# the compiler is broken, or we cross compile.
3335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3336
$as_echo_n "checking whether we are cross compiling... " >&6; }
3337
if test "$cross_compiling" != yes; then
3338
{ { ac_try="$ac_link"
3340
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341
*) ac_try_echo=$ac_try;;
3343
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344
$as_echo "$ac_try_echo"; } >&5
3345
(eval "$ac_link") 2>&5
3347
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348
test $ac_status = 0; }
3349
if { ac_try='./conftest$ac_cv_exeext'
3350
{ { case "(($ac_try" in
3351
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352
*) ac_try_echo=$ac_try;;
3354
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355
$as_echo "$ac_try_echo"; } >&5
3356
(eval "$ac_try") 2>&5
3358
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359
test $ac_status = 0; }; }; then
3362
if test "$cross_compiling" = maybe; then
3365
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367
as_fn_error $? "cannot run C compiled programs.
3368
If you meant to cross compile, use \`--host'.
3369
See \`config.log' for more details" "$LINENO" 5; }
3373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3374
$as_echo "$cross_compiling" >&6; }
3376
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3377
ac_clean_files=$ac_clean_files_save
3378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3379
$as_echo_n "checking for suffix of object files... " >&6; }
3380
if ${ac_cv_objext+:} false; then :
3381
$as_echo_n "(cached) " >&6
3383
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384
/* end confdefs.h. */
3394
rm -f conftest.o conftest.obj
3395
if { { ac_try="$ac_compile"
3397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398
*) ac_try_echo=$ac_try;;
3400
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401
$as_echo "$ac_try_echo"; } >&5
3402
(eval "$ac_compile") 2>&5
3404
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405
test $ac_status = 0; }; then :
3406
for ac_file in conftest.o conftest.obj conftest.*; do
3407
test -f "$ac_file" || continue;
3409
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3410
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3415
$as_echo "$as_me: failed program was:" >&5
3416
sed 's/^/| /' conftest.$ac_ext >&5
3418
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420
as_fn_error $? "cannot compute suffix of object files: cannot compile
3421
See \`config.log' for more details" "$LINENO" 5; }
3423
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3426
$as_echo "$ac_cv_objext" >&6; }
3427
OBJEXT=$ac_cv_objext
3429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3430
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3431
if ${ac_cv_c_compiler_gnu+:} false; then :
3432
$as_echo_n "(cached) " >&6
3434
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435
/* end confdefs.h. */
3448
if ac_fn_c_try_compile "$LINENO"; then :
3453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3458
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3459
if test $ac_compiler_gnu = yes; then
3464
ac_test_CFLAGS=${CFLAGS+set}
3465
ac_save_CFLAGS=$CFLAGS
3466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3467
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3468
if ${ac_cv_prog_cc_g+:} false; then :
3469
$as_echo_n "(cached) " >&6
3471
ac_save_c_werror_flag=$ac_c_werror_flag
3472
ac_c_werror_flag=yes
3475
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476
/* end confdefs.h. */
3486
if ac_fn_c_try_compile "$LINENO"; then :
3490
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491
/* end confdefs.h. */
3501
if ac_fn_c_try_compile "$LINENO"; then :
3504
ac_c_werror_flag=$ac_save_c_werror_flag
3506
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507
/* end confdefs.h. */
3517
if ac_fn_c_try_compile "$LINENO"; then :
3520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525
ac_c_werror_flag=$ac_save_c_werror_flag
3527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3528
$as_echo "$ac_cv_prog_cc_g" >&6; }
3529
if test "$ac_test_CFLAGS" = set; then
3530
CFLAGS=$ac_save_CFLAGS
3531
elif test $ac_cv_prog_cc_g = yes; then
3532
if test "$GCC" = yes; then
3538
if test "$GCC" = yes; then
3544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3545
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3546
if ${ac_cv_prog_cc_c89+:} false; then :
3547
$as_echo_n "(cached) " >&6
3549
ac_cv_prog_cc_c89=no
3551
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552
/* end confdefs.h. */
3556
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3557
struct buf { int x; };
3558
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3559
static char *e (p, i)
3565
static char *f (char * (*g) (char **, int), char **p, ...)
3570
s = g (p, va_arg (v,int));
3575
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3576
function prototypes and stuff, but not '\xHH' hex character constants.
3577
These don't provoke an error unfortunately, instead are silently treated
3578
as 'x'. The following induces an error, until -std is added to get
3579
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3580
array size at least. It's necessary to write '\x00'==0 to get something
3581
that's true only with -std. */
3582
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3584
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3585
inside strings and character constants. */
3587
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3589
int test (int i, double x);
3590
struct s1 {int (*f) (int a);};
3591
struct s2 {int (*f) (double a);};
3592
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3598
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3603
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3604
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3606
CC="$ac_save_CC $ac_arg"
3607
if ac_fn_c_try_compile "$LINENO"; then :
3608
ac_cv_prog_cc_c89=$ac_arg
3610
rm -f core conftest.err conftest.$ac_objext
3611
test "x$ac_cv_prog_cc_c89" != "xno" && break
3613
rm -f conftest.$ac_ext
3618
case "x$ac_cv_prog_cc_c89" in
3620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3621
$as_echo "none needed" >&6; } ;;
3623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3624
$as_echo "unsupported" >&6; } ;;
3626
CC="$CC $ac_cv_prog_cc_c89"
3627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3628
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3630
if test "x$ac_cv_prog_cc_c89" != xno; then :
3635
ac_cpp='$CPP $CPPFLAGS'
3636
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641
ac_cpp='$CPP $CPPFLAGS'
3642
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3646
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3647
if ${am_cv_prog_cc_c_o+:} false; then :
3648
$as_echo_n "(cached) " >&6
3650
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651
/* end confdefs.h. */
3661
# Make sure it works both with $CC and with simple cc.
3662
# Following AC_PROG_CC_C_O, we do the test twice because some
3663
# compilers refuse to overwrite an existing .o file with -o,
3664
# though they will create one.
3665
am_cv_prog_cc_c_o=yes
3667
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3668
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671
(exit $ac_status); } \
3672
&& test -f conftest2.$ac_objext; then
3675
am_cv_prog_cc_c_o=no
3679
rm -f core conftest*
3682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3683
$as_echo "$am_cv_prog_cc_c_o" >&6; }
3684
if test "$am_cv_prog_cc_c_o" != yes; then
3685
# Losing compiler, so override with the script.
3686
# FIXME: It is wrong to rewrite CC.
3687
# But if we don't then we get into trouble of one sort or another.
3688
# A longer-term fix would be to have automake use am__CC in this case,
3689
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3690
CC="$am_aux_dir/compile $CC"
3693
ac_cpp='$CPP $CPPFLAGS'
3694
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699
depcc="$CC" am_compiler_list=
3701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3702
$as_echo_n "checking dependency style of $depcc... " >&6; }
3703
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3704
$as_echo_n "(cached) " >&6
3706
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3707
# We make a subdir and do the tests there. Otherwise we can end up
3708
# making bogus files that we don't know about and never remove. For
3709
# instance it was reported that on HP-UX the gcc test will end up
3710
# making a dummy file named 'D' -- because '-MD' means "put the output
3714
# Copy depcomp to subdir because otherwise we won't find it if we're
3715
# using a relative directory.
3716
cp "$am_depcomp" conftest.dir
3718
# We will build objects and dependencies in a subdirectory because
3719
# it helps to detect inapplicable dependency modes. For instance
3720
# both Tru64's cc and ICC support -MD to output dependencies as a
3721
# side effect of compilation, but ICC will put the dependencies in
3722
# the current directory while Tru64 will put them in the object
3726
am_cv_CC_dependencies_compiler_type=none
3727
if test "$am_compiler_list" = ""; then
3728
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3731
case " $depcc " in #(
3732
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3735
for depmode in $am_compiler_list; do
3736
# Setup a source with many dependencies, because some compilers
3737
# like to wrap large dependency lists on column 80 (with \), and
3738
# we should not choose a depcomp mode which is confused by this.
3740
# We need to recreate these files for each test, as the compiler may
3741
# overwrite some of them when testing with obscure command lines.
3742
# This happens at least with the AIX C compiler.
3744
for i in 1 2 3 4 5 6; do
3745
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3746
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3747
# Solaris 10 /bin/sh.
3748
echo '/* dummy */' > sub/conftst$i.h
3750
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3752
# We check with '-c' and '-o' for the sake of the "dashmstdout"
3753
# mode. It turns out that the SunPro C++ compiler does not properly
3754
# handle '-M -o', and we need to detect this. Also, some Intel
3755
# versions had trouble with output in subdirs.
3756
am__obj=sub/conftest.${OBJEXT-o}
3757
am__minus_obj="-o $am__obj"
3760
# This depmode causes a compiler race in universal mode.
3761
test "$am__universal" = false || continue
3764
# After this tag, mechanisms are not by side-effect, so they'll
3765
# only be used when explicitly requested.
3766
if test "x$enable_dependency_tracking" = xyes; then
3772
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3773
# This compiler won't grok '-c -o', but also, the minuso test has
3774
# not run yet. These depmodes are late enough in the game, and
3775
# so weak that their functioning should not be impacted.
3776
am__obj=conftest.${OBJEXT-o}
3781
if depmode=$depmode \
3782
source=sub/conftest.c object=$am__obj \
3783
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3784
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3785
>/dev/null 2>conftest.err &&
3786
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3787
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3788
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3789
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3790
# icc doesn't choke on unknown options, it will just issue warnings
3791
# or remarks (even with -Werror). So we grep stderr for any message
3792
# that says an option was ignored or not supported.
3793
# When given -MP, icc 7.0 and 7.1 complain thusly:
3794
# icc: Command line warning: ignoring option '-M'; no argument required
3795
# The diagnosis changed in icc 8.0:
3796
# icc: Command line remark: option '-MP' not supported
3797
if (grep 'ignoring option' conftest.err ||
3798
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3799
am_cv_CC_dependencies_compiler_type=$depmode
3808
am_cv_CC_dependencies_compiler_type=none
3812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3813
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3814
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3817
test "x$enable_dependency_tracking" != xno \
3818
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3820
am__fastdepCC_FALSE='#'
3822
am__fastdepCC_TRUE='#'
3823
am__fastdepCC_FALSE=
3828
if test -n "$ac_tool_prefix"; then
3829
for ac_prog in ar lib "link -lib"
3831
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3832
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834
$as_echo_n "checking for $ac_word... " >&6; }
3835
if ${ac_cv_prog_AR+:} false; then :
3836
$as_echo_n "(cached) " >&6
3838
if test -n "$AR"; then
3839
ac_cv_prog_AR="$AR" # Let the user override the test.
3841
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845
test -z "$as_dir" && as_dir=.
3846
for ac_exec_ext in '' $ac_executable_extensions; do
3847
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3849
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859
if test -n "$AR"; then
3860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3861
$as_echo "$AR" >&6; }
3863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864
$as_echo "no" >&6; }
3868
test -n "$AR" && break
3871
if test -z "$AR"; then
3873
for ac_prog in ar lib "link -lib"
3875
# Extract the first word of "$ac_prog", so it can be a program name with args.
3876
set dummy $ac_prog; ac_word=$2
3877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878
$as_echo_n "checking for $ac_word... " >&6; }
3879
if ${ac_cv_prog_ac_ct_AR+:} false; then :
3880
$as_echo_n "(cached) " >&6
3882
if test -n "$ac_ct_AR"; then
3883
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889
test -z "$as_dir" && as_dir=.
3890
for ac_exec_ext in '' $ac_executable_extensions; do
3891
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892
ac_cv_prog_ac_ct_AR="$ac_prog"
3893
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3903
if test -n "$ac_ct_AR"; then
3904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3905
$as_echo "$ac_ct_AR" >&6; }
3907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908
$as_echo "no" >&6; }
3912
test -n "$ac_ct_AR" && break
3915
if test "x$ac_ct_AR" = x; then
3918
case $cross_compiling:$ac_tool_warned in
3920
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3921
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3922
ac_tool_warned=yes ;;
3930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3931
$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3932
if ${am_cv_ar_interface+:} false; then :
3933
$as_echo_n "(cached) " >&6
3936
ac_cpp='$CPP $CPPFLAGS'
3937
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941
am_cv_ar_interface=ar
3942
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943
/* end confdefs.h. */
3944
int some_variable = 0;
3946
if ac_fn_c_try_compile "$LINENO"; then :
3947
am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3948
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3949
(eval $am_ar_try) 2>&5
3951
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952
test $ac_status = 0; }
3953
if test "$ac_status" -eq 0; then
3954
am_cv_ar_interface=ar
3956
am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3957
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3958
(eval $am_ar_try) 2>&5
3960
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961
test $ac_status = 0; }
3962
if test "$ac_status" -eq 0; then
3963
am_cv_ar_interface=lib
3965
am_cv_ar_interface=unknown
3968
rm -f conftest.lib libconftest.a
3971
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973
ac_cpp='$CPP $CPPFLAGS'
3974
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3980
$as_echo "$am_cv_ar_interface" >&6; }
3982
case $am_cv_ar_interface in
3986
# Microsoft lib, so override with the ar-lib wrapper script.
3987
# FIXME: It is wrong to rewrite AR.
3988
# But if we don't then we get into trouble of one sort or another.
3989
# A longer-term fix would be to have automake use am__AR in this case,
3990
# and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3992
AR="$am_aux_dir/ar-lib $AR"
3995
as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4000
ac_cpp='$CPP $CPPFLAGS'
4001
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004
if test -n "$ac_tool_prefix"; then
4005
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4006
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008
$as_echo_n "checking for $ac_word... " >&6; }
4009
if ${ac_cv_prog_CC+:} false; then :
4010
$as_echo_n "(cached) " >&6
4012
if test -n "$CC"; then
4013
ac_cv_prog_CC="$CC" # Let the user override the test.
4015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019
test -z "$as_dir" && as_dir=.
4020
for ac_exec_ext in '' $ac_executable_extensions; do
4021
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4023
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033
if test -n "$CC"; then
4034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4035
$as_echo "$CC" >&6; }
4037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038
$as_echo "no" >&6; }
4043
if test -z "$ac_cv_prog_CC"; then
4045
# Extract the first word of "gcc", so it can be a program name with args.
4046
set dummy gcc; ac_word=$2
4047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048
$as_echo_n "checking for $ac_word... " >&6; }
4049
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4050
$as_echo_n "(cached) " >&6
4052
if test -n "$ac_ct_CC"; then
4053
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059
test -z "$as_dir" && as_dir=.
4060
for ac_exec_ext in '' $ac_executable_extensions; do
4061
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062
ac_cv_prog_ac_ct_CC="gcc"
4063
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4073
if test -n "$ac_ct_CC"; then
4074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4075
$as_echo "$ac_ct_CC" >&6; }
4077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078
$as_echo "no" >&6; }
4081
if test "x$ac_ct_CC" = x; then
4084
case $cross_compiling:$ac_tool_warned in
4086
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4087
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4088
ac_tool_warned=yes ;;
4096
if test -z "$CC"; then
4097
if test -n "$ac_tool_prefix"; then
4098
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4099
set dummy ${ac_tool_prefix}cc; ac_word=$2
4100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101
$as_echo_n "checking for $ac_word... " >&6; }
4102
if ${ac_cv_prog_CC+:} false; then :
4103
$as_echo_n "(cached) " >&6
4105
if test -n "$CC"; then
4106
ac_cv_prog_CC="$CC" # Let the user override the test.
4108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112
test -z "$as_dir" && as_dir=.
4113
for ac_exec_ext in '' $ac_executable_extensions; do
4114
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115
ac_cv_prog_CC="${ac_tool_prefix}cc"
4116
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126
if test -n "$CC"; then
4127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4128
$as_echo "$CC" >&6; }
4130
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131
$as_echo "no" >&6; }
4137
if test -z "$CC"; then
4138
# Extract the first word of "cc", so it can be a program name with args.
4139
set dummy cc; ac_word=$2
4140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141
$as_echo_n "checking for $ac_word... " >&6; }
4142
if ${ac_cv_prog_CC+:} false; then :
4143
$as_echo_n "(cached) " >&6
4145
if test -n "$CC"; then
4146
ac_cv_prog_CC="$CC" # Let the user override the test.
4149
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153
test -z "$as_dir" && as_dir=.
4154
for ac_exec_ext in '' $ac_executable_extensions; do
4155
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4157
ac_prog_rejected=yes
4161
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168
if test $ac_prog_rejected = yes; then
4169
# We found a bogon in the path, so make sure we never use it.
4170
set dummy $ac_cv_prog_CC
4172
if test $# != 0; then
4173
# We chose a different compiler from the bogus one.
4174
# However, it has the same basename, so the bogon will be chosen
4175
# first if we set CC to just the basename; use the full file name.
4177
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4183
if test -n "$CC"; then
4184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4185
$as_echo "$CC" >&6; }
4187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188
$as_echo "no" >&6; }
4193
if test -z "$CC"; then
4194
if test -n "$ac_tool_prefix"; then
4195
for ac_prog in cl.exe
4197
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4198
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200
$as_echo_n "checking for $ac_word... " >&6; }
4201
if ${ac_cv_prog_CC+:} false; then :
4202
$as_echo_n "(cached) " >&6
4204
if test -n "$CC"; then
4205
ac_cv_prog_CC="$CC" # Let the user override the test.
4207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211
test -z "$as_dir" && as_dir=.
4212
for ac_exec_ext in '' $ac_executable_extensions; do
4213
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4215
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4225
if test -n "$CC"; then
4226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4227
$as_echo "$CC" >&6; }
4229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230
$as_echo "no" >&6; }
4234
test -n "$CC" && break
4237
if test -z "$CC"; then
4239
for ac_prog in cl.exe
4241
# Extract the first word of "$ac_prog", so it can be a program name with args.
4242
set dummy $ac_prog; ac_word=$2
4243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244
$as_echo_n "checking for $ac_word... " >&6; }
4245
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4246
$as_echo_n "(cached) " >&6
4248
if test -n "$ac_ct_CC"; then
4249
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255
test -z "$as_dir" && as_dir=.
4256
for ac_exec_ext in '' $ac_executable_extensions; do
4257
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258
ac_cv_prog_ac_ct_CC="$ac_prog"
4259
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4269
if test -n "$ac_ct_CC"; then
4270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4271
$as_echo "$ac_ct_CC" >&6; }
4273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274
$as_echo "no" >&6; }
4278
test -n "$ac_ct_CC" && break
4281
if test "x$ac_ct_CC" = x; then
4284
case $cross_compiling:$ac_tool_warned in
4286
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4287
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4288
ac_tool_warned=yes ;;
4297
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4298
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4299
as_fn_error $? "no acceptable C compiler found in \$PATH
4300
See \`config.log' for more details" "$LINENO" 5; }
4302
# Provide some information about the compiler.
4303
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4306
for ac_option in --version -v -V -qversion; do
4307
{ { ac_try="$ac_compiler $ac_option >&5"
4309
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310
*) ac_try_echo=$ac_try;;
4312
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4313
$as_echo "$ac_try_echo"; } >&5
4314
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4316
if test -s conftest.err; then
4318
... rest of stderr output deleted ...
4319
10q' conftest.err >conftest.er1
4320
cat conftest.er1 >&5
4322
rm -f conftest.er1 conftest.err
4323
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4324
test $ac_status = 0; }
4327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4328
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4329
if ${ac_cv_c_compiler_gnu+:} false; then :
4330
$as_echo_n "(cached) " >&6
4332
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333
/* end confdefs.h. */
4346
if ac_fn_c_try_compile "$LINENO"; then :
4351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4356
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4357
if test $ac_compiler_gnu = yes; then
4362
ac_test_CFLAGS=${CFLAGS+set}
4363
ac_save_CFLAGS=$CFLAGS
4364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4365
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4366
if ${ac_cv_prog_cc_g+:} false; then :
4367
$as_echo_n "(cached) " >&6
4369
ac_save_c_werror_flag=$ac_c_werror_flag
4370
ac_c_werror_flag=yes
4373
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374
/* end confdefs.h. */
4384
if ac_fn_c_try_compile "$LINENO"; then :
4388
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389
/* end confdefs.h. */
4399
if ac_fn_c_try_compile "$LINENO"; then :
4402
ac_c_werror_flag=$ac_save_c_werror_flag
4404
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405
/* end confdefs.h. */
4415
if ac_fn_c_try_compile "$LINENO"; then :
4418
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423
ac_c_werror_flag=$ac_save_c_werror_flag
4425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4426
$as_echo "$ac_cv_prog_cc_g" >&6; }
4427
if test "$ac_test_CFLAGS" = set; then
4428
CFLAGS=$ac_save_CFLAGS
4429
elif test $ac_cv_prog_cc_g = yes; then
4430
if test "$GCC" = yes; then
4436
if test "$GCC" = yes; then
4442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4443
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4444
if ${ac_cv_prog_cc_c89+:} false; then :
4445
$as_echo_n "(cached) " >&6
4447
ac_cv_prog_cc_c89=no
4449
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450
/* end confdefs.h. */
4454
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4455
struct buf { int x; };
4456
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4457
static char *e (p, i)
4463
static char *f (char * (*g) (char **, int), char **p, ...)
4468
s = g (p, va_arg (v,int));
4473
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4474
function prototypes and stuff, but not '\xHH' hex character constants.
4475
These don't provoke an error unfortunately, instead are silently treated
4476
as 'x'. The following induces an error, until -std is added to get
4477
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4478
array size at least. It's necessary to write '\x00'==0 to get something
4479
that's true only with -std. */
4480
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4482
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4483
inside strings and character constants. */
4485
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4487
int test (int i, double x);
4488
struct s1 {int (*f) (int a);};
4489
struct s2 {int (*f) (double a);};
4490
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4496
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4501
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4502
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4504
CC="$ac_save_CC $ac_arg"
4505
if ac_fn_c_try_compile "$LINENO"; then :
4506
ac_cv_prog_cc_c89=$ac_arg
4508
rm -f core conftest.err conftest.$ac_objext
4509
test "x$ac_cv_prog_cc_c89" != "xno" && break
4511
rm -f conftest.$ac_ext
4516
case "x$ac_cv_prog_cc_c89" in
4518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4519
$as_echo "none needed" >&6; } ;;
4521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4522
$as_echo "unsupported" >&6; } ;;
4524
CC="$CC $ac_cv_prog_cc_c89"
4525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4526
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4528
if test "x$ac_cv_prog_cc_c89" != xno; then :
4533
ac_cpp='$CPP $CPPFLAGS'
4534
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539
ac_cpp='$CPP $CPPFLAGS'
4540
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4544
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4545
if ${am_cv_prog_cc_c_o+:} false; then :
4546
$as_echo_n "(cached) " >&6
4548
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549
/* end confdefs.h. */
4559
# Make sure it works both with $CC and with simple cc.
4560
# Following AC_PROG_CC_C_O, we do the test twice because some
4561
# compilers refuse to overwrite an existing .o file with -o,
4562
# though they will create one.
4563
am_cv_prog_cc_c_o=yes
4565
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4566
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569
(exit $ac_status); } \
4570
&& test -f conftest2.$ac_objext; then
4573
am_cv_prog_cc_c_o=no
4577
rm -f core conftest*
4580
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4581
$as_echo "$am_cv_prog_cc_c_o" >&6; }
4582
if test "$am_cv_prog_cc_c_o" != yes; then
4583
# Losing compiler, so override with the script.
4584
# FIXME: It is wrong to rewrite CC.
4585
# But if we don't then we get into trouble of one sort or another.
4586
# A longer-term fix would be to have automake use am__CC in this case,
4587
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4588
CC="$am_aux_dir/compile $CC"
4591
ac_cpp='$CPP $CPPFLAGS'
4592
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4593
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597
depcc="$CC" am_compiler_list=
4599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4600
$as_echo_n "checking dependency style of $depcc... " >&6; }
4601
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4602
$as_echo_n "(cached) " >&6
4604
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4605
# We make a subdir and do the tests there. Otherwise we can end up
4606
# making bogus files that we don't know about and never remove. For
4607
# instance it was reported that on HP-UX the gcc test will end up
4608
# making a dummy file named 'D' -- because '-MD' means "put the output
4612
# Copy depcomp to subdir because otherwise we won't find it if we're
4613
# using a relative directory.
4614
cp "$am_depcomp" conftest.dir
4616
# We will build objects and dependencies in a subdirectory because
4617
# it helps to detect inapplicable dependency modes. For instance
4618
# both Tru64's cc and ICC support -MD to output dependencies as a
4619
# side effect of compilation, but ICC will put the dependencies in
4620
# the current directory while Tru64 will put them in the object
4624
am_cv_CC_dependencies_compiler_type=none
4625
if test "$am_compiler_list" = ""; then
4626
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4629
case " $depcc " in #(
4630
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4633
for depmode in $am_compiler_list; do
4634
# Setup a source with many dependencies, because some compilers
4635
# like to wrap large dependency lists on column 80 (with \), and
4636
# we should not choose a depcomp mode which is confused by this.
4638
# We need to recreate these files for each test, as the compiler may
4639
# overwrite some of them when testing with obscure command lines.
4640
# This happens at least with the AIX C compiler.
4642
for i in 1 2 3 4 5 6; do
4643
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4644
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4645
# Solaris 10 /bin/sh.
4646
echo '/* dummy */' > sub/conftst$i.h
4648
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4650
# We check with '-c' and '-o' for the sake of the "dashmstdout"
4651
# mode. It turns out that the SunPro C++ compiler does not properly
4652
# handle '-M -o', and we need to detect this. Also, some Intel
4653
# versions had trouble with output in subdirs.
4654
am__obj=sub/conftest.${OBJEXT-o}
4655
am__minus_obj="-o $am__obj"
4658
# This depmode causes a compiler race in universal mode.
4659
test "$am__universal" = false || continue
4662
# After this tag, mechanisms are not by side-effect, so they'll
4663
# only be used when explicitly requested.
4664
if test "x$enable_dependency_tracking" = xyes; then
4670
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4671
# This compiler won't grok '-c -o', but also, the minuso test has
4672
# not run yet. These depmodes are late enough in the game, and
4673
# so weak that their functioning should not be impacted.
4674
am__obj=conftest.${OBJEXT-o}
4679
if depmode=$depmode \
4680
source=sub/conftest.c object=$am__obj \
4681
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4682
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4683
>/dev/null 2>conftest.err &&
4684
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4685
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4686
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4687
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4688
# icc doesn't choke on unknown options, it will just issue warnings
4689
# or remarks (even with -Werror). So we grep stderr for any message
4690
# that says an option was ignored or not supported.
4691
# When given -MP, icc 7.0 and 7.1 complain thusly:
4692
# icc: Command line warning: ignoring option '-M'; no argument required
4693
# The diagnosis changed in icc 8.0:
4694
# icc: Command line remark: option '-MP' not supported
4695
if (grep 'ignoring option' conftest.err ||
4696
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4697
am_cv_CC_dependencies_compiler_type=$depmode
4706
am_cv_CC_dependencies_compiler_type=none
4710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4711
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4712
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4715
test "x$enable_dependency_tracking" != xno \
4716
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4718
am__fastdepCC_FALSE='#'
4720
am__fastdepCC_TRUE='#'
4721
am__fastdepCC_FALSE=
4725
case $ac_cv_prog_cc_stdc in #(
4727
ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4730
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4731
if ${ac_cv_prog_cc_c99+:} false; then :
4732
$as_echo_n "(cached) " >&6
4734
ac_cv_prog_cc_c99=no
4736
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737
/* end confdefs.h. */
4739
#include <stdbool.h>
4744
// Check varargs macros. These examples are taken from C99 6.10.3.5.
4745
#define debug(...) fprintf (stderr, __VA_ARGS__)
4746
#define showlist(...) puts (#__VA_ARGS__)
4747
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4749
test_varargs_macros (void)
4754
debug ("X = %d\n", x);
4755
showlist (The first, second, and third items.);
4756
report (x>y, "x is %d but y is %d", x, y);
4759
// Check long long types.
4760
#define BIG64 18446744073709551615ull
4761
#define BIG32 4294967295ul
4762
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4764
your preprocessor is broken;
4768
your preprocessor is broken;
4770
static long long int bignum = -9223372036854775807LL;
4771
static unsigned long long int ubignum = BIG64;
4773
struct incomplete_array
4781
const wchar_t *name;
4785
typedef const char *ccp;
4788
test_restrict (ccp restrict text)
4790
// See if C++-style comments work.
4791
// Iterate through items via the restricted pointer.
4792
// Also check for declarations in for loops.
4793
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4798
// Check varargs and va_copy.
4800
test_varargs (const char *format, ...)
4803
va_start (args, format);
4805
va_copy (args_copy, args);
4816
str = va_arg (args_copy, const char *);
4819
number = va_arg (args_copy, int);
4822
fnumber = va_arg (args_copy, double);
4837
_Bool success = false;
4840
if (test_restrict ("String literal") == 0)
4842
char *restrict newvar = "Another string";
4845
test_varargs ("s, d' f .", "string", 65, 34.234);
4846
test_varargs_macros ();
4848
// Check flexible array members.
4849
struct incomplete_array *ia =
4850
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4852
for (int i = 0; i < ia->datasize; ++i)
4853
ia->data[i] = i * 1.234;
4855
// Check named initializers.
4856
struct named_init ni = {
4858
.name = L"Test wide string",
4859
.average = 543.34343,
4864
int dynamic_array[ni.number];
4865
dynamic_array[ni.number - 1] = 543;
4867
// work around unused variable warnings
4868
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4869
|| dynamic_array[ni.number - 1] != 543);
4875
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4877
CC="$ac_save_CC $ac_arg"
4878
if ac_fn_c_try_compile "$LINENO"; then :
4879
ac_cv_prog_cc_c99=$ac_arg
4881
rm -f core conftest.err conftest.$ac_objext
4882
test "x$ac_cv_prog_cc_c99" != "xno" && break
4884
rm -f conftest.$ac_ext
4889
case "x$ac_cv_prog_cc_c99" in
4891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4892
$as_echo "none needed" >&6; } ;;
4894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4895
$as_echo "unsupported" >&6; } ;;
4897
CC="$CC $ac_cv_prog_cc_c99"
4898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4899
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4901
if test "x$ac_cv_prog_cc_c99" != xno; then :
4902
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4904
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4905
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4906
if ${ac_cv_prog_cc_c89+:} false; then :
4907
$as_echo_n "(cached) " >&6
4909
ac_cv_prog_cc_c89=no
4911
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912
/* end confdefs.h. */
4916
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4917
struct buf { int x; };
4918
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4919
static char *e (p, i)
4925
static char *f (char * (*g) (char **, int), char **p, ...)
4930
s = g (p, va_arg (v,int));
4935
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4936
function prototypes and stuff, but not '\xHH' hex character constants.
4937
These don't provoke an error unfortunately, instead are silently treated
4938
as 'x'. The following induces an error, until -std is added to get
4939
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4940
array size at least. It's necessary to write '\x00'==0 to get something
4941
that's true only with -std. */
4942
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4944
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4945
inside strings and character constants. */
4947
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4949
int test (int i, double x);
4950
struct s1 {int (*f) (int a);};
4951
struct s2 {int (*f) (double a);};
4952
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4958
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4963
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4964
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4966
CC="$ac_save_CC $ac_arg"
4967
if ac_fn_c_try_compile "$LINENO"; then :
4968
ac_cv_prog_cc_c89=$ac_arg
4970
rm -f core conftest.err conftest.$ac_objext
4971
test "x$ac_cv_prog_cc_c89" != "xno" && break
4973
rm -f conftest.$ac_ext
4978
case "x$ac_cv_prog_cc_c89" in
4980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4981
$as_echo "none needed" >&6; } ;;
4983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4984
$as_echo "unsupported" >&6; } ;;
4986
CC="$CC $ac_cv_prog_cc_c89"
4987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4988
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4990
if test "x$ac_cv_prog_cc_c89" != xno; then :
4991
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4993
ac_cv_prog_cc_stdc=no
4999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5000
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5001
if ${ac_cv_prog_cc_stdc+:} false; then :
5002
$as_echo_n "(cached) " >&6
5005
case $ac_cv_prog_cc_stdc in #(
5007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5008
$as_echo "unsupported" >&6; } ;; #(
5010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5011
$as_echo "none needed" >&6; } ;; #(
5013
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5014
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5018
ac_cpp='$CPP $CPPFLAGS'
5019
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5023
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5024
# On Suns, sometimes $CPP names a directory.
5025
if test -n "$CPP" && test -d "$CPP"; then
5028
if test -z "$CPP"; then
5029
if ${ac_cv_prog_CPP+:} false; then :
5030
$as_echo_n "(cached) " >&6
5032
# Double quotes because CPP needs to be expanded
5033
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5036
for ac_c_preproc_warn_flag in '' yes
5038
# Use a header file that comes with gcc, so configuring glibc
5039
# with a fresh cross-compiler works.
5040
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041
# <limits.h> exists even on freestanding compilers.
5042
# On the NeXT, cc -E runs the code through the compiler's parser,
5043
# not just through cpp. "Syntax error" is here to catch this case.
5044
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045
/* end confdefs.h. */
5047
# include <limits.h>
5049
# include <assert.h>
5053
if ac_fn_c_try_cpp "$LINENO"; then :
5056
# Broken: fails on valid input.
5059
rm -f conftest.err conftest.i conftest.$ac_ext
5061
# OK, works on sane cases. Now check whether nonexistent headers
5062
# can be detected and how.
5063
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064
/* end confdefs.h. */
5065
#include <ac_nonexistent.h>
5067
if ac_fn_c_try_cpp "$LINENO"; then :
5068
# Broken: success on invalid input.
5071
# Passes both tests.
5075
rm -f conftest.err conftest.i conftest.$ac_ext
5078
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5079
rm -f conftest.i conftest.err conftest.$ac_ext
5080
if $ac_preproc_ok; then :
5092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5093
$as_echo "$CPP" >&6; }
5095
for ac_c_preproc_warn_flag in '' yes
5097
# Use a header file that comes with gcc, so configuring glibc
5098
# with a fresh cross-compiler works.
5099
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5100
# <limits.h> exists even on freestanding compilers.
5101
# On the NeXT, cc -E runs the code through the compiler's parser,
5102
# not just through cpp. "Syntax error" is here to catch this case.
5103
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104
/* end confdefs.h. */
5106
# include <limits.h>
5108
# include <assert.h>
5112
if ac_fn_c_try_cpp "$LINENO"; then :
5115
# Broken: fails on valid input.
5118
rm -f conftest.err conftest.i conftest.$ac_ext
5120
# OK, works on sane cases. Now check whether nonexistent headers
5121
# can be detected and how.
5122
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123
/* end confdefs.h. */
5124
#include <ac_nonexistent.h>
5126
if ac_fn_c_try_cpp "$LINENO"; then :
5127
# Broken: success on invalid input.
5130
# Passes both tests.
5134
rm -f conftest.err conftest.i conftest.$ac_ext
5137
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138
rm -f conftest.i conftest.err conftest.$ac_ext
5139
if $ac_preproc_ok; then :
5142
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5143
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5144
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5145
See \`config.log' for more details" "$LINENO" 5; }
5149
ac_cpp='$CPP $CPPFLAGS'
5150
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5154
ac_c_preproc_warn_flag=yes
5155
for ac_prog in 'bison -y' byacc
5157
# Extract the first word of "$ac_prog", so it can be a program name with args.
5158
set dummy $ac_prog; ac_word=$2
5159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160
$as_echo_n "checking for $ac_word... " >&6; }
5161
if ${ac_cv_prog_YACC+:} false; then :
5162
$as_echo_n "(cached) " >&6
5164
if test -n "$YACC"; then
5165
ac_cv_prog_YACC="$YACC" # Let the user override the test.
5167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171
test -z "$as_dir" && as_dir=.
5172
for ac_exec_ext in '' $ac_executable_extensions; do
5173
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174
ac_cv_prog_YACC="$ac_prog"
5175
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184
YACC=$ac_cv_prog_YACC
5185
if test -n "$YACC"; then
5186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5187
$as_echo "$YACC" >&6; }
5189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190
$as_echo "no" >&6; }
5194
test -n "$YACC" && break
5196
test -n "$YACC" || YACC="yacc"
5202
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5203
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5208
macro_version='2.4.2'
5209
macro_revision='1.3337'
5223
ltmain="$ac_aux_dir/ltmain.sh"
5225
# Make sure we can run config.sub.
5226
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5227
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5230
$as_echo_n "checking build system type... " >&6; }
5231
if ${ac_cv_build+:} false; then :
5232
$as_echo_n "(cached) " >&6
5234
ac_build_alias=$build_alias
5235
test "x$ac_build_alias" = x &&
5236
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5237
test "x$ac_build_alias" = x &&
5238
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5239
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5240
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5244
$as_echo "$ac_cv_build" >&6; }
5245
case $ac_cv_build in
5247
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5250
ac_save_IFS=$IFS; IFS='-'
5256
# Remember, the first character of IFS is used to create $*,
5257
# except with old shells:
5260
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5264
$as_echo_n "checking host system type... " >&6; }
5265
if ${ac_cv_host+:} false; then :
5266
$as_echo_n "(cached) " >&6
5268
if test "x$host_alias" = x; then
5269
ac_cv_host=$ac_cv_build
5271
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5272
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5277
$as_echo "$ac_cv_host" >&6; }
5280
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5283
ac_save_IFS=$IFS; IFS='-'
5289
# Remember, the first character of IFS is used to create $*,
5290
# except with old shells:
5293
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5296
# Backslashify metacharacters that are still active within
5297
# double-quoted strings.
5298
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5300
# Same as above, but do not quote variable references.
5301
double_quote_subst='s/\(["`\\]\)/\\\1/g'
5303
# Sed substitution to delay expansion of an escaped shell variable in a
5304
# double_quote_subst'ed string.
5305
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5307
# Sed substitution to delay expansion of an escaped single quote.
5308
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5310
# Sed substitution to avoid accidental globbing in evaled expressions
5311
no_glob_subst='s/\*/\\\*/g'
5313
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5314
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5315
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5318
$as_echo_n "checking how to print strings... " >&6; }
5319
# Test print first, because it will be a builtin if present.
5320
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5321
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5323
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5326
# Use this function as a fallback that always works.
5327
func_fallback_echo ()
5329
eval 'cat <<_LTECHO_EOF
5333
ECHO='func_fallback_echo'
5336
# func_echo_all arg...
5337
# Invoke $ECHO with all args, space-separated.
5344
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5345
$as_echo "printf" >&6; } ;;
5346
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5347
$as_echo "print -r" >&6; } ;;
5348
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5349
$as_echo "cat" >&6; } ;;
5365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5366
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5367
if ${ac_cv_path_SED+:} false; then :
5368
$as_echo_n "(cached) " >&6
5370
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5371
for ac_i in 1 2 3 4 5 6 7; do
5372
ac_script="$ac_script$as_nl$ac_script"
5374
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5375
{ ac_script=; unset ac_script;}
5376
if test -z "$SED"; then
5377
ac_path_SED_found=false
5378
# Loop through the user's path and test for each of PROGNAME-LIST
5379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383
test -z "$as_dir" && as_dir=.
5384
for ac_prog in sed gsed; do
5385
for ac_exec_ext in '' $ac_executable_extensions; do
5386
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5387
as_fn_executable_p "$ac_path_SED" || continue
5388
# Check for GNU ac_path_SED and select it if it is found.
5389
# Check for GNU $ac_path_SED
5390
case `"$ac_path_SED" --version 2>&1` in
5392
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5395
$as_echo_n 0123456789 >"conftest.in"
5398
cat "conftest.in" "conftest.in" >"conftest.tmp"
5399
mv "conftest.tmp" "conftest.in"
5400
cp "conftest.in" "conftest.nl"
5401
$as_echo '' >> "conftest.nl"
5402
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5403
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5404
as_fn_arith $ac_count + 1 && ac_count=$as_val
5405
if test $ac_count -gt ${ac_path_SED_max-0}; then
5406
# Best one so far, save it but keep looking for a better one
5407
ac_cv_path_SED="$ac_path_SED"
5408
ac_path_SED_max=$ac_count
5410
# 10*(2^10) chars as input seems more than enough
5411
test $ac_count -gt 10 && break
5413
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5416
$ac_path_SED_found && break 3
5421
if test -z "$ac_cv_path_SED"; then
5422
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5430
$as_echo "$ac_cv_path_SED" >&6; }
5431
SED="$ac_cv_path_SED"
5434
test -z "$SED" && SED=sed
5435
Xsed="$SED -e 1s/^X//"
5447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5448
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5449
if ${ac_cv_path_GREP+:} false; then :
5450
$as_echo_n "(cached) " >&6
5452
if test -z "$GREP"; then
5453
ac_path_GREP_found=false
5454
# Loop through the user's path and test for each of PROGNAME-LIST
5455
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5459
test -z "$as_dir" && as_dir=.
5460
for ac_prog in grep ggrep; do
5461
for ac_exec_ext in '' $ac_executable_extensions; do
5462
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5463
as_fn_executable_p "$ac_path_GREP" || continue
5464
# Check for GNU ac_path_GREP and select it if it is found.
5465
# Check for GNU $ac_path_GREP
5466
case `"$ac_path_GREP" --version 2>&1` in
5468
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5471
$as_echo_n 0123456789 >"conftest.in"
5474
cat "conftest.in" "conftest.in" >"conftest.tmp"
5475
mv "conftest.tmp" "conftest.in"
5476
cp "conftest.in" "conftest.nl"
5477
$as_echo 'GREP' >> "conftest.nl"
5478
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5479
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5480
as_fn_arith $ac_count + 1 && ac_count=$as_val
5481
if test $ac_count -gt ${ac_path_GREP_max-0}; then
5482
# Best one so far, save it but keep looking for a better one
5483
ac_cv_path_GREP="$ac_path_GREP"
5484
ac_path_GREP_max=$ac_count
5486
# 10*(2^10) chars as input seems more than enough
5487
test $ac_count -gt 10 && break
5489
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5492
$ac_path_GREP_found && break 3
5497
if test -z "$ac_cv_path_GREP"; then
5498
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5501
ac_cv_path_GREP=$GREP
5505
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5506
$as_echo "$ac_cv_path_GREP" >&6; }
5507
GREP="$ac_cv_path_GREP"
5510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5511
$as_echo_n "checking for egrep... " >&6; }
5512
if ${ac_cv_path_EGREP+:} false; then :
5513
$as_echo_n "(cached) " >&6
5515
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5516
then ac_cv_path_EGREP="$GREP -E"
5518
if test -z "$EGREP"; then
5519
ac_path_EGREP_found=false
5520
# Loop through the user's path and test for each of PROGNAME-LIST
5521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5525
test -z "$as_dir" && as_dir=.
5526
for ac_prog in egrep; do
5527
for ac_exec_ext in '' $ac_executable_extensions; do
5528
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5529
as_fn_executable_p "$ac_path_EGREP" || continue
5530
# Check for GNU ac_path_EGREP and select it if it is found.
5531
# Check for GNU $ac_path_EGREP
5532
case `"$ac_path_EGREP" --version 2>&1` in
5534
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5537
$as_echo_n 0123456789 >"conftest.in"
5540
cat "conftest.in" "conftest.in" >"conftest.tmp"
5541
mv "conftest.tmp" "conftest.in"
5542
cp "conftest.in" "conftest.nl"
5543
$as_echo 'EGREP' >> "conftest.nl"
5544
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5545
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5546
as_fn_arith $ac_count + 1 && ac_count=$as_val
5547
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5548
# Best one so far, save it but keep looking for a better one
5549
ac_cv_path_EGREP="$ac_path_EGREP"
5550
ac_path_EGREP_max=$ac_count
5552
# 10*(2^10) chars as input seems more than enough
5553
test $ac_count -gt 10 && break
5555
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5558
$ac_path_EGREP_found && break 3
5563
if test -z "$ac_cv_path_EGREP"; then
5564
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5567
ac_cv_path_EGREP=$EGREP
5572
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5573
$as_echo "$ac_cv_path_EGREP" >&6; }
5574
EGREP="$ac_cv_path_EGREP"
5577
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5578
$as_echo_n "checking for fgrep... " >&6; }
5579
if ${ac_cv_path_FGREP+:} false; then :
5580
$as_echo_n "(cached) " >&6
5582
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5583
then ac_cv_path_FGREP="$GREP -F"
5585
if test -z "$FGREP"; then
5586
ac_path_FGREP_found=false
5587
# Loop through the user's path and test for each of PROGNAME-LIST
5588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5592
test -z "$as_dir" && as_dir=.
5593
for ac_prog in fgrep; do
5594
for ac_exec_ext in '' $ac_executable_extensions; do
5595
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5596
as_fn_executable_p "$ac_path_FGREP" || continue
5597
# Check for GNU ac_path_FGREP and select it if it is found.
5598
# Check for GNU $ac_path_FGREP
5599
case `"$ac_path_FGREP" --version 2>&1` in
5601
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5604
$as_echo_n 0123456789 >"conftest.in"
5607
cat "conftest.in" "conftest.in" >"conftest.tmp"
5608
mv "conftest.tmp" "conftest.in"
5609
cp "conftest.in" "conftest.nl"
5610
$as_echo 'FGREP' >> "conftest.nl"
5611
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5612
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5613
as_fn_arith $ac_count + 1 && ac_count=$as_val
5614
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5615
# Best one so far, save it but keep looking for a better one
5616
ac_cv_path_FGREP="$ac_path_FGREP"
5617
ac_path_FGREP_max=$ac_count
5619
# 10*(2^10) chars as input seems more than enough
5620
test $ac_count -gt 10 && break
5622
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5625
$ac_path_FGREP_found && break 3
5630
if test -z "$ac_cv_path_FGREP"; then
5631
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5634
ac_cv_path_FGREP=$FGREP
5639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5640
$as_echo "$ac_cv_path_FGREP" >&6; }
5641
FGREP="$ac_cv_path_FGREP"
5644
test -z "$GREP" && GREP=grep
5664
# Check whether --with-gnu-ld was given.
5665
if test "${with_gnu_ld+set}" = set; then :
5666
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5672
if test "$GCC" = yes; then
5673
# Check if gcc -print-prog-name=ld gives a path.
5674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5675
$as_echo_n "checking for ld used by $CC... " >&6; }
5678
# gcc leaves a trailing carriage return which upsets mingw
5679
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5681
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5684
# Accept absolute paths.
5686
re_direlt='/[^/][^/]*/\.\./'
5687
# Canonicalize the pathname of ld
5688
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5689
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5690
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5692
test -z "$LD" && LD="$ac_prog"
5695
# If it fails, then pretend we aren't using GCC.
5699
# If it is relative, then search for the first ld in PATH.
5703
elif test "$with_gnu_ld" = yes; then
5704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5705
$as_echo_n "checking for GNU ld... " >&6; }
5707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5708
$as_echo_n "checking for non-GNU ld... " >&6; }
5710
if ${lt_cv_path_LD+:} false; then :
5711
$as_echo_n "(cached) " >&6
5713
if test -z "$LD"; then
5714
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5715
for ac_dir in $PATH; do
5717
test -z "$ac_dir" && ac_dir=.
5718
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5719
lt_cv_path_LD="$ac_dir/$ac_prog"
5720
# Check to see if the program is GNU ld. I'd rather use --version,
5721
# but apparently some variants of GNU ld only accept -v.
5722
# Break only if it was the GNU/non-GNU ld that we prefer.
5723
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5724
*GNU* | *'with BFD'*)
5725
test "$with_gnu_ld" != no && break
5728
test "$with_gnu_ld" != yes && break
5735
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5740
if test -n "$LD"; then
5741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5742
$as_echo "$LD" >&6; }
5744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745
$as_echo "no" >&6; }
5747
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5749
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5750
if ${lt_cv_prog_gnu_ld+:} false; then :
5751
$as_echo_n "(cached) " >&6
5753
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5754
case `$LD -v 2>&1 </dev/null` in
5755
*GNU* | *'with BFD'*)
5756
lt_cv_prog_gnu_ld=yes
5759
lt_cv_prog_gnu_ld=no
5763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5764
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5765
with_gnu_ld=$lt_cv_prog_gnu_ld
5775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5776
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5777
if ${lt_cv_path_NM+:} false; then :
5778
$as_echo_n "(cached) " >&6
5780
if test -n "$NM"; then
5781
# Let the user override the test.
5784
lt_nm_to_check="${ac_tool_prefix}nm"
5785
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5786
lt_nm_to_check="$lt_nm_to_check nm"
5788
for lt_tmp_nm in $lt_nm_to_check; do
5789
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5790
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5792
test -z "$ac_dir" && ac_dir=.
5793
tmp_nm="$ac_dir/$lt_tmp_nm"
5794
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5795
# Check to see if the nm accepts a BSD-compat flag.
5796
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5797
# nm: unknown option "B" ignored
5798
# Tru64's nm complains that /dev/null is an invalid object file
5799
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5800
*/dev/null* | *'Invalid file or object type'*)
5801
lt_cv_path_NM="$tmp_nm -B"
5805
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5807
lt_cv_path_NM="$tmp_nm -p"
5811
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5812
continue # so that we can try to find one that supports BSD flags
5821
: ${lt_cv_path_NM=no}
5824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5825
$as_echo "$lt_cv_path_NM" >&6; }
5826
if test "$lt_cv_path_NM" != "no"; then
5829
# Didn't find any BSD compatible name lister, look for dumpbin.
5830
if test -n "$DUMPBIN"; then :
5831
# Let the user override the test.
5833
if test -n "$ac_tool_prefix"; then
5834
for ac_prog in dumpbin "link -dump"
5836
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5837
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839
$as_echo_n "checking for $ac_word... " >&6; }
5840
if ${ac_cv_prog_DUMPBIN+:} false; then :
5841
$as_echo_n "(cached) " >&6
5843
if test -n "$DUMPBIN"; then
5844
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850
test -z "$as_dir" && as_dir=.
5851
for ac_exec_ext in '' $ac_executable_extensions; do
5852
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5854
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863
DUMPBIN=$ac_cv_prog_DUMPBIN
5864
if test -n "$DUMPBIN"; then
5865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5866
$as_echo "$DUMPBIN" >&6; }
5868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869
$as_echo "no" >&6; }
5873
test -n "$DUMPBIN" && break
5876
if test -z "$DUMPBIN"; then
5877
ac_ct_DUMPBIN=$DUMPBIN
5878
for ac_prog in dumpbin "link -dump"
5880
# Extract the first word of "$ac_prog", so it can be a program name with args.
5881
set dummy $ac_prog; ac_word=$2
5882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883
$as_echo_n "checking for $ac_word... " >&6; }
5884
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5885
$as_echo_n "(cached) " >&6
5887
if test -n "$ac_ct_DUMPBIN"; then
5888
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894
test -z "$as_dir" && as_dir=.
5895
for ac_exec_ext in '' $ac_executable_extensions; do
5896
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5898
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5908
if test -n "$ac_ct_DUMPBIN"; then
5909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5910
$as_echo "$ac_ct_DUMPBIN" >&6; }
5912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913
$as_echo "no" >&6; }
5917
test -n "$ac_ct_DUMPBIN" && break
5920
if test "x$ac_ct_DUMPBIN" = x; then
5923
case $cross_compiling:$ac_tool_warned in
5925
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5926
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5927
ac_tool_warned=yes ;;
5929
DUMPBIN=$ac_ct_DUMPBIN
5933
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5935
DUMPBIN="$DUMPBIN -symbols"
5943
if test "$DUMPBIN" != ":"; then
5947
test -z "$NM" && NM=nm
5954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5955
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5956
if ${lt_cv_nm_interface+:} false; then :
5957
$as_echo_n "(cached) " >&6
5959
lt_cv_nm_interface="BSD nm"
5960
echo "int some_variable = 0;" > conftest.$ac_ext
5961
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5962
(eval "$ac_compile" 2>conftest.err)
5963
cat conftest.err >&5
5964
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5965
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5966
cat conftest.err >&5
5967
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
5968
cat conftest.out >&5
5969
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5970
lt_cv_nm_interface="MS dumpbin"
5974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5975
$as_echo "$lt_cv_nm_interface" >&6; }
5977
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5978
$as_echo_n "checking whether ln -s works... " >&6; }
5980
if test "$LN_S" = "ln -s"; then
5981
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5982
$as_echo "yes" >&6; }
5984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5985
$as_echo "no, using $LN_S" >&6; }
5988
# find the maximum length of command line arguments
5989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5990
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5991
if ${lt_cv_sys_max_cmd_len+:} false; then :
5992
$as_echo_n "(cached) " >&6
5999
# On DJGPP, this test can blow up pretty badly due to problems in libc
6000
# (any single argument exceeding 2000 bytes causes a buffer overrun
6001
# during glob expansion). Even if it were fixed, the result of this
6002
# check would be larger than it should be.
6003
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6007
# Under GNU Hurd, this test is not required because there is
6008
# no limit to the length of command line arguments.
6009
# Libtool will interpret -1 as no limit whatsoever
6010
lt_cv_sys_max_cmd_len=-1;
6013
cygwin* | mingw* | cegcc*)
6014
# On Win9x/ME, this test blows up -- it succeeds, but takes
6015
# about 5 minutes as the teststring grows exponentially.
6016
# Worse, since 9x/ME are not pre-emptively multitasking,
6017
# you end up with a "frozen" computer, even though with patience
6018
# the test eventually succeeds (with a max line length of 256k).
6019
# Instead, let's just punt: use the minimum linelength reported by
6020
# all of the supported platforms: 8192 (on NT/2K/XP).
6021
lt_cv_sys_max_cmd_len=8192;
6025
# On MiNT this can take a long time and run out of memory.
6026
lt_cv_sys_max_cmd_len=8192;
6030
# On AmigaOS with pdksh, this test takes hours, literally.
6031
# So we just punt and use a minimum line length of 8192.
6032
lt_cv_sys_max_cmd_len=8192;
6035
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6036
# This has been around since 386BSD, at least. Likely further.
6037
if test -x /sbin/sysctl; then
6038
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6039
elif test -x /usr/sbin/sysctl; then
6040
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6042
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6044
# And add a safety zone
6045
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6046
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6050
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6051
lt_cv_sys_max_cmd_len=196608
6055
# The test takes a long time on OS/2.
6056
lt_cv_sys_max_cmd_len=8192
6060
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6061
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6062
# nice to cause kernel panics so lets avoid the loop below.
6063
# First set a reasonable default.
6064
lt_cv_sys_max_cmd_len=16384
6066
if test -x /sbin/sysconfig; then
6067
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6068
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6073
lt_cv_sys_max_cmd_len=102400
6075
sysv5* | sco5v6* | sysv4.2uw2*)
6076
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6077
if test -n "$kargmax"; then
6078
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6080
lt_cv_sys_max_cmd_len=32768
6084
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6085
if test -n "$lt_cv_sys_max_cmd_len" && \
6086
test undefined != "$lt_cv_sys_max_cmd_len"; then
6087
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6088
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6090
# Make teststring a little bigger before we do anything with it.
6091
# a 1K string should be a reasonable start.
6092
for i in 1 2 3 4 5 6 7 8 ; do
6093
teststring=$teststring$teststring
6095
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6096
# If test is not a shell built-in, we'll probably end up computing a
6097
# maximum length that is only half of the actual maximum length, but
6099
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6100
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
6101
test $i != 17 # 1/2 MB should be enough
6104
teststring=$teststring$teststring
6106
# Only check the string length outside the loop.
6107
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6109
# Add a significant safety factor because C++ compilers can tack on
6110
# massive amounts of additional arguments before passing them to the
6111
# linker. It appears as though 1/2 is a usable value.
6112
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6119
if test -n $lt_cv_sys_max_cmd_len ; then
6120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6121
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6124
$as_echo "none" >&6; }
6126
max_cmd_len=$lt_cv_sys_max_cmd_len
6137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6138
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6139
# Try some XSI features
6142
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6144
&& eval 'test $(( 1 + 1 )) -eq 2 \
6145
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6148
$as_echo "$xsi_shell" >&6; }
6151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6152
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6154
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6156
&& lt_shell_append=yes
6157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6158
$as_echo "$lt_shell_append" >&6; }
6161
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6171
# test EBCDIC or ASCII
6172
case `echo X|tr X '\101'` in
6173
A) # ASCII based system
6174
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6175
lt_SP2NL='tr \040 \012'
6176
lt_NL2SP='tr \015\012 \040\040'
6178
*) # EBCDIC based system
6179
lt_SP2NL='tr \100 \n'
6180
lt_NL2SP='tr \r\n \100\100'
6192
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6193
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6194
if ${lt_cv_to_host_file_cmd+:} false; then :
6195
$as_echo_n "(cached) " >&6
6200
*-*-mingw* ) # actually msys
6201
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6204
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6206
* ) # otherwise, assume *nix
6207
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6213
*-*-mingw* ) # actually msys
6214
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6217
lt_cv_to_host_file_cmd=func_convert_file_noop
6219
* ) # otherwise, assume *nix
6220
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6224
* ) # unhandled hosts (and "normal" native builds)
6225
lt_cv_to_host_file_cmd=func_convert_file_noop
6231
to_host_file_cmd=$lt_cv_to_host_file_cmd
6232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6233
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6240
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6241
if ${lt_cv_to_tool_file_cmd+:} false; then :
6242
$as_echo_n "(cached) " >&6
6244
#assume ordinary cross tools, or native build.
6245
lt_cv_to_tool_file_cmd=func_convert_file_noop
6249
*-*-mingw* ) # actually msys
6250
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6258
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6260
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6267
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6268
if ${lt_cv_ld_reload_flag+:} false; then :
6269
$as_echo_n "(cached) " >&6
6271
lt_cv_ld_reload_flag='-r'
6273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6274
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6275
reload_flag=$lt_cv_ld_reload_flag
6276
case $reload_flag in
6278
*) reload_flag=" $reload_flag" ;;
6280
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6282
cygwin* | mingw* | pw32* | cegcc*)
6283
if test "$GCC" != yes; then
6288
if test "$GCC" = yes; then
6289
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6291
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6304
if test -n "$ac_tool_prefix"; then
6305
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6306
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6307
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308
$as_echo_n "checking for $ac_word... " >&6; }
6309
if ${ac_cv_prog_OBJDUMP+:} false; then :
6310
$as_echo_n "(cached) " >&6
6312
if test -n "$OBJDUMP"; then
6313
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319
test -z "$as_dir" && as_dir=.
6320
for ac_exec_ext in '' $ac_executable_extensions; do
6321
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6323
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332
OBJDUMP=$ac_cv_prog_OBJDUMP
6333
if test -n "$OBJDUMP"; then
6334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6335
$as_echo "$OBJDUMP" >&6; }
6337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338
$as_echo "no" >&6; }
6343
if test -z "$ac_cv_prog_OBJDUMP"; then
6344
ac_ct_OBJDUMP=$OBJDUMP
6345
# Extract the first word of "objdump", so it can be a program name with args.
6346
set dummy objdump; ac_word=$2
6347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348
$as_echo_n "checking for $ac_word... " >&6; }
6349
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6350
$as_echo_n "(cached) " >&6
6352
if test -n "$ac_ct_OBJDUMP"; then
6353
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359
test -z "$as_dir" && as_dir=.
6360
for ac_exec_ext in '' $ac_executable_extensions; do
6361
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362
ac_cv_prog_ac_ct_OBJDUMP="objdump"
6363
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6373
if test -n "$ac_ct_OBJDUMP"; then
6374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6375
$as_echo "$ac_ct_OBJDUMP" >&6; }
6377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378
$as_echo "no" >&6; }
6381
if test "x$ac_ct_OBJDUMP" = x; then
6384
case $cross_compiling:$ac_tool_warned in
6386
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388
ac_tool_warned=yes ;;
6390
OBJDUMP=$ac_ct_OBJDUMP
6393
OBJDUMP="$ac_cv_prog_OBJDUMP"
6396
test -z "$OBJDUMP" && OBJDUMP=objdump
6403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6404
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6405
if ${lt_cv_deplibs_check_method+:} false; then :
6406
$as_echo_n "(cached) " >&6
6408
lt_cv_file_magic_cmd='$MAGIC_CMD'
6409
lt_cv_file_magic_test_file=
6410
lt_cv_deplibs_check_method='unknown'
6411
# Need to set the preceding variable on all platforms that support
6412
# interlibrary dependencies.
6413
# 'none' -- dependencies not supported.
6414
# `unknown' -- same as none, but documents that we really don't know.
6415
# 'pass_all' -- all dependencies passed with no checks.
6416
# 'test_compile' -- check by making test program.
6417
# 'file_magic [[regex]]' -- check by looking for files in library path
6418
# which responds to the $file_magic_cmd with a given extended regex.
6419
# If you have `file' or equivalent on your system and you're not sure
6420
# whether `pass_all' will *always* work, you probably want this one.
6424
lt_cv_deplibs_check_method=pass_all
6428
lt_cv_deplibs_check_method=pass_all
6432
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6433
lt_cv_file_magic_cmd='/usr/bin/file -L'
6434
lt_cv_file_magic_test_file=/shlib/libc.so
6438
# func_win32_libid is a shell function defined in ltmain.sh
6439
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6440
lt_cv_file_magic_cmd='func_win32_libid'
6444
# Base MSYS/MinGW do not provide the 'file' command needed by
6445
# func_win32_libid shell function, so use a weaker test based on 'objdump',
6446
# unless we find 'file', for example because we are cross-compiling.
6447
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6448
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6449
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6450
lt_cv_file_magic_cmd='func_win32_libid'
6452
# Keep this pattern in sync with the one in func_win32_libid.
6453
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6454
lt_cv_file_magic_cmd='$OBJDUMP -f'
6459
# use the weaker test based on 'objdump'. See mingw*.
6460
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6461
lt_cv_file_magic_cmd='$OBJDUMP -f'
6464
darwin* | rhapsody*)
6465
lt_cv_deplibs_check_method=pass_all
6468
freebsd* | dragonfly*)
6469
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6472
# Not sure whether the presence of OpenBSD here was a mistake.
6473
# Let's accept both of them until this is cleared up.
6474
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6475
lt_cv_file_magic_cmd=/usr/bin/file
6476
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6480
lt_cv_deplibs_check_method=pass_all
6485
lt_cv_deplibs_check_method=pass_all
6488
hpux10.20* | hpux11*)
6489
lt_cv_file_magic_cmd=/usr/bin/file
6492
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6493
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6496
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]'
6497
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6500
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6501
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6507
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6508
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6511
irix5* | irix6* | nonstopux*)
6513
*-32|*"-32 ") libmagic=32-bit;;
6514
*-n32|*"-n32 ") libmagic=N32;;
6515
*-64|*"-64 ") libmagic=64-bit;;
6516
*) libmagic=never-match;;
6518
lt_cv_deplibs_check_method=pass_all
6521
# This must be glibc/ELF.
6522
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6523
lt_cv_deplibs_check_method=pass_all
6526
netbsd* | netbsdelf*-gnu)
6527
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6528
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6530
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6535
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6536
lt_cv_file_magic_cmd=/usr/bin/file
6537
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6541
lt_cv_deplibs_check_method=pass_all
6545
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6546
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6548
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6552
osf3* | osf4* | osf5*)
6553
lt_cv_deplibs_check_method=pass_all
6557
lt_cv_deplibs_check_method=pass_all
6561
lt_cv_deplibs_check_method=pass_all
6564
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6565
lt_cv_deplibs_check_method=pass_all
6569
case $host_vendor in
6571
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]'
6572
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6575
lt_cv_deplibs_check_method=pass_all
6578
lt_cv_file_magic_cmd='/bin/file'
6579
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6582
lt_cv_file_magic_cmd='/bin/file'
6583
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6584
lt_cv_file_magic_test_file=/lib/libc.so
6587
lt_cv_deplibs_check_method=pass_all
6590
lt_cv_deplibs_check_method=pass_all
6596
lt_cv_deplibs_check_method=pass_all
6601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6602
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6606
if test "$build" = "$host"; then
6609
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6612
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6618
file_magic_cmd=$lt_cv_file_magic_cmd
6619
deplibs_check_method=$lt_cv_deplibs_check_method
6620
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6643
if test -n "$ac_tool_prefix"; then
6644
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6645
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647
$as_echo_n "checking for $ac_word... " >&6; }
6648
if ${ac_cv_prog_DLLTOOL+:} false; then :
6649
$as_echo_n "(cached) " >&6
6651
if test -n "$DLLTOOL"; then
6652
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658
test -z "$as_dir" && as_dir=.
6659
for ac_exec_ext in '' $ac_executable_extensions; do
6660
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6661
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6662
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671
DLLTOOL=$ac_cv_prog_DLLTOOL
6672
if test -n "$DLLTOOL"; then
6673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6674
$as_echo "$DLLTOOL" >&6; }
6676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677
$as_echo "no" >&6; }
6682
if test -z "$ac_cv_prog_DLLTOOL"; then
6683
ac_ct_DLLTOOL=$DLLTOOL
6684
# Extract the first word of "dlltool", so it can be a program name with args.
6685
set dummy dlltool; ac_word=$2
6686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687
$as_echo_n "checking for $ac_word... " >&6; }
6688
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6689
$as_echo_n "(cached) " >&6
6691
if test -n "$ac_ct_DLLTOOL"; then
6692
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698
test -z "$as_dir" && as_dir=.
6699
for ac_exec_ext in '' $ac_executable_extensions; do
6700
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6702
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6712
if test -n "$ac_ct_DLLTOOL"; then
6713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6714
$as_echo "$ac_ct_DLLTOOL" >&6; }
6716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717
$as_echo "no" >&6; }
6720
if test "x$ac_ct_DLLTOOL" = x; then
6723
case $cross_compiling:$ac_tool_warned in
6725
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6726
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6727
ac_tool_warned=yes ;;
6729
DLLTOOL=$ac_ct_DLLTOOL
6732
DLLTOOL="$ac_cv_prog_DLLTOOL"
6735
test -z "$DLLTOOL" && DLLTOOL=dlltool
6743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6744
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6745
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6746
$as_echo_n "(cached) " >&6
6748
lt_cv_sharedlib_from_linklib_cmd='unknown'
6751
cygwin* | mingw* | pw32* | cegcc*)
6752
# two different shell functions defined in ltmain.sh
6753
# decide which to use based on capabilities of $DLLTOOL
6754
case `$DLLTOOL --help 2>&1` in
6755
*--identify-strict*)
6756
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6759
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6764
# fallback: assume linklib IS sharedlib
6765
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6771
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6772
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6773
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6781
if test -n "$ac_tool_prefix"; then
6784
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6785
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787
$as_echo_n "checking for $ac_word... " >&6; }
6788
if ${ac_cv_prog_AR+:} false; then :
6789
$as_echo_n "(cached) " >&6
6791
if test -n "$AR"; then
6792
ac_cv_prog_AR="$AR" # Let the user override the test.
6794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798
test -z "$as_dir" && as_dir=.
6799
for ac_exec_ext in '' $ac_executable_extensions; do
6800
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6802
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812
if test -n "$AR"; then
6813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6814
$as_echo "$AR" >&6; }
6816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817
$as_echo "no" >&6; }
6821
test -n "$AR" && break
6824
if test -z "$AR"; then
6828
# Extract the first word of "$ac_prog", so it can be a program name with args.
6829
set dummy $ac_prog; ac_word=$2
6830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831
$as_echo_n "checking for $ac_word... " >&6; }
6832
if ${ac_cv_prog_ac_ct_AR+:} false; then :
6833
$as_echo_n "(cached) " >&6
6835
if test -n "$ac_ct_AR"; then
6836
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842
test -z "$as_dir" && as_dir=.
6843
for ac_exec_ext in '' $ac_executable_extensions; do
6844
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6845
ac_cv_prog_ac_ct_AR="$ac_prog"
6846
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6856
if test -n "$ac_ct_AR"; then
6857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6858
$as_echo "$ac_ct_AR" >&6; }
6860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861
$as_echo "no" >&6; }
6865
test -n "$ac_ct_AR" && break
6868
if test "x$ac_ct_AR" = x; then
6871
case $cross_compiling:$ac_tool_warned in
6873
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6874
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875
ac_tool_warned=yes ;;
6894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6895
$as_echo_n "checking for archiver @FILE support... " >&6; }
6896
if ${lt_cv_ar_at_file+:} false; then :
6897
$as_echo_n "(cached) " >&6
6900
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901
/* end confdefs.h. */
6911
if ac_fn_c_try_compile "$LINENO"; then :
6912
echo conftest.$ac_objext > conftest.lst
6913
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6914
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6915
(eval $lt_ar_try) 2>&5
6917
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6918
test $ac_status = 0; }
6919
if test "$ac_status" -eq 0; then
6920
# Ensure the archiver fails upon bogus file names.
6921
rm -f conftest.$ac_objext libconftest.a
6922
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6923
(eval $lt_ar_try) 2>&5
6925
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926
test $ac_status = 0; }
6927
if test "$ac_status" -ne 0; then
6931
rm -f conftest.* libconftest.a
6934
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6938
$as_echo "$lt_cv_ar_at_file" >&6; }
6940
if test "x$lt_cv_ar_at_file" = xno; then
6943
archiver_list_spec=$lt_cv_ar_at_file
6952
if test -n "$ac_tool_prefix"; then
6953
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6954
set dummy ${ac_tool_prefix}strip; ac_word=$2
6955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956
$as_echo_n "checking for $ac_word... " >&6; }
6957
if ${ac_cv_prog_STRIP+:} false; then :
6958
$as_echo_n "(cached) " >&6
6960
if test -n "$STRIP"; then
6961
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967
test -z "$as_dir" && as_dir=.
6968
for ac_exec_ext in '' $ac_executable_extensions; do
6969
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6971
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980
STRIP=$ac_cv_prog_STRIP
6981
if test -n "$STRIP"; then
6982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6983
$as_echo "$STRIP" >&6; }
6985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986
$as_echo "no" >&6; }
6991
if test -z "$ac_cv_prog_STRIP"; then
6993
# Extract the first word of "strip", so it can be a program name with args.
6994
set dummy strip; ac_word=$2
6995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996
$as_echo_n "checking for $ac_word... " >&6; }
6997
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6998
$as_echo_n "(cached) " >&6
7000
if test -n "$ac_ct_STRIP"; then
7001
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7003
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007
test -z "$as_dir" && as_dir=.
7008
for ac_exec_ext in '' $ac_executable_extensions; do
7009
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010
ac_cv_prog_ac_ct_STRIP="strip"
7011
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7021
if test -n "$ac_ct_STRIP"; then
7022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7023
$as_echo "$ac_ct_STRIP" >&6; }
7025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026
$as_echo "no" >&6; }
7029
if test "x$ac_ct_STRIP" = x; then
7032
case $cross_compiling:$ac_tool_warned in
7034
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7035
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7036
ac_tool_warned=yes ;;
7041
STRIP="$ac_cv_prog_STRIP"
7044
test -z "$STRIP" && STRIP=:
7051
if test -n "$ac_tool_prefix"; then
7052
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7053
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055
$as_echo_n "checking for $ac_word... " >&6; }
7056
if ${ac_cv_prog_RANLIB+:} false; then :
7057
$as_echo_n "(cached) " >&6
7059
if test -n "$RANLIB"; then
7060
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066
test -z "$as_dir" && as_dir=.
7067
for ac_exec_ext in '' $ac_executable_extensions; do
7068
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7070
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079
RANLIB=$ac_cv_prog_RANLIB
7080
if test -n "$RANLIB"; then
7081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7082
$as_echo "$RANLIB" >&6; }
7084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085
$as_echo "no" >&6; }
7090
if test -z "$ac_cv_prog_RANLIB"; then
7091
ac_ct_RANLIB=$RANLIB
7092
# Extract the first word of "ranlib", so it can be a program name with args.
7093
set dummy ranlib; ac_word=$2
7094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095
$as_echo_n "checking for $ac_word... " >&6; }
7096
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7097
$as_echo_n "(cached) " >&6
7099
if test -n "$ac_ct_RANLIB"; then
7100
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106
test -z "$as_dir" && as_dir=.
7107
for ac_exec_ext in '' $ac_executable_extensions; do
7108
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109
ac_cv_prog_ac_ct_RANLIB="ranlib"
7110
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7120
if test -n "$ac_ct_RANLIB"; then
7121
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7122
$as_echo "$ac_ct_RANLIB" >&6; }
7124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125
$as_echo "no" >&6; }
7128
if test "x$ac_ct_RANLIB" = x; then
7131
case $cross_compiling:$ac_tool_warned in
7133
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7134
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7135
ac_tool_warned=yes ;;
7137
RANLIB=$ac_ct_RANLIB
7140
RANLIB="$ac_cv_prog_RANLIB"
7143
test -z "$RANLIB" && RANLIB=:
7150
# Determine commands to create old-style static archives.
7151
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7152
old_postinstall_cmds='chmod 644 $oldlib'
7153
old_postuninstall_cmds=
7155
if test -n "$RANLIB"; then
7158
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7161
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7164
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7169
lock_old_archive_extraction=yes ;;
7171
lock_old_archive_extraction=no ;;
7212
# If no C compiler was specified, use CC.
7215
# If no C compiler flags were specified, use CFLAGS.
7216
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7218
# Allow CC to be a program name with arguments.
7222
# Check for command to grab the raw symbol name followed by C symbol from nm.
7223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7224
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7225
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7226
$as_echo_n "(cached) " >&6
7229
# These are sane defaults that work on at least a few old systems.
7230
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7232
# Character class describing NM global symbol codes.
7233
symcode='[BCDEGRST]'
7235
# Regexp to match symbols that can be accessed directly from C.
7236
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7238
# Define system-specific variables.
7243
cygwin* | mingw* | pw32* | cegcc*)
7244
symcode='[ABCDGISTW]'
7247
if test "$host_cpu" = ia64; then
7248
symcode='[ABCDEGRST]'
7252
symcode='[BCDEGRST]'
7255
symcode='[BCDEGQRST]'
7266
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7274
# If we're using GNU nm, then use its standard symbol codes.
7275
case `$NM -V 2>&1` in
7276
*GNU* | *'with BFD'*)
7277
symcode='[ABCDGIRSTW]' ;;
7280
# Transform an extracted symbol line into a proper C declaration.
7281
# Some systems (esp. on ia64) link data and code symbols differently,
7282
# so use this general approach.
7283
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7285
# Transform an extracted symbol line into symbol name and symbol address
7286
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7287
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7289
# Handle CRLF in mingw tool chain
7293
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7297
# Try without a prefix underscore, then with it.
7298
for ac_symprfx in "" "_"; do
7300
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7301
symxfrm="\\1 $ac_symprfx\\2 \\2"
7303
# Write the raw and C identifiers.
7304
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7305
# Fake it for dumpbin and say T for any non-static function
7306
# and D for any global variable.
7307
# Also find C++ and __fastcall symbols from MSVC++,
7308
# which start with @ or ?.
7309
lt_cv_sys_global_symbol_pipe="$AWK '"\
7310
" {last_section=section; section=\$ 3};"\
7311
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7312
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7313
" \$ 0!~/External *\|/{next};"\
7314
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7315
" {if(hide[section]) next};"\
7316
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7317
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7318
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7319
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7320
" ' prfx=^$ac_symprfx"
7322
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7324
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7326
# Check to see that the pipe works correctly.
7330
cat > conftest.$ac_ext <<_LT_EOF
7335
void nm_test_func(void);
7336
void nm_test_func(void){}
7340
int main(){nm_test_var='a';nm_test_func();return(0);}
7343
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7344
(eval $ac_compile) 2>&5
7346
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7347
test $ac_status = 0; }; then
7348
# Now try to grab the symbols.
7350
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7351
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7353
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7354
test $ac_status = 0; } && test -s "$nlist"; then
7355
# Try sorting and uniquifying the output.
7356
if sort "$nlist" | uniq > "$nlist"T; then
7357
mv -f "$nlist"T "$nlist"
7362
# Make sure that we snagged all the symbols we need.
7363
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7364
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7365
cat <<_LT_EOF > conftest.$ac_ext
7366
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7367
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7368
/* DATA imports from DLLs on WIN32 con't be const, because runtime
7369
relocations are performed -- see ld's documentation on pseudo-relocs. */
7370
# define LT_DLSYM_CONST
7371
#elif defined(__osf__)
7372
/* This system does not cope well with relocations in const data. */
7373
# define LT_DLSYM_CONST
7375
# define LT_DLSYM_CONST const
7383
# Now generate the symbol file.
7384
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7386
cat <<_LT_EOF >> conftest.$ac_ext
7388
/* The mapping between symbol names and symbols. */
7389
LT_DLSYM_CONST struct {
7393
lt__PROGRAM__LTX_preloaded_symbols[] =
7395
{ "@PROGRAM@", (void *) 0 },
7397
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7398
cat <<\_LT_EOF >> conftest.$ac_ext
7402
/* This works around a problem in FreeBSD linker */
7403
#ifdef FREEBSD_WORKAROUND
7404
static const void *lt_preloaded_setup() {
7405
return lt__PROGRAM__LTX_preloaded_symbols;
7413
# Now try linking the two files.
7414
mv conftest.$ac_objext conftstm.$ac_objext
7415
lt_globsym_save_LIBS=$LIBS
7416
lt_globsym_save_CFLAGS=$CFLAGS
7417
LIBS="conftstm.$ac_objext"
7418
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7419
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7420
(eval $ac_link) 2>&5
7422
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7423
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7426
LIBS=$lt_globsym_save_LIBS
7427
CFLAGS=$lt_globsym_save_CFLAGS
7429
echo "cannot find nm_test_func in $nlist" >&5
7432
echo "cannot find nm_test_var in $nlist" >&5
7435
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7438
echo "$progname: failed program was:" >&5
7439
cat conftest.$ac_ext >&5
7441
rm -rf conftest* conftst*
7443
# Do not use the global_symbol_pipe unless it works.
7444
if test "$pipe_works" = yes; then
7447
lt_cv_sys_global_symbol_pipe=
7453
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7454
lt_cv_sys_global_symbol_to_cdecl=
7456
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7458
$as_echo "failed" >&6; }
7460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7461
$as_echo "ok" >&6; }
7464
# Response file support.
7465
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7466
nm_file_list_spec='@'
7467
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7468
nm_file_list_spec='@'
7497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7498
$as_echo_n "checking for sysroot... " >&6; }
7500
# Check whether --with-sysroot was given.
7501
if test "${with_sysroot+set}" = set; then :
7502
withval=$with_sysroot;
7509
case ${with_sysroot} in #(
7511
if test "$GCC" = yes; then
7512
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7516
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7522
$as_echo "${with_sysroot}" >&6; }
7523
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7528
$as_echo "${lt_sysroot:-no}" >&6; }
7534
# Check whether --enable-libtool-lock was given.
7535
if test "${enable_libtool_lock+set}" = set; then :
7536
enableval=$enable_libtool_lock;
7539
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7541
# Some flags need to be propagated to the compiler or linker for good
7545
# Find out which ABI we are using.
7546
echo 'int i;' > conftest.$ac_ext
7547
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7548
(eval $ac_compile) 2>&5
7550
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551
test $ac_status = 0; }; then
7552
case `/usr/bin/file conftest.$ac_objext` in
7564
# Find out which ABI we are using.
7565
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7566
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7567
(eval $ac_compile) 2>&5
7569
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7570
test $ac_status = 0; }; then
7571
if test "$lt_cv_prog_gnu_ld" = yes; then
7572
case `/usr/bin/file conftest.$ac_objext` in
7574
LD="${LD-ld} -melf32bsmip"
7577
LD="${LD-ld} -melf32bmipn32"
7580
LD="${LD-ld} -melf64bmip"
7584
case `/usr/bin/file conftest.$ac_objext` in
7600
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7601
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7602
# Find out which ABI we are using.
7603
echo 'int i;' > conftest.$ac_ext
7604
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7605
(eval $ac_compile) 2>&5
7607
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7608
test $ac_status = 0; }; then
7609
case `/usr/bin/file conftest.o` in
7612
x86_64-*kfreebsd*-gnu)
7613
LD="${LD-ld} -m elf_i386_fbsd"
7616
case `/usr/bin/file conftest.o` in
7618
LD="${LD-ld} -m elf32_x86_64"
7621
LD="${LD-ld} -m elf_i386"
7626
LD="${LD-ld} -m elf32lppclinux"
7629
LD="${LD-ld} -m elf32ppclinux"
7632
LD="${LD-ld} -m elf_s390"
7635
LD="${LD-ld} -m elf32_sparc"
7641
x86_64-*kfreebsd*-gnu)
7642
LD="${LD-ld} -m elf_x86_64_fbsd"
7645
LD="${LD-ld} -m elf_x86_64"
7648
LD="${LD-ld} -m elf64lppc"
7651
LD="${LD-ld} -m elf64ppc"
7653
s390*-*linux*|s390*-*tpf*)
7654
LD="${LD-ld} -m elf64_s390"
7657
LD="${LD-ld} -m elf64_sparc"
7667
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
7668
SAVE_CFLAGS="$CFLAGS"
7669
CFLAGS="$CFLAGS -belf"
7670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7671
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7672
if ${lt_cv_cc_needs_belf+:} false; then :
7673
$as_echo_n "(cached) " >&6
7676
ac_cpp='$CPP $CPPFLAGS'
7677
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7678
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7679
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7681
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682
/* end confdefs.h. */
7692
if ac_fn_c_try_link "$LINENO"; then :
7693
lt_cv_cc_needs_belf=yes
7695
lt_cv_cc_needs_belf=no
7697
rm -f core conftest.err conftest.$ac_objext \
7698
conftest$ac_exeext conftest.$ac_ext
7700
ac_cpp='$CPP $CPPFLAGS'
7701
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7702
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7703
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7707
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7708
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7709
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7710
CFLAGS="$SAVE_CFLAGS"
7714
# Find out which ABI we are using.
7715
echo 'int i;' > conftest.$ac_ext
7716
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7717
(eval $ac_compile) 2>&5
7719
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720
test $ac_status = 0; }; then
7721
case `/usr/bin/file conftest.o` in
7723
case $lt_cv_prog_gnu_ld in
7727
LD="${LD-ld} -m elf_x86_64"
7730
LD="${LD-ld} -m elf64_sparc"
7733
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7734
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7739
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7751
need_locks="$enable_libtool_lock"
7753
if test -n "$ac_tool_prefix"; then
7754
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7755
set dummy ${ac_tool_prefix}mt; ac_word=$2
7756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757
$as_echo_n "checking for $ac_word... " >&6; }
7758
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7759
$as_echo_n "(cached) " >&6
7761
if test -n "$MANIFEST_TOOL"; then
7762
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768
test -z "$as_dir" && as_dir=.
7769
for ac_exec_ext in '' $ac_executable_extensions; do
7770
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7772
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7782
if test -n "$MANIFEST_TOOL"; then
7783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7784
$as_echo "$MANIFEST_TOOL" >&6; }
7786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787
$as_echo "no" >&6; }
7792
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7793
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7794
# Extract the first word of "mt", so it can be a program name with args.
7795
set dummy mt; ac_word=$2
7796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797
$as_echo_n "checking for $ac_word... " >&6; }
7798
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7799
$as_echo_n "(cached) " >&6
7801
if test -n "$ac_ct_MANIFEST_TOOL"; then
7802
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7804
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808
test -z "$as_dir" && as_dir=.
7809
for ac_exec_ext in '' $ac_executable_extensions; do
7810
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7812
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7822
if test -n "$ac_ct_MANIFEST_TOOL"; then
7823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7824
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827
$as_echo "no" >&6; }
7830
if test "x$ac_ct_MANIFEST_TOOL" = x; then
7833
case $cross_compiling:$ac_tool_warned in
7835
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7836
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7837
ac_tool_warned=yes ;;
7839
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7842
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7845
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7847
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7848
if ${lt_cv_path_mainfest_tool+:} false; then :
7849
$as_echo_n "(cached) " >&6
7851
lt_cv_path_mainfest_tool=no
7852
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7853
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7854
cat conftest.err >&5
7855
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7856
lt_cv_path_mainfest_tool=yes
7860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7861
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7862
if test "x$lt_cv_path_mainfest_tool" != xyes; then
7872
rhapsody* | darwin*)
7873
if test -n "$ac_tool_prefix"; then
7874
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7875
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877
$as_echo_n "checking for $ac_word... " >&6; }
7878
if ${ac_cv_prog_DSYMUTIL+:} false; then :
7879
$as_echo_n "(cached) " >&6
7881
if test -n "$DSYMUTIL"; then
7882
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888
test -z "$as_dir" && as_dir=.
7889
for ac_exec_ext in '' $ac_executable_extensions; do
7890
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7892
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7902
if test -n "$DSYMUTIL"; then
7903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7904
$as_echo "$DSYMUTIL" >&6; }
7906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907
$as_echo "no" >&6; }
7912
if test -z "$ac_cv_prog_DSYMUTIL"; then
7913
ac_ct_DSYMUTIL=$DSYMUTIL
7914
# Extract the first word of "dsymutil", so it can be a program name with args.
7915
set dummy dsymutil; ac_word=$2
7916
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917
$as_echo_n "checking for $ac_word... " >&6; }
7918
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7919
$as_echo_n "(cached) " >&6
7921
if test -n "$ac_ct_DSYMUTIL"; then
7922
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928
test -z "$as_dir" && as_dir=.
7929
for ac_exec_ext in '' $ac_executable_extensions; do
7930
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7932
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7942
if test -n "$ac_ct_DSYMUTIL"; then
7943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7944
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947
$as_echo "no" >&6; }
7950
if test "x$ac_ct_DSYMUTIL" = x; then
7953
case $cross_compiling:$ac_tool_warned in
7955
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7956
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7957
ac_tool_warned=yes ;;
7959
DSYMUTIL=$ac_ct_DSYMUTIL
7962
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7965
if test -n "$ac_tool_prefix"; then
7966
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7967
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969
$as_echo_n "checking for $ac_word... " >&6; }
7970
if ${ac_cv_prog_NMEDIT+:} false; then :
7971
$as_echo_n "(cached) " >&6
7973
if test -n "$NMEDIT"; then
7974
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7976
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980
test -z "$as_dir" && as_dir=.
7981
for ac_exec_ext in '' $ac_executable_extensions; do
7982
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7984
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993
NMEDIT=$ac_cv_prog_NMEDIT
7994
if test -n "$NMEDIT"; then
7995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7996
$as_echo "$NMEDIT" >&6; }
7998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999
$as_echo "no" >&6; }
8004
if test -z "$ac_cv_prog_NMEDIT"; then
8005
ac_ct_NMEDIT=$NMEDIT
8006
# Extract the first word of "nmedit", so it can be a program name with args.
8007
set dummy nmedit; ac_word=$2
8008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009
$as_echo_n "checking for $ac_word... " >&6; }
8010
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8011
$as_echo_n "(cached) " >&6
8013
if test -n "$ac_ct_NMEDIT"; then
8014
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8016
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020
test -z "$as_dir" && as_dir=.
8021
for ac_exec_ext in '' $ac_executable_extensions; do
8022
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023
ac_cv_prog_ac_ct_NMEDIT="nmedit"
8024
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8034
if test -n "$ac_ct_NMEDIT"; then
8035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8036
$as_echo "$ac_ct_NMEDIT" >&6; }
8038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039
$as_echo "no" >&6; }
8042
if test "x$ac_ct_NMEDIT" = x; then
8045
case $cross_compiling:$ac_tool_warned in
8047
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8049
ac_tool_warned=yes ;;
8051
NMEDIT=$ac_ct_NMEDIT
8054
NMEDIT="$ac_cv_prog_NMEDIT"
8057
if test -n "$ac_tool_prefix"; then
8058
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8059
set dummy ${ac_tool_prefix}lipo; ac_word=$2
8060
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061
$as_echo_n "checking for $ac_word... " >&6; }
8062
if ${ac_cv_prog_LIPO+:} false; then :
8063
$as_echo_n "(cached) " >&6
8065
if test -n "$LIPO"; then
8066
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072
test -z "$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_LIPO="${ac_tool_prefix}lipo"
8076
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085
LIPO=$ac_cv_prog_LIPO
8086
if test -n "$LIPO"; then
8087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8088
$as_echo "$LIPO" >&6; }
8090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091
$as_echo "no" >&6; }
8096
if test -z "$ac_cv_prog_LIPO"; then
8098
# Extract the first word of "lipo", so it can be a program name with args.
8099
set dummy lipo; ac_word=$2
8100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101
$as_echo_n "checking for $ac_word... " >&6; }
8102
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8103
$as_echo_n "(cached) " >&6
8105
if test -n "$ac_ct_LIPO"; then
8106
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112
test -z "$as_dir" && as_dir=.
8113
for ac_exec_ext in '' $ac_executable_extensions; do
8114
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115
ac_cv_prog_ac_ct_LIPO="lipo"
8116
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8126
if test -n "$ac_ct_LIPO"; then
8127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8128
$as_echo "$ac_ct_LIPO" >&6; }
8130
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131
$as_echo "no" >&6; }
8134
if test "x$ac_ct_LIPO" = x; then
8137
case $cross_compiling:$ac_tool_warned in
8139
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8140
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8141
ac_tool_warned=yes ;;
8146
LIPO="$ac_cv_prog_LIPO"
8149
if test -n "$ac_tool_prefix"; then
8150
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8151
set dummy ${ac_tool_prefix}otool; ac_word=$2
8152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153
$as_echo_n "checking for $ac_word... " >&6; }
8154
if ${ac_cv_prog_OTOOL+:} false; then :
8155
$as_echo_n "(cached) " >&6
8157
if test -n "$OTOOL"; then
8158
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164
test -z "$as_dir" && as_dir=.
8165
for ac_exec_ext in '' $ac_executable_extensions; do
8166
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8167
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8168
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177
OTOOL=$ac_cv_prog_OTOOL
8178
if test -n "$OTOOL"; then
8179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8180
$as_echo "$OTOOL" >&6; }
8182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183
$as_echo "no" >&6; }
8188
if test -z "$ac_cv_prog_OTOOL"; then
8190
# Extract the first word of "otool", so it can be a program name with args.
8191
set dummy otool; ac_word=$2
8192
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193
$as_echo_n "checking for $ac_word... " >&6; }
8194
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8195
$as_echo_n "(cached) " >&6
8197
if test -n "$ac_ct_OTOOL"; then
8198
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8200
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204
test -z "$as_dir" && as_dir=.
8205
for ac_exec_ext in '' $ac_executable_extensions; do
8206
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8207
ac_cv_prog_ac_ct_OTOOL="otool"
8208
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8218
if test -n "$ac_ct_OTOOL"; then
8219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8220
$as_echo "$ac_ct_OTOOL" >&6; }
8222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223
$as_echo "no" >&6; }
8226
if test "x$ac_ct_OTOOL" = x; then
8229
case $cross_compiling:$ac_tool_warned in
8231
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8232
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8233
ac_tool_warned=yes ;;
8238
OTOOL="$ac_cv_prog_OTOOL"
8241
if test -n "$ac_tool_prefix"; then
8242
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8243
set dummy ${ac_tool_prefix}otool64; ac_word=$2
8244
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245
$as_echo_n "checking for $ac_word... " >&6; }
8246
if ${ac_cv_prog_OTOOL64+:} false; then :
8247
$as_echo_n "(cached) " >&6
8249
if test -n "$OTOOL64"; then
8250
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256
test -z "$as_dir" && as_dir=.
8257
for ac_exec_ext in '' $ac_executable_extensions; do
8258
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8259
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8260
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269
OTOOL64=$ac_cv_prog_OTOOL64
8270
if test -n "$OTOOL64"; then
8271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8272
$as_echo "$OTOOL64" >&6; }
8274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275
$as_echo "no" >&6; }
8280
if test -z "$ac_cv_prog_OTOOL64"; then
8281
ac_ct_OTOOL64=$OTOOL64
8282
# Extract the first word of "otool64", so it can be a program name with args.
8283
set dummy otool64; ac_word=$2
8284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285
$as_echo_n "checking for $ac_word... " >&6; }
8286
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8287
$as_echo_n "(cached) " >&6
8289
if test -n "$ac_ct_OTOOL64"; then
8290
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296
test -z "$as_dir" && as_dir=.
8297
for ac_exec_ext in '' $ac_executable_extensions; do
8298
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8299
ac_cv_prog_ac_ct_OTOOL64="otool64"
8300
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8310
if test -n "$ac_ct_OTOOL64"; then
8311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8312
$as_echo "$ac_ct_OTOOL64" >&6; }
8314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315
$as_echo "no" >&6; }
8318
if test "x$ac_ct_OTOOL64" = x; then
8321
case $cross_compiling:$ac_tool_warned in
8323
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8324
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8325
ac_tool_warned=yes ;;
8327
OTOOL64=$ac_ct_OTOOL64
8330
OTOOL64="$ac_cv_prog_OTOOL64"
8359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8360
$as_echo_n "checking for -single_module linker flag... " >&6; }
8361
if ${lt_cv_apple_cc_single_mod+:} false; then :
8362
$as_echo_n "(cached) " >&6
8364
lt_cv_apple_cc_single_mod=no
8365
if test -z "${LT_MULTI_MODULE}"; then
8366
# By default we will add the -single_module flag. You can override
8367
# by either setting the environment variable LT_MULTI_MODULE
8368
# non-empty at configure time, or by adding -multi_module to the
8370
rm -rf libconftest.dylib*
8371
echo "int foo(void){return 1;}" > conftest.c
8372
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8373
-dynamiclib -Wl,-single_module conftest.c" >&5
8374
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8375
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8377
# If there is a non-empty error log, and "single_module"
8378
# appears in it, assume the flag caused a linker warning
8379
if test -s conftest.err && $GREP single_module conftest.err; then
8380
cat conftest.err >&5
8381
# Otherwise, if the output was created with a 0 exit code from
8382
# the compiler, it worked.
8383
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8384
lt_cv_apple_cc_single_mod=yes
8386
cat conftest.err >&5
8388
rm -rf libconftest.dylib*
8392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8393
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8396
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8397
if ${lt_cv_ld_exported_symbols_list+:} false; then :
8398
$as_echo_n "(cached) " >&6
8400
lt_cv_ld_exported_symbols_list=no
8401
save_LDFLAGS=$LDFLAGS
8402
echo "_main" > conftest.sym
8403
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8404
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405
/* end confdefs.h. */
8415
if ac_fn_c_try_link "$LINENO"; then :
8416
lt_cv_ld_exported_symbols_list=yes
8418
lt_cv_ld_exported_symbols_list=no
8420
rm -f core conftest.err conftest.$ac_objext \
8421
conftest$ac_exeext conftest.$ac_ext
8422
LDFLAGS="$save_LDFLAGS"
8425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8426
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8429
$as_echo_n "checking for -force_load linker flag... " >&6; }
8430
if ${lt_cv_ld_force_load+:} false; then :
8431
$as_echo_n "(cached) " >&6
8433
lt_cv_ld_force_load=no
8434
cat > conftest.c << _LT_EOF
8435
int forced_loaded() { return 2;}
8437
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8438
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8439
echo "$AR cru libconftest.a conftest.o" >&5
8440
$AR cru libconftest.a conftest.o 2>&5
8441
echo "$RANLIB libconftest.a" >&5
8442
$RANLIB libconftest.a 2>&5
8443
cat > conftest.c << _LT_EOF
8444
int main() { return 0;}
8446
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8447
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8449
if test -s conftest.err && $GREP force_load conftest.err; then
8450
cat conftest.err >&5
8451
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8452
lt_cv_ld_force_load=yes
8454
cat conftest.err >&5
8456
rm -f conftest.err libconftest.a conftest conftest.c
8457
rm -rf conftest.dSYM
8460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8461
$as_echo "$lt_cv_ld_force_load" >&6; }
8463
rhapsody* | darwin1.[012])
8464
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8466
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8467
darwin*) # darwin 5.x on
8468
# if running on 10.5 or later, the deployment target defaults
8469
# to the OS version, if on x86, and 10.4, the deployment
8470
# target defaults to 10.4. Don't you love it?
8471
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8472
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8473
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8475
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8477
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8481
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8482
_lt_dar_single_mod='$single_module'
8484
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8485
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8487
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8489
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8490
_lt_dsymutil='~$DSYMUTIL $lib || :'
8498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8499
$as_echo_n "checking for ANSI C header files... " >&6; }
8500
if ${ac_cv_header_stdc+:} false; then :
8501
$as_echo_n "(cached) " >&6
8503
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504
/* end confdefs.h. */
8518
if ac_fn_c_try_compile "$LINENO"; then :
8519
ac_cv_header_stdc=yes
8521
ac_cv_header_stdc=no
8523
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525
if test $ac_cv_header_stdc = yes; then
8526
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8527
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528
/* end confdefs.h. */
8532
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8533
$EGREP "memchr" >/dev/null 2>&1; then :
8536
ac_cv_header_stdc=no
8542
if test $ac_cv_header_stdc = yes; then
8543
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8544
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545
/* end confdefs.h. */
8549
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8550
$EGREP "free" >/dev/null 2>&1; then :
8553
ac_cv_header_stdc=no
8559
if test $ac_cv_header_stdc = yes; then
8560
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8561
if test "$cross_compiling" = yes; then :
8564
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565
/* end confdefs.h. */
8568
#if ((' ' & 0x0FF) == 0x020)
8569
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8570
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8572
# define ISLOWER(c) \
8573
(('a' <= (c) && (c) <= 'i') \
8574
|| ('j' <= (c) && (c) <= 'r') \
8575
|| ('s' <= (c) && (c) <= 'z'))
8576
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8579
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8584
for (i = 0; i < 256; i++)
8585
if (XOR (islower (i), ISLOWER (i))
8586
|| toupper (i) != TOUPPER (i))
8591
if ac_fn_c_try_run "$LINENO"; then :
8594
ac_cv_header_stdc=no
8596
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8597
conftest.$ac_objext conftest.beam conftest.$ac_ext
8602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8603
$as_echo "$ac_cv_header_stdc" >&6; }
8604
if test $ac_cv_header_stdc = yes; then
8606
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8610
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8611
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8612
inttypes.h stdint.h unistd.h
8614
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8615
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8617
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8618
cat >>confdefs.h <<_ACEOF
8619
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8627
for ac_header in dlfcn.h
8629
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8631
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8632
cat >>confdefs.h <<_ACEOF
8633
#define HAVE_DLFCN_H 1
8645
# Check whether --enable-shared was given.
8646
if test "${enable_shared+set}" = set; then :
8647
enableval=$enable_shared; p=${PACKAGE-default}
8649
yes) enable_shared=yes ;;
8650
no) enable_shared=no ;;
8653
# Look at the argument we got. We use all the common list separators.
8654
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8655
for pkg in $enableval; do
8657
if test "X$pkg" = "X$p"; then
8674
# Check whether --enable-static was given.
8675
if test "${enable_static+set}" = set; then :
8676
enableval=$enable_static; p=${PACKAGE-default}
8678
yes) enable_static=yes ;;
8679
no) enable_static=no ;;
8682
# Look at the argument we got. We use all the common list separators.
8683
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8684
for pkg in $enableval; do
8686
if test "X$pkg" = "X$p"; then
8703
enable_win32_dll=yes
8706
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8707
if test -n "$ac_tool_prefix"; then
8708
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8709
set dummy ${ac_tool_prefix}as; ac_word=$2
8710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8711
$as_echo_n "checking for $ac_word... " >&6; }
8712
if ${ac_cv_prog_AS+:} false; then :
8713
$as_echo_n "(cached) " >&6
8715
if test -n "$AS"; then
8716
ac_cv_prog_AS="$AS" # Let the user override the test.
8718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8722
test -z "$as_dir" && as_dir=.
8723
for ac_exec_ext in '' $ac_executable_extensions; do
8724
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8725
ac_cv_prog_AS="${ac_tool_prefix}as"
8726
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8736
if test -n "$AS"; then
8737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8738
$as_echo "$AS" >&6; }
8740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741
$as_echo "no" >&6; }
8746
if test -z "$ac_cv_prog_AS"; then
8748
# Extract the first word of "as", so it can be a program name with args.
8749
set dummy as; ac_word=$2
8750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751
$as_echo_n "checking for $ac_word... " >&6; }
8752
if ${ac_cv_prog_ac_ct_AS+:} false; then :
8753
$as_echo_n "(cached) " >&6
8755
if test -n "$ac_ct_AS"; then
8756
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762
test -z "$as_dir" && as_dir=.
8763
for ac_exec_ext in '' $ac_executable_extensions; do
8764
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8765
ac_cv_prog_ac_ct_AS="as"
8766
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775
ac_ct_AS=$ac_cv_prog_ac_ct_AS
8776
if test -n "$ac_ct_AS"; then
8777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8778
$as_echo "$ac_ct_AS" >&6; }
8780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781
$as_echo "no" >&6; }
8784
if test "x$ac_ct_AS" = x; then
8787
case $cross_compiling:$ac_tool_warned in
8789
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8790
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8791
ac_tool_warned=yes ;;
8799
if test -n "$ac_tool_prefix"; then
8800
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8801
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803
$as_echo_n "checking for $ac_word... " >&6; }
8804
if ${ac_cv_prog_DLLTOOL+:} false; then :
8805
$as_echo_n "(cached) " >&6
8807
if test -n "$DLLTOOL"; then
8808
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814
test -z "$as_dir" && as_dir=.
8815
for ac_exec_ext in '' $ac_executable_extensions; do
8816
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8817
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8818
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8827
DLLTOOL=$ac_cv_prog_DLLTOOL
8828
if test -n "$DLLTOOL"; then
8829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8830
$as_echo "$DLLTOOL" >&6; }
8832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833
$as_echo "no" >&6; }
8838
if test -z "$ac_cv_prog_DLLTOOL"; then
8839
ac_ct_DLLTOOL=$DLLTOOL
8840
# Extract the first word of "dlltool", so it can be a program name with args.
8841
set dummy dlltool; ac_word=$2
8842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8843
$as_echo_n "checking for $ac_word... " >&6; }
8844
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8845
$as_echo_n "(cached) " >&6
8847
if test -n "$ac_ct_DLLTOOL"; then
8848
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8850
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854
test -z "$as_dir" && as_dir=.
8855
for ac_exec_ext in '' $ac_executable_extensions; do
8856
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8857
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8858
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8867
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8868
if test -n "$ac_ct_DLLTOOL"; then
8869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8870
$as_echo "$ac_ct_DLLTOOL" >&6; }
8872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873
$as_echo "no" >&6; }
8876
if test "x$ac_ct_DLLTOOL" = x; then
8879
case $cross_compiling:$ac_tool_warned in
8881
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8882
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8883
ac_tool_warned=yes ;;
8885
DLLTOOL=$ac_ct_DLLTOOL
8888
DLLTOOL="$ac_cv_prog_DLLTOOL"
8891
if test -n "$ac_tool_prefix"; then
8892
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8893
set dummy ${ac_tool_prefix}objdump; ac_word=$2
8894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895
$as_echo_n "checking for $ac_word... " >&6; }
8896
if ${ac_cv_prog_OBJDUMP+:} false; then :
8897
$as_echo_n "(cached) " >&6
8899
if test -n "$OBJDUMP"; then
8900
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906
test -z "$as_dir" && as_dir=.
8907
for ac_exec_ext in '' $ac_executable_extensions; do
8908
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8909
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8910
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919
OBJDUMP=$ac_cv_prog_OBJDUMP
8920
if test -n "$OBJDUMP"; then
8921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8922
$as_echo "$OBJDUMP" >&6; }
8924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925
$as_echo "no" >&6; }
8930
if test -z "$ac_cv_prog_OBJDUMP"; then
8931
ac_ct_OBJDUMP=$OBJDUMP
8932
# Extract the first word of "objdump", so it can be a program name with args.
8933
set dummy objdump; ac_word=$2
8934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935
$as_echo_n "checking for $ac_word... " >&6; }
8936
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8937
$as_echo_n "(cached) " >&6
8939
if test -n "$ac_ct_OBJDUMP"; then
8940
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946
test -z "$as_dir" && as_dir=.
8947
for ac_exec_ext in '' $ac_executable_extensions; do
8948
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8949
ac_cv_prog_ac_ct_OBJDUMP="objdump"
8950
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8960
if test -n "$ac_ct_OBJDUMP"; then
8961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8962
$as_echo "$ac_ct_OBJDUMP" >&6; }
8964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965
$as_echo "no" >&6; }
8968
if test "x$ac_ct_OBJDUMP" = x; then
8971
case $cross_compiling:$ac_tool_warned in
8973
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8974
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8975
ac_tool_warned=yes ;;
8977
OBJDUMP=$ac_ct_OBJDUMP
8980
OBJDUMP="$ac_cv_prog_OBJDUMP"
8986
test -z "$AS" && AS=as
8992
test -z "$DLLTOOL" && DLLTOOL=dlltool
8998
test -z "$OBJDUMP" && OBJDUMP=objdump
9013
# Check whether --with-pic was given.
9014
if test "${with_pic+set}" = set; then :
9015
withval=$with_pic; lt_p=${PACKAGE-default}
9017
yes|no) pic_mode=$withval ;;
9020
# Look at the argument we got. We use all the common list separators.
9021
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9022
for lt_pkg in $withval; do
9024
if test "X$lt_pkg" = "X$lt_p"; then
9036
test -z "$pic_mode" && pic_mode=default
9044
# Check whether --enable-fast-install was given.
9045
if test "${enable_fast_install+set}" = set; then :
9046
enableval=$enable_fast_install; p=${PACKAGE-default}
9048
yes) enable_fast_install=yes ;;
9049
no) enable_fast_install=no ;;
9051
enable_fast_install=no
9052
# Look at the argument we got. We use all the common list separators.
9053
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9054
for pkg in $enableval; do
9056
if test "X$pkg" = "X$p"; then
9057
enable_fast_install=yes
9064
enable_fast_install=yes
9077
# This can be used to rebuild libtool when needed
9078
LIBTOOL_DEPS="$ltmain"
9080
# Always use our own libtool.
9081
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9112
test -z "$LN_S" && LN_S="ln -s"
9127
if test -n "${ZSH_VERSION+set}" ; then
9128
setopt NO_GLOB_SUBST
9131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9132
$as_echo_n "checking for objdir... " >&6; }
9133
if ${lt_cv_objdir+:} false; then :
9134
$as_echo_n "(cached) " >&6
9136
rm -f .libs 2>/dev/null
9137
mkdir .libs 2>/dev/null
9138
if test -d .libs; then
9141
# MS-DOS does not allow filenames that begin with a dot.
9144
rmdir .libs 2>/dev/null
9146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9147
$as_echo "$lt_cv_objdir" >&6; }
9148
objdir=$lt_cv_objdir
9154
cat >>confdefs.h <<_ACEOF
9155
#define LT_OBJDIR "$lt_cv_objdir/"
9163
# AIX sometimes has problems with the GCC collect2 program. For some
9164
# reason, if we set the COLLECT_NAMES environment variable, the problems
9165
# vanish in a puff of smoke.
9166
if test "X${COLLECT_NAMES+set}" != Xset; then
9168
export COLLECT_NAMES
9175
can_build_shared=yes
9177
# All known linkers require a `.a' archive for static linking (except MSVC,
9178
# which needs '.lib').
9181
with_gnu_ld="$lt_cv_prog_gnu_ld"
9184
old_CFLAGS="$CFLAGS"
9186
# Set sane defaults for various variables
9187
test -z "$CC" && CC=cc
9188
test -z "$LTCC" && LTCC=$CC
9189
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9190
test -z "$LD" && LD=ld
9191
test -z "$ac_objext" && ac_objext=o
9193
for cc_temp in $compiler""; do
9195
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9196
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9201
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9204
# Only perform the check for file, if the check method requires it
9205
test -z "$MAGIC_CMD" && MAGIC_CMD=file
9206
case $deplibs_check_method in
9208
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9210
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9211
if ${lt_cv_path_MAGIC_CMD+:} false; then :
9212
$as_echo_n "(cached) " >&6
9216
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9219
lt_save_MAGIC_CMD="$MAGIC_CMD"
9220
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9221
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9222
for ac_dir in $ac_dummy; do
9224
test -z "$ac_dir" && ac_dir=.
9225
if test -f $ac_dir/${ac_tool_prefix}file; then
9226
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9227
if test -n "$file_magic_test_file"; then
9228
case $deplibs_check_method in
9230
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9231
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9232
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9233
$EGREP "$file_magic_regex" > /dev/null; then
9238
*** Warning: the command libtool uses to detect shared libraries,
9239
*** $file_magic_cmd, produces output that libtool cannot recognize.
9240
*** The result is that libtool may fail to recognize shared libraries
9241
*** as such. This will affect the creation of libtool libraries that
9242
*** depend on shared libraries, but programs linked with such libtool
9243
*** libraries will work regardless of this problem. Nevertheless, you
9244
*** may want to report the problem to your system manager and/or to
9245
*** bug-libtool@gnu.org
9255
MAGIC_CMD="$lt_save_MAGIC_CMD"
9260
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9261
if test -n "$MAGIC_CMD"; then
9262
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9263
$as_echo "$MAGIC_CMD" >&6; }
9265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9266
$as_echo "no" >&6; }
9273
if test -z "$lt_cv_path_MAGIC_CMD"; then
9274
if test -n "$ac_tool_prefix"; then
9275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9276
$as_echo_n "checking for file... " >&6; }
9277
if ${lt_cv_path_MAGIC_CMD+:} false; then :
9278
$as_echo_n "(cached) " >&6
9282
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9285
lt_save_MAGIC_CMD="$MAGIC_CMD"
9286
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9287
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9288
for ac_dir in $ac_dummy; do
9290
test -z "$ac_dir" && ac_dir=.
9291
if test -f $ac_dir/file; then
9292
lt_cv_path_MAGIC_CMD="$ac_dir/file"
9293
if test -n "$file_magic_test_file"; then
9294
case $deplibs_check_method in
9296
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9297
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9298
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9299
$EGREP "$file_magic_regex" > /dev/null; then
9304
*** Warning: the command libtool uses to detect shared libraries,
9305
*** $file_magic_cmd, produces output that libtool cannot recognize.
9306
*** The result is that libtool may fail to recognize shared libraries
9307
*** as such. This will affect the creation of libtool libraries that
9308
*** depend on shared libraries, but programs linked with such libtool
9309
*** libraries will work regardless of this problem. Nevertheless, you
9310
*** may want to report the problem to your system manager and/or to
9311
*** bug-libtool@gnu.org
9321
MAGIC_CMD="$lt_save_MAGIC_CMD"
9326
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9327
if test -n "$MAGIC_CMD"; then
9328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9329
$as_echo "$MAGIC_CMD" >&6; }
9331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9332
$as_echo "no" >&6; }
9345
# Use C for the default configuration in the libtool script
9349
ac_cpp='$CPP $CPPFLAGS'
9350
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9351
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9352
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9355
# Source file extension for C test sources.
9358
# Object file extension for compiled C test sources.
9362
# Code to be used in simple compile tests
9363
lt_simple_compile_test_code="int some_variable = 0;"
9365
# Code to be used in simple link tests
9366
lt_simple_link_test_code='int main(){return(0);}'
9374
# If no C compiler was specified, use CC.
9377
# If no C compiler flags were specified, use CFLAGS.
9378
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9380
# Allow CC to be a program name with arguments.
9383
# Save the default compiler, since it gets overwritten when the other
9384
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9385
compiler_DEFAULT=$CC
9387
# save warnings/boilerplate of simple test code
9388
ac_outfile=conftest.$ac_objext
9389
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9390
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9391
_lt_compiler_boilerplate=`cat conftest.err`
9394
ac_outfile=conftest.$ac_objext
9395
echo "$lt_simple_link_test_code" >conftest.$ac_ext
9396
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9397
_lt_linker_boilerplate=`cat conftest.err`
9402
## There is no encapsulation within the following macros, do not change
9403
## the running order or otherwise move them around unless you know exactly
9404
## what you are doing...
9405
if test -n "$compiler"; then
9407
lt_prog_compiler_no_builtin_flag=
9409
if test "$GCC" = yes; then
9410
case $cc_basename in
9412
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9414
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9418
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9419
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9420
$as_echo_n "(cached) " >&6
9422
lt_cv_prog_compiler_rtti_exceptions=no
9423
ac_outfile=conftest.$ac_objext
9424
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9425
lt_compiler_flag="-fno-rtti -fno-exceptions"
9426
# Insert the option either (1) after the last *FLAGS variable, or
9427
# (2) before a word containing "conftest.", or (3) at the end.
9428
# Note that $ac_compile itself does not contain backslashes and begins
9429
# with a dollar sign (not a hyphen), so the echo should work correctly.
9430
# The option is referenced via a variable to avoid confusing sed.
9431
lt_compile=`echo "$ac_compile" | $SED \
9432
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9433
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9434
-e 's:$: $lt_compiler_flag:'`
9435
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9436
(eval "$lt_compile" 2>conftest.err)
9438
cat conftest.err >&5
9439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440
if (exit $ac_status) && test -s "$ac_outfile"; then
9441
# The compiler can only warn and ignore the option if not recognized
9442
# So say no if there are warnings other than the usual output.
9443
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9444
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9445
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9446
lt_cv_prog_compiler_rtti_exceptions=yes
9452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9453
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9455
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9456
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9468
lt_prog_compiler_wl=
9469
lt_prog_compiler_pic=
9470
lt_prog_compiler_static=
9473
if test "$GCC" = yes; then
9474
lt_prog_compiler_wl='-Wl,'
9475
lt_prog_compiler_static='-static'
9479
# All AIX code is PIC.
9480
if test "$host_cpu" = ia64; then
9481
# AIX 5 now supports IA64 processor
9482
lt_prog_compiler_static='-Bstatic'
9489
# see comment about AmigaOS4 .so support
9490
lt_prog_compiler_pic='-fPIC'
9493
# FIXME: we need at least 68020 code to build shared libraries, but
9494
# adding the `-m68020' flag to GCC prevents building anything better,
9496
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9501
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9502
# PIC is the default for these OSes.
9505
mingw* | cygwin* | pw32* | os2* | cegcc*)
9506
# This hack is so that the source file can tell whether it is being
9507
# built for inclusion in a dll (and should export symbols for example).
9508
# Although the cygwin gcc ignores -fPIC, still need this for old-style
9509
# (--disable-auto-import) libraries
9510
lt_prog_compiler_pic='-DDLL_EXPORT'
9513
darwin* | rhapsody*)
9514
# PIC is the default on this platform
9515
# Common symbols not allowed in MH_DYLIB files
9516
lt_prog_compiler_pic='-fno-common'
9520
# PIC is the default for Haiku.
9521
# The "-static" flag exists, but is broken.
9522
lt_prog_compiler_static=
9526
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9527
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9528
# sets the default TLS model and affects inlining.
9534
lt_prog_compiler_pic='-fPIC'
9540
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
9541
# Instead, we relocate shared libraries at runtime.
9545
# Just because we use GCC doesn't mean we suddenly get shared libraries
9546
# on systems that don't support them.
9547
lt_prog_compiler_can_build_shared=no
9552
# QNX uses GNU C++, but need to define -shared option too, otherwise
9554
lt_prog_compiler_pic='-fPIC -shared'
9558
if test -d /usr/nec; then
9559
lt_prog_compiler_pic=-Kconform_pic
9564
lt_prog_compiler_pic='-fPIC'
9568
case $cc_basename in
9569
nvcc*) # Cuda Compiler Driver 2.2
9570
lt_prog_compiler_wl='-Xlinker '
9571
if test -n "$lt_prog_compiler_pic"; then
9572
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9577
# PORTME Check for flag to pass linker flags through the system compiler.
9580
lt_prog_compiler_wl='-Wl,'
9581
if test "$host_cpu" = ia64; then
9582
# AIX 5 now supports IA64 processor
9583
lt_prog_compiler_static='-Bstatic'
9585
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9589
mingw* | cygwin* | pw32* | os2* | cegcc*)
9590
# This hack is so that the source file can tell whether it is being
9591
# built for inclusion in a dll (and should export symbols for example).
9592
lt_prog_compiler_pic='-DDLL_EXPORT'
9595
hpux9* | hpux10* | hpux11*)
9596
lt_prog_compiler_wl='-Wl,'
9597
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9604
lt_prog_compiler_pic='+Z'
9607
# Is there a better lt_prog_compiler_static that works with the bundled CC?
9608
lt_prog_compiler_static='${wl}-a ${wl}archive'
9611
irix5* | irix6* | nonstopux*)
9612
lt_prog_compiler_wl='-Wl,'
9613
# PIC (with -KPIC) is the default.
9614
lt_prog_compiler_static='-non_shared'
9617
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9618
case $cc_basename in
9619
# old Intel for x86_64 which still supported -KPIC.
9621
lt_prog_compiler_wl='-Wl,'
9622
lt_prog_compiler_pic='-KPIC'
9623
lt_prog_compiler_static='-static'
9625
# icc used to be incompatible with GCC.
9626
# ICC 10 doesn't accept -KPIC any more.
9628
lt_prog_compiler_wl='-Wl,'
9629
lt_prog_compiler_pic='-fPIC'
9630
lt_prog_compiler_static='-static'
9632
# Lahey Fortran 8.1.
9634
lt_prog_compiler_wl='-Wl,'
9635
lt_prog_compiler_pic='--shared'
9636
lt_prog_compiler_static='--static'
9639
# NAG Fortran compiler
9640
lt_prog_compiler_wl='-Wl,-Wl,,'
9641
lt_prog_compiler_pic='-PIC'
9642
lt_prog_compiler_static='-Bstatic'
9644
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9645
# Portland Group compilers (*not* the Pentium gcc compiler,
9646
# which looks to be a dead project)
9647
lt_prog_compiler_wl='-Wl,'
9648
lt_prog_compiler_pic='-fpic'
9649
lt_prog_compiler_static='-Bstatic'
9652
lt_prog_compiler_wl='-Wl,'
9653
# All Alpha code is PIC.
9654
lt_prog_compiler_static='-non_shared'
9656
xl* | bgxl* | bgf* | mpixl*)
9657
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9658
lt_prog_compiler_wl='-Wl,'
9659
lt_prog_compiler_pic='-qpic'
9660
lt_prog_compiler_static='-qstaticlink'
9663
case `$CC -V 2>&1 | sed 5q` in
9664
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9665
# Sun Fortran 8.3 passes all unrecognized flags to the linker
9666
lt_prog_compiler_pic='-KPIC'
9667
lt_prog_compiler_static='-Bstatic'
9668
lt_prog_compiler_wl=''
9670
*Sun\ F* | *Sun*Fortran*)
9671
lt_prog_compiler_pic='-KPIC'
9672
lt_prog_compiler_static='-Bstatic'
9673
lt_prog_compiler_wl='-Qoption ld '
9677
lt_prog_compiler_pic='-KPIC'
9678
lt_prog_compiler_static='-Bstatic'
9679
lt_prog_compiler_wl='-Wl,'
9681
*Intel*\ [CF]*Compiler*)
9682
lt_prog_compiler_wl='-Wl,'
9683
lt_prog_compiler_pic='-fPIC'
9684
lt_prog_compiler_static='-static'
9687
lt_prog_compiler_wl='-Wl,'
9688
lt_prog_compiler_pic='-fpic'
9689
lt_prog_compiler_static='-Bstatic'
9697
lt_prog_compiler_pic='-KPIC'
9698
lt_prog_compiler_static='-Bstatic'
9702
# QNX uses GNU C++, but need to define -shared option too, otherwise
9704
lt_prog_compiler_pic='-fPIC -shared'
9707
osf3* | osf4* | osf5*)
9708
lt_prog_compiler_wl='-Wl,'
9709
# All OSF/1 code is PIC.
9710
lt_prog_compiler_static='-non_shared'
9714
lt_prog_compiler_static='-non_shared'
9718
lt_prog_compiler_pic='-KPIC'
9719
lt_prog_compiler_static='-Bstatic'
9720
case $cc_basename in
9721
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9722
lt_prog_compiler_wl='-Qoption ld ';;
9724
lt_prog_compiler_wl='-Wl,';;
9729
lt_prog_compiler_wl='-Qoption ld '
9730
lt_prog_compiler_pic='-PIC'
9731
lt_prog_compiler_static='-Bstatic'
9734
sysv4 | sysv4.2uw2* | sysv4.3*)
9735
lt_prog_compiler_wl='-Wl,'
9736
lt_prog_compiler_pic='-KPIC'
9737
lt_prog_compiler_static='-Bstatic'
9741
if test -d /usr/nec ;then
9742
lt_prog_compiler_pic='-Kconform_pic'
9743
lt_prog_compiler_static='-Bstatic'
9747
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9748
lt_prog_compiler_wl='-Wl,'
9749
lt_prog_compiler_pic='-KPIC'
9750
lt_prog_compiler_static='-Bstatic'
9754
lt_prog_compiler_wl='-Wl,'
9755
lt_prog_compiler_can_build_shared=no
9759
lt_prog_compiler_pic='-pic'
9760
lt_prog_compiler_static='-Bstatic'
9764
lt_prog_compiler_can_build_shared=no
9770
# For platforms which do not support PIC, -DPIC is meaningless:
9772
lt_prog_compiler_pic=
9775
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9780
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9781
if ${lt_cv_prog_compiler_pic+:} false; then :
9782
$as_echo_n "(cached) " >&6
9784
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9787
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9788
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9791
# Check to make sure the PIC flag actually works.
9793
if test -n "$lt_prog_compiler_pic"; then
9794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9795
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9796
if ${lt_cv_prog_compiler_pic_works+:} false; then :
9797
$as_echo_n "(cached) " >&6
9799
lt_cv_prog_compiler_pic_works=no
9800
ac_outfile=conftest.$ac_objext
9801
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9802
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9803
# Insert the option either (1) after the last *FLAGS variable, or
9804
# (2) before a word containing "conftest.", or (3) at the end.
9805
# Note that $ac_compile itself does not contain backslashes and begins
9806
# with a dollar sign (not a hyphen), so the echo should work correctly.
9807
# The option is referenced via a variable to avoid confusing sed.
9808
lt_compile=`echo "$ac_compile" | $SED \
9809
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9810
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9811
-e 's:$: $lt_compiler_flag:'`
9812
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9813
(eval "$lt_compile" 2>conftest.err)
9815
cat conftest.err >&5
9816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817
if (exit $ac_status) && test -s "$ac_outfile"; then
9818
# The compiler can only warn and ignore the option if not recognized
9819
# So say no if there are warnings other than the usual output.
9820
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9821
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9822
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9823
lt_cv_prog_compiler_pic_works=yes
9829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9830
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9832
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9833
case $lt_prog_compiler_pic in
9835
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9838
lt_prog_compiler_pic=
9839
lt_prog_compiler_can_build_shared=no
9855
# Check to make sure the static flag actually works.
9857
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9859
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9860
if ${lt_cv_prog_compiler_static_works+:} false; then :
9861
$as_echo_n "(cached) " >&6
9863
lt_cv_prog_compiler_static_works=no
9864
save_LDFLAGS="$LDFLAGS"
9865
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9866
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9867
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9868
# The linker can only warn and ignore the option if not recognized
9869
# So say no if there are warnings
9870
if test -s conftest.err; then
9871
# Append any errors to the config.log.
9872
cat conftest.err 1>&5
9873
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9874
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9875
if diff conftest.exp conftest.er2 >/dev/null; then
9876
lt_cv_prog_compiler_static_works=yes
9879
lt_cv_prog_compiler_static_works=yes
9883
LDFLAGS="$save_LDFLAGS"
9886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9887
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9889
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9892
lt_prog_compiler_static=
9901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9902
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9903
if ${lt_cv_prog_compiler_c_o+:} false; then :
9904
$as_echo_n "(cached) " >&6
9906
lt_cv_prog_compiler_c_o=no
9907
$RM -r conftest 2>/dev/null
9911
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9913
lt_compiler_flag="-o out/conftest2.$ac_objext"
9914
# Insert the option either (1) after the last *FLAGS variable, or
9915
# (2) before a word containing "conftest.", or (3) at the end.
9916
# Note that $ac_compile itself does not contain backslashes and begins
9917
# with a dollar sign (not a hyphen), so the echo should work correctly.
9918
lt_compile=`echo "$ac_compile" | $SED \
9919
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9920
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9921
-e 's:$: $lt_compiler_flag:'`
9922
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9923
(eval "$lt_compile" 2>out/conftest.err)
9925
cat out/conftest.err >&5
9926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9929
# The compiler can only warn and ignore the option if not recognized
9930
# So say no if there are warnings
9931
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9932
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9933
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9934
lt_cv_prog_compiler_c_o=yes
9939
# SGI C++ compiler will create directory out/ii_files/ for
9940
# template instantiation
9941
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9942
$RM out/* && rmdir out
9948
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9949
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9957
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9958
if ${lt_cv_prog_compiler_c_o+:} false; then :
9959
$as_echo_n "(cached) " >&6
9961
lt_cv_prog_compiler_c_o=no
9962
$RM -r conftest 2>/dev/null
9966
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9968
lt_compiler_flag="-o out/conftest2.$ac_objext"
9969
# Insert the option either (1) after the last *FLAGS variable, or
9970
# (2) before a word containing "conftest.", or (3) at the end.
9971
# Note that $ac_compile itself does not contain backslashes and begins
9972
# with a dollar sign (not a hyphen), so the echo should work correctly.
9973
lt_compile=`echo "$ac_compile" | $SED \
9974
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9975
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9976
-e 's:$: $lt_compiler_flag:'`
9977
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9978
(eval "$lt_compile" 2>out/conftest.err)
9980
cat out/conftest.err >&5
9981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9984
# The compiler can only warn and ignore the option if not recognized
9985
# So say no if there are warnings
9986
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9987
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9988
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9989
lt_cv_prog_compiler_c_o=yes
9994
# SGI C++ compiler will create directory out/ii_files/ for
9995
# template instantiation
9996
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9997
$RM out/* && rmdir out
10003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10004
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10009
hard_links="nottested"
10010
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10011
# do not overwrite the value of need_locks provided by the user
10012
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10013
$as_echo_n "checking if we can lock with hard links... " >&6; }
10016
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10018
ln conftest.a conftest.b 2>&5 || hard_links=no
10019
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10021
$as_echo "$hard_links" >&6; }
10022
if test "$hard_links" = no; then
10023
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10024
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10037
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10040
allow_undefined_flag=
10041
always_export_symbols=no
10043
archive_expsym_cmds=
10044
compiler_needs_object=no
10045
enable_shared_with_static_runtimes=no
10046
export_dynamic_flag_spec=
10047
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10048
hardcode_automatic=no
10050
hardcode_direct_absolute=no
10051
hardcode_libdir_flag_spec=
10052
hardcode_libdir_separator=
10053
hardcode_minus_L=no
10054
hardcode_shlibpath_var=unsupported
10056
link_all_deplibs=unknown
10058
module_expsym_cmds=
10059
old_archive_from_new_cmds=
10060
old_archive_from_expsyms_cmds=
10061
thread_safe_flag_spec=
10062
whole_archive_flag_spec=
10063
# include_expsyms should be a list of space-separated symbols to be *always*
10064
# included in the symbol list
10066
# exclude_expsyms can be an extended regexp of symbols to exclude
10067
# it will be wrapped by ` (' and `)$', so one must not match beginning or
10068
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10069
# as well as any symbol that contains `d'.
10070
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10071
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10072
# platforms (ab)use it in PIC code, but their linkers get confused if
10073
# the symbol is explicitly referenced. Since portable code cannot
10074
# rely on this symbol name, it's probably fine to never include it in
10075
# preloaded symbol tables.
10076
# Exclude shared library initialization/finalization symbols.
10077
extract_expsyms_cmds=
10080
cygwin* | mingw* | pw32* | cegcc*)
10081
# FIXME: the MSVC++ port hasn't been tested in a loooong time
10082
# When not using gcc, we currently assume that we are using
10083
# Microsoft Visual C++.
10084
if test "$GCC" != yes; then
10089
# we just hope/assume this is gcc and not c89 (= MSVC++)
10095
linux* | k*bsd*-gnu | gnu*)
10096
link_all_deplibs=no
10102
# On some targets, GNU ld is compatible enough with the native linker
10103
# that we're better off using the native interface for both.
10104
lt_use_gnu_ld_interface=no
10105
if test "$with_gnu_ld" = yes; then
10108
# The AIX port of GNU ld has always aspired to compatibility
10109
# with the native linker. However, as the warning in the GNU ld
10110
# block says, versions before 2.19.5* couldn't really create working
10111
# shared libraries, regardless of the interface used.
10112
case `$LD -v 2>&1` in
10113
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10114
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10115
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
10117
lt_use_gnu_ld_interface=yes
10122
lt_use_gnu_ld_interface=yes
10127
if test "$lt_use_gnu_ld_interface" = yes; then
10128
# If archive_cmds runs LD, not CC, wlarc should be empty
10131
# Set some defaults for GNU ld with shared library support. These
10132
# are reset later if shared libraries are not supported. Putting them
10133
# here allows them to be overridden if necessary.
10134
runpath_var=LD_RUN_PATH
10135
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10136
export_dynamic_flag_spec='${wl}--export-dynamic'
10137
# ancient GNU ld didn't support --whole-archive et. al.
10138
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10139
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10141
whole_archive_flag_spec=
10143
supports_anon_versioning=no
10144
case `$LD -v 2>&1` in
10145
*GNU\ gold*) supports_anon_versioning=yes ;;
10146
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10147
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10148
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10149
*\ 2.11.*) ;; # other 2.11 versions
10150
*) supports_anon_versioning=yes ;;
10153
# See if GNU ld supports shared libraries.
10156
# On AIX/PPC, the GNU linker is very broken
10157
if test "$host_cpu" != ia64; then
10161
*** Warning: the GNU linker, at least up to release 2.19, is reported
10162
*** to be unable to reliably create shared libraries on AIX.
10163
*** Therefore, libtool is disabling shared libraries support. If you
10164
*** really care for shared libraries, you may want to install binutils
10165
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10166
*** You will then need to restart the configuration process.
10175
# see comment about AmigaOS4 .so support
10176
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10177
archive_expsym_cmds=''
10180
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)'
10181
hardcode_libdir_flag_spec='-L$libdir'
10182
hardcode_minus_L=yes
10188
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10189
allow_undefined_flag=unsupported
10190
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10191
# support --undefined. This deserves some investigation. FIXME
10192
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10198
cygwin* | mingw* | pw32* | cegcc*)
10199
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10200
# as there is no search path for DLLs.
10201
hardcode_libdir_flag_spec='-L$libdir'
10202
export_dynamic_flag_spec='${wl}--export-all-symbols'
10203
allow_undefined_flag=unsupported
10204
always_export_symbols=no
10205
enable_shared_with_static_runtimes=yes
10206
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'
10207
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10209
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10210
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10211
# If the export-symbols file already is a .def file (1st line
10212
# is EXPORTS), use it as is; otherwise, prepend...
10213
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10214
cp $export_symbols $output_objdir/$soname.def;
10216
echo EXPORTS > $output_objdir/$soname.def;
10217
cat $export_symbols >> $output_objdir/$soname.def;
10219
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10226
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10227
link_all_deplibs=yes
10232
hardcode_shlibpath_var=no
10233
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10234
export_dynamic_flag_spec='${wl}-E'
10235
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10236
# Instead, shared libraries are loaded at an image base (0x10000000 by
10237
# default) and relocated if they conflict, which is a slow very memory
10238
# consuming and fragmenting process. To avoid this, we pick a random,
10239
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10240
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10241
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10242
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'
10245
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10247
if test "$host_os" = linux-dietlibc; then
10248
case $cc_basename in
10249
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10252
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10253
&& test "$tmp_diet" = no
10255
tmp_addflag=' $pic_flag'
10256
tmp_sharedflag='-shared'
10257
case $cc_basename,$host_cpu in
10258
pgcc*) # Portland Group C compiler
10259
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'
10260
tmp_addflag=' $pic_flag'
10262
pgf77* | pgf90* | pgf95* | pgfortran*)
10263
# Portland Group f77 and f90 compilers
10264
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'
10265
tmp_addflag=' $pic_flag -Mnomain' ;;
10266
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10267
tmp_addflag=' -i_dynamic' ;;
10268
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10269
tmp_addflag=' -i_dynamic -nofor_main' ;;
10270
ifc* | ifort*) # Intel Fortran compiler
10271
tmp_addflag=' -nofor_main' ;;
10272
lf95*) # Lahey Fortran 8.1
10273
whole_archive_flag_spec=
10274
tmp_sharedflag='--shared' ;;
10275
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10276
tmp_sharedflag='-qmkshrobj'
10278
nvcc*) # Cuda Compiler Driver 2.2
10279
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'
10280
compiler_needs_object=yes
10283
case `$CC -V 2>&1 | sed 5q` in
10284
*Sun\ C*) # Sun C 5.9
10285
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'
10286
compiler_needs_object=yes
10287
tmp_sharedflag='-G' ;;
10288
*Sun\ F*) # Sun Fortran 8.3
10289
tmp_sharedflag='-G' ;;
10291
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10293
if test "x$supports_anon_versioning" = xyes; then
10294
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10295
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10296
echo "local: *; };" >> $output_objdir/$libname.ver~
10297
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10300
case $cc_basename in
10301
xlf* | bgf* | bgxlf* | mpixlf*)
10302
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10303
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10304
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10305
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10306
if test "x$supports_anon_versioning" = xyes; then
10307
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10308
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10309
echo "local: *; };" >> $output_objdir/$libname.ver~
10310
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10319
netbsd* | netbsdelf*-gnu)
10320
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10321
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10324
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10325
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10330
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10334
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10335
*** create shared libraries on Solaris systems. Therefore, libtool
10336
*** is disabling shared libraries support. We urge you to upgrade GNU
10337
*** binutils to release 2.9.1 or newer. Another option is to modify
10338
*** your PATH or compiler configuration so that the native linker is
10339
*** used, and then restart.
10342
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10343
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10344
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10350
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10351
case `$LD -v 2>&1` in
10352
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10356
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10357
*** reliably create shared libraries on SCO systems. Therefore, libtool
10358
*** is disabling shared libraries support. We urge you to upgrade GNU
10359
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10360
*** your PATH or compiler configuration so that the native linker is
10361
*** used, and then restart.
10366
# For security reasons, it is highly recommended that you always
10367
# use absolute paths for naming shared libraries, and exclude the
10368
# DT_RUNPATH tag from executables and libraries. But doing so
10369
# requires that you compile everything twice, which is a pain.
10370
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10371
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10372
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10373
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10382
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10384
hardcode_direct=yes
10385
hardcode_shlibpath_var=no
10389
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10390
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10391
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10398
if test "$ld_shlibs" = no; then
10400
hardcode_libdir_flag_spec=
10401
export_dynamic_flag_spec=
10402
whole_archive_flag_spec=
10405
# PORTME fill in a description of your system's linker (not GNU ld)
10408
allow_undefined_flag=unsupported
10409
always_export_symbols=yes
10410
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'
10411
# Note: this linker hardcodes the directories in LIBPATH if there
10412
# are no directories specified by -L.
10413
hardcode_minus_L=yes
10414
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10415
# Neither direct hardcoding nor static linking is supported with a
10417
hardcode_direct=unsupported
10422
if test "$host_cpu" = ia64; then
10423
# On IA64, the linker does run time linking by default, so we don't
10424
# have to do anything special.
10425
aix_use_runtimelinking=no
10426
exp_sym_flag='-Bexport'
10429
# If we're using GNU nm, then we don't want the "-C" option.
10430
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10431
# Also, AIX nm treats weak defined symbols like other global
10432
# defined symbols, whereas GNU nm marks them as "W".
10433
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10434
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10436
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10438
aix_use_runtimelinking=no
10440
# Test if we are trying to use run time linking or normal
10441
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10442
# need to do runtime linking.
10443
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10444
for ld_flag in $LDFLAGS; do
10445
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10446
aix_use_runtimelinking=yes
10453
exp_sym_flag='-bexport'
10454
no_entry_flag='-bnoentry'
10457
# When large executables or shared objects are built, AIX ld can
10458
# have problems creating the table of contents. If linking a library
10459
# or program results in "error TOC overflow" add -mminimal-toc to
10460
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10461
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10464
hardcode_direct=yes
10465
hardcode_direct_absolute=yes
10466
hardcode_libdir_separator=':'
10467
link_all_deplibs=yes
10468
file_list_spec='${wl}-f,'
10470
if test "$GCC" = yes; then
10471
case $host_os in aix4.[012]|aix4.[012].*)
10472
# We only want to do this on AIX 4.2 and lower, the check
10473
# below for broken collect2 doesn't work under 4.3+
10474
collect2name=`${CC} -print-prog-name=collect2`
10475
if test -f "$collect2name" &&
10476
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10478
# We have reworked collect2
10481
# We have old collect2
10482
hardcode_direct=unsupported
10483
# It fails to find uninstalled libraries when the uninstalled
10484
# path is not listed in the libpath. Setting hardcode_minus_L
10485
# to unsupported forces relinking
10486
hardcode_minus_L=yes
10487
hardcode_libdir_flag_spec='-L$libdir'
10488
hardcode_libdir_separator=
10492
shared_flag='-shared'
10493
if test "$aix_use_runtimelinking" = yes; then
10494
shared_flag="$shared_flag "'${wl}-G'
10496
link_all_deplibs=no
10499
if test "$host_cpu" = ia64; then
10500
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10501
# chokes on -Wl,-G. The following line is correct:
10504
if test "$aix_use_runtimelinking" = yes; then
10505
shared_flag='${wl}-G'
10507
shared_flag='${wl}-bM:SRE'
10512
export_dynamic_flag_spec='${wl}-bexpall'
10513
# It seems that -bexpall does not export symbols beginning with
10514
# underscore (_), so it is better to generate a list of symbols to export.
10515
always_export_symbols=yes
10516
if test "$aix_use_runtimelinking" = yes; then
10517
# Warning - without using the other runtime loading flags (-brtl),
10518
# -berok will link without error, but may produce a broken library.
10519
allow_undefined_flag='-berok'
10520
# Determine the default libpath from the value encoded in an
10521
# empty executable.
10522
if test "${lt_cv_aix_libpath+set}" = set; then
10523
aix_libpath=$lt_cv_aix_libpath
10525
if ${lt_cv_aix_libpath_+:} false; then :
10526
$as_echo_n "(cached) " >&6
10528
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529
/* end confdefs.h. */
10539
if ac_fn_c_try_link "$LINENO"; then :
10541
lt_aix_libpath_sed='
10542
/Import File Strings/,/^$/ {
10544
s/^0 *\([^ ]*\) *$/\1/
10548
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10549
# Check for a 64-bit object if we didn't find anything.
10550
if test -z "$lt_cv_aix_libpath_"; then
10551
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10554
rm -f core conftest.err conftest.$ac_objext \
10555
conftest$ac_exeext conftest.$ac_ext
10556
if test -z "$lt_cv_aix_libpath_"; then
10557
lt_cv_aix_libpath_="/usr/lib:/lib"
10562
aix_libpath=$lt_cv_aix_libpath_
10565
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10566
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10568
if test "$host_cpu" = ia64; then
10569
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10570
allow_undefined_flag="-z nodefs"
10571
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"
10573
# Determine the default libpath from the value encoded in an
10574
# empty executable.
10575
if test "${lt_cv_aix_libpath+set}" = set; then
10576
aix_libpath=$lt_cv_aix_libpath
10578
if ${lt_cv_aix_libpath_+:} false; then :
10579
$as_echo_n "(cached) " >&6
10581
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582
/* end confdefs.h. */
10592
if ac_fn_c_try_link "$LINENO"; then :
10594
lt_aix_libpath_sed='
10595
/Import File Strings/,/^$/ {
10597
s/^0 *\([^ ]*\) *$/\1/
10601
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10602
# Check for a 64-bit object if we didn't find anything.
10603
if test -z "$lt_cv_aix_libpath_"; then
10604
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10607
rm -f core conftest.err conftest.$ac_objext \
10608
conftest$ac_exeext conftest.$ac_ext
10609
if test -z "$lt_cv_aix_libpath_"; then
10610
lt_cv_aix_libpath_="/usr/lib:/lib"
10615
aix_libpath=$lt_cv_aix_libpath_
10618
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10619
# Warning - without using the other run time loading flags,
10620
# -berok will link without error, but may produce a broken library.
10621
no_undefined_flag=' ${wl}-bernotok'
10622
allow_undefined_flag=' ${wl}-berok'
10623
if test "$with_gnu_ld" = yes; then
10624
# We only use this code for GNU lds that support --whole-archive.
10625
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10627
# Exported symbols can be pulled into shared objects from archives
10628
whole_archive_flag_spec='$convenience'
10630
archive_cmds_need_lc=yes
10631
# This is similar to how AIX traditionally builds its shared libraries.
10632
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10640
# see comment about AmigaOS4 .so support
10641
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10642
archive_expsym_cmds=''
10645
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)'
10646
hardcode_libdir_flag_spec='-L$libdir'
10647
hardcode_minus_L=yes
10653
export_dynamic_flag_spec=-rdynamic
10656
cygwin* | mingw* | pw32* | cegcc*)
10657
# When not using gcc, we currently assume that we are using
10658
# Microsoft Visual C++.
10659
# hardcode_libdir_flag_spec is actually meaningless, as there is
10660
# no search path for DLLs.
10661
case $cc_basename in
10664
hardcode_libdir_flag_spec=' '
10665
allow_undefined_flag=unsupported
10666
always_export_symbols=yes
10668
# Tell ltmain to make .lib files, not .a files.
10670
# Tell ltmain to make .dll files, not .so files.
10672
# FIXME: Setting linknames here is a bad hack.
10673
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10674
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10675
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10677
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10679
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10681
# The linker will not automatically build a static lib if we build a DLL.
10682
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10683
enable_shared_with_static_runtimes=yes
10684
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10685
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10687
old_postinstall_cmds='chmod 644 $oldlib'
10688
postlink_cmds='lt_outputfile="@OUTPUT@"~
10689
lt_tool_outputfile="@TOOL_OUTPUT@"~
10690
case $lt_outputfile in
10693
lt_outputfile="$lt_outputfile.exe"
10694
lt_tool_outputfile="$lt_tool_outputfile.exe"
10697
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10698
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10699
$RM "$lt_outputfile.manifest";
10703
# Assume MSVC wrapper
10704
hardcode_libdir_flag_spec=' '
10705
allow_undefined_flag=unsupported
10706
# Tell ltmain to make .lib files, not .a files.
10708
# Tell ltmain to make .dll files, not .so files.
10710
# FIXME: Setting linknames here is a bad hack.
10711
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10712
# The linker will automatically build a .lib file if we build a DLL.
10713
old_archive_from_new_cmds='true'
10714
# FIXME: Should let the user specify the lib program.
10715
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10716
enable_shared_with_static_runtimes=yes
10721
darwin* | rhapsody*)
10724
archive_cmds_need_lc=no
10726
hardcode_automatic=yes
10727
hardcode_shlibpath_var=unsupported
10728
if test "$lt_cv_ld_force_load" = "yes"; then
10729
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\"`'
10732
whole_archive_flag_spec=''
10734
link_all_deplibs=yes
10735
allow_undefined_flag="$_lt_dar_allow_undefined"
10736
case $cc_basename in
10737
ifort*) _lt_dar_can_shared=yes ;;
10738
*) _lt_dar_can_shared=$GCC ;;
10740
if test "$_lt_dar_can_shared" = "yes"; then
10741
output_verbose_link_cmd=func_echo_all
10742
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10743
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10744
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}"
10745
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}"
10754
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755
hardcode_libdir_flag_spec='-L$libdir'
10756
hardcode_shlibpath_var=no
10759
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10760
# support. Future versions do this automatically, but an explicit c++rt0.o
10761
# does not break anything, and helps significantly (at the cost of a little
10764
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10765
hardcode_libdir_flag_spec='-R$libdir'
10766
hardcode_direct=yes
10767
hardcode_shlibpath_var=no
10770
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
10772
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10773
hardcode_direct=yes
10774
hardcode_minus_L=yes
10775
hardcode_shlibpath_var=no
10778
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10779
freebsd* | dragonfly*)
10780
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10781
hardcode_libdir_flag_spec='-R$libdir'
10782
hardcode_direct=yes
10783
hardcode_shlibpath_var=no
10787
if test "$GCC" = yes; then
10788
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10790
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10792
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10793
hardcode_libdir_separator=:
10794
hardcode_direct=yes
10796
# hardcode_minus_L: Not really in the search PATH,
10797
# but as the default location of the library.
10798
hardcode_minus_L=yes
10799
export_dynamic_flag_spec='${wl}-E'
10803
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10804
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10806
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10808
if test "$with_gnu_ld" = no; then
10809
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10810
hardcode_libdir_separator=:
10811
hardcode_direct=yes
10812
hardcode_direct_absolute=yes
10813
export_dynamic_flag_spec='${wl}-E'
10814
# hardcode_minus_L: Not really in the search PATH,
10815
# but as the default location of the library.
10816
hardcode_minus_L=yes
10821
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10824
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10827
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10830
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10836
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10839
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10843
# Older versions of the 11.00 compiler do not understand -b yet
10844
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10846
$as_echo_n "checking if $CC understands -b... " >&6; }
10847
if ${lt_cv_prog_compiler__b+:} false; then :
10848
$as_echo_n "(cached) " >&6
10850
lt_cv_prog_compiler__b=no
10851
save_LDFLAGS="$LDFLAGS"
10852
LDFLAGS="$LDFLAGS -b"
10853
echo "$lt_simple_link_test_code" > conftest.$ac_ext
10854
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10855
# The linker can only warn and ignore the option if not recognized
10856
# So say no if there are warnings
10857
if test -s conftest.err; then
10858
# Append any errors to the config.log.
10859
cat conftest.err 1>&5
10860
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10861
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10862
if diff conftest.exp conftest.er2 >/dev/null; then
10863
lt_cv_prog_compiler__b=yes
10866
lt_cv_prog_compiler__b=yes
10870
LDFLAGS="$save_LDFLAGS"
10873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10874
$as_echo "$lt_cv_prog_compiler__b" >&6; }
10876
if test x"$lt_cv_prog_compiler__b" = xyes; then
10877
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10879
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10885
if test "$with_gnu_ld" = no; then
10886
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10887
hardcode_libdir_separator=:
10892
hardcode_shlibpath_var=no
10895
hardcode_direct=yes
10896
hardcode_direct_absolute=yes
10897
export_dynamic_flag_spec='${wl}-E'
10899
# hardcode_minus_L: Not really in the search PATH,
10900
# but as the default location of the library.
10901
hardcode_minus_L=yes
10907
irix5* | irix6* | nonstopux*)
10908
if test "$GCC" = yes; then
10909
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'
10910
# Try to use the -exported_symbol ld option, if it does not
10911
# work, assume that -exports_file does not work either and
10912
# implicitly export all symbols.
10913
# This should be the same for all languages, so no per-tag cache variable.
10914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10915
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10916
if ${lt_cv_irix_exported_symbol+:} false; then :
10917
$as_echo_n "(cached) " >&6
10919
save_LDFLAGS="$LDFLAGS"
10920
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10921
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922
/* end confdefs.h. */
10923
int foo (void) { return 0; }
10925
if ac_fn_c_try_link "$LINENO"; then :
10926
lt_cv_irix_exported_symbol=yes
10928
lt_cv_irix_exported_symbol=no
10930
rm -f core conftest.err conftest.$ac_objext \
10931
conftest$ac_exeext conftest.$ac_ext
10932
LDFLAGS="$save_LDFLAGS"
10934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10935
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10936
if test "$lt_cv_irix_exported_symbol" = yes; then
10937
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'
10940
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'
10941
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'
10943
archive_cmds_need_lc='no'
10944
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10945
hardcode_libdir_separator=:
10947
link_all_deplibs=yes
10950
netbsd* | netbsdelf*-gnu)
10951
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10952
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10954
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10956
hardcode_libdir_flag_spec='-R$libdir'
10957
hardcode_direct=yes
10958
hardcode_shlibpath_var=no
10962
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10963
hardcode_direct=yes
10964
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10965
hardcode_libdir_separator=:
10966
hardcode_shlibpath_var=no
10973
if test -f /usr/libexec/ld.so; then
10974
hardcode_direct=yes
10975
hardcode_shlibpath_var=no
10976
hardcode_direct_absolute=yes
10977
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10978
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10979
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10980
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10981
export_dynamic_flag_spec='${wl}-E'
10984
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10985
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10986
hardcode_libdir_flag_spec='-R$libdir'
10989
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10990
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11000
hardcode_libdir_flag_spec='-L$libdir'
11001
hardcode_minus_L=yes
11002
allow_undefined_flag=unsupported
11003
archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11004
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11008
if test "$GCC" = yes; then
11009
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11010
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'
11012
allow_undefined_flag=' -expect_unresolved \*'
11013
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'
11015
archive_cmds_need_lc='no'
11016
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11017
hardcode_libdir_separator=:
11020
osf4* | osf5*) # as osf3* with the addition of -msym flag
11021
if test "$GCC" = yes; then
11022
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11023
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'
11024
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11026
allow_undefined_flag=' -expect_unresolved \*'
11027
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'
11028
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~
11029
$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'
11031
# Both c and cxx compiler support -rpath directly
11032
hardcode_libdir_flag_spec='-rpath $libdir'
11034
archive_cmds_need_lc='no'
11035
hardcode_libdir_separator=:
11039
no_undefined_flag=' -z defs'
11040
if test "$GCC" = yes; then
11042
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11043
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11044
$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'
11046
case `$CC -V 2>&1` in
11049
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11050
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11051
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11055
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11056
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11057
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11061
hardcode_libdir_flag_spec='-R$libdir'
11062
hardcode_shlibpath_var=no
11064
solaris2.[0-5] | solaris2.[0-5].*) ;;
11066
# The compiler driver will combine and reorder linker options,
11067
# but understands `-z linker_flag'. GCC discards it without `$wl',
11068
# but is careful enough not to reorder.
11069
# Supported since Solaris 2.6 (maybe 2.5.1?)
11070
if test "$GCC" = yes; then
11071
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11073
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11077
link_all_deplibs=yes
11081
if test "x$host_vendor" = xsequent; then
11082
# Use $CC to link under sequent, because it throws in some extra .o
11083
# files that make .init and .fini sections work.
11084
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11086
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11088
hardcode_libdir_flag_spec='-L$libdir'
11089
hardcode_direct=yes
11090
hardcode_minus_L=yes
11091
hardcode_shlibpath_var=no
11095
case $host_vendor in
11097
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11098
hardcode_direct=yes # is this really true???
11101
## LD is ld it makes a PLAMLIB
11102
## CC just makes a GrossModule.
11103
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11104
reload_cmds='$CC -r -o $output$reload_objs'
11108
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11109
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11112
runpath_var='LD_RUN_PATH'
11113
hardcode_shlibpath_var=no
11117
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11118
hardcode_shlibpath_var=no
11119
export_dynamic_flag_spec='-Bexport'
11123
if test -d /usr/nec; then
11124
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11125
hardcode_shlibpath_var=no
11126
runpath_var=LD_RUN_PATH
11127
hardcode_runpath_var=yes
11132
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11133
no_undefined_flag='${wl}-z,text'
11134
archive_cmds_need_lc=no
11135
hardcode_shlibpath_var=no
11136
runpath_var='LD_RUN_PATH'
11138
if test "$GCC" = yes; then
11139
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11140
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11142
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11143
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11147
sysv5* | sco3.2v5* | sco5v6*)
11148
# Note: We can NOT use -z defs as we might desire, because we do not
11149
# link with -lc, and that would cause any symbols used from libc to
11150
# always be unresolved, which means just about no library would
11151
# ever link correctly. If we're not using GNU ld we use -z text
11152
# though, which does catch some bad symbols but isn't as heavy-handed
11154
no_undefined_flag='${wl}-z,text'
11155
allow_undefined_flag='${wl}-z,nodefs'
11156
archive_cmds_need_lc=no
11157
hardcode_shlibpath_var=no
11158
hardcode_libdir_flag_spec='${wl}-R,$libdir'
11159
hardcode_libdir_separator=':'
11160
link_all_deplibs=yes
11161
export_dynamic_flag_spec='${wl}-Bexport'
11162
runpath_var='LD_RUN_PATH'
11164
if test "$GCC" = yes; then
11165
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11166
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11168
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11169
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11174
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11175
hardcode_libdir_flag_spec='-L$libdir'
11176
hardcode_shlibpath_var=no
11184
if test x$host_vendor = xsni; then
11186
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11187
export_dynamic_flag_spec='${wl}-Blargedynsym'
11193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11194
$as_echo "$ld_shlibs" >&6; }
11195
test "$ld_shlibs" = no && can_build_shared=no
11197
with_gnu_ld=$with_gnu_ld
11214
# Do we need to explicitly link libc?
11216
case "x$archive_cmds_need_lc" in
11218
# Assume -lc should be added
11219
archive_cmds_need_lc=yes
11221
if test "$enable_shared" = yes && test "$GCC" = yes; then
11222
case $archive_cmds in
11224
# FIXME: we may have to deal with multi-command sequences.
11227
# Test whether the compiler implicitly links with -lc since on some
11228
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11229
# to ld, don't add -lc before -lgcc.
11230
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11231
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11232
if ${lt_cv_archive_cmds_need_lc+:} false; then :
11233
$as_echo_n "(cached) " >&6
11236
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11238
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11239
(eval $ac_compile) 2>&5
11241
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11242
test $ac_status = 0; } 2>conftest.err; then
11245
libobjs=conftest.$ac_objext
11247
wl=$lt_prog_compiler_wl
11248
pic_flag=$lt_prog_compiler_pic
11254
lt_save_allow_undefined_flag=$allow_undefined_flag
11255
allow_undefined_flag=
11256
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11257
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11259
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11260
test $ac_status = 0; }
11262
lt_cv_archive_cmds_need_lc=no
11264
lt_cv_archive_cmds_need_lc=yes
11266
allow_undefined_flag=$lt_save_allow_undefined_flag
11268
cat conftest.err 1>&5
11273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11274
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11275
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11434
$as_echo_n "checking dynamic linker characteristics... " >&6; }
11436
if test "$GCC" = yes; then
11438
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11439
*) lt_awk_arg="/^libraries:/" ;;
11442
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11443
*) lt_sed_strip_eq="s,=/,/,g" ;;
11445
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11446
case $lt_search_path_spec in
11448
# if the path contains ";" then we assume it to be the separator
11449
# otherwise default to the standard path separator (i.e. ":") - it is
11450
# assumed that no part of a normal pathname contains ";" but that should
11451
# okay in the real world where ";" in dirpaths is itself problematic.
11452
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11455
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11458
# Ok, now we have the path, separated by spaces, we can step through it
11459
# and add multilib dir if necessary.
11460
lt_tmp_lt_search_path_spec=
11461
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11462
for lt_sys_path in $lt_search_path_spec; do
11463
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11464
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11466
test -d "$lt_sys_path" && \
11467
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11470
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11471
BEGIN {RS=" "; FS="/|\n";} {
11474
for (lt_i = NF; lt_i > 0; lt_i--) {
11475
if ($lt_i != "" && $lt_i != ".") {
11476
if ($lt_i == "..") {
11479
if (lt_count == 0) {
11480
lt_foo="/" $lt_i lt_foo;
11487
if (lt_foo != "") { lt_freq[lt_foo]++; }
11488
if (lt_freq[lt_foo] == 1) { print lt_foo; }
11490
# AWK program above erroneously prepends '/' to C:/dos/paths
11493
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11494
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
11496
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11498
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11500
library_names_spec=
11501
libname_spec='lib$name'
11505
postuninstall_cmds=
11509
shlibpath_overrides_runpath=unknown
11511
dynamic_linker="$host_os ld.so"
11512
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11513
need_lib_prefix=unknown
11514
hardcode_into_libs=no
11516
# when you set need_version to no, make sure it does not cause -set_version
11517
# flags to be left without arguments
11518
need_version=unknown
11522
version_type=linux # correct to gnu/linux during the next big refactor
11523
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11524
shlibpath_var=LIBPATH
11526
# AIX 3 has no versioning support, so we append a major version to the name.
11527
soname_spec='${libname}${release}${shared_ext}$major'
11531
version_type=linux # correct to gnu/linux during the next big refactor
11534
hardcode_into_libs=yes
11535
if test "$host_cpu" = ia64; then
11536
# AIX 5 supports IA64
11537
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11538
shlibpath_var=LD_LIBRARY_PATH
11540
# With GCC up to 2.95.x, collect2 would create an import file
11541
# for dependence libraries. The import file would start with
11542
# the line `#! .'. This would cause the generated library to
11543
# depend on `.', always an invalid library. This was fixed in
11544
# development snapshots of GCC prior to 3.0.
11546
aix4 | aix4.[01] | aix4.[01].*)
11547
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11549
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11552
can_build_shared=no
11556
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11557
# soname into executable. Probably we can add versioning support to
11558
# collect2, so additional links can be useful in future.
11559
if test "$aix_use_runtimelinking" = yes; then
11560
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11561
# instead of lib<name>.a to let people know that these are not
11562
# typical AIX shared libraries.
11563
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565
# We preserve .a as extension for shared libraries through AIX4.2
11566
# and later when we are not doing run time linking.
11567
library_names_spec='${libname}${release}.a $libname.a'
11568
soname_spec='${libname}${release}${shared_ext}$major'
11570
shlibpath_var=LIBPATH
11577
# Since July 2007 AmigaOS4 officially supports .so libraries.
11578
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11579
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582
library_names_spec='$libname.ixlibrary $libname.a'
11583
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11584
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11590
library_names_spec='${libname}${shared_ext}'
11591
dynamic_linker="$host_os ld.so"
11592
shlibpath_var=LIBRARY_PATH
11596
version_type=linux # correct to gnu/linux during the next big refactor
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'
11600
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11601
shlibpath_var=LD_LIBRARY_PATH
11602
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11603
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11604
# the default ld.so.conf also contains /usr/contrib/lib and
11605
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11606
# libtool to hard-code these into programs
11609
cygwin* | mingw* | pw32* | cegcc*)
11610
version_type=windows
11615
case $GCC,$cc_basename in
11618
library_names_spec='$libname.dll.a'
11619
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11620
postinstall_cmds='base_file=`basename \${file}`~
11621
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11622
dldir=$destdir/`dirname \$dlpath`~
11623
test -d \$dldir || mkdir -p \$dldir~
11624
$install_prog $dir/$dlname \$dldir/$dlname~
11625
chmod a+x \$dldir/$dlname~
11626
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11627
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11629
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11630
dlpath=$dir/\$dldll~
11632
shlibpath_overrides_runpath=yes
11636
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11637
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11639
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11642
# MinGW DLLs use traditional 'lib' prefix
11643
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11646
# pw32 DLLs use 'pw' prefix rather than 'lib'
11647
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11650
dynamic_linker='Win32 ld.exe'
11655
libname_spec='$name'
11656
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11657
library_names_spec='${libname}.dll.lib'
11661
sys_lib_search_path_spec=
11664
for lt_path in $LIB
11667
# Let DOS variable expansion print the short 8.3 style file name.
11668
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11669
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11672
# Convert to MSYS style.
11673
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11676
# Convert to unix form, then to dos form, then back to unix form
11677
# but this time dos style (no spaces!) so that the unix form looks
11678
# like /cygdrive/c/PROGRA~1:/cygdr...
11679
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11680
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11681
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11684
sys_lib_search_path_spec="$LIB"
11685
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11686
# It is most probably a Windows format PATH.
11687
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11689
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11691
# FIXME: find the short name or the path components, as spaces are
11692
# common. (e.g. "Program Files" -> "PROGRA~1")
11696
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11697
postinstall_cmds='base_file=`basename \${file}`~
11698
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11699
dldir=$destdir/`dirname \$dlpath`~
11700
test -d \$dldir || mkdir -p \$dldir~
11701
$install_prog $dir/$dlname \$dldir/$dlname'
11702
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11703
dlpath=$dir/\$dldll~
11705
shlibpath_overrides_runpath=yes
11706
dynamic_linker='Win32 link.exe'
11710
# Assume MSVC wrapper
11711
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11712
dynamic_linker='Win32 ld.exe'
11715
# FIXME: first we should search . and the directory the executable is in
11719
darwin* | rhapsody*)
11720
dynamic_linker="$host_os dyld"
11721
version_type=darwin
11724
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11725
soname_spec='${libname}${release}${major}$shared_ext'
11726
shlibpath_overrides_runpath=yes
11727
shlibpath_var=DYLD_LIBRARY_PATH
11728
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11730
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11731
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11735
version_type=linux # correct to gnu/linux during the next big refactor
11738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11739
soname_spec='${libname}${release}${shared_ext}$major'
11740
shlibpath_var=LD_LIBRARY_PATH
11743
freebsd* | dragonfly*)
11744
# DragonFly does not have aout. When/if they implement a new
11745
# versioning mechanism, adjust this.
11746
if test -x /usr/bin/objformat; then
11747
objformat=`/usr/bin/objformat`
11750
freebsd[23].*) objformat=aout ;;
11751
*) objformat=elf ;;
11754
version_type=freebsd-$objformat
11755
case $version_type in
11757
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11762
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11766
shlibpath_var=LD_LIBRARY_PATH
11769
shlibpath_overrides_runpath=yes
11771
freebsd3.[01]* | freebsdelf3.[01]*)
11772
shlibpath_overrides_runpath=yes
11773
hardcode_into_libs=yes
11775
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11776
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11777
shlibpath_overrides_runpath=no
11778
hardcode_into_libs=yes
11780
*) # from 4.6 on, and DragonFly
11781
shlibpath_overrides_runpath=yes
11782
hardcode_into_libs=yes
11788
version_type=linux # correct to gnu/linux during the next big refactor
11791
dynamic_linker="$host_os runtime_loader"
11792
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11793
soname_spec='${libname}${release}${shared_ext}$major'
11794
shlibpath_var=LIBRARY_PATH
11795
shlibpath_overrides_runpath=yes
11796
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11797
hardcode_into_libs=yes
11800
hpux9* | hpux10* | hpux11*)
11801
# Give a soname corresponding to the major version so that dld.sl refuses to
11802
# link against other versions.
11809
hardcode_into_libs=yes
11810
dynamic_linker="$host_os dld.so"
11811
shlibpath_var=LD_LIBRARY_PATH
11812
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11814
soname_spec='${libname}${release}${shared_ext}$major'
11815
if test "X$HPUX_IA64_MODE" = X32; then
11816
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11818
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11820
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11824
hardcode_into_libs=yes
11825
dynamic_linker="$host_os dld.sl"
11826
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11827
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11829
soname_spec='${libname}${release}${shared_ext}$major'
11830
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11831
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11835
dynamic_linker="$host_os dld.sl"
11836
shlibpath_var=SHLIB_PATH
11837
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11838
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839
soname_spec='${libname}${release}${shared_ext}$major'
11842
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11843
postinstall_cmds='chmod 555 $lib'
11844
# or fails outright, so override atomically:
11845
install_override_mode=555
11849
version_type=linux # correct to gnu/linux during the next big refactor
11852
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11853
soname_spec='${libname}${release}${shared_ext}$major'
11854
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11855
shlibpath_var=LD_LIBRARY_PATH
11856
shlibpath_overrides_runpath=no
11857
hardcode_into_libs=yes
11860
irix5* | irix6* | nonstopux*)
11862
nonstopux*) version_type=nonstopux ;;
11864
if test "$lt_cv_prog_gnu_ld" = yes; then
11865
version_type=linux # correct to gnu/linux during the next big refactor
11872
soname_spec='${libname}${release}${shared_ext}$major'
11873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11875
irix5* | nonstopux*)
11876
libsuff= shlibsuff=
11879
case $LD in # libtool.m4 will add one of these switches to LD
11880
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11881
libsuff= shlibsuff= libmagic=32-bit;;
11882
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11883
libsuff=32 shlibsuff=N32 libmagic=N32;;
11884
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11885
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11886
*) libsuff= shlibsuff= libmagic=never-match;;
11890
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11891
shlibpath_overrides_runpath=no
11892
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11893
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11894
hardcode_into_libs=yes
11897
# No shared lib support for Linux oldld, aout, or coff.
11898
linux*oldld* | linux*aout* | linux*coff*)
11902
# This must be glibc/ELF.
11903
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11904
version_type=linux # correct to gnu/linux during the next big refactor
11907
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908
soname_spec='${libname}${release}${shared_ext}$major'
11909
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11910
shlibpath_var=LD_LIBRARY_PATH
11911
shlibpath_overrides_runpath=no
11913
# Some binutils ld are patched to set DT_RUNPATH
11914
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11915
$as_echo_n "(cached) " >&6
11917
lt_cv_shlibpath_overrides_runpath=no
11918
save_LDFLAGS=$LDFLAGS
11919
save_libdir=$libdir
11920
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11921
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11922
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923
/* end confdefs.h. */
11933
if ac_fn_c_try_link "$LINENO"; then :
11934
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11935
lt_cv_shlibpath_overrides_runpath=yes
11938
rm -f core conftest.err conftest.$ac_objext \
11939
conftest$ac_exeext conftest.$ac_ext
11940
LDFLAGS=$save_LDFLAGS
11941
libdir=$save_libdir
11945
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11947
# This implies no fast_install, which is unacceptable.
11948
# Some rework will be needed to allow for fast_install
11949
# before this can be enabled.
11950
hardcode_into_libs=yes
11952
# Append ld.so.conf contents to the search path
11953
if test -f /etc/ld.so.conf; then
11954
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' ' '`
11955
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11958
# We used to test for /lib/ld.so.1 and disable shared libraries on
11959
# powerpc, because MkLinux only supported shared libraries with the
11960
# GNU dynamic linker. Since this was broken with cross compilers,
11961
# most powerpc-linux boxes support dynamic linking these days and
11962
# people can always --disable-shared, the test was removed, and we
11963
# assume the GNU/Linux dynamic linker is in use.
11964
dynamic_linker='GNU/Linux ld.so'
11971
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11972
soname_spec='${libname}${release}${shared_ext}$major'
11973
shlibpath_var=LD_LIBRARY_PATH
11974
shlibpath_overrides_runpath=no
11975
hardcode_into_libs=yes
11976
dynamic_linker='NetBSD ld.elf_so'
11983
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11984
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11985
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11986
dynamic_linker='NetBSD (a.out) ld.so'
11988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11989
soname_spec='${libname}${release}${shared_ext}$major'
11990
dynamic_linker='NetBSD ld.elf_so'
11992
shlibpath_var=LD_LIBRARY_PATH
11993
shlibpath_overrides_runpath=yes
11994
hardcode_into_libs=yes
11998
version_type=linux # correct to gnu/linux during the next big refactor
11999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12000
shlibpath_var=LD_LIBRARY_PATH
12001
shlibpath_overrides_runpath=yes
12008
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12009
soname_spec='${libname}${release}${shared_ext}$major'
12010
shlibpath_var=LD_LIBRARY_PATH
12011
shlibpath_overrides_runpath=no
12012
hardcode_into_libs=yes
12013
dynamic_linker='ldqnx.so'
12018
sys_lib_dlsearch_path_spec="/usr/lib"
12020
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12022
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12023
*) need_version=no ;;
12025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12026
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12027
shlibpath_var=LD_LIBRARY_PATH
12028
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12030
openbsd2.[89] | openbsd2.[89].*)
12031
shlibpath_overrides_runpath=no
12034
shlibpath_overrides_runpath=yes
12038
shlibpath_overrides_runpath=yes
12043
libname_spec='$name'
12046
library_names_spec='$libname${shared_ext} $libname.a'
12047
dynamic_linker='OS/2 ld.exe'
12048
shlibpath_var=LIBPATH
12051
osf3* | osf4* | osf5*)
12055
soname_spec='${libname}${release}${shared_ext}$major'
12056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12057
shlibpath_var=LD_LIBRARY_PATH
12058
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12059
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12067
version_type=linux # correct to gnu/linux during the next big refactor
12070
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12071
soname_spec='${libname}${release}${shared_ext}$major'
12072
shlibpath_var=LD_LIBRARY_PATH
12073
shlibpath_overrides_runpath=yes
12074
hardcode_into_libs=yes
12075
# ldd complains unless libraries are executable
12076
postinstall_cmds='chmod +x $lib'
12081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12082
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12083
shlibpath_var=LD_LIBRARY_PATH
12084
shlibpath_overrides_runpath=yes
12085
if test "$with_gnu_ld" = yes; then
12092
version_type=linux # correct to gnu/linux during the next big refactor
12093
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12094
soname_spec='${libname}${release}${shared_ext}$major'
12095
shlibpath_var=LD_LIBRARY_PATH
12096
case $host_vendor in
12098
shlibpath_overrides_runpath=no
12100
runpath_var=LD_RUN_PATH
12108
shlibpath_overrides_runpath=no
12109
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12115
if test -d /usr/nec ;then
12116
version_type=linux # correct to gnu/linux during the next big refactor
12117
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12118
soname_spec='$libname${shared_ext}.$major'
12119
shlibpath_var=LD_LIBRARY_PATH
12123
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12124
version_type=freebsd-elf
12127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12128
soname_spec='${libname}${release}${shared_ext}$major'
12129
shlibpath_var=LD_LIBRARY_PATH
12130
shlibpath_overrides_runpath=yes
12131
hardcode_into_libs=yes
12132
if test "$with_gnu_ld" = yes; then
12133
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12135
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12138
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12142
sys_lib_dlsearch_path_spec='/usr/lib'
12146
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12147
version_type=linux # correct to gnu/linux during the next big refactor
12150
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12151
shlibpath_var=LD_LIBRARY_PATH
12152
shlibpath_overrides_runpath=no
12153
hardcode_into_libs=yes
12157
version_type=linux # correct to gnu/linux during the next big refactor
12158
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12159
soname_spec='${libname}${release}${shared_ext}$major'
12160
shlibpath_var=LD_LIBRARY_PATH
12167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12168
$as_echo "$dynamic_linker" >&6; }
12169
test "$dynamic_linker" = no && can_build_shared=no
12171
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12172
if test "$GCC" = yes; then
12173
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12176
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12177
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12179
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12180
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12275
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12277
if test -n "$hardcode_libdir_flag_spec" ||
12278
test -n "$runpath_var" ||
12279
test "X$hardcode_automatic" = "Xyes" ; then
12281
# We can hardcode non-existent directories.
12282
if test "$hardcode_direct" != no &&
12283
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12284
# have to relink, otherwise we might link with an installed library
12285
# when we should be linking with a yet-to-be-installed one
12286
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12287
test "$hardcode_minus_L" != no; then
12288
# Linking always hardcodes the temporary library directory.
12289
hardcode_action=relink
12291
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12292
hardcode_action=immediate
12295
# We cannot hardcode anything, or else we can only hardcode existing
12297
hardcode_action=unsupported
12299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12300
$as_echo "$hardcode_action" >&6; }
12302
if test "$hardcode_action" = relink ||
12303
test "$inherit_rpath" = yes; then
12304
# Fast installation is not supported
12305
enable_fast_install=no
12306
elif test "$shlibpath_overrides_runpath" = yes ||
12307
test "$enable_shared" = no; then
12308
# Fast installation is not necessary
12309
enable_fast_install=needless
12317
if test "x$enable_dlopen" != xyes; then
12318
enable_dlopen=unknown
12319
enable_dlopen_self=unknown
12320
enable_dlopen_self_static=unknown
12327
lt_cv_dlopen="load_add_on"
12329
lt_cv_dlopen_self=yes
12332
mingw* | pw32* | cegcc*)
12333
lt_cv_dlopen="LoadLibrary"
12338
lt_cv_dlopen="dlopen"
12343
# if libdl is installed we need to link against it
12344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12345
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12346
if ${ac_cv_lib_dl_dlopen+:} false; then :
12347
$as_echo_n "(cached) " >&6
12349
ac_check_lib_save_LIBS=$LIBS
12351
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352
/* end confdefs.h. */
12354
/* Override any GCC internal prototype to avoid an error.
12355
Use char because int might match the return type of a GCC
12356
builtin and then its argument prototype would still apply. */
12369
if ac_fn_c_try_link "$LINENO"; then :
12370
ac_cv_lib_dl_dlopen=yes
12372
ac_cv_lib_dl_dlopen=no
12374
rm -f core conftest.err conftest.$ac_objext \
12375
conftest$ac_exeext conftest.$ac_ext
12376
LIBS=$ac_check_lib_save_LIBS
12378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12379
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12380
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12381
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12384
lt_cv_dlopen="dyld"
12386
lt_cv_dlopen_self=yes
12393
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12394
if test "x$ac_cv_func_shl_load" = xyes; then :
12395
lt_cv_dlopen="shl_load"
12397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12398
$as_echo_n "checking for shl_load in -ldld... " >&6; }
12399
if ${ac_cv_lib_dld_shl_load+:} false; then :
12400
$as_echo_n "(cached) " >&6
12402
ac_check_lib_save_LIBS=$LIBS
12404
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405
/* end confdefs.h. */
12407
/* Override any GCC internal prototype to avoid an error.
12408
Use char because int might match the return type of a GCC
12409
builtin and then its argument prototype would still apply. */
12417
return shl_load ();
12422
if ac_fn_c_try_link "$LINENO"; then :
12423
ac_cv_lib_dld_shl_load=yes
12425
ac_cv_lib_dld_shl_load=no
12427
rm -f core conftest.err conftest.$ac_objext \
12428
conftest$ac_exeext conftest.$ac_ext
12429
LIBS=$ac_check_lib_save_LIBS
12431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12432
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12433
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12434
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12436
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12437
if test "x$ac_cv_func_dlopen" = xyes; then :
12438
lt_cv_dlopen="dlopen"
12440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12441
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12442
if ${ac_cv_lib_dl_dlopen+:} false; then :
12443
$as_echo_n "(cached) " >&6
12445
ac_check_lib_save_LIBS=$LIBS
12447
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448
/* end confdefs.h. */
12450
/* Override any GCC internal prototype to avoid an error.
12451
Use char because int might match the return type of a GCC
12452
builtin and then its argument prototype would still apply. */
12465
if ac_fn_c_try_link "$LINENO"; then :
12466
ac_cv_lib_dl_dlopen=yes
12468
ac_cv_lib_dl_dlopen=no
12470
rm -f core conftest.err conftest.$ac_objext \
12471
conftest$ac_exeext conftest.$ac_ext
12472
LIBS=$ac_check_lib_save_LIBS
12474
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12475
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12476
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12477
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12480
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12481
if ${ac_cv_lib_svld_dlopen+:} false; then :
12482
$as_echo_n "(cached) " >&6
12484
ac_check_lib_save_LIBS=$LIBS
12485
LIBS="-lsvld $LIBS"
12486
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487
/* end confdefs.h. */
12489
/* Override any GCC internal prototype to avoid an error.
12490
Use char because int might match the return type of a GCC
12491
builtin and then its argument prototype would still apply. */
12504
if ac_fn_c_try_link "$LINENO"; then :
12505
ac_cv_lib_svld_dlopen=yes
12507
ac_cv_lib_svld_dlopen=no
12509
rm -f core conftest.err conftest.$ac_objext \
12510
conftest$ac_exeext conftest.$ac_ext
12511
LIBS=$ac_check_lib_save_LIBS
12513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12514
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12515
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12516
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12519
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12520
if ${ac_cv_lib_dld_dld_link+:} false; then :
12521
$as_echo_n "(cached) " >&6
12523
ac_check_lib_save_LIBS=$LIBS
12525
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526
/* end confdefs.h. */
12528
/* Override any GCC internal prototype to avoid an error.
12529
Use char because int might match the return type of a GCC
12530
builtin and then its argument prototype would still apply. */
12538
return dld_link ();
12543
if ac_fn_c_try_link "$LINENO"; then :
12544
ac_cv_lib_dld_dld_link=yes
12546
ac_cv_lib_dld_dld_link=no
12548
rm -f core conftest.err conftest.$ac_objext \
12549
conftest$ac_exeext conftest.$ac_ext
12550
LIBS=$ac_check_lib_save_LIBS
12552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12553
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12554
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12555
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12576
if test "x$lt_cv_dlopen" != xno; then
12582
case $lt_cv_dlopen in
12584
save_CPPFLAGS="$CPPFLAGS"
12585
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12587
save_LDFLAGS="$LDFLAGS"
12588
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12591
LIBS="$lt_cv_dlopen_libs $LIBS"
12593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12594
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12595
if ${lt_cv_dlopen_self+:} false; then :
12596
$as_echo_n "(cached) " >&6
12598
if test "$cross_compiling" = yes; then :
12599
lt_cv_dlopen_self=cross
12601
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12602
lt_status=$lt_dlunknown
12603
cat > conftest.$ac_ext <<_LT_EOF
12604
#line $LINENO "configure"
12605
#include "confdefs.h"
12614
# define LT_DLGLOBAL RTLD_GLOBAL
12617
# define LT_DLGLOBAL DL_GLOBAL
12619
# define LT_DLGLOBAL 0
12623
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12624
find out it does not work in some platform. */
12625
#ifndef LT_DLLAZY_OR_NOW
12627
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12630
# define LT_DLLAZY_OR_NOW DL_LAZY
12633
# define LT_DLLAZY_OR_NOW RTLD_NOW
12636
# define LT_DLLAZY_OR_NOW DL_NOW
12638
# define LT_DLLAZY_OR_NOW 0
12645
/* When -fvisbility=hidden is used, assume the code has been annotated
12646
correspondingly for the symbols needed. */
12647
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12648
int fnord () __attribute__((visibility("default")));
12651
int fnord () { return 42; }
12654
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12655
int status = $lt_dlunknown;
12659
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12662
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12663
else puts (dlerror ());
12665
/* dlclose (self); */
12673
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12674
(eval $ac_link) 2>&5
12676
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12677
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12678
(./conftest; exit; ) >&5 2>/dev/null
12680
case x$lt_status in
12681
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12682
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12683
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12686
# compilation failed
12687
lt_cv_dlopen_self=no
12694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12695
$as_echo "$lt_cv_dlopen_self" >&6; }
12697
if test "x$lt_cv_dlopen_self" = xyes; then
12698
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12700
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12701
if ${lt_cv_dlopen_self_static+:} false; then :
12702
$as_echo_n "(cached) " >&6
12704
if test "$cross_compiling" = yes; then :
12705
lt_cv_dlopen_self_static=cross
12707
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12708
lt_status=$lt_dlunknown
12709
cat > conftest.$ac_ext <<_LT_EOF
12710
#line $LINENO "configure"
12711
#include "confdefs.h"
12720
# define LT_DLGLOBAL RTLD_GLOBAL
12723
# define LT_DLGLOBAL DL_GLOBAL
12725
# define LT_DLGLOBAL 0
12729
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12730
find out it does not work in some platform. */
12731
#ifndef LT_DLLAZY_OR_NOW
12733
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12736
# define LT_DLLAZY_OR_NOW DL_LAZY
12739
# define LT_DLLAZY_OR_NOW RTLD_NOW
12742
# define LT_DLLAZY_OR_NOW DL_NOW
12744
# define LT_DLLAZY_OR_NOW 0
12751
/* When -fvisbility=hidden is used, assume the code has been annotated
12752
correspondingly for the symbols needed. */
12753
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12754
int fnord () __attribute__((visibility("default")));
12757
int fnord () { return 42; }
12760
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12761
int status = $lt_dlunknown;
12765
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12768
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12769
else puts (dlerror ());
12771
/* dlclose (self); */
12779
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12780
(eval $ac_link) 2>&5
12782
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12783
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12784
(./conftest; exit; ) >&5 2>/dev/null
12786
case x$lt_status in
12787
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12788
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12789
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12792
# compilation failed
12793
lt_cv_dlopen_self_static=no
12800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12801
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12804
CPPFLAGS="$save_CPPFLAGS"
12805
LDFLAGS="$save_LDFLAGS"
12810
case $lt_cv_dlopen_self in
12811
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12812
*) enable_dlopen_self=unknown ;;
12815
case $lt_cv_dlopen_self_static in
12816
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12817
*) enable_dlopen_self_static=unknown ;;
12839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12840
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12841
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12842
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12843
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12845
$as_echo "yes" >&6; }
12847
# FIXME - insert some real tests, host_os isn't really good enough
12850
if test -n "$STRIP" ; then
12851
striplib="$STRIP -x"
12852
old_striplib="$STRIP -S"
12853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12854
$as_echo "yes" >&6; }
12856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857
$as_echo "no" >&6; }
12861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862
$as_echo "no" >&6; }
12878
# Report which library types will actually be built
12879
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12880
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12881
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12882
$as_echo "$can_build_shared" >&6; }
12884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12885
$as_echo_n "checking whether to build shared libraries... " >&6; }
12886
test "$can_build_shared" = "no" && enable_shared=no
12888
# On AIX, shared libraries and static libraries use the same namespace, and
12889
# are all built from PIC.
12892
test "$enable_shared" = yes && enable_static=no
12893
if test -n "$RANLIB"; then
12894
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12895
postinstall_cmds='$RANLIB $lib'
12900
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12901
test "$enable_shared" = yes && enable_static=no
12905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12906
$as_echo "$enable_shared" >&6; }
12908
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12909
$as_echo_n "checking whether to build static libraries... " >&6; }
12910
# Make sure either enable_shared or enable_static is yes.
12911
test "$enable_shared" = yes || enable_static=yes
12912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12913
$as_echo "$enable_static" >&6; }
12920
ac_cpp='$CPP $CPPFLAGS'
12921
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12922
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12923
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12941
ac_config_commands="$ac_config_commands libtool"
12946
# Only expand once:
12952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
12953
$as_echo_n "checking bison version... " >&6; }
12954
if test "$YACC" != "bison -y"; then
12955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not bison" >&5
12956
$as_echo "not bison" >&6; }
12957
elif $YACC --help | grep -- --warnings >/dev/null; then
12958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12959
$as_echo "ok" >&6; }
12961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962
$as_echo "no" >&6; }
12963
as_fn_error $? "You need bison version 2.5 or more recent." "$LINENO" 5
12967
for ac_prog in flex lex
12969
# Extract the first word of "$ac_prog", so it can be a program name with args.
12970
set dummy $ac_prog; ac_word=$2
12971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12972
$as_echo_n "checking for $ac_word... " >&6; }
12973
if ${ac_cv_prog_LEX+:} false; then :
12974
$as_echo_n "(cached) " >&6
12976
if test -n "$LEX"; then
12977
ac_cv_prog_LEX="$LEX" # Let the user override the test.
12979
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980
for as_dir in $PATH
12983
test -z "$as_dir" && as_dir=.
12984
for ac_exec_ext in '' $ac_executable_extensions; do
12985
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12986
ac_cv_prog_LEX="$ac_prog"
12987
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12996
LEX=$ac_cv_prog_LEX
12997
if test -n "$LEX"; then
12998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12999
$as_echo "$LEX" >&6; }
13001
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002
$as_echo "no" >&6; }
13006
test -n "$LEX" && break
13008
test -n "$LEX" || LEX=":"
13010
if test "x$LEX" != "x:"; then
13011
cat >conftest.l <<_ACEOF
13017
e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
13018
yyless ((input () != 0)); }
13019
f { unput (yytext[0]); }
13020
. { BEGIN INITIAL; }
13022
#ifdef YYTEXT_POINTER
13023
extern char *yytext;
13028
return ! yylex () + ! yywrap ();
13031
{ { ac_try="$LEX conftest.l"
13032
case "(($ac_try" in
13033
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034
*) ac_try_echo=$ac_try;;
13036
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13037
$as_echo "$ac_try_echo"; } >&5
13038
(eval "$LEX conftest.l") 2>&5
13040
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13041
test $ac_status = 0; }
13042
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13043
$as_echo_n "checking lex output file root... " >&6; }
13044
if ${ac_cv_prog_lex_root+:} false; then :
13045
$as_echo_n "(cached) " >&6
13048
if test -f lex.yy.c; then
13049
ac_cv_prog_lex_root=lex.yy
13050
elif test -f lexyy.c; then
13051
ac_cv_prog_lex_root=lexyy
13053
as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13057
$as_echo "$ac_cv_prog_lex_root" >&6; }
13058
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13060
if test -z "${LEXLIB+set}"; then
13061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13062
$as_echo_n "checking lex library... " >&6; }
13063
if ${ac_cv_lib_lex+:} false; then :
13064
$as_echo_n "(cached) " >&6
13068
ac_cv_lib_lex='none needed'
13069
for ac_lib in '' -lfl -ll; do
13070
LIBS="$ac_lib $ac_save_LIBS"
13071
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072
/* end confdefs.h. */
13073
`cat $LEX_OUTPUT_ROOT.c`
13075
if ac_fn_c_try_link "$LINENO"; then :
13076
ac_cv_lib_lex=$ac_lib
13078
rm -f core conftest.err conftest.$ac_objext \
13079
conftest$ac_exeext conftest.$ac_ext
13080
test "$ac_cv_lib_lex" != 'none needed' && break
13085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13086
$as_echo "$ac_cv_lib_lex" >&6; }
13087
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13092
$as_echo_n "checking whether yytext is a pointer... " >&6; }
13093
if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13094
$as_echo_n "(cached) " >&6
13096
# POSIX says lex can declare yytext either as a pointer or an array; the
13097
# default is implementation-dependent. Figure out which it is, since
13098
# not all implementations provide the %pointer and %array declarations.
13099
ac_cv_prog_lex_yytext_pointer=no
13101
LIBS="$LEXLIB $ac_save_LIBS"
13102
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103
/* end confdefs.h. */
13105
#define YYTEXT_POINTER 1
13106
`cat $LEX_OUTPUT_ROOT.c`
13108
if ac_fn_c_try_link "$LINENO"; then :
13109
ac_cv_prog_lex_yytext_pointer=yes
13111
rm -f core conftest.err conftest.$ac_objext \
13112
conftest$ac_exeext conftest.$ac_ext
13116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13117
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13118
if test $ac_cv_prog_lex_yytext_pointer = yes; then
13120
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13123
rm -f conftest.l $LEX_OUTPUT_ROOT.c
13126
if test "x$LEX" != xflex; then
13127
LEX="$SHELL $missing_dir/missing flex"
13131
for ac_prog in valgrind
13133
# Extract the first word of "$ac_prog", so it can be a program name with args.
13134
set dummy $ac_prog; ac_word=$2
13135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13136
$as_echo_n "checking for $ac_word... " >&6; }
13137
if ${ac_cv_prog_valgrind_cmd+:} false; then :
13138
$as_echo_n "(cached) " >&6
13140
if test -n "$valgrind_cmd"; then
13141
ac_cv_prog_valgrind_cmd="$valgrind_cmd" # Let the user override the test.
13143
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144
for as_dir in $PATH
13147
test -z "$as_dir" && as_dir=.
13148
for ac_exec_ext in '' $ac_executable_extensions; do
13149
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13150
ac_cv_prog_valgrind_cmd="$ac_prog"
13151
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13160
valgrind_cmd=$ac_cv_prog_valgrind_cmd
13161
if test -n "$valgrind_cmd"; then
13162
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_cmd" >&5
13163
$as_echo "$valgrind_cmd" >&6; }
13165
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166
$as_echo "no" >&6; }
13170
test -n "$valgrind_cmd" && break
13173
if test "x$valgrind_cmd" = "x" ; then
13174
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: valgrind is required to test jq." >&5
13175
$as_echo "$as_me: WARNING: valgrind is required to test jq." >&2;}
13179
# Check whether --enable-docs was given.
13180
if test "${enable_docs+set}" = set; then :
13181
enableval=$enable_docs;
13185
if test "x$enable_docs" != "xno"; then :
13187
for ac_prog in bundle
13189
# Extract the first word of "$ac_prog", so it can be a program name with args.
13190
set dummy $ac_prog; ac_word=$2
13191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192
$as_echo_n "checking for $ac_word... " >&6; }
13193
if ${ac_cv_prog_bundle_cmd+:} false; then :
13194
$as_echo_n "(cached) " >&6
13196
if test -n "$bundle_cmd"; then
13197
ac_cv_prog_bundle_cmd="$bundle_cmd" # Let the user override the test.
13199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200
for as_dir in $PATH
13203
test -z "$as_dir" && as_dir=.
13204
for ac_exec_ext in '' $ac_executable_extensions; do
13205
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13206
ac_cv_prog_bundle_cmd="$ac_prog"
13207
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13216
bundle_cmd=$ac_cv_prog_bundle_cmd
13217
if test -n "$bundle_cmd"; then
13218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bundle_cmd" >&5
13219
$as_echo "$bundle_cmd" >&6; }
13221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222
$as_echo "no" >&6; }
13226
test -n "$bundle_cmd" && break
13230
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby dependencies" >&5
13231
$as_echo_n "checking for Ruby dependencies... " >&6; }
13232
if ${jq_cv_ruby_deps+:} false; then :
13233
$as_echo_n "(cached) " >&6
13235
jq_cv_ruby_deps=yes;
13236
if test "x$bundle_cmd" = "x" || \
13237
! bmsg="`cd ${srcdir}/docs; "$bundle_cmd" check 2>/dev/null`"; then :
13239
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $bmsg" >&5
13240
$as_echo "$as_me: WARNING: $bmsg" >&2;}
13242
*****************************************************************
13243
* Ruby dependencies for building jq documentation not found. *
13244
* You can still build, install and hack on jq, but the manpage *
13245
* will not be rebuilt and some of the tests won't run. *
13246
* See docs/README.md for how to install the docs dependencies. *
13247
*****************************************************************
13253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jq_cv_ruby_deps" >&5
13254
$as_echo "$jq_cv_ruby_deps" >&6; }
13256
if test "x$jq_cv_ruby_deps" != "xyes"; then
13262
if test "x$enable_docs" != xno; then
13264
ENABLE_DOCS_FALSE='#'
13266
ENABLE_DOCS_TRUE='#'
13271
# Check whether --enable-pthread-tls was given.
13272
if test "${enable_pthread_tls+set}" = set; then :
13273
enableval=$enable_pthread_tls;
13275
enable_pthread_tls=no
13279
if test $enable_pthread_tls = yes; then
13284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_key_create" >&5
13285
$as_echo_n "checking for pthread_key_create... " >&6; }
13286
if ${ac_cv_funclib_pthread_key_create+:} false; then :
13287
$as_echo_n "(cached) " >&6
13290
if eval "test \"\$ac_cv_func_pthread_key_create\" != yes" ; then
13291
ac_save_LIBS="$LIBS"
13292
for ac_lib in "" pthread; do
13298
*) ac_lib="-l$ac_lib" ;;
13300
LIBS=" $ac_lib $ac_save_LIBS"
13301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302
/* end confdefs.h. */
13303
#include <pthread.h>
13307
pthread_key_create(NULL, NULL)
13312
if ac_fn_c_try_link "$LINENO"; then :
13313
eval "if test -n \"$ac_lib\";then ac_cv_funclib_pthread_key_create=$ac_lib; else ac_cv_funclib_pthread_key_create=yes; fi";break
13315
rm -f core conftest.err conftest.$ac_objext \
13316
conftest$ac_exeext conftest.$ac_ext
13318
eval "ac_cv_funclib_pthread_key_create=\${ac_cv_funclib_pthread_key_create-no}"
13319
LIBS="$ac_save_LIBS"
13325
eval "ac_res=\$ac_cv_funclib_pthread_key_create"
13328
for ac_func in pthread_key_create
13330
ac_fn_c_check_func "$LINENO" "pthread_key_create" "ac_cv_func_pthread_key_create"
13331
if test "x$ac_cv_func_pthread_key_create" = xyes; then :
13332
cat >>confdefs.h <<_ACEOF
13333
#define HAVE_PTHREAD_KEY_CREATE 1
13340
# pthread_key_create
13341
eval "ac_tr_func=HAVE_`echo pthread_key_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13342
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13343
eval "LIB_pthread_key_create=$ac_res"
13347
eval "ac_cv_func_pthread_key_create=yes"
13348
eval "LIB_pthread_key_create="
13349
cat >>confdefs.h <<_ACEOF
13350
#define $ac_tr_func 1
13353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13354
$as_echo "yes" >&6; }
13357
eval "ac_cv_func_pthread_key_create=no"
13358
eval "LIB_pthread_key_create="
13359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360
$as_echo "no" >&6; }
13363
eval "ac_cv_func_pthread_key_create=yes"
13364
eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13365
cat >>confdefs.h <<_ACEOF
13366
#define $ac_tr_func 1
13369
cat >>confdefs.h <<_ACEOF
13370
#define $ac_tr_lib 1
13373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
13374
$as_echo "yes, in $ac_res" >&6; }
13379
if test -n "$LIB_pthread_key_create"; then
13380
LIBS="$LIB_pthread_key_create $LIBS"
13387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_once" >&5
13388
$as_echo_n "checking for pthread_once... " >&6; }
13389
if ${ac_cv_funclib_pthread_once+:} false; then :
13390
$as_echo_n "(cached) " >&6
13393
if eval "test \"\$ac_cv_func_pthread_once\" != yes" ; then
13394
ac_save_LIBS="$LIBS"
13395
for ac_lib in "" pthread; do
13401
*) ac_lib="-l$ac_lib" ;;
13403
LIBS=" $ac_lib $ac_save_LIBS"
13404
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405
/* end confdefs.h. */
13406
#include <pthread.h>
13410
pthread_once(NULL, NULL)
13415
if ac_fn_c_try_link "$LINENO"; then :
13416
eval "if test -n \"$ac_lib\";then ac_cv_funclib_pthread_once=$ac_lib; else ac_cv_funclib_pthread_once=yes; fi";break
13418
rm -f core conftest.err conftest.$ac_objext \
13419
conftest$ac_exeext conftest.$ac_ext
13421
eval "ac_cv_funclib_pthread_once=\${ac_cv_funclib_pthread_once-no}"
13422
LIBS="$ac_save_LIBS"
13428
eval "ac_res=\$ac_cv_funclib_pthread_once"
13431
for ac_func in pthread_once
13433
ac_fn_c_check_func "$LINENO" "pthread_once" "ac_cv_func_pthread_once"
13434
if test "x$ac_cv_func_pthread_once" = xyes; then :
13435
cat >>confdefs.h <<_ACEOF
13436
#define HAVE_PTHREAD_ONCE 1
13444
eval "ac_tr_func=HAVE_`echo pthread_once | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13445
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13446
eval "LIB_pthread_once=$ac_res"
13450
eval "ac_cv_func_pthread_once=yes"
13451
eval "LIB_pthread_once="
13452
cat >>confdefs.h <<_ACEOF
13453
#define $ac_tr_func 1
13456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13457
$as_echo "yes" >&6; }
13460
eval "ac_cv_func_pthread_once=no"
13461
eval "LIB_pthread_once="
13462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13463
$as_echo "no" >&6; }
13466
eval "ac_cv_func_pthread_once=yes"
13467
eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13468
cat >>confdefs.h <<_ACEOF
13469
#define $ac_tr_func 1
13472
cat >>confdefs.h <<_ACEOF
13473
#define $ac_tr_lib 1
13476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
13477
$as_echo "yes, in $ac_res" >&6; }
13482
if test -n "$LIB_pthread_once"; then
13483
LIBS="$LIB_pthread_once $LIBS"
13490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atexit" >&5
13491
$as_echo_n "checking for atexit... " >&6; }
13492
if ${ac_cv_funclib_atexit+:} false; then :
13493
$as_echo_n "(cached) " >&6
13496
if eval "test \"\$ac_cv_func_atexit\" != yes" ; then
13497
ac_save_LIBS="$LIBS"
13498
for ac_lib in "" pthread; do
13504
*) ac_lib="-l$ac_lib" ;;
13506
LIBS=" $ac_lib $ac_save_LIBS"
13507
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508
/* end confdefs.h. */
13509
#include <stdlib.h>
13518
if ac_fn_c_try_link "$LINENO"; then :
13519
eval "if test -n \"$ac_lib\";then ac_cv_funclib_atexit=$ac_lib; else ac_cv_funclib_atexit=yes; fi";break
13521
rm -f core conftest.err conftest.$ac_objext \
13522
conftest$ac_exeext conftest.$ac_ext
13524
eval "ac_cv_funclib_atexit=\${ac_cv_funclib_atexit-no}"
13525
LIBS="$ac_save_LIBS"
13531
eval "ac_res=\$ac_cv_funclib_atexit"
13534
for ac_func in atexit
13536
ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
13537
if test "x$ac_cv_func_atexit" = xyes; then :
13538
cat >>confdefs.h <<_ACEOF
13539
#define HAVE_ATEXIT 1
13547
eval "ac_tr_func=HAVE_`echo atexit | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13548
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13549
eval "LIB_atexit=$ac_res"
13553
eval "ac_cv_func_atexit=yes"
13555
cat >>confdefs.h <<_ACEOF
13556
#define $ac_tr_func 1
13559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13560
$as_echo "yes" >&6; }
13563
eval "ac_cv_func_atexit=no"
13565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566
$as_echo "no" >&6; }
13569
eval "ac_cv_func_atexit=yes"
13570
eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13571
cat >>confdefs.h <<_ACEOF
13572
#define $ac_tr_func 1
13575
cat >>confdefs.h <<_ACEOF
13576
#define $ac_tr_lib 1
13579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in $ac_res" >&5
13580
$as_echo "yes, in $ac_res" >&6; }
13585
if test -n "$LIB_atexit"; then
13586
LIBS="$LIB_atexit $LIBS"
13592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread-local storage" >&5
13593
$as_echo_n "checking for thread-local storage... " >&6; }
13594
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595
/* end confdefs.h. */
13597
static __thread int x ;
13598
int main () { x = 123; return x; }
13601
if ac_fn_c_try_link "$LINENO"; then :
13604
rm -f core conftest.err conftest.$ac_objext \
13605
conftest$ac_exeext conftest.$ac_ext
13606
if test $have___thread = yes; then
13608
$as_echo "#define HAVE___THREAD 1" >>confdefs.h
13611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have___thread" >&5
13612
$as_echo "$have___thread" >&6; }
13615
BUNDLER="$bundle_cmd"
13619
ac_config_files="$ac_config_files Makefile"
13621
cat >confcache <<\_ACEOF
13622
# This file is a shell script that caches the results of configure
13623
# tests run on this system so they can be shared between configure
13624
# scripts and configure runs, see configure's option --config-cache.
13625
# It is not useful on other systems. If it contains results you don't
13626
# want to keep, you may remove or edit it.
13628
# config.status only pays attention to the cache file if you give it
13629
# the --recheck option to rerun configure.
13631
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13632
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13633
# following values.
13637
# The following way of writing the cache mishandles newlines in values,
13638
# but we know of no workaround that is simple, portable, and efficient.
13639
# So, we kill variables containing newlines.
13640
# Ultrix sh set writes to stderr and can't be redirected directly,
13641
# and sets the high bit in the cache file unless we assign to the vars.
13643
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13644
eval ac_val=\$$ac_var
13648
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13649
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13652
_ | IFS | as_nl) ;; #(
13653
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13654
*) { eval $ac_var=; unset $ac_var;} ;;
13660
case $as_nl`(ac_space=' '; set) 2>&1` in #(
13661
*${as_nl}ac_space=\ *)
13662
# `set' does not quote correctly, so add quotes: double-quote
13663
# substitution turns \\\\ into \\, and sed turns \\ into \.
13666
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13669
# `set' quotes correctly as required by POSIX, so do not add quotes.
13670
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13679
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13681
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13683
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13684
if test -w "$cache_file"; then
13685
if test "x$cache_file" != "x/dev/null"; then
13686
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13687
$as_echo "$as_me: updating cache $cache_file" >&6;}
13688
if test ! -f "$cache_file" || test -h "$cache_file"; then
13689
cat confcache >"$cache_file"
13691
case $cache_file in #(
13693
mv -f confcache "$cache_file"$$ &&
13694
mv -f "$cache_file"$$ "$cache_file" ;; #(
13696
mv -f confcache "$cache_file" ;;
13701
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13702
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13707
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13708
# Let make expand exec_prefix.
13709
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13711
# Transform confdefs.h into DEFS.
13712
# Protect against shell expansion while executing Makefile rules.
13713
# Protect against Makefile macro expansion.
13715
# If the first sed substitution is executed (which looks for macros that
13716
# take arguments), then branch to the quote section. Otherwise,
13717
# look for a macro that doesn't take arguments.
13727
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13729
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13733
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13746
DEFS=`sed -n "$ac_script" confdefs.h`
13752
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13753
# 1. Remove the extension, and $U if already installed.
13754
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13755
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13756
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13757
# will be set to the directory where LIBOBJS objects are built.
13758
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13759
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13761
LIBOBJS=$ac_libobjs
13763
LTLIBOBJS=$ac_ltlibobjs
13766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13767
$as_echo_n "checking that generated files are newer than configure... " >&6; }
13768
if test -n "$am_sleep_pid"; then
13769
# Hide warnings about reused PIDs.
13770
wait $am_sleep_pid 2>/dev/null
13772
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13773
$as_echo "done" >&6; }
13774
if test -n "$EXEEXT"; then
13776
am__EXEEXT_FALSE='#'
13778
am__EXEEXT_TRUE='#'
13782
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13783
as_fn_error $? "conditional \"AMDEP\" was never defined.
13784
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13786
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13787
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13788
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13790
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13791
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13792
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13794
if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
13795
as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
13796
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13799
: "${CONFIG_STATUS=./config.status}"
13801
ac_clean_files_save=$ac_clean_files
13802
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13803
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13804
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13806
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13808
# Generated by $as_me.
13809
# Run this file to recreate the current configuration.
13810
# Compiler output produced by configure, useful for debugging
13811
# configure, is in config.log if it exists.
13814
ac_cs_recheck=false
13817
SHELL=\${CONFIG_SHELL-$SHELL}
13820
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13821
## -------------------- ##
13822
## M4sh Initialization. ##
13823
## -------------------- ##
13825
# Be more Bourne compatible
13826
DUALCASE=1; export DUALCASE # for MKS sh
13827
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13830
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13831
# is contrary to our usage. Disable this feature.
13832
alias -g '${1+"$@"}'='"$@"'
13833
setopt NO_GLOB_SUBST
13835
case `(set -o) 2>/dev/null` in #(
13847
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13848
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13849
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13850
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13851
# Prefer a ksh shell builtin over an external printf program on Solaris,
13852
# but without wasting forks for bash or zsh.
13853
if test -z "$BASH_VERSION$ZSH_VERSION" \
13854
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13855
as_echo='print -r --'
13856
as_echo_n='print -rn --'
13857
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13858
as_echo='printf %s\n'
13859
as_echo_n='printf %s'
13861
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13862
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13863
as_echo_n='/usr/ucb/echo -n'
13865
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13866
as_echo_n_body='eval
13870
expr "X$arg" : "X\\(.*\\)$as_nl";
13871
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13873
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13875
export as_echo_n_body
13876
as_echo_n='sh -c $as_echo_n_body as_echo'
13878
export as_echo_body
13879
as_echo='sh -c $as_echo_body as_echo'
13882
# The user is always right.
13883
if test "${PATH_SEPARATOR+set}" != set; then
13885
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13886
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13893
# We need space, tab and new line, in precisely that order. Quoting is
13894
# there to prevent editors from complaining about space-tab.
13895
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13896
# splitting by setting IFS to empty value.)
13899
# Find who we are. Look in the path if we contain no directory separator.
13902
*[\\/]* ) as_myself=$0 ;;
13903
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13904
for as_dir in $PATH
13907
test -z "$as_dir" && as_dir=.
13908
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13914
# We did not find ourselves, most probably we were run as `sh COMMAND'
13915
# in which case we are not to be found in the path.
13916
if test "x$as_myself" = x; then
13919
if test ! -f "$as_myself"; then
13920
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13924
# Unset variables that we do not need and which cause bugs (e.g. in
13925
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13926
# suppresses any "Segmentation fault" message there. '((' could
13927
# trigger a bug in pdksh 5.2.14.
13928
for as_var in BASH_ENV ENV MAIL MAILPATH
13929
do eval test x\${$as_var+set} = xset \
13930
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13943
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13946
# as_fn_error STATUS ERROR [LINENO LOG_FD]
13947
# ----------------------------------------
13948
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13949
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13950
# script with STATUS, using 1 if that was 0.
13953
as_status=$1; test $as_status -eq 0 && as_status=1
13955
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13956
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13958
$as_echo "$as_me: error: $2" >&2
13959
as_fn_exit $as_status
13963
# as_fn_set_status STATUS
13964
# -----------------------
13965
# Set $? to STATUS, without forking.
13966
as_fn_set_status ()
13969
} # as_fn_set_status
13971
# as_fn_exit STATUS
13972
# -----------------
13973
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13977
as_fn_set_status $1
13983
# Portably unset VAR.
13986
{ eval $1=; unset $1;}
13988
as_unset=as_fn_unset
13989
# as_fn_append VAR VALUE
13990
# ----------------------
13991
# Append the text in VALUE to the end of the definition contained in VAR. Take
13992
# advantage of any shell optimizations that allow amortized linear growth over
13993
# repeated appends, instead of the typical quadratic growth present in naive
13995
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13996
eval 'as_fn_append ()
14007
# as_fn_arith ARG...
14008
# ------------------
14009
# Perform arithmetic evaluation on the ARGs, and store the result in the
14010
# global $as_val. Take advantage of shells that can avoid forks. The arguments
14011
# must be portable across $(()) and expr.
14012
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14013
eval 'as_fn_arith ()
14020
as_val=`expr "$@" || test $? -eq 1`
14025
if expr a : '\(a\)' >/dev/null 2>&1 &&
14026
test "X`expr 00001 : '.*\(...\)'`" = X001; then
14032
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14033
as_basename=basename
14038
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14044
as_me=`$as_basename -- "$0" ||
14045
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14046
X"$0" : 'X\(//\)$' \| \
14047
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14049
sed '/^.*\/\([^/][^/]*\)\/*$/{
14063
# Avoid depending upon Character Ranges.
14064
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14065
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14066
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14067
as_cr_digits='0123456789'
14068
as_cr_alnum=$as_cr_Letters$as_cr_digits
14070
ECHO_C= ECHO_N= ECHO_T=
14071
case `echo -n x` in #(((((
14073
case `echo 'xy\c'` in
14074
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
14076
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14083
rm -f conf$$ conf$$.exe conf$$.file
14084
if test -d conf$$.dir; then
14085
rm -f conf$$.dir/conf$$.file
14088
mkdir conf$$.dir 2>/dev/null
14090
if (echo >conf$$.file) 2>/dev/null; then
14091
if ln -s conf$$.file conf$$ 2>/dev/null; then
14093
# ... but there are two gotchas:
14094
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14095
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14096
# In both cases, we have to default to `cp -pR'.
14097
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14099
elif ln conf$$.file conf$$ 2>/dev/null; then
14107
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14108
rmdir conf$$.dir 2>/dev/null
14113
# Create "$as_dir" as a directory, including parents if necessary.
14118
-*) as_dir=./$as_dir;;
14120
test -d "$as_dir" || eval $as_mkdir_p || {
14124
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14125
*) as_qdir=$as_dir;;
14127
as_dirs="'$as_qdir' $as_dirs"
14128
as_dir=`$as_dirname -- "$as_dir" ||
14129
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14130
X"$as_dir" : 'X\(//\)[^/]' \| \
14131
X"$as_dir" : 'X\(//\)$' \| \
14132
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14133
$as_echo X"$as_dir" |
14134
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14138
/^X\(\/\/\)[^/].*/{
14151
test -d "$as_dir" && break
14153
test -z "$as_dirs" || eval "mkdir $as_dirs"
14154
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14158
if mkdir -p . 2>/dev/null; then
14159
as_mkdir_p='mkdir -p "$as_dir"'
14161
test -d ./-p && rmdir ./-p
14166
# as_fn_executable_p FILE
14167
# -----------------------
14168
# Test if FILE is an executable regular file.
14169
as_fn_executable_p ()
14171
test -f "$1" && test -x "$1"
14172
} # as_fn_executable_p
14173
as_test_x='test -x'
14174
as_executable_p=as_fn_executable_p
14176
# Sed expression to map a string onto a valid CPP name.
14177
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14179
# Sed expression to map a string onto a valid variable name.
14180
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14184
## ----------------------------------- ##
14185
## Main body of $CONFIG_STATUS script. ##
14186
## ----------------------------------- ##
14188
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14190
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14191
# Save the log message, to keep $0 and so on meaningful, and to
14192
# report actual input values of CONFIG_FILES etc. instead of their
14193
# values after options handling.
14195
This file was extended by jq $as_me 1.4, which was
14196
generated by GNU Autoconf 2.69. Invocation command line was
14198
CONFIG_FILES = $CONFIG_FILES
14199
CONFIG_HEADERS = $CONFIG_HEADERS
14200
CONFIG_LINKS = $CONFIG_LINKS
14201
CONFIG_COMMANDS = $CONFIG_COMMANDS
14204
on `(hostname || uname -n) 2>/dev/null | sed 1q`
14209
case $ac_config_files in *"
14210
"*) set x $ac_config_files; shift; ac_config_files=$*;;
14215
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14216
# Files that config.status was made for.
14217
config_files="$ac_config_files"
14218
config_commands="$ac_config_commands"
14222
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14224
\`$as_me' instantiates files and other configuration actions
14225
from templates according to the current configuration. Unless the files
14226
and actions are specified as TAGs, all are instantiated by default.
14228
Usage: $0 [OPTION]... [TAG]...
14230
-h, --help print this help, then exit
14231
-V, --version print version number and configuration settings, then exit
14232
--config print configuration, then exit
14233
-q, --quiet, --silent
14234
do not print progress messages
14235
-d, --debug don't remove temporary files
14236
--recheck update $as_me by reconfiguring in the same conditions
14237
--file=FILE[:TEMPLATE]
14238
instantiate the configuration file FILE
14240
Configuration files:
14243
Configuration commands:
14246
Report bugs to <mu@netsoc.tcd.ie>.
14247
jq home page: <http://stedolan.github.com/jq/>."
14250
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14251
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14253
jq config.status 1.4
14254
configured by $0, generated by GNU Autoconf 2.69,
14255
with options \\"\$ac_cs_config\\"
14257
Copyright (C) 2012 Free Software Foundation, Inc.
14258
This config.status script is free software; the Free Software Foundation
14259
gives unlimited permission to copy, distribute and modify it."
14266
test -n "\$AWK" || AWK=awk
14269
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14270
# The default lists apply if the user does not specify any file.
14276
ac_option=`expr "X$1" : 'X\([^=]*\)='`
14277
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14281
ac_option=`expr "X$1" : 'X\([^=]*\)='`
14293
# Handling of the options.
14294
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14296
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14297
$as_echo "$ac_cs_version"; exit ;;
14298
--config | --confi | --conf | --con | --co | --c )
14299
$as_echo "$ac_cs_config"; exit ;;
14300
--debug | --debu | --deb | --de | --d | -d )
14302
--file | --fil | --fi | --f )
14305
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14306
'') as_fn_error $? "missing file argument" ;;
14308
as_fn_append CONFIG_FILES " '$ac_optarg'"
14309
ac_need_defaults=false;;
14310
--he | --h | --help | --hel | -h )
14311
$as_echo "$ac_cs_usage"; exit ;;
14312
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
14313
| -silent | --silent | --silen | --sile | --sil | --si | --s)
14316
# This is an error.
14317
-*) as_fn_error $? "unrecognized option: \`$1'
14318
Try \`$0 --help' for more information." ;;
14320
*) as_fn_append ac_config_targets " $1"
14321
ac_need_defaults=false ;;
14327
ac_configure_extra_args=
14329
if $ac_cs_silent; then
14331
ac_configure_extra_args="$ac_configure_extra_args --silent"
14335
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14336
if \$ac_cs_recheck; then
14337
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14339
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14340
CONFIG_SHELL='$SHELL'
14341
export CONFIG_SHELL
14346
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14350
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14351
## Running $as_me. ##
14357
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14361
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14364
# The HP-UX ksh and POSIX shell print the target directory to stdout
14365
# if CDPATH is set.
14366
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14368
sed_quote_subst='$sed_quote_subst'
14369
double_quote_subst='$double_quote_subst'
14370
delay_variable_subst='$delay_variable_subst'
14371
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14372
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14373
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14374
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14375
AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14376
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14377
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14378
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14379
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14380
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14381
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14382
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14383
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14384
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14385
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14386
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14387
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14388
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14389
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14390
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14391
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14392
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14393
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14394
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14395
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14396
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14397
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14398
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14399
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14400
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14401
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14402
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14403
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14404
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14405
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14406
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14407
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14408
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14409
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14410
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14411
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14412
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14413
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14414
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14415
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14416
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14417
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14418
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14419
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14420
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14421
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14422
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14423
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14424
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14425
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14426
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14427
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14428
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"`'
14429
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14430
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14431
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14432
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14433
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14434
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14435
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14436
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14437
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14438
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14439
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14440
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14441
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14442
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14443
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14444
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14445
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14446
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14447
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14448
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14449
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14450
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14451
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14452
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14453
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14454
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14455
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14456
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14457
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14458
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14459
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14460
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14461
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14462
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14463
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14464
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14465
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14466
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14467
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14468
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14469
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14470
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14471
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14472
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14473
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14474
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14475
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14476
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14477
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14478
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14479
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14480
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14481
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14482
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14483
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14484
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14485
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14486
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14487
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14488
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14489
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14490
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14491
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14492
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14493
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14494
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14495
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14496
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14497
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14498
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14499
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14500
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14501
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14504
LTCFLAGS='$LTCFLAGS'
14505
compiler='$compiler_DEFAULT'
14507
# A function that is used when there is no print builtin or printf.
14508
func_fallback_echo ()
14510
eval 'cat <<_LTECHO_EOF
14515
# Quote evaled strings.
14532
deplibs_check_method \
14536
sharedlib_from_linklib_cmd \
14539
archiver_list_spec \
14545
lt_cv_sys_global_symbol_pipe \
14546
lt_cv_sys_global_symbol_to_cdecl \
14547
lt_cv_sys_global_symbol_to_c_name_address \
14548
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14549
nm_file_list_spec \
14550
lt_prog_compiler_no_builtin_flag \
14551
lt_prog_compiler_pic \
14552
lt_prog_compiler_wl \
14553
lt_prog_compiler_static \
14554
lt_cv_prog_compiler_c_o \
14563
export_dynamic_flag_spec \
14564
whole_archive_flag_spec \
14565
compiler_needs_object \
14567
allow_undefined_flag \
14568
no_undefined_flag \
14569
hardcode_libdir_flag_spec \
14570
hardcode_libdir_separator \
14574
variables_saved_for_relink \
14576
library_names_spec \
14578
install_override_mode \
14582
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14583
*[\\\\\\\`\\"\\\$]*)
14584
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14587
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14592
# Double-quote double-evaled strings.
14593
for var in reload_cmds \
14594
old_postinstall_cmds \
14595
old_postuninstall_cmds \
14597
extract_expsyms_cmds \
14598
old_archive_from_new_cmds \
14599
old_archive_from_expsyms_cmds \
14601
archive_expsym_cmds \
14603
module_expsym_cmds \
14604
export_symbols_cmds \
14608
postuninstall_cmds \
14610
sys_lib_search_path_spec \
14611
sys_lib_dlsearch_path_spec; do
14612
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14613
*[\\\\\\\`\\"\\\$]*)
14614
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14617
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14622
ac_aux_dir='$ac_aux_dir'
14623
xsi_shell='$xsi_shell'
14624
lt_shell_append='$lt_shell_append'
14626
# See if we are running on zsh, and set the options which allow our
14627
# commands through without removal of \ escapes INIT.
14628
if test -n "\${ZSH_VERSION+set}" ; then
14629
setopt NO_GLOB_SUBST
14635
TIMESTAMP='$TIMESTAMP'
14644
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14646
# Handling of arguments.
14647
for ac_config_target in $ac_config_targets
14649
case $ac_config_target in
14650
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14651
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14652
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14654
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14659
# If the user did not use the arguments to specify the items to instantiate,
14660
# then the envvar interface is used. Set only those that are not.
14661
# We use the long form for the default assignment because of an extremely
14662
# bizarre bug on SunOS 4.1.3.
14663
if $ac_need_defaults; then
14664
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14665
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14668
# Have a temporary directory for convenience. Make it in the build tree
14669
# simply because there is no reason against having it here, and in addition,
14670
# creating and moving files from /tmp can sometimes cause problems.
14671
# Hook for its removal unless debugging.
14672
# Note that there is a small window in which the directory will not be cleaned:
14673
# after its creation but before its name has been assigned to `$tmp'.
14677
trap 'exit_status=$?
14678
: "${ac_tmp:=$tmp}"
14679
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14681
trap 'as_fn_exit 1' 1 2 13 15
14683
# Create a (secure) tmp directory for tmp files.
14686
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14690
tmp=./conf$$-$RANDOM
14691
(umask 077 && mkdir "$tmp")
14692
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14695
# Set up the scripts for CONFIG_FILES section.
14696
# No need to generate them if there are no CONFIG_FILES.
14697
# This happens for instance with `./config.status config.h'.
14698
if test -n "$CONFIG_FILES"; then
14701
ac_cr=`echo X | tr X '\015'`
14702
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14703
# But we know of no other shell where ac_cr would be empty at this
14704
# point, so we can use a bashism as a fallback.
14705
if test "x$ac_cr" = x; then
14706
eval ac_cr=\$\'\\r\'
14708
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14709
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14712
ac_cs_awk_cr=$ac_cr
14715
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14720
echo "cat >conf$$subs.awk <<_ACEOF" &&
14721
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14723
} >conf$$subs.sh ||
14724
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14725
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14727
for ac_last_try in false false false false false :; do
14728
. ./conf$$subs.sh ||
14729
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14731
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14732
if test $ac_delim_n = $ac_delim_num; then
14734
elif $ac_last_try; then
14735
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14737
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14740
rm -f conf$$subs.sh
14742
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14743
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14747
s/^/S["/; s/!.*/"]=/
14757
s/\(.\{148\}\)..*/\1/
14759
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14764
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14771
s/\(.\{148\}\)..*/\1/
14773
s/["\\]/\\&/g; s/^/"/; s/$/"/
14777
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14782
' <conf$$subs.awk | sed '
14787
' >>$CONFIG_STATUS || ac_write_fail=1
14788
rm -f conf$$subs.awk
14789
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14791
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14792
for (key in S) S_is_set[key] = 1
14798
nfields = split(line, field, "@")
14800
len = length(field[1])
14801
for (i = 2; i < nfields; i++) {
14803
keylen = length(key)
14804
if (S_is_set[key]) {
14806
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14807
len += length(value) + length(field[++i])
14818
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14819
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14820
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14823
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14824
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14827
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14828
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14829
# trailing colons and then remove the whole line if VPATH becomes empty
14830
# (actually we leave an empty line to preserve line numbers).
14831
if test "x$srcdir" = x.; then
14832
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14850
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14851
fi # test -n "$CONFIG_FILES"
14854
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
14859
:[FHLC]) ac_mode=$ac_tag; continue;;
14861
case $ac_mode$ac_tag in
14863
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14864
:[FH]-) ac_tag=-:-;;
14865
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14882
-) ac_f="$ac_tmp/stdin";;
14883
*) # Look for the file first in the build tree, then in the source tree
14884
# (if the path is not absolute). The absolute path cannot be DOS-style,
14885
# because $ac_f cannot contain `:'.
14889
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14891
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14893
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14894
as_fn_append ac_file_inputs " '$ac_f'"
14897
# Let's still pretend it is `configure' which instantiates (i.e., don't
14898
# use $as_me), people would be surprised to read:
14899
# /* config.h. Generated by config.status. */
14900
configure_input='Generated from '`
14901
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14903
if test x"$ac_file" != x-; then
14904
configure_input="$ac_file. $configure_input"
14905
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14906
$as_echo "$as_me: creating $ac_file" >&6;}
14908
# Neutralize special characters interpreted by sed in replacement strings.
14909
case $configure_input in #(
14910
*\&* | *\|* | *\\* )
14911
ac_sed_conf_input=`$as_echo "$configure_input" |
14912
sed 's/[\\\\&|]/\\\\&/g'`;; #(
14913
*) ac_sed_conf_input=$configure_input;;
14917
*:-:* | *:-) cat >"$ac_tmp/stdin" \
14918
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14923
ac_dir=`$as_dirname -- "$ac_file" ||
14924
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14925
X"$ac_file" : 'X\(//\)[^/]' \| \
14926
X"$ac_file" : 'X\(//\)$' \| \
14927
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14928
$as_echo X"$ac_file" |
14929
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14933
/^X\(\/\/\)[^/].*/{
14946
as_dir="$ac_dir"; as_fn_mkdir_p
14950
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14952
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14953
# A ".." for each directory in $ac_dir_suffix.
14954
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14955
case $ac_top_builddir_sub in
14956
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14957
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14960
ac_abs_top_builddir=$ac_pwd
14961
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14962
# for backward compatibility:
14963
ac_top_builddir=$ac_top_build_prefix
14966
.) # We are building in place.
14968
ac_top_srcdir=$ac_top_builddir_sub
14969
ac_abs_top_srcdir=$ac_pwd ;;
14970
[\\/]* | ?:[\\/]* ) # Absolute name.
14971
ac_srcdir=$srcdir$ac_dir_suffix;
14972
ac_top_srcdir=$srcdir
14973
ac_abs_top_srcdir=$srcdir ;;
14974
*) # Relative name.
14975
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14976
ac_top_srcdir=$ac_top_build_prefix$srcdir
14977
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14979
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14989
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14990
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14992
ac_MKDIR_P=$MKDIR_P
14994
[\\/$]* | ?:[\\/]* ) ;;
14995
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14999
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15000
# If the template does not know about datarootdir, expand it.
15001
# FIXME: This hack should be removed a few years after 2.60.
15002
ac_datarootdir_hack=; ac_datarootdir_seen=
15013
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15014
*datarootdir*) ac_datarootdir_seen=yes;;
15015
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15016
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15017
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15019
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15020
ac_datarootdir_hack='
15021
s&@datadir@&$datadir&g
15022
s&@docdir@&$docdir&g
15023
s&@infodir@&$infodir&g
15024
s&@localedir@&$localedir&g
15025
s&@mandir@&$mandir&g
15026
s&\\\${datarootdir}&$datarootdir&g' ;;
15030
# Neutralize VPATH when `$srcdir' = `.'.
15031
# Shell code in configure.ac might set extrasub.
15032
# FIXME: do we really want to maintain this feature?
15033
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15034
ac_sed_extra="$ac_vpsub
15037
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15039
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15040
s|@configure_input@|$ac_sed_conf_input|;t t
15041
s&@top_builddir@&$ac_top_builddir_sub&;t t
15042
s&@top_build_prefix@&$ac_top_build_prefix&;t t
15043
s&@srcdir@&$ac_srcdir&;t t
15044
s&@abs_srcdir@&$ac_abs_srcdir&;t t
15045
s&@top_srcdir@&$ac_top_srcdir&;t t
15046
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15047
s&@builddir@&$ac_builddir&;t t
15048
s&@abs_builddir@&$ac_abs_builddir&;t t
15049
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15050
s&@INSTALL@&$ac_INSTALL&;t t
15051
s&@MKDIR_P@&$ac_MKDIR_P&;t t
15052
$ac_datarootdir_hack
15054
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15055
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15057
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15058
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15059
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15060
"$ac_tmp/out"`; test -z "$ac_out"; } &&
15061
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15062
which seems to be undefined. Please make sure it is defined" >&5
15063
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15064
which seems to be undefined. Please make sure it is defined" >&2;}
15066
rm -f "$ac_tmp/stdin"
15068
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15069
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15071
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15075
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15076
$as_echo "$as_me: executing $ac_file commands" >&6;}
15081
case $ac_file$ac_mode in
15082
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15083
# Older Autoconf quotes --file arguments for eval, but not when files
15084
# are listed without --file. Let's play safe and only enable the eval
15085
# if we detect the quoting.
15086
case $CONFIG_FILES in
15087
*\'*) eval set x "$CONFIG_FILES" ;;
15088
*) set x $CONFIG_FILES ;;
15093
# Strip MF so we end up with the name of the file.
15094
mf=`echo "$mf" | sed -e 's/:.*$//'`
15095
# Check whether this is an Automake generated Makefile or not.
15096
# We used to match only the files named 'Makefile.in', but
15097
# some people rename them; so instead we look at the file content.
15098
# Grep'ing the first line is not enough: some people post-process
15099
# each Makefile.in and add a new line on top of each file to say so.
15100
# Grep'ing the whole file is not good either: AIX grep has a line
15101
# limit of 2048, but all sed's we know have understand at least 4000.
15102
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15103
dirpart=`$as_dirname -- "$mf" ||
15104
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15105
X"$mf" : 'X\(//\)[^/]' \| \
15106
X"$mf" : 'X\(//\)$' \| \
15107
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15109
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15113
/^X\(\/\/\)[^/].*/{
15129
# Extract the definition of DEPDIR, am__include, and am__quote
15130
# from the Makefile without running 'make'.
15131
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15132
test -z "$DEPDIR" && continue
15133
am__include=`sed -n 's/^am__include = //p' < "$mf"`
15134
test -z "$am__include" && continue
15135
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15136
# Find all dependency output files, they are included files with
15137
# $(DEPDIR) in their names. We invoke sed twice because it is the
15138
# simplest approach to changing $(DEPDIR) to its actual value in the
15140
for file in `sed -n "
15141
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15142
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15143
# Make sure the directory exists.
15144
test -f "$dirpart/$file" && continue
15145
fdir=`$as_dirname -- "$file" ||
15146
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15147
X"$file" : 'X\(//\)[^/]' \| \
15148
X"$file" : 'X\(//\)$' \| \
15149
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15150
$as_echo X"$file" |
15151
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15155
/^X\(\/\/\)[^/].*/{
15168
as_dir=$dirpart/$fdir; as_fn_mkdir_p
15169
# echo "creating $dirpart/$file"
15170
echo '# dummy' > "$dirpart/$file"
15177
# See if we are running on zsh, and set the options which allow our
15178
# commands through without removal of \ escapes.
15179
if test -n "${ZSH_VERSION+set}" ; then
15180
setopt NO_GLOB_SUBST
15183
cfgfile="${ofile}T"
15184
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15187
cat <<_LT_EOF >> "$cfgfile"
15190
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15191
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15192
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15193
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15195
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15196
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15198
# Written by Gordon Matzigkeit, 1996
15200
# This file is part of GNU Libtool.
15202
# GNU Libtool is free software; you can redistribute it and/or
15203
# modify it under the terms of the GNU General Public License as
15204
# published by the Free Software Foundation; either version 2 of
15205
# the License, or (at your option) any later version.
15207
# As a special exception to the GNU General Public License,
15208
# if you distribute this file as part of a program or library that
15209
# is built using GNU Libtool, you may include this file under the
15210
# same distribution terms that you use for the rest of that program.
15212
# GNU Libtool is distributed in the hope that it will be useful,
15213
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15214
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15215
# GNU General Public License for more details.
15217
# You should have received a copy of the GNU General Public License
15218
# along with GNU Libtool; see the file COPYING. If not, a copy
15219
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15220
# obtained by writing to the Free Software Foundation, Inc.,
15221
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15224
# The names of the tagged configurations supported by this script.
15227
# ### BEGIN LIBTOOL CONFIG
15229
# Which release of libtool.m4 was used?
15230
macro_version=$macro_version
15231
macro_revision=$macro_revision
15233
# Whether or not to build shared libraries.
15234
build_libtool_libs=$enable_shared
15236
# Whether or not to build static libraries.
15237
build_old_libs=$enable_static
15239
# Assembler program.
15242
# DLL creation program.
15243
DLLTOOL=$lt_DLLTOOL
15245
# Object dumper program.
15246
OBJDUMP=$lt_OBJDUMP
15248
# What type of objects to build.
15251
# Whether or not to optimize for fast installation.
15252
fast_install=$enable_fast_install
15254
# Shell to use when invoking shell scripts.
15257
# An echo program that protects backslashes.
15260
# The PATH separator for the build system.
15261
PATH_SEPARATOR=$lt_PATH_SEPARATOR
15264
host_alias=$host_alias
15268
# The build system.
15269
build_alias=$build_alias
15273
# A sed program that does not truncate output.
15276
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15277
Xsed="\$SED -e 1s/^X//"
15279
# A grep program that handles long lines.
15285
# A literal string matcher.
15288
# A BSD- or MS-compatible name lister.
15291
# Whether we need soft or hard links.
15294
# What is the maximum length of a command?
15295
max_cmd_len=$max_cmd_len
15297
# Object file suffix (normally "o").
15300
# Executable file suffix (normally "").
15303
# whether the shell understands "unset".
15306
# turn spaces into newlines.
15309
# turn newlines into spaces.
15312
# convert \$build file names to \$host format.
15313
to_host_file_cmd=$lt_cv_to_host_file_cmd
15315
# convert \$build files to toolchain format.
15316
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15318
# Method to check whether dependent libraries are shared objects.
15319
deplibs_check_method=$lt_deplibs_check_method
15321
# Command to use when deplibs_check_method = "file_magic".
15322
file_magic_cmd=$lt_file_magic_cmd
15324
# How to find potential files when deplibs_check_method = "file_magic".
15325
file_magic_glob=$lt_file_magic_glob
15327
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15328
want_nocaseglob=$lt_want_nocaseglob
15330
# Command to associate shared and link libraries.
15331
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15336
# Flags to create an archive.
15337
AR_FLAGS=$lt_AR_FLAGS
15339
# How to feed a file listing to the archiver.
15340
archiver_list_spec=$lt_archiver_list_spec
15342
# A symbol stripping program.
15345
# Commands used to install an old-style archive.
15347
old_postinstall_cmds=$lt_old_postinstall_cmds
15348
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15350
# Whether to use a lock for old archive extraction.
15351
lock_old_archive_extraction=$lock_old_archive_extraction
15356
# LTCC compiler flags.
15357
LTCFLAGS=$lt_CFLAGS
15359
# Take the output of nm and produce a listing of raw symbols and C names.
15360
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15362
# Transform the output of nm in a proper C declaration.
15363
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15365
# Transform the output of nm in a C name address pair.
15366
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15368
# Transform the output of nm in a C name address pair when lib prefix is needed.
15369
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15371
# Specify filename containing input files for \$NM.
15372
nm_file_list_spec=$lt_nm_file_list_spec
15374
# The root where to search for dependent libraries,and in which our libraries should be installed.
15375
lt_sysroot=$lt_sysroot
15377
# The name of the directory that contains temporary libtool files.
15380
# Used to examine libraries when file_magic_cmd begins with "file".
15381
MAGIC_CMD=$MAGIC_CMD
15383
# Must we lock files when doing compilation?
15384
need_locks=$lt_need_locks
15387
MANIFEST_TOOL=$lt_MANIFEST_TOOL
15389
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15390
DSYMUTIL=$lt_DSYMUTIL
15392
# Tool to change global to local symbols on Mac OS X.
15395
# Tool to manipulate fat objects and archives on Mac OS X.
15398
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15401
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15402
OTOOL64=$lt_OTOOL64
15404
# Old archive suffix (normally "a").
15407
# Shared library suffix (normally ".so").
15408
shrext_cmds=$lt_shrext_cmds
15410
# The commands to extract the exported symbol list from a shared archive.
15411
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15413
# Variables whose values should be saved in libtool wrapper scripts and
15414
# restored at link time.
15415
variables_saved_for_relink=$lt_variables_saved_for_relink
15417
# Do we need the "lib" prefix for modules?
15418
need_lib_prefix=$need_lib_prefix
15420
# Do we need a version for libraries?
15421
need_version=$need_version
15423
# Library versioning type.
15424
version_type=$version_type
15426
# Shared library runtime path variable.
15427
runpath_var=$runpath_var
15429
# Shared library path variable.
15430
shlibpath_var=$shlibpath_var
15432
# Is shlibpath searched before the hard-coded library search path?
15433
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15435
# Format of library name prefix.
15436
libname_spec=$lt_libname_spec
15438
# List of archive names. First name is the real one, the rest are links.
15439
# The last name is the one that the linker finds with -lNAME
15440
library_names_spec=$lt_library_names_spec
15442
# The coded name of the library, if different from the real name.
15443
soname_spec=$lt_soname_spec
15445
# Permission mode override for installation of shared libraries.
15446
install_override_mode=$lt_install_override_mode
15448
# Command to use after installation of a shared archive.
15449
postinstall_cmds=$lt_postinstall_cmds
15451
# Command to use after uninstallation of a shared archive.
15452
postuninstall_cmds=$lt_postuninstall_cmds
15454
# Commands used to finish a libtool library installation in a directory.
15455
finish_cmds=$lt_finish_cmds
15457
# As "finish_cmds", except a single script fragment to be evaled but
15459
finish_eval=$lt_finish_eval
15461
# Whether we should hardcode library paths into libraries.
15462
hardcode_into_libs=$hardcode_into_libs
15464
# Compile-time system search path for libraries.
15465
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15467
# Run-time system search path for libraries.
15468
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15470
# Whether dlopen is supported.
15471
dlopen_support=$enable_dlopen
15473
# Whether dlopen of programs is supported.
15474
dlopen_self=$enable_dlopen_self
15476
# Whether dlopen of statically linked programs is supported.
15477
dlopen_self_static=$enable_dlopen_self_static
15479
# Commands to strip libraries.
15480
old_striplib=$lt_old_striplib
15481
striplib=$lt_striplib
15484
# The linker used to build libraries.
15487
# How to create reloadable object files.
15488
reload_flag=$lt_reload_flag
15489
reload_cmds=$lt_reload_cmds
15491
# Commands used to build an old-style archive.
15492
old_archive_cmds=$lt_old_archive_cmds
15494
# A language specific compiler.
15497
# Is the compiler the GNU compiler?
15500
# Compiler flag to turn off builtin functions.
15501
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15503
# Additional compiler flags for building library objects.
15504
pic_flag=$lt_lt_prog_compiler_pic
15506
# How to pass a linker flag through the compiler.
15507
wl=$lt_lt_prog_compiler_wl
15509
# Compiler flag to prevent dynamic linking.
15510
link_static_flag=$lt_lt_prog_compiler_static
15512
# Does compiler simultaneously support -c and -o options?
15513
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15515
# Whether or not to add -lc for building shared libraries.
15516
build_libtool_need_lc=$archive_cmds_need_lc
15518
# Whether or not to disallow shared libs when runtime libs are static.
15519
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15521
# Compiler flag to allow reflexive dlopens.
15522
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15524
# Compiler flag to generate shared objects directly from archives.
15525
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15527
# Whether the compiler copes with passing no objects directly.
15528
compiler_needs_object=$lt_compiler_needs_object
15530
# Create an old-style archive from a shared archive.
15531
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15533
# Create a temporary old-style archive to link instead of a shared archive.
15534
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15536
# Commands used to build a shared archive.
15537
archive_cmds=$lt_archive_cmds
15538
archive_expsym_cmds=$lt_archive_expsym_cmds
15540
# Commands used to build a loadable module if different from building
15541
# a shared archive.
15542
module_cmds=$lt_module_cmds
15543
module_expsym_cmds=$lt_module_expsym_cmds
15545
# Whether we are building with GNU ld or not.
15546
with_gnu_ld=$lt_with_gnu_ld
15548
# Flag that allows shared libraries with undefined symbols to be built.
15549
allow_undefined_flag=$lt_allow_undefined_flag
15551
# Flag that enforces no undefined symbols.
15552
no_undefined_flag=$lt_no_undefined_flag
15554
# Flag to hardcode \$libdir into a binary during linking.
15555
# This must work even if \$libdir does not exist
15556
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15558
# Whether we need a single "-rpath" flag with a separated argument.
15559
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15561
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15562
# DIR into the resulting binary.
15563
hardcode_direct=$hardcode_direct
15565
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15566
# DIR into the resulting binary and the resulting library dependency is
15567
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15568
# library is relocated.
15569
hardcode_direct_absolute=$hardcode_direct_absolute
15571
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15572
# into the resulting binary.
15573
hardcode_minus_L=$hardcode_minus_L
15575
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15576
# into the resulting binary.
15577
hardcode_shlibpath_var=$hardcode_shlibpath_var
15579
# Set to "yes" if building a shared library automatically hardcodes DIR
15580
# into the library and all subsequent libraries and executables linked
15582
hardcode_automatic=$hardcode_automatic
15584
# Set to yes if linker adds runtime paths of dependent libraries
15585
# to runtime path list.
15586
inherit_rpath=$inherit_rpath
15588
# Whether libtool must link a program against all its dependency libraries.
15589
link_all_deplibs=$link_all_deplibs
15591
# Set to "yes" if exported symbols are required.
15592
always_export_symbols=$always_export_symbols
15594
# The commands to list exported symbols.
15595
export_symbols_cmds=$lt_export_symbols_cmds
15597
# Symbols that should not be listed in the preloaded symbols.
15598
exclude_expsyms=$lt_exclude_expsyms
15600
# Symbols that must always be exported.
15601
include_expsyms=$lt_include_expsyms
15603
# Commands necessary for linking programs (against libraries) with templates.
15604
prelink_cmds=$lt_prelink_cmds
15606
# Commands necessary for finishing linking programs.
15607
postlink_cmds=$lt_postlink_cmds
15609
# Specify filename containing input files.
15610
file_list_spec=$lt_file_list_spec
15612
# How to hardcode a shared library path into an executable.
15613
hardcode_action=$hardcode_action
15615
# ### END LIBTOOL CONFIG
15621
cat <<\_LT_EOF >> "$cfgfile"
15622
# AIX sometimes has problems with the GCC collect2 program. For some
15623
# reason, if we set the COLLECT_NAMES environment variable, the problems
15624
# vanish in a puff of smoke.
15625
if test "X${COLLECT_NAMES+set}" != Xset; then
15627
export COLLECT_NAMES
15634
ltmain="$ac_aux_dir/ltmain.sh"
15637
# We use sed instead of cat because bash on DJGPP gets confused if
15638
# if finds mixed CR/LF and LF-only lines. Since sed operates in
15639
# text mode, it properly converts lines to CR/LF. This bash problem
15640
# is reportedly fixed, but why not run on old versions too?
15641
sed '$q' "$ltmain" >> "$cfgfile" \
15642
|| (rm -f "$cfgfile"; exit 1)
15644
if test x"$xsi_shell" = xyes; then
15645
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15649
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15650
\ * ) func_dirname_result="${3}" ;;\
15652
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15653
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15654
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15655
test 0 -eq $? || _lt_function_replace_fail=:
15658
sed -e '/^func_basename ()$/,/^} # func_basename /c\
15661
\ func_basename_result="${1##*/}"\
15662
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15663
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15664
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15665
test 0 -eq $? || _lt_function_replace_fail=:
15668
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15669
func_dirname_and_basename ()\
15672
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15673
\ * ) func_dirname_result="${3}" ;;\
15675
\ func_basename_result="${1##*/}"\
15676
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15677
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15678
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15679
test 0 -eq $? || _lt_function_replace_fail=:
15682
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15685
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15686
\ # positional parameters, so assign one to ordinary parameter first.\
15687
\ func_stripname_result=${3}\
15688
\ func_stripname_result=${func_stripname_result#"${1}"}\
15689
\ func_stripname_result=${func_stripname_result%"${2}"}\
15690
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15691
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15692
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15693
test 0 -eq $? || _lt_function_replace_fail=:
15696
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15697
func_split_long_opt ()\
15699
\ func_split_long_opt_name=${1%%=*}\
15700
\ func_split_long_opt_arg=${1#*=}\
15701
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15702
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15703
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15704
test 0 -eq $? || _lt_function_replace_fail=:
15707
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15708
func_split_short_opt ()\
15710
\ func_split_short_opt_arg=${1#??}\
15711
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15712
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15713
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15714
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15715
test 0 -eq $? || _lt_function_replace_fail=:
15718
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15722
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15723
\ *) func_lo2o_result=${1} ;;\
15725
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15726
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15727
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15728
test 0 -eq $? || _lt_function_replace_fail=:
15731
sed -e '/^func_xform ()$/,/^} # func_xform /c\
15734
func_xform_result=${1%.*}.lo\
15735
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15736
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15737
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15738
test 0 -eq $? || _lt_function_replace_fail=:
15741
sed -e '/^func_arith ()$/,/^} # func_arith /c\
15744
func_arith_result=$(( $* ))\
15745
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15746
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15747
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15748
test 0 -eq $? || _lt_function_replace_fail=:
15751
sed -e '/^func_len ()$/,/^} # func_len /c\
15754
func_len_result=${#1}\
15755
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15756
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15757
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15758
test 0 -eq $? || _lt_function_replace_fail=:
15762
if test x"$lt_shell_append" = xyes; then
15763
sed -e '/^func_append ()$/,/^} # func_append /c\
15766
eval "${1}+=\\${2}"\
15767
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15768
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15769
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15770
test 0 -eq $? || _lt_function_replace_fail=:
15773
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15774
func_append_quoted ()\
15776
\ func_quote_for_eval "${2}"\
15777
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15778
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15779
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15780
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15781
test 0 -eq $? || _lt_function_replace_fail=:
15784
# Save a `func_append' function call where possible by direct use of '+='
15785
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15786
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15787
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15788
test 0 -eq $? || _lt_function_replace_fail=:
15790
# Save a `func_append' function call even when '+=' is not available
15791
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15792
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15793
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15794
test 0 -eq $? || _lt_function_replace_fail=:
15797
if test x"$_lt_function_replace_fail" = x":"; then
15798
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15799
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15803
mv -f "$cfgfile" "$ofile" ||
15804
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15815
ac_clean_files=$ac_clean_files_save
15817
test $ac_write_fail = 0 ||
15818
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15821
# configure is writing to config.log, and then calls config.status.
15822
# config.status does its own redirection, appending to config.log.
15823
# Unfortunately, on DOS this fails, as config.log is still kept open
15824
# by configure, so config.status won't be able to write to it; its
15825
# output is simply discarded. So we exec the FD to /dev/null,
15826
# effectively closing config.log, so it can be properly (re)opened and
15827
# appended to by config.status. When coming back to configure, we
15828
# need to make the FD available again.
15829
if test "$no_create" != yes; then
15831
ac_config_status_args=
15832
test "$silent" = yes &&
15833
ac_config_status_args="$ac_config_status_args --quiet"
15835
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15837
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
15838
# would make configure fail if this is the last instruction.
15839
$ac_cs_success || as_fn_exit 1
15841
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15842
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15843
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}