2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for arpack-ng 3.1.5.
5
# Report bugs to <http://forge.scilab.org/index.php/p/arpack-ng/issues/>.
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
94
*[\\/]* ) as_myself=$0 ;;
95
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99
test -z "$as_dir" && as_dir=.
100
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
111
if test ! -f "$as_myself"; then
112
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there. '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
# Use a proper internal environment variable to ensure we don't fall
138
# into an infinite loop, continuously re-executing ourselves.
139
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
_as_can_reexec=no; export _as_can_reexec;
141
# We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149
*v*x* | *x*v* ) as_opts=-vx ;;
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160
# We don't want this to propagate to other subprocesses.
161
{ _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
# is contrary to our usage. Disable this feature.
168
alias -g '\${1+\"\$@\"}'='\"\$@\"'
171
case \`(set -o) 2>/dev/null\` in #(
179
as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
exitcode=1; echo positional parameters were not saved.
195
test x\$exitcode = x0 || exit 1
197
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
PATH=/empty FPATH=/empty; export PATH FPATH
207
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209
test \$(( 1 + 1 )) = 2 || exit 1"
210
if (eval "$as_required") 2>/dev/null; then :
215
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
test -z "$as_dir" && as_dir=.
227
for as_base in sh bash ksh sh5; do
228
# Try only shells that exist, to save several forks.
229
as_shell=$as_dir/$as_base
230
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
CONFIG_SHELL=$as_shell as_have_required=yes
233
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243
CONFIG_SHELL=$SHELL as_have_required=yes
248
if test "x$CONFIG_SHELL" != x; then :
250
# We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258
*v*x* | *x*v* ) as_opts=-vx ;;
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270
if test x$as_have_required = xno; then :
271
$as_echo "$0: This script requires a shell more modern than all"
272
$as_echo "$0: the shells that I found on your system."
273
if test x${ZSH_VERSION+set} = xset ; then
274
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
277
$as_echo "$0: Please tell bug-autoconf@gnu.org and
278
$0: http://forge.scilab.org/index.php/p/arpack-ng/issues/
279
$0: about your system, including any error possibly output
280
$0: before this message. Then install a modern shell, or
281
$0: manually run the script under such a shell if you do
288
SHELL=${CONFIG_SHELL-/bin/sh}
290
# Unset more variables known to interfere with behavior of common tools.
291
CLICOLOR_FORCE= GREP_OPTIONS=
292
unset CLICOLOR_FORCE GREP_OPTIONS
294
## --------------------- ##
295
## M4sh Shell Functions. ##
296
## --------------------- ##
299
# Portably unset VAR.
302
{ eval $1=; unset $1;}
306
# as_fn_set_status STATUS
307
# -----------------------
308
# Set $? to STATUS, without forking.
316
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326
# Create "$as_dir" as a directory, including parents if necessary.
331
-*) as_dir=./$as_dir;;
333
test -d "$as_dir" || eval $as_mkdir_p || {
337
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340
as_dirs="'$as_qdir' $as_dirs"
341
as_dir=`$as_dirname -- "$as_dir" ||
342
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343
X"$as_dir" : 'X\(//\)[^/]' \| \
344
X"$as_dir" : 'X\(//\)$' \| \
345
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346
$as_echo X"$as_dir" |
347
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364
test -d "$as_dir" && break
366
test -z "$as_dirs" || eval "mkdir $as_dirs"
367
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372
# as_fn_executable_p FILE
373
# -----------------------
374
# Test if FILE is an executable regular file.
375
as_fn_executable_p ()
377
test -f "$1" && test -x "$1"
378
} # as_fn_executable_p
379
# as_fn_append VAR VALUE
380
# ----------------------
381
# Append the text in VALUE to the end of the definition contained in VAR. Take
382
# advantage of any shell optimizations that allow amortized linear growth over
383
# repeated appends, instead of the typical quadratic growth present in naive
385
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386
eval 'as_fn_append ()
399
# Perform arithmetic evaluation on the ARGs, and store the result in the
400
# global $as_val. Take advantage of shells that can avoid forks. The arguments
401
# must be portable across $(()) and expr.
402
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410
as_val=`expr "$@" || test $? -eq 1`
415
# as_fn_error STATUS ERROR [LINENO LOG_FD]
416
# ----------------------------------------
417
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419
# script with STATUS, using 1 if that was 0.
422
as_status=$1; test $as_status -eq 0 && as_status=1
424
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427
$as_echo "$as_me: error: $2" >&2
428
as_fn_exit $as_status
431
if expr a : '\(a\)' >/dev/null 2>&1 &&
432
test "X`expr 00001 : '.*\(...\)'`" = X001; then
438
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450
as_me=`$as_basename -- "$0" ||
451
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452
X"$0" : 'X\(//\)$' \| \
453
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455
sed '/^.*\/\([^/][^/]*\)\/*$/{
469
# Avoid depending upon Character Ranges.
470
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473
as_cr_digits='0123456789'
474
as_cr_alnum=$as_cr_Letters$as_cr_digits
477
as_lineno_1=$LINENO as_lineno_1a=$LINENO
478
as_lineno_2=$LINENO as_lineno_2a=$LINENO
479
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497
chmod +x "$as_me.lineno" ||
498
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501
# already done that, so ensure we don't try to do so again and fall
502
# in an infinite loop. This has already happened in practice.
503
_as_can_reexec=no; export _as_can_reexec
504
# Don't try to exec as it changes $[0], causing all sort of problems
505
# (the dirname of $[0] is not the place where we might find the
506
# original and so on. Autoconf is especially sensitive to this).
508
# Exit status is that of the last command.
512
ECHO_C= ECHO_N= ECHO_T=
513
case `echo -n x` in #(((((
515
case `echo 'xy\c'` in
516
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
518
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525
rm -f conf$$ conf$$.exe conf$$.file
526
if test -d conf$$.dir; then
527
rm -f conf$$.dir/conf$$.file
530
mkdir conf$$.dir 2>/dev/null
532
if (echo >conf$$.file) 2>/dev/null; then
533
if ln -s conf$$.file conf$$ 2>/dev/null; then
535
# ... but there are two gotchas:
536
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538
# In both cases, we have to default to `cp -pR'.
539
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541
elif ln conf$$.file conf$$ 2>/dev/null; then
549
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550
rmdir conf$$.dir 2>/dev/null
552
if mkdir -p . 2>/dev/null; then
553
as_mkdir_p='mkdir -p "$as_dir"'
555
test -d ./-p && rmdir ./-p
560
as_executable_p=as_fn_executable_p
562
# Sed expression to map a string onto a valid CPP name.
563
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
# Sed expression to map a string onto a valid variable name.
566
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
SHELL=${CONFIG_SHELL-/bin/sh}
571
test -n "$DJDIR" || exec 7<&0 </dev/null
575
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576
# so uname gets run too.
577
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
ac_default_prefix=/usr/local
584
ac_config_libobj_dir=.
591
# Identity of this package.
592
PACKAGE_NAME='arpack-ng'
593
PACKAGE_TARNAME='arpack-ng'
594
PACKAGE_VERSION='3.1.5'
595
PACKAGE_STRING='arpack-ng 3.1.5'
596
PACKAGE_BUGREPORT='http://forge.scilab.org/index.php/p/arpack-ng/issues/'
599
# Factoring default headers for most tests.
600
ac_includes_default="\
602
#ifdef HAVE_SYS_TYPES_H
603
# include <sys/types.h>
605
#ifdef HAVE_SYS_STAT_H
606
# include <sys/stat.h>
612
# ifdef HAVE_STDLIB_H
617
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622
#ifdef HAVE_STRINGS_H
623
# include <strings.h>
625
#ifdef HAVE_INTTYPES_H
626
# include <inttypes.h>
635
ac_subst_vars='am__EXEEXT_FALSE
698
MAINTAINER_MODE_FALSE
712
INSTALL_STRIP_PROGRAM
754
program_transform_name
767
enable_option_checking
769
enable_maintainer_mode
774
enable_dependency_tracking
782
ac_precious_vars='build_alias
796
# Initialize some variables set by options.
798
ac_init_version=false
799
ac_unrecognized_opts=
801
# The variables have the same names as the options, with
802
# dashes changed to underlines.
810
program_transform_name=s,x,x,
818
# Installation directory options.
819
# These are left unexpanded so users can "make install exec_prefix=/foo"
820
# and all the variables that are supposed to be based on exec_prefix
821
# by default will actually change.
822
# Use braces instead of parens because sh, perl, etc. also accept them.
823
# (The list follows the same order as the GNU Coding Standards.)
824
bindir='${exec_prefix}/bin'
825
sbindir='${exec_prefix}/sbin'
826
libexecdir='${exec_prefix}/libexec'
827
datarootdir='${prefix}/share'
828
datadir='${datarootdir}'
829
sysconfdir='${prefix}/etc'
830
sharedstatedir='${prefix}/com'
831
localstatedir='${prefix}/var'
832
includedir='${prefix}/include'
833
oldincludedir='/usr/include'
834
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835
infodir='${datarootdir}/info'
840
libdir='${exec_prefix}/lib'
841
localedir='${datarootdir}/locale'
842
mandir='${datarootdir}/man'
848
# If the previous option needs an argument, assign it.
849
if test -n "$ac_prev"; then
850
eval $ac_prev=\$ac_option
856
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861
# Accept the important Cygnus configure options, so we can diagnose typos.
863
case $ac_dashdash$ac_option in
867
-bindir | --bindir | --bindi | --bind | --bin | --bi)
869
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872
-build | --build | --buil | --bui | --bu)
873
ac_prev=build_alias ;;
874
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
875
build_alias=$ac_optarg ;;
877
-cache-file | --cache-file | --cache-fil | --cache-fi \
878
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879
ac_prev=cache_file ;;
880
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882
cache_file=$ac_optarg ;;
885
cache_file=config.cache ;;
887
-datadir | --datadir | --datadi | --datad)
889
-datadir=* | --datadir=* | --datadi=* | --datad=*)
890
datadir=$ac_optarg ;;
892
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893
| --dataroo | --dataro | --datar)
894
ac_prev=datarootdir ;;
895
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897
datarootdir=$ac_optarg ;;
899
-disable-* | --disable-*)
900
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901
# Reject names that are not valid shell variable names.
902
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903
as_fn_error $? "invalid feature name: $ac_useropt"
904
ac_useropt_orig=$ac_useropt
905
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906
case $ac_user_opts in
910
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911
ac_unrecognized_sep=', ';;
913
eval enable_$ac_useropt=no ;;
915
-docdir | --docdir | --docdi | --doc | --do)
917
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925
-enable-* | --enable-*)
926
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927
# Reject names that are not valid shell variable names.
928
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929
as_fn_error $? "invalid feature name: $ac_useropt"
930
ac_useropt_orig=$ac_useropt
931
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932
case $ac_user_opts in
936
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937
ac_unrecognized_sep=', ';;
939
eval enable_$ac_useropt=\$ac_optarg ;;
941
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943
| --exec | --exe | --ex)
944
ac_prev=exec_prefix ;;
945
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947
| --exec=* | --exe=* | --ex=*)
948
exec_prefix=$ac_optarg ;;
950
-gas | --gas | --ga | --g)
951
# Obsolete; use --with-gas.
954
-help | --help | --hel | --he | -h)
956
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957
ac_init_help=recursive ;;
958
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959
ac_init_help=short ;;
961
-host | --host | --hos | --ho)
962
ac_prev=host_alias ;;
963
-host=* | --host=* | --hos=* | --ho=*)
964
host_alias=$ac_optarg ;;
966
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970
htmldir=$ac_optarg ;;
972
-includedir | --includedir | --includedi | --included | --include \
973
| --includ | --inclu | --incl | --inc)
974
ac_prev=includedir ;;
975
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976
| --includ=* | --inclu=* | --incl=* | --inc=*)
977
includedir=$ac_optarg ;;
979
-infodir | --infodir | --infodi | --infod | --info | --inf)
981
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982
infodir=$ac_optarg ;;
984
-libdir | --libdir | --libdi | --libd)
986
-libdir=* | --libdir=* | --libdi=* | --libd=*)
989
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990
| --libexe | --libex | --libe)
991
ac_prev=libexecdir ;;
992
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993
| --libexe=* | --libex=* | --libe=*)
994
libexecdir=$ac_optarg ;;
996
-localedir | --localedir | --localedi | --localed | --locale)
998
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999
localedir=$ac_optarg ;;
1001
-localstatedir | --localstatedir | --localstatedi | --localstated \
1002
| --localstate | --localstat | --localsta | --localst | --locals)
1003
ac_prev=localstatedir ;;
1004
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006
localstatedir=$ac_optarg ;;
1008
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011
mandir=$ac_optarg ;;
1013
-nfp | --nfp | --nf)
1014
# Obsolete; use --without-fp.
1017
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018
| --no-cr | --no-c | -n)
1021
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027
| --oldin | --oldi | --old | --ol | --o)
1028
ac_prev=oldincludedir ;;
1029
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032
oldincludedir=$ac_optarg ;;
1034
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037
prefix=$ac_optarg ;;
1039
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1040
| --program-pre | --program-pr | --program-p)
1041
ac_prev=program_prefix ;;
1042
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1043
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044
program_prefix=$ac_optarg ;;
1046
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1047
| --program-suf | --program-su | --program-s)
1048
ac_prev=program_suffix ;;
1049
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1050
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051
program_suffix=$ac_optarg ;;
1053
-program-transform-name | --program-transform-name \
1054
| --program-transform-nam | --program-transform-na \
1055
| --program-transform-n | --program-transform- \
1056
| --program-transform | --program-transfor \
1057
| --program-transfo | --program-transf \
1058
| --program-trans | --program-tran \
1059
| --progr-tra | --program-tr | --program-t)
1060
ac_prev=program_transform_name ;;
1061
-program-transform-name=* | --program-transform-name=* \
1062
| --program-transform-nam=* | --program-transform-na=* \
1063
| --program-transform-n=* | --program-transform-=* \
1064
| --program-transform=* | --program-transfor=* \
1065
| --program-transfo=* | --program-transf=* \
1066
| --program-trans=* | --program-tran=* \
1067
| --progr-tra=* | --program-tr=* | --program-t=*)
1068
program_transform_name=$ac_optarg ;;
1070
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073
pdfdir=$ac_optarg ;;
1075
-psdir | --psdir | --psdi | --psd | --ps)
1077
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081
| -silent | --silent | --silen | --sile | --sil)
1084
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088
sbindir=$ac_optarg ;;
1090
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1091
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092
| --sharedst | --shareds | --shared | --share | --shar \
1094
ac_prev=sharedstatedir ;;
1095
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099
sharedstatedir=$ac_optarg ;;
1101
-site | --site | --sit)
1103
-site=* | --site=* | --sit=*)
1106
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109
srcdir=$ac_optarg ;;
1111
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112
| --syscon | --sysco | --sysc | --sys | --sy)
1113
ac_prev=sysconfdir ;;
1114
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116
sysconfdir=$ac_optarg ;;
1118
-target | --target | --targe | --targ | --tar | --ta | --t)
1119
ac_prev=target_alias ;;
1120
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121
target_alias=$ac_optarg ;;
1123
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1126
-version | --version | --versio | --versi | --vers | -V)
1127
ac_init_version=: ;;
1130
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131
# Reject names that are not valid shell variable names.
1132
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133
as_fn_error $? "invalid package name: $ac_useropt"
1134
ac_useropt_orig=$ac_useropt
1135
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136
case $ac_user_opts in
1140
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141
ac_unrecognized_sep=', ';;
1143
eval with_$ac_useropt=\$ac_optarg ;;
1145
-without-* | --without-*)
1146
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147
# Reject names that are not valid shell variable names.
1148
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149
as_fn_error $? "invalid package name: $ac_useropt"
1150
ac_useropt_orig=$ac_useropt
1151
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152
case $ac_user_opts in
1156
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157
ac_unrecognized_sep=', ';;
1159
eval with_$ac_useropt=no ;;
1162
# Obsolete; use --with-x.
1165
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166
| --x-incl | --x-inc | --x-in | --x-i)
1167
ac_prev=x_includes ;;
1168
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170
x_includes=$ac_optarg ;;
1172
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1173
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174
ac_prev=x_libraries ;;
1175
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177
x_libraries=$ac_optarg ;;
1179
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1180
Try \`$0 --help' for more information"
1184
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185
# Reject names that are not valid shell variable names.
1186
case $ac_envvar in #(
1187
'' | [0-9]* | *[!_$as_cr_alnum]* )
1188
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190
eval $ac_envvar=\$ac_optarg
1191
export $ac_envvar ;;
1194
# FIXME: should be removed in autoconf 3.0.
1195
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204
if test -n "$ac_prev"; then
1205
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206
as_fn_error $? "missing argument to $ac_option"
1209
if test -n "$ac_unrecognized_opts"; then
1210
case $enable_option_checking in
1212
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217
# Check all directory arguments for consistency.
1218
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219
datadir sysconfdir sharedstatedir localstatedir includedir \
1220
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221
libdir localedir mandir
1223
eval ac_val=\$$ac_var
1224
# Remove trailing slashes.
1227
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228
eval $ac_var=\$ac_val;;
1230
# Be sure to have absolute directory names.
1232
[\\/$]* | ?:[\\/]* ) continue;;
1233
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238
# There might be people who depend on the old broken behavior: `$host'
1239
# used to hold the argument of --host etc.
1240
# FIXME: To remove some day.
1243
target=$target_alias
1245
# FIXME: To remove some day.
1246
if test "x$host_alias" != x; then
1247
if test "x$build_alias" = x; then
1248
cross_compiling=maybe
1249
elif test "x$build_alias" != "x$host_alias"; then
1255
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
test "$silent" = yes && exec 6>/dev/null
1260
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261
ac_ls_di=`ls -di .` &&
1262
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263
as_fn_error $? "working directory cannot be determined"
1264
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265
as_fn_error $? "pwd does not report name of working directory"
1268
# Find the source files, if location was not specified.
1269
if test -z "$srcdir"; then
1270
ac_srcdir_defaulted=yes
1271
# Try the directory containing this script, then the parent directory.
1272
ac_confdir=`$as_dirname -- "$as_myself" ||
1273
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274
X"$as_myself" : 'X\(//\)[^/]' \| \
1275
X"$as_myself" : 'X\(//\)$' \| \
1276
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277
$as_echo X"$as_myself" |
1278
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296
if test ! -r "$srcdir/$ac_unique_file"; then
1300
ac_srcdir_defaulted=no
1302
if test ! -r "$srcdir/$ac_unique_file"; then
1303
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310
# When building in place, set srcdir=.
1311
if test "$ac_abs_confdir" = "$ac_pwd"; then
1314
# Remove unnecessary trailing slashes from srcdir.
1315
# Double slashes in file names in object file debugging info
1316
# mess up M-x gdb in Emacs.
1318
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320
for ac_var in $ac_precious_vars; do
1321
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322
eval ac_env_${ac_var}_value=\$${ac_var}
1323
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328
# Report the --help message.
1330
if test "$ac_init_help" = "long"; then
1331
# Omit some internal or obsolete options to make the list less imposing.
1332
# This message is too long to be a string in the A/UX 3.1 sh.
1334
\`configure' configures arpack-ng 3.1.5 to adapt to many kinds of systems.
1336
Usage: $0 [OPTION]... [VAR=VALUE]...
1338
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339
VAR=VALUE. See below for descriptions of some of the useful variables.
1341
Defaults for the options are specified in brackets.
1344
-h, --help display this help and exit
1345
--help=short display options specific to this package
1346
--help=recursive display the short help of all the included packages
1347
-V, --version display version information and exit
1348
-q, --quiet, --silent do not print \`checking ...' messages
1349
--cache-file=FILE cache test results in FILE [disabled]
1350
-C, --config-cache alias for \`--cache-file=config.cache'
1351
-n, --no-create do not create output files
1352
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1354
Installation directories:
1355
--prefix=PREFIX install architecture-independent files in PREFIX
1356
[$ac_default_prefix]
1357
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360
By default, \`make install' will install all the files in
1361
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363
for instance \`--prefix=\$HOME'.
1365
For better control, use the options below.
1367
Fine tuning of the installation directories:
1368
--bindir=DIR user executables [EPREFIX/bin]
1369
--sbindir=DIR system admin executables [EPREFIX/sbin]
1370
--libexecdir=DIR program executables [EPREFIX/libexec]
1371
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374
--libdir=DIR object code libraries [EPREFIX/lib]
1375
--includedir=DIR C header files [PREFIX/include]
1376
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1377
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379
--infodir=DIR info documentation [DATAROOTDIR/info]
1380
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381
--mandir=DIR man documentation [DATAROOTDIR/man]
1382
--docdir=DIR documentation root [DATAROOTDIR/doc/arpack-ng]
1383
--htmldir=DIR html documentation [DOCDIR]
1384
--dvidir=DIR dvi documentation [DOCDIR]
1385
--pdfdir=DIR pdf documentation [DOCDIR]
1386
--psdir=DIR ps documentation [DOCDIR]
1392
--program-prefix=PREFIX prepend PREFIX to installed program names
1393
--program-suffix=SUFFIX append SUFFIX to installed program names
1394
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1397
--build=BUILD configure for building on BUILD [guessed]
1398
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1402
if test -n "$ac_init_help"; then
1403
case $ac_init_help in
1404
short | recursive ) echo "Configuration of arpack-ng 3.1.5:";;
1409
--disable-option-checking ignore unrecognized --enable/--with options
1410
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412
--enable-silent-rules less verbose build output (undo: "make V=1")
1413
--disable-silent-rules verbose build output (undo: "make V=0")
1414
--enable-maintainer-mode
1415
enable make rules and dependencies not useful (and
1416
sometimes confusing) to the casual installer
1417
--enable-shared[=PKGS] build shared libraries [default=yes]
1418
--enable-static[=PKGS] build static libraries [default=yes]
1419
--enable-fast-install[=PKGS]
1420
optimize for fast installation [default=yes]
1421
--enable-dependency-tracking
1422
do not reject slow dependency extractors
1423
--disable-dependency-tracking
1424
speeds up one-time build
1425
--disable-libtool-lock avoid locking (might break parallel builds)
1426
--enable-mpi build parallel version of arpack with MPI
1429
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1433
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1434
--with-sysroot=DIR Search for dependent libraries within DIR
1435
(or the compiler's sysroot if not specified).
1436
--with-blas=<lib> use BLAS library <lib>
1437
--with-lapack=<lib> use LAPACK library <lib>
1439
Some influential environment variables:
1440
F77 Fortran 77 compiler command
1441
FFLAGS Fortran 77 compiler flags
1442
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443
nonstandard directory <lib dir>
1444
LIBS libraries to pass to the linker, e.g. -l<library>
1445
CC C compiler command
1446
CFLAGS C compiler flags
1447
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448
you have headers in a nonstandard directory <include dir>
1450
MPIF77 MPI Fortran 77 compiler command
1452
Use these variables to override the choices made by `configure' or to help
1453
it to find libraries and programs with nonstandard names/locations.
1455
Report bugs to <http://forge.scilab.org/index.php/p/arpack-ng/issues/>.
1460
if test "$ac_init_help" = "recursive"; then
1461
# If there are subdirs, report their specific --help.
1462
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463
test -d "$ac_dir" ||
1464
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472
# A ".." for each directory in $ac_dir_suffix.
1473
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474
case $ac_top_builddir_sub in
1475
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479
ac_abs_top_builddir=$ac_pwd
1480
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481
# for backward compatibility:
1482
ac_top_builddir=$ac_top_build_prefix
1485
.) # We are building in place.
1487
ac_top_srcdir=$ac_top_builddir_sub
1488
ac_abs_top_srcdir=$ac_pwd ;;
1489
[\\/]* | ?:[\\/]* ) # Absolute name.
1490
ac_srcdir=$srcdir$ac_dir_suffix;
1491
ac_top_srcdir=$srcdir
1492
ac_abs_top_srcdir=$srcdir ;;
1494
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495
ac_top_srcdir=$ac_top_build_prefix$srcdir
1496
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
cd "$ac_dir" || { ac_status=$?; continue; }
1501
# Check for guested configure.
1502
if test -f "$ac_srcdir/configure.gnu"; then
1504
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505
elif test -f "$ac_srcdir/configure"; then
1507
$SHELL "$ac_srcdir/configure" --help=recursive
1509
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511
cd "$ac_pwd" || { ac_status=$?; break; }
1515
test -n "$ac_init_help" && exit $ac_status
1516
if $ac_init_version; then
1518
arpack-ng configure 3.1.5
1519
generated by GNU Autoconf 2.69
1521
Copyright (C) 2012 Free Software Foundation, Inc.
1522
This configure script is free software; the Free Software Foundation
1523
gives unlimited permission to copy, distribute and modify it.
1528
## ------------------------ ##
1529
## Autoconf initialization. ##
1530
## ------------------------ ##
1532
# ac_fn_f77_try_compile LINENO
1533
# ----------------------------
1534
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1535
ac_fn_f77_try_compile ()
1537
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538
rm -f conftest.$ac_objext
1539
if { { ac_try="$ac_compile"
1541
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542
*) ac_try_echo=$ac_try;;
1544
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545
$as_echo "$ac_try_echo"; } >&5
1546
(eval "$ac_compile") 2>conftest.err
1548
if test -s conftest.err; then
1549
grep -v '^ *+' conftest.err >conftest.er1
1550
cat conftest.er1 >&5
1551
mv -f conftest.er1 conftest.err
1553
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554
test $ac_status = 0; } && {
1555
test -z "$ac_f77_werror_flag" ||
1556
test ! -s conftest.err
1557
} && test -s conftest.$ac_objext; then :
1560
$as_echo "$as_me: failed program was:" >&5
1561
sed 's/^/| /' conftest.$ac_ext >&5
1565
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566
as_fn_set_status $ac_retval
1568
} # ac_fn_f77_try_compile
1570
# ac_fn_c_try_compile LINENO
1571
# --------------------------
1572
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1573
ac_fn_c_try_compile ()
1575
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576
rm -f conftest.$ac_objext
1577
if { { ac_try="$ac_compile"
1579
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580
*) ac_try_echo=$ac_try;;
1582
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583
$as_echo "$ac_try_echo"; } >&5
1584
(eval "$ac_compile") 2>conftest.err
1586
if test -s conftest.err; then
1587
grep -v '^ *+' conftest.err >conftest.er1
1588
cat conftest.er1 >&5
1589
mv -f conftest.er1 conftest.err
1591
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592
test $ac_status = 0; } && {
1593
test -z "$ac_c_werror_flag" ||
1594
test ! -s conftest.err
1595
} && test -s conftest.$ac_objext; then :
1598
$as_echo "$as_me: failed program was:" >&5
1599
sed 's/^/| /' conftest.$ac_ext >&5
1603
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604
as_fn_set_status $ac_retval
1606
} # ac_fn_c_try_compile
1608
# ac_fn_c_try_link LINENO
1609
# -----------------------
1610
# Try to link conftest.$ac_ext, and return whether this succeeded.
1613
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614
rm -f conftest.$ac_objext conftest$ac_exeext
1615
if { { ac_try="$ac_link"
1617
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618
*) ac_try_echo=$ac_try;;
1620
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621
$as_echo "$ac_try_echo"; } >&5
1622
(eval "$ac_link") 2>conftest.err
1624
if test -s conftest.err; then
1625
grep -v '^ *+' conftest.err >conftest.er1
1626
cat conftest.er1 >&5
1627
mv -f conftest.er1 conftest.err
1629
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630
test $ac_status = 0; } && {
1631
test -z "$ac_c_werror_flag" ||
1632
test ! -s conftest.err
1633
} && test -s conftest$ac_exeext && {
1634
test "$cross_compiling" = yes ||
1635
test -x conftest$ac_exeext
1639
$as_echo "$as_me: failed program was:" >&5
1640
sed 's/^/| /' conftest.$ac_ext >&5
1644
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646
# interfere with the next link command; also delete a directory that is
1647
# left behind by Apple's compiler. We do this before executing the actions.
1648
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650
as_fn_set_status $ac_retval
1652
} # ac_fn_c_try_link
1654
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655
# -------------------------------------------------------
1656
# Tests whether HEADER exists and can be compiled using the include files in
1657
# INCLUDES, setting the cache variable VAR accordingly.
1658
ac_fn_c_check_header_compile ()
1660
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662
$as_echo_n "checking for $2... " >&6; }
1663
if eval \${$3+:} false; then :
1664
$as_echo_n "(cached) " >&6
1666
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667
/* end confdefs.h. */
1671
if ac_fn_c_try_compile "$LINENO"; then :
1676
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680
$as_echo "$ac_res" >&6; }
1681
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
} # ac_fn_c_check_header_compile
1685
# ac_fn_c_try_cpp LINENO
1686
# ----------------------
1687
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1690
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691
if { { ac_try="$ac_cpp conftest.$ac_ext"
1693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694
*) ac_try_echo=$ac_try;;
1696
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697
$as_echo "$ac_try_echo"; } >&5
1698
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700
if test -s conftest.err; then
1701
grep -v '^ *+' conftest.err >conftest.er1
1702
cat conftest.er1 >&5
1703
mv -f conftest.er1 conftest.err
1705
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706
test $ac_status = 0; } > conftest.i && {
1707
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1708
test ! -s conftest.err
1712
$as_echo "$as_me: failed program was:" >&5
1713
sed 's/^/| /' conftest.$ac_ext >&5
1717
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
as_fn_set_status $ac_retval
1722
# ac_fn_c_try_run LINENO
1723
# ----------------------
1724
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1725
# that executables *can* be run.
1728
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729
if { { ac_try="$ac_link"
1731
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732
*) ac_try_echo=$ac_try;;
1734
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735
$as_echo "$ac_try_echo"; } >&5
1736
(eval "$ac_link") 2>&5
1738
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1740
{ { case "(($ac_try" in
1741
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742
*) ac_try_echo=$ac_try;;
1744
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745
$as_echo "$ac_try_echo"; } >&5
1746
(eval "$ac_try") 2>&5
1748
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749
test $ac_status = 0; }; }; then :
1752
$as_echo "$as_me: program exited with status $ac_status" >&5
1753
$as_echo "$as_me: failed program was:" >&5
1754
sed 's/^/| /' conftest.$ac_ext >&5
1756
ac_retval=$ac_status
1758
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
as_fn_set_status $ac_retval
1764
# ac_fn_c_check_func LINENO FUNC VAR
1765
# ----------------------------------
1766
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1767
ac_fn_c_check_func ()
1769
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771
$as_echo_n "checking for $2... " >&6; }
1772
if eval \${$3+:} false; then :
1773
$as_echo_n "(cached) " >&6
1775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776
/* end confdefs.h. */
1777
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1778
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1779
#define $2 innocuous_$2
1781
/* System header to define __stub macros and hopefully few prototypes,
1782
which can conflict with char $2 (); below.
1783
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1784
<limits.h> exists even on freestanding compilers. */
1787
# include <limits.h>
1789
# include <assert.h>
1794
/* Override any GCC internal prototype to avoid an error.
1795
Use char because int might match the return type of a GCC
1796
builtin and then its argument prototype would still apply. */
1801
/* The GNU C library defines this for functions which it implements
1802
to always fail with ENOSYS. Some functions are actually named
1803
something starting with __ and the normal name is an alias. */
1804
#if defined __stub_$2 || defined __stub___$2
1816
if ac_fn_c_try_link "$LINENO"; then :
1821
rm -f core conftest.err conftest.$ac_objext \
1822
conftest$ac_exeext conftest.$ac_ext
1825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826
$as_echo "$ac_res" >&6; }
1827
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
} # ac_fn_c_check_func
1831
# ac_fn_f77_try_link LINENO
1832
# -------------------------
1833
# Try to link conftest.$ac_ext, and return whether this succeeded.
1834
ac_fn_f77_try_link ()
1836
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837
rm -f conftest.$ac_objext conftest$ac_exeext
1838
if { { ac_try="$ac_link"
1840
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841
*) ac_try_echo=$ac_try;;
1843
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844
$as_echo "$ac_try_echo"; } >&5
1845
(eval "$ac_link") 2>conftest.err
1847
if test -s conftest.err; then
1848
grep -v '^ *+' conftest.err >conftest.er1
1849
cat conftest.er1 >&5
1850
mv -f conftest.er1 conftest.err
1852
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853
test $ac_status = 0; } && {
1854
test -z "$ac_f77_werror_flag" ||
1855
test ! -s conftest.err
1856
} && test -s conftest$ac_exeext && {
1857
test "$cross_compiling" = yes ||
1858
test -x conftest$ac_exeext
1862
$as_echo "$as_me: failed program was:" >&5
1863
sed 's/^/| /' conftest.$ac_ext >&5
1867
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1868
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1869
# interfere with the next link command; also delete a directory that is
1870
# left behind by Apple's compiler. We do this before executing the actions.
1871
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1872
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
as_fn_set_status $ac_retval
1875
} # ac_fn_f77_try_link
1876
cat >config.log <<_ACEOF
1877
This file contains any messages produced by compilers while
1878
running configure, to aid debugging if configure makes a mistake.
1880
It was created by arpack-ng $as_me 3.1.5, which was
1881
generated by GNU Autoconf 2.69. Invocation command line was
1893
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1894
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1895
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1896
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1897
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1900
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1902
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1903
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1904
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1905
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1906
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1907
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1908
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1912
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916
test -z "$as_dir" && as_dir=.
1917
$as_echo "PATH: $as_dir"
1933
# Keep a trace of the command line.
1934
# Strip out --no-create and --no-recursion so they do not pile up.
1935
# Strip out --silent because we don't want to record it for future runs.
1936
# Also quote any args containing shell meta-characters.
1937
# Make two passes to allow for proper duplicate-argument suppression.
1941
ac_must_keep_next=false
1947
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949
| -silent | --silent | --silen | --sile | --sil)
1952
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1957
as_fn_append ac_configure_args1 " '$ac_arg'"
1958
if test $ac_must_keep_next = true; then
1959
ac_must_keep_next=false # Got value, back to normal.
1962
*=* | --config-cache | -C | -disable-* | --disable-* \
1963
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965
| -with-* | --with-* | -without-* | --without-* | --x)
1966
case "$ac_configure_args0 " in
1967
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970
-* ) ac_must_keep_next=true ;;
1973
as_fn_append ac_configure_args " '$ac_arg'"
1978
{ ac_configure_args0=; unset ac_configure_args0;}
1979
{ ac_configure_args1=; unset ac_configure_args1;}
1981
# When interrupted or exit'd, cleanup temporary files, and complete
1982
# config.log. We remove comments because anyway the quotes in there
1983
# would cause problems or look ugly.
1984
# WARNING: Use '\'' to represent an apostrophe within the trap.
1985
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986
trap 'exit_status=$?
1987
# Save into config.log some information that might help in debugging.
1991
$as_echo "## ---------------- ##
1992
## Cache variables. ##
1993
## ---------------- ##"
1995
# The following way of writing the cache mishandles newlines in values,
1997
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998
eval ac_val=\$$ac_var
2002
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006
_ | IFS | as_nl) ;; #(
2007
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008
*) { eval $ac_var=; unset $ac_var;} ;;
2013
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014
*${as_nl}ac_space=\ *)
2016
"s/'\''/'\''\\\\'\'''\''/g;
2017
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2027
$as_echo "## ----------------- ##
2028
## Output variables. ##
2029
## ----------------- ##"
2031
for ac_var in $ac_subst_vars
2033
eval ac_val=\$$ac_var
2035
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037
$as_echo "$ac_var='\''$ac_val'\''"
2041
if test -n "$ac_subst_files"; then
2042
$as_echo "## ------------------- ##
2043
## File substitutions. ##
2044
## ------------------- ##"
2046
for ac_var in $ac_subst_files
2048
eval ac_val=\$$ac_var
2050
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052
$as_echo "$ac_var='\''$ac_val'\''"
2057
if test -s confdefs.h; then
2058
$as_echo "## ----------- ##
2065
test "$ac_signal" != 0 &&
2066
$as_echo "$as_me: caught signal $ac_signal"
2067
$as_echo "$as_me: exit $exit_status"
2069
rm -f core *.core core.conftest.* &&
2070
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2073
for ac_signal in 1 2 13 15; do
2074
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2079
rm -f -r conftest* confdefs.h
2081
$as_echo "/* confdefs.h */" > confdefs.h
2083
# Predefined preprocessor variables.
2085
cat >>confdefs.h <<_ACEOF
2086
#define PACKAGE_NAME "$PACKAGE_NAME"
2089
cat >>confdefs.h <<_ACEOF
2090
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2093
cat >>confdefs.h <<_ACEOF
2094
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2097
cat >>confdefs.h <<_ACEOF
2098
#define PACKAGE_STRING "$PACKAGE_STRING"
2101
cat >>confdefs.h <<_ACEOF
2102
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2105
cat >>confdefs.h <<_ACEOF
2106
#define PACKAGE_URL "$PACKAGE_URL"
2110
# Let the site file select an alternate cache file if it wants to.
2111
# Prefer an explicitly selected file to automatically selected ones.
2114
if test -n "$CONFIG_SITE"; then
2115
# We do not want a PATH search for config.site.
2116
case $CONFIG_SITE in #((
2117
-*) ac_site_file1=./$CONFIG_SITE;;
2118
*/*) ac_site_file1=$CONFIG_SITE;;
2119
*) ac_site_file1=./$CONFIG_SITE;;
2121
elif test "x$prefix" != xNONE; then
2122
ac_site_file1=$prefix/share/config.site
2123
ac_site_file2=$prefix/etc/config.site
2125
ac_site_file1=$ac_default_prefix/share/config.site
2126
ac_site_file2=$ac_default_prefix/etc/config.site
2128
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130
test "x$ac_site_file" = xNONE && continue
2131
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2132
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2133
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2134
sed 's/^/| /' "$ac_site_file" >&5
2136
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138
as_fn_error $? "failed to load site script $ac_site_file
2139
See \`config.log' for more details" "$LINENO" 5; }
2143
if test -r "$cache_file"; then
2144
# Some versions of bash will fail to source /dev/null (special files
2145
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2146
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2147
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148
$as_echo "$as_me: loading cache $cache_file" >&6;}
2150
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2151
*) . "./$cache_file";;
2155
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156
$as_echo "$as_me: creating cache $cache_file" >&6;}
2160
# Check that the precious variables saved in the cache have kept the same
2162
ac_cache_corrupted=false
2163
for ac_var in $ac_precious_vars; do
2164
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165
eval ac_new_set=\$ac_env_${ac_var}_set
2166
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167
eval ac_new_val=\$ac_env_${ac_var}_value
2168
case $ac_old_set,$ac_new_set in
2170
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172
ac_cache_corrupted=: ;;
2174
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2176
ac_cache_corrupted=: ;;
2179
if test "x$ac_old_val" != "x$ac_new_val"; then
2180
# differences in whitespace do not lead to failure.
2181
ac_old_val_w=`echo x $ac_old_val`
2182
ac_new_val_w=`echo x $ac_new_val`
2183
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186
ac_cache_corrupted=:
2188
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190
eval $ac_var=\$ac_old_val
2192
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2193
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2194
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2195
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2198
# Pass precious variables to config.status.
2199
if test "$ac_new_set" = set; then
2201
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2202
*) ac_arg=$ac_var=$ac_new_val ;;
2204
case " $ac_configure_args " in
2205
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2206
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210
if $ac_cache_corrupted; then
2211
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2217
## -------------------- ##
2218
## Main body of script. ##
2219
## -------------------- ##
2222
ac_cpp='$CPP $CPPFLAGS'
2223
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
am__api_version='1.14'
2231
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2232
if test -f "$ac_dir/install-sh"; then
2234
ac_install_sh="$ac_aux_dir/install-sh -c"
2236
elif test -f "$ac_dir/install.sh"; then
2238
ac_install_sh="$ac_aux_dir/install.sh -c"
2240
elif test -f "$ac_dir/shtool"; then
2242
ac_install_sh="$ac_aux_dir/shtool install -c"
2246
if test -z "$ac_aux_dir"; then
2247
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2250
# These three variables are undocumented and unsupported,
2251
# and are intended to be withdrawn in a future Autoconf release.
2252
# They can cause serious problems if a builder's source tree is in a directory
2253
# whose full name contains unusual characters.
2254
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2255
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2256
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2259
# Find a good install program. We prefer a C program (faster),
2260
# so one script is as good as another. But avoid the broken or
2261
# incompatible versions:
2262
# SysV /etc/install, /usr/sbin/install
2263
# SunOS /usr/etc/install
2264
# IRIX /sbin/install
2266
# AmigaOS /C/install, which installs bootblocks on floppy discs
2267
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2268
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2269
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2270
# OS/2's system install, which has a completely different semantic
2271
# ./install, which can be erroneously created by make from ./install.sh.
2272
# Reject install programs that cannot install multiple files.
2273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2274
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2275
if test -z "$INSTALL"; then
2276
if ${ac_cv_path_install+:} false; then :
2277
$as_echo_n "(cached) " >&6
2279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283
test -z "$as_dir" && as_dir=.
2284
# Account for people who put trailing slashes in PATH elements.
2285
case $as_dir/ in #((
2286
./ | .// | /[cC]/* | \
2287
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2288
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2291
# OSF1 and SCO ODT 3.0 have their own names for install.
2292
# Don't use installbsd from OSF since it installs stuff as root
2294
for ac_prog in ginstall scoinst install; do
2295
for ac_exec_ext in '' $ac_executable_extensions; do
2296
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2297
if test $ac_prog = install &&
2298
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299
# AIX install. It has an incompatible calling convention.
2301
elif test $ac_prog = install &&
2302
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303
# program-specific install script used by HP pwplus--don't use.
2306
rm -rf conftest.one conftest.two conftest.dir
2307
echo one > conftest.one
2308
echo two > conftest.two
2310
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2311
test -s conftest.one && test -s conftest.two &&
2312
test -s conftest.dir/conftest.one &&
2313
test -s conftest.dir/conftest.two
2315
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2328
rm -rf conftest.one conftest.two conftest.dir
2331
if test "${ac_cv_path_install+set}" = set; then
2332
INSTALL=$ac_cv_path_install
2334
# As a last resort, use the slow shell script. Don't cache a
2335
# value for INSTALL within a source directory, because that will
2336
# break other packages using the cache if that directory is
2337
# removed, or if the value is a relative name.
2338
INSTALL=$ac_install_sh
2341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2342
$as_echo "$INSTALL" >&6; }
2344
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2345
# It thinks the first close brace ends the variable substitution.
2346
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2348
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2350
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2353
$as_echo_n "checking whether build environment is sane... " >&6; }
2354
# Reject unsafe characters in $srcdir or the absolute working directory
2355
# name. Accept space and tab only in the latter.
2359
*[\\\"\#\$\&\'\`$am_lf]*)
2360
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2363
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2364
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2367
# Do 'set' in a subshell so we don't clobber the current shell's
2368
# arguments. Must try -L first in case configure is actually a
2369
# symlink; some systems play weird games with the mod time of symlinks
2370
# (eg FreeBSD returns the mod time of the symlink's containing
2374
for am_try in 1 2; do
2375
echo "timestamp, slept: $am_has_slept" > conftest.file
2376
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2377
if test "$*" = "X"; then
2379
set X `ls -t "$srcdir/configure" conftest.file`
2381
if test "$*" != "X $srcdir/configure conftest.file" \
2382
&& test "$*" != "X conftest.file $srcdir/configure"; then
2384
# If neither matched, then we have a broken ls. This can happen
2385
# if, for instance, CONFIG_SHELL is bash and it inherits a
2386
# broken ls alias from the environment. This has actually
2387
# happened. Such a system could not be considered "sane".
2388
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2389
alias in your environment" "$LINENO" 5
2391
if test "$2" = conftest.file || test $am_try -eq 2; then
2398
test "$2" = conftest.file
2404
as_fn_error $? "newly created file is older than distributed files!
2405
Check your system clock" "$LINENO" 5
2407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2408
$as_echo "yes" >&6; }
2409
# If we didn't sleep, we still need to ensure time stamps of config.status and
2410
# generated files are strictly newer.
2412
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2419
test "$program_prefix" != NONE &&
2420
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2421
# Use a double $ so make ignores it.
2422
test "$program_suffix" != NONE &&
2423
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2424
# Double any \ or $.
2425
# By default was `s,x,x', remove it if useless.
2426
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2427
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2429
# expand $ac_aux_dir to an absolute path
2430
am_aux_dir=`cd $ac_aux_dir && pwd`
2432
if test x"${MISSING+set}" != xset; then
2435
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2437
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2440
# Use eval to expand $SHELL
2441
if eval "$MISSING --is-lightweight"; then
2442
am_missing_run="$MISSING "
2445
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2446
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2449
if test x"${install_sh}" != xset; then
2452
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2454
install_sh="\${SHELL} $am_aux_dir/install-sh"
2458
# Installed binaries are usually stripped using 'strip' when the user
2459
# run "make install-strip". However 'strip' might not be the right
2460
# tool to use in cross-compilation environments, therefore Automake
2461
# will honor the 'STRIP' environment variable to overrule this program.
2462
if test "$cross_compiling" != no; then
2463
if test -n "$ac_tool_prefix"; then
2464
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2465
set dummy ${ac_tool_prefix}strip; ac_word=$2
2466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467
$as_echo_n "checking for $ac_word... " >&6; }
2468
if ${ac_cv_prog_STRIP+:} false; then :
2469
$as_echo_n "(cached) " >&6
2471
if test -n "$STRIP"; then
2472
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478
test -z "$as_dir" && as_dir=.
2479
for ac_exec_ext in '' $ac_executable_extensions; do
2480
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2481
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2482
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491
STRIP=$ac_cv_prog_STRIP
2492
if test -n "$STRIP"; then
2493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2494
$as_echo "$STRIP" >&6; }
2496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497
$as_echo "no" >&6; }
2502
if test -z "$ac_cv_prog_STRIP"; then
2504
# Extract the first word of "strip", so it can be a program name with args.
2505
set dummy strip; ac_word=$2
2506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507
$as_echo_n "checking for $ac_word... " >&6; }
2508
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2509
$as_echo_n "(cached) " >&6
2511
if test -n "$ac_ct_STRIP"; then
2512
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2514
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518
test -z "$as_dir" && as_dir=.
2519
for ac_exec_ext in '' $ac_executable_extensions; do
2520
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2521
ac_cv_prog_ac_ct_STRIP="strip"
2522
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2532
if test -n "$ac_ct_STRIP"; then
2533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2534
$as_echo "$ac_ct_STRIP" >&6; }
2536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537
$as_echo "no" >&6; }
2540
if test "x$ac_ct_STRIP" = x; then
2543
case $cross_compiling:$ac_tool_warned in
2545
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2546
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2547
ac_tool_warned=yes ;;
2552
STRIP="$ac_cv_prog_STRIP"
2556
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2559
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2560
if test -z "$MKDIR_P"; then
2561
if ${ac_cv_path_mkdir+:} false; then :
2562
$as_echo_n "(cached) " >&6
2564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2568
test -z "$as_dir" && as_dir=.
2569
for ac_prog in mkdir gmkdir; do
2570
for ac_exec_ext in '' $ac_executable_extensions; do
2571
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2572
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2573
'mkdir (GNU coreutils) '* | \
2574
'mkdir (coreutils) '* | \
2575
'mkdir (fileutils) '4.1*)
2576
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2586
test -d ./--version && rmdir ./--version
2587
if test "${ac_cv_path_mkdir+set}" = set; then
2588
MKDIR_P="$ac_cv_path_mkdir -p"
2590
# As a last resort, use the slow shell script. Don't cache a
2591
# value for MKDIR_P within a source directory, because that will
2592
# break other packages using the cache if that directory is
2593
# removed, or if the value is a relative name.
2594
MKDIR_P="$ac_install_sh -d"
2597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2598
$as_echo "$MKDIR_P" >&6; }
2600
for ac_prog in gawk mawk nawk awk
2602
# Extract the first word of "$ac_prog", so it can be a program name with args.
2603
set dummy $ac_prog; ac_word=$2
2604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605
$as_echo_n "checking for $ac_word... " >&6; }
2606
if ${ac_cv_prog_AWK+:} false; then :
2607
$as_echo_n "(cached) " >&6
2609
if test -n "$AWK"; then
2610
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2612
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616
test -z "$as_dir" && as_dir=.
2617
for ac_exec_ext in '' $ac_executable_extensions; do
2618
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619
ac_cv_prog_AWK="$ac_prog"
2620
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630
if test -n "$AWK"; then
2631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2632
$as_echo "$AWK" >&6; }
2634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635
$as_echo "no" >&6; }
2639
test -n "$AWK" && break
2642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2643
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2645
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2646
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2647
$as_echo_n "(cached) " >&6
2649
cat >conftest.make <<\_ACEOF
2652
@echo '@@@%%%=$(MAKE)=@@@%%%'
2654
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2655
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2657
eval ac_cv_prog_make_${ac_make}_set=yes;;
2659
eval ac_cv_prog_make_${ac_make}_set=no;;
2663
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665
$as_echo "yes" >&6; }
2668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669
$as_echo "no" >&6; }
2670
SET_MAKE="MAKE=${MAKE-make}"
2673
rm -rf .tst 2>/dev/null
2674
mkdir .tst 2>/dev/null
2675
if test -d .tst; then
2680
rmdir .tst 2>/dev/null
2682
# Check whether --enable-silent-rules was given.
2683
if test "${enable_silent_rules+set}" = set; then :
2684
enableval=$enable_silent_rules;
2687
case $enable_silent_rules in # (((
2688
yes) AM_DEFAULT_VERBOSITY=0;;
2689
no) AM_DEFAULT_VERBOSITY=1;;
2690
*) AM_DEFAULT_VERBOSITY=1;;
2692
am_make=${MAKE-make}
2693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2694
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2695
if ${am_cv_make_support_nested_variables+:} false; then :
2696
$as_echo_n "(cached) " >&6
2698
if $as_echo 'TRUE=$(BAR$(V))
2704
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2705
am_cv_make_support_nested_variables=yes
2707
am_cv_make_support_nested_variables=no
2710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2711
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2712
if test $am_cv_make_support_nested_variables = yes; then
2714
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2716
AM_V=$AM_DEFAULT_VERBOSITY
2717
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2721
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2722
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2723
# is not polluted with repeated "-I."
2724
am__isrc=' -I$(srcdir)'
2725
# test to see if srcdir already configured
2726
if test -f $srcdir/config.status; then
2727
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2731
# test whether we have cygpath
2732
if test -z "$CYGPATH_W"; then
2733
if (cygpath --version) >/dev/null 2>/dev/null; then
2734
CYGPATH_W='cygpath -w'
2741
# Define the identity of the package.
2746
cat >>confdefs.h <<_ACEOF
2747
#define PACKAGE "$PACKAGE"
2751
cat >>confdefs.h <<_ACEOF
2752
#define VERSION "$VERSION"
2755
# Some tools Automake needs.
2757
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2760
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2763
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2766
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2769
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2771
# For better backward compatibility. To be removed once Automake 1.9.x
2772
# dies out for good. For more background, see:
2773
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2774
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2775
mkdir_p='$(MKDIR_P)'
2777
# We need awk for the "check" target. The system "awk" is bad on
2779
# Always define AMTAR for backward compatibility. Yes, it's still used
2780
# in the wild :-( We should find a proper way to deprecate it ...
2784
# We'll loop over all known methods to create a tar archive until one works.
2785
_am_tools='gnutar pax cpio none'
2787
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2794
# POSIX will say in a future version that running "rm -f" with no argument
2795
# is OK; and we want to be able to make that assumption in our Makefile
2796
# recipes. So use an aggressive probe to check that the usage we want is
2797
# actually supported "in the wild" to an acceptable degree.
2798
# See automake bug#10828.
2799
# To make any issue more visible, cause the running configure to be aborted
2800
# by default if the 'rm' program in use doesn't match our expectations; the
2801
# user can still override this though.
2802
if rm -f && rm -fr && rm -rf; then : OK; else
2806
Your 'rm' program seems unable to run without file operands specified
2807
on the command line, even when the '-f' option is present. This is contrary
2808
to the behaviour of most rm programs out there, and not conforming with
2809
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2811
Please tell bug-automake@gnu.org about your system, including the value
2812
of your $PATH and any error possibly output before this message. This
2813
can help us improve future automake versions.
2816
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2817
echo 'Configuration will proceed anyway, since you have set the' >&2
2818
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2822
Aborting the configuration process, to ensure you take notice of the issue.
2824
You can download and install GNU coreutils to get an 'rm' implementation
2825
that behaves properly: <http://www.gnu.org/software/coreutils/>.
2827
If you want to complete the configuration process using your problematic
2828
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2829
to "yes", and re-run configure.
2832
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2837
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2838
# Check whether --enable-maintainer-mode was given.
2839
if test "${enable_maintainer_mode+set}" = set; then :
2840
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2842
USE_MAINTAINER_MODE=no
2845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2846
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2847
if test $USE_MAINTAINER_MODE = yes; then
2848
MAINTAINER_MODE_TRUE=
2849
MAINTAINER_MODE_FALSE='#'
2851
MAINTAINER_MODE_TRUE='#'
2852
MAINTAINER_MODE_FALSE=
2855
MAINT=$MAINTAINER_MODE_TRUE
2862
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2863
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2865
if test -n "$ac_tool_prefix"; then
2866
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
2868
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2869
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871
$as_echo_n "checking for $ac_word... " >&6; }
2872
if ${ac_cv_prog_F77+:} false; then :
2873
$as_echo_n "(cached) " >&6
2875
if test -n "$F77"; then
2876
ac_cv_prog_F77="$F77" # Let the user override the test.
2878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882
test -z "$as_dir" && as_dir=.
2883
for ac_exec_ext in '' $ac_executable_extensions; do
2884
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
2886
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896
if test -n "$F77"; then
2897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
2898
$as_echo "$F77" >&6; }
2900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901
$as_echo "no" >&6; }
2905
test -n "$F77" && break
2908
if test -z "$F77"; then
2910
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
2912
# Extract the first word of "$ac_prog", so it can be a program name with args.
2913
set dummy $ac_prog; ac_word=$2
2914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915
$as_echo_n "checking for $ac_word... " >&6; }
2916
if ${ac_cv_prog_ac_ct_F77+:} false; then :
2917
$as_echo_n "(cached) " >&6
2919
if test -n "$ac_ct_F77"; then
2920
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
2922
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926
test -z "$as_dir" && as_dir=.
2927
for ac_exec_ext in '' $ac_executable_extensions; do
2928
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929
ac_cv_prog_ac_ct_F77="$ac_prog"
2930
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939
ac_ct_F77=$ac_cv_prog_ac_ct_F77
2940
if test -n "$ac_ct_F77"; then
2941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
2942
$as_echo "$ac_ct_F77" >&6; }
2944
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945
$as_echo "no" >&6; }
2949
test -n "$ac_ct_F77" && break
2952
if test "x$ac_ct_F77" = x; then
2955
case $cross_compiling:$ac_tool_warned in
2957
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2958
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2959
ac_tool_warned=yes ;;
2966
# Provide some information about the compiler.
2967
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
2970
for ac_option in --version -v -V -qversion; do
2971
{ { ac_try="$ac_compiler $ac_option >&5"
2973
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974
*) ac_try_echo=$ac_try;;
2976
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977
$as_echo "$ac_try_echo"; } >&5
2978
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
2980
if test -s conftest.err; then
2982
... rest of stderr output deleted ...
2983
10q' conftest.err >conftest.er1
2984
cat conftest.er1 >&5
2986
rm -f conftest.er1 conftest.err
2987
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988
test $ac_status = 0; }
2992
cat > conftest.$ac_ext <<_ACEOF
2997
ac_clean_files_save=$ac_clean_files
2998
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2999
# Try to create an executable without -o first, disregard a.out.
3000
# It will help us diagnose broken compilers, and finding out an intuition
3002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 77 compiler works" >&5
3003
$as_echo_n "checking whether the Fortran 77 compiler works... " >&6; }
3004
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3006
# The possible output files:
3007
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3010
for ac_file in $ac_files
3013
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3014
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3019
if { { ac_try="$ac_link_default"
3021
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022
*) ac_try_echo=$ac_try;;
3024
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025
$as_echo "$ac_try_echo"; } >&5
3026
(eval "$ac_link_default") 2>&5
3028
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029
test $ac_status = 0; }; then :
3030
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3031
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3032
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3033
# so that the user can short-circuit this test for compilers unknown to
3035
for ac_file in $ac_files ''
3037
test -f "$ac_file" || continue
3039
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3042
# We found the default executable, but exeext='' is most
3046
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3048
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3050
# We set ac_cv_exeext here because the later test for it is not
3051
# safe: cross compilers may not add the suffix if given an `-o'
3052
# argument, so we may need to know it at that point already.
3053
# Even if this section looks crufty: it has the advantage of
3060
test "$ac_cv_exeext" = no && ac_cv_exeext=
3065
if test -z "$ac_file"; then :
3066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067
$as_echo "no" >&6; }
3068
$as_echo "$as_me: failed program was:" >&5
3069
sed 's/^/| /' conftest.$ac_ext >&5
3071
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3072
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073
as_fn_error 77 "Fortran 77 compiler cannot create executables
3074
See \`config.log' for more details" "$LINENO" 5; }
3076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3077
$as_echo "yes" >&6; }
3079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler default output file name" >&5
3080
$as_echo_n "checking for Fortran 77 compiler default output file name... " >&6; }
3081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3082
$as_echo "$ac_file" >&6; }
3083
ac_exeext=$ac_cv_exeext
3085
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3086
ac_clean_files=$ac_clean_files_save
3087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3088
$as_echo_n "checking for suffix of executables... " >&6; }
3089
if { { ac_try="$ac_link"
3091
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092
*) ac_try_echo=$ac_try;;
3094
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095
$as_echo "$ac_try_echo"; } >&5
3096
(eval "$ac_link") 2>&5
3098
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3099
test $ac_status = 0; }; then :
3100
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3101
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3102
# work properly (i.e., refer to `conftest.exe'), while it won't with
3104
for ac_file in conftest.exe conftest conftest.*; do
3105
test -f "$ac_file" || continue
3107
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3108
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3114
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3115
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3117
See \`config.log' for more details" "$LINENO" 5; }
3119
rm -f conftest conftest$ac_cv_exeext
3120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3121
$as_echo "$ac_cv_exeext" >&6; }
3123
rm -f conftest.$ac_ext
3124
EXEEXT=$ac_cv_exeext
3126
cat > conftest.$ac_ext <<_ACEOF
3128
open(unit=9,file='conftest.out')
3133
ac_clean_files="$ac_clean_files conftest.out"
3134
# Check that the compiler produces executables we can run. If not, either
3135
# the compiler is broken, or we cross compile.
3136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3137
$as_echo_n "checking whether we are cross compiling... " >&6; }
3138
if test "$cross_compiling" != yes; then
3139
{ { ac_try="$ac_link"
3141
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142
*) ac_try_echo=$ac_try;;
3144
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145
$as_echo "$ac_try_echo"; } >&5
3146
(eval "$ac_link") 2>&5
3148
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149
test $ac_status = 0; }
3150
if { ac_try='./conftest$ac_cv_exeext'
3151
{ { case "(($ac_try" in
3152
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153
*) ac_try_echo=$ac_try;;
3155
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156
$as_echo "$ac_try_echo"; } >&5
3157
(eval "$ac_try") 2>&5
3159
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160
test $ac_status = 0; }; }; then
3163
if test "$cross_compiling" = maybe; then
3166
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168
as_fn_error $? "cannot run Fortran 77 compiled programs.
3169
If you meant to cross compile, use \`--host'.
3170
See \`config.log' for more details" "$LINENO" 5; }
3174
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3175
$as_echo "$cross_compiling" >&6; }
3177
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3178
ac_clean_files=$ac_clean_files_save
3179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3180
$as_echo_n "checking for suffix of object files... " >&6; }
3181
if ${ac_cv_objext+:} false; then :
3182
$as_echo_n "(cached) " >&6
3184
cat > conftest.$ac_ext <<_ACEOF
3189
rm -f conftest.o conftest.obj
3190
if { { ac_try="$ac_compile"
3192
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193
*) ac_try_echo=$ac_try;;
3195
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196
$as_echo "$ac_try_echo"; } >&5
3197
(eval "$ac_compile") 2>&5
3199
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200
test $ac_status = 0; }; then :
3201
for ac_file in conftest.o conftest.obj conftest.*; do
3202
test -f "$ac_file" || continue;
3204
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3205
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3210
$as_echo "$as_me: failed program was:" >&5
3211
sed 's/^/| /' conftest.$ac_ext >&5
3213
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215
as_fn_error $? "cannot compute suffix of object files: cannot compile
3216
See \`config.log' for more details" "$LINENO" 5; }
3218
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3221
$as_echo "$ac_cv_objext" >&6; }
3222
OBJEXT=$ac_cv_objext
3224
# If we don't use `.F' as extension, the preprocessor is not run on the
3225
# input file. (Note that this only needs to work for GNU compilers.)
3228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
3229
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
3230
if ${ac_cv_f77_compiler_gnu+:} false; then :
3231
$as_echo_n "(cached) " >&6
3233
cat > conftest.$ac_ext <<_ACEOF
3241
if ac_fn_f77_try_compile "$LINENO"; then :
3246
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
3251
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
3253
ac_test_FFLAGS=${FFLAGS+set}
3254
ac_save_FFLAGS=$FFLAGS
3256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
3257
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
3258
if ${ac_cv_prog_f77_g+:} false; then :
3259
$as_echo_n "(cached) " >&6
3262
cat > conftest.$ac_ext <<_ACEOF
3267
if ac_fn_f77_try_compile "$LINENO"; then :
3268
ac_cv_prog_f77_g=yes
3272
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
3276
$as_echo "$ac_cv_prog_f77_g" >&6; }
3277
if test "$ac_test_FFLAGS" = set; then
3278
FFLAGS=$ac_save_FFLAGS
3279
elif test $ac_cv_prog_f77_g = yes; then
3280
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3286
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3293
if test $ac_compiler_gnu = yes; then
3299
ac_cpp='$CPP $CPPFLAGS'
3300
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3311
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3316
macro_version='2.4.2'
3317
macro_revision='1.3337'
3331
ltmain="$ac_aux_dir/ltmain.sh"
3333
# Make sure we can run config.sub.
3334
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3335
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3338
$as_echo_n "checking build system type... " >&6; }
3339
if ${ac_cv_build+:} false; then :
3340
$as_echo_n "(cached) " >&6
3342
ac_build_alias=$build_alias
3343
test "x$ac_build_alias" = x &&
3344
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3345
test "x$ac_build_alias" = x &&
3346
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3347
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3348
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3352
$as_echo "$ac_cv_build" >&6; }
3353
case $ac_cv_build in
3355
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3358
ac_save_IFS=$IFS; IFS='-'
3364
# Remember, the first character of IFS is used to create $*,
3365
# except with old shells:
3368
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3372
$as_echo_n "checking host system type... " >&6; }
3373
if ${ac_cv_host+:} false; then :
3374
$as_echo_n "(cached) " >&6
3376
if test "x$host_alias" = x; then
3377
ac_cv_host=$ac_cv_build
3379
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3380
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3385
$as_echo "$ac_cv_host" >&6; }
3388
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3391
ac_save_IFS=$IFS; IFS='-'
3397
# Remember, the first character of IFS is used to create $*,
3398
# except with old shells:
3401
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3404
# Backslashify metacharacters that are still active within
3405
# double-quoted strings.
3406
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3408
# Same as above, but do not quote variable references.
3409
double_quote_subst='s/\(["`\\]\)/\\\1/g'
3411
# Sed substitution to delay expansion of an escaped shell variable in a
3412
# double_quote_subst'ed string.
3413
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3415
# Sed substitution to delay expansion of an escaped single quote.
3416
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3418
# Sed substitution to avoid accidental globbing in evaled expressions
3419
no_glob_subst='s/\*/\\\*/g'
3421
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3422
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3423
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3426
$as_echo_n "checking how to print strings... " >&6; }
3427
# Test print first, because it will be a builtin if present.
3428
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3429
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3431
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3434
# Use this function as a fallback that always works.
3435
func_fallback_echo ()
3437
eval 'cat <<_LTECHO_EOF
3441
ECHO='func_fallback_echo'
3444
# func_echo_all arg...
3445
# Invoke $ECHO with all args, space-separated.
3452
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3453
$as_echo "printf" >&6; } ;;
3454
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3455
$as_echo "print -r" >&6; } ;;
3456
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3457
$as_echo "cat" >&6; } ;;
3473
DEPDIR="${am__leading_dot}deps"
3475
ac_config_commands="$ac_config_commands depfiles"
3478
am_make=${MAKE-make}
3479
cat > confinc << 'END'
3481
@echo this is the am__doit target
3484
# If we don't find an include directive, just comment out the code.
3485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3486
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3490
# First try GNU make style include.
3491
echo "include confinc" > confmf
3492
# Ignore all kinds of additional output from 'make'.
3493
case `$am_make -s -f confmf 2> /dev/null` in #(
3494
*the\ am__doit\ target*)
3500
# Now try BSD make style include.
3501
if test "$am__include" = "#"; then
3502
echo '.include "confinc"' > confmf
3503
case `$am_make -s -f confmf 2> /dev/null` in #(
3504
*the\ am__doit\ target*)
3505
am__include=.include
3513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3514
$as_echo "$_am_result" >&6; }
3515
rm -f confinc confmf
3517
# Check whether --enable-dependency-tracking was given.
3518
if test "${enable_dependency_tracking+set}" = set; then :
3519
enableval=$enable_dependency_tracking;
3522
if test "x$enable_dependency_tracking" != xno; then
3523
am_depcomp="$ac_aux_dir/depcomp"
3527
if test "x$enable_dependency_tracking" != xno; then
3537
ac_cpp='$CPP $CPPFLAGS'
3538
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541
if test -n "$ac_tool_prefix"; then
3542
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3543
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545
$as_echo_n "checking for $ac_word... " >&6; }
3546
if ${ac_cv_prog_CC+:} false; then :
3547
$as_echo_n "(cached) " >&6
3549
if test -n "$CC"; then
3550
ac_cv_prog_CC="$CC" # Let the user override the test.
3552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556
test -z "$as_dir" && as_dir=.
3557
for ac_exec_ext in '' $ac_executable_extensions; do
3558
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3560
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570
if test -n "$CC"; then
3571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572
$as_echo "$CC" >&6; }
3574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575
$as_echo "no" >&6; }
3580
if test -z "$ac_cv_prog_CC"; then
3582
# Extract the first word of "gcc", so it can be a program name with args.
3583
set dummy gcc; ac_word=$2
3584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585
$as_echo_n "checking for $ac_word... " >&6; }
3586
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3587
$as_echo_n "(cached) " >&6
3589
if test -n "$ac_ct_CC"; then
3590
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596
test -z "$as_dir" && as_dir=.
3597
for ac_exec_ext in '' $ac_executable_extensions; do
3598
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599
ac_cv_prog_ac_ct_CC="gcc"
3600
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3610
if test -n "$ac_ct_CC"; then
3611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3612
$as_echo "$ac_ct_CC" >&6; }
3614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615
$as_echo "no" >&6; }
3618
if test "x$ac_ct_CC" = x; then
3621
case $cross_compiling:$ac_tool_warned in
3623
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625
ac_tool_warned=yes ;;
3633
if test -z "$CC"; then
3634
if test -n "$ac_tool_prefix"; then
3635
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3636
set dummy ${ac_tool_prefix}cc; ac_word=$2
3637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638
$as_echo_n "checking for $ac_word... " >&6; }
3639
if ${ac_cv_prog_CC+:} false; then :
3640
$as_echo_n "(cached) " >&6
3642
if test -n "$CC"; then
3643
ac_cv_prog_CC="$CC" # Let the user override the test.
3645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649
test -z "$as_dir" && as_dir=.
3650
for ac_exec_ext in '' $ac_executable_extensions; do
3651
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652
ac_cv_prog_CC="${ac_tool_prefix}cc"
3653
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663
if test -n "$CC"; then
3664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3665
$as_echo "$CC" >&6; }
3667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668
$as_echo "no" >&6; }
3674
if test -z "$CC"; then
3675
# Extract the first word of "cc", so it can be a program name with args.
3676
set dummy cc; ac_word=$2
3677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678
$as_echo_n "checking for $ac_word... " >&6; }
3679
if ${ac_cv_prog_CC+:} false; then :
3680
$as_echo_n "(cached) " >&6
3682
if test -n "$CC"; then
3683
ac_cv_prog_CC="$CC" # Let the user override the test.
3686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690
test -z "$as_dir" && as_dir=.
3691
for ac_exec_ext in '' $ac_executable_extensions; do
3692
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3694
ac_prog_rejected=yes
3698
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705
if test $ac_prog_rejected = yes; then
3706
# We found a bogon in the path, so make sure we never use it.
3707
set dummy $ac_cv_prog_CC
3709
if test $# != 0; then
3710
# We chose a different compiler from the bogus one.
3711
# However, it has the same basename, so the bogon will be chosen
3712
# first if we set CC to just the basename; use the full file name.
3714
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3720
if test -n "$CC"; then
3721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3722
$as_echo "$CC" >&6; }
3724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725
$as_echo "no" >&6; }
3730
if test -z "$CC"; then
3731
if test -n "$ac_tool_prefix"; then
3732
for ac_prog in cl.exe
3734
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3735
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3736
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737
$as_echo_n "checking for $ac_word... " >&6; }
3738
if ${ac_cv_prog_CC+:} false; then :
3739
$as_echo_n "(cached) " >&6
3741
if test -n "$CC"; then
3742
ac_cv_prog_CC="$CC" # Let the user override the test.
3744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748
test -z "$as_dir" && as_dir=.
3749
for ac_exec_ext in '' $ac_executable_extensions; do
3750
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3752
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762
if test -n "$CC"; then
3763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3764
$as_echo "$CC" >&6; }
3766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767
$as_echo "no" >&6; }
3771
test -n "$CC" && break
3774
if test -z "$CC"; then
3776
for ac_prog in cl.exe
3778
# Extract the first word of "$ac_prog", so it can be a program name with args.
3779
set dummy $ac_prog; ac_word=$2
3780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781
$as_echo_n "checking for $ac_word... " >&6; }
3782
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3783
$as_echo_n "(cached) " >&6
3785
if test -n "$ac_ct_CC"; then
3786
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792
test -z "$as_dir" && as_dir=.
3793
for ac_exec_ext in '' $ac_executable_extensions; do
3794
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795
ac_cv_prog_ac_ct_CC="$ac_prog"
3796
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3806
if test -n "$ac_ct_CC"; then
3807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3808
$as_echo "$ac_ct_CC" >&6; }
3810
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811
$as_echo "no" >&6; }
3815
test -n "$ac_ct_CC" && break
3818
if test "x$ac_ct_CC" = x; then
3821
case $cross_compiling:$ac_tool_warned in
3823
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825
ac_tool_warned=yes ;;
3834
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836
as_fn_error $? "no acceptable C compiler found in \$PATH
3837
See \`config.log' for more details" "$LINENO" 5; }
3839
# Provide some information about the compiler.
3840
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3843
for ac_option in --version -v -V -qversion; do
3844
{ { ac_try="$ac_compiler $ac_option >&5"
3846
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847
*) ac_try_echo=$ac_try;;
3849
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850
$as_echo "$ac_try_echo"; } >&5
3851
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3853
if test -s conftest.err; then
3855
... rest of stderr output deleted ...
3856
10q' conftest.err >conftest.er1
3857
cat conftest.er1 >&5
3859
rm -f conftest.er1 conftest.err
3860
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861
test $ac_status = 0; }
3864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3865
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3866
if ${ac_cv_c_compiler_gnu+:} false; then :
3867
$as_echo_n "(cached) " >&6
3869
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870
/* end confdefs.h. */
3883
if ac_fn_c_try_compile "$LINENO"; then :
3888
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3893
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3894
if test $ac_compiler_gnu = yes; then
3899
ac_test_CFLAGS=${CFLAGS+set}
3900
ac_save_CFLAGS=$CFLAGS
3901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3902
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3903
if ${ac_cv_prog_cc_g+:} false; then :
3904
$as_echo_n "(cached) " >&6
3906
ac_save_c_werror_flag=$ac_c_werror_flag
3907
ac_c_werror_flag=yes
3910
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911
/* end confdefs.h. */
3921
if ac_fn_c_try_compile "$LINENO"; then :
3925
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926
/* end confdefs.h. */
3936
if ac_fn_c_try_compile "$LINENO"; then :
3939
ac_c_werror_flag=$ac_save_c_werror_flag
3941
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942
/* end confdefs.h. */
3952
if ac_fn_c_try_compile "$LINENO"; then :
3955
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960
ac_c_werror_flag=$ac_save_c_werror_flag
3962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3963
$as_echo "$ac_cv_prog_cc_g" >&6; }
3964
if test "$ac_test_CFLAGS" = set; then
3965
CFLAGS=$ac_save_CFLAGS
3966
elif test $ac_cv_prog_cc_g = yes; then
3967
if test "$GCC" = yes; then
3973
if test "$GCC" = yes; then
3979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3980
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3981
if ${ac_cv_prog_cc_c89+:} false; then :
3982
$as_echo_n "(cached) " >&6
3984
ac_cv_prog_cc_c89=no
3986
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987
/* end confdefs.h. */
3991
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3992
struct buf { int x; };
3993
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3994
static char *e (p, i)
4000
static char *f (char * (*g) (char **, int), char **p, ...)
4005
s = g (p, va_arg (v,int));
4010
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4011
function prototypes and stuff, but not '\xHH' hex character constants.
4012
These don't provoke an error unfortunately, instead are silently treated
4013
as 'x'. The following induces an error, until -std is added to get
4014
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4015
array size at least. It's necessary to write '\x00'==0 to get something
4016
that's true only with -std. */
4017
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4019
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4020
inside strings and character constants. */
4022
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4024
int test (int i, double x);
4025
struct s1 {int (*f) (int a);};
4026
struct s2 {int (*f) (double a);};
4027
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4033
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4038
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4039
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4041
CC="$ac_save_CC $ac_arg"
4042
if ac_fn_c_try_compile "$LINENO"; then :
4043
ac_cv_prog_cc_c89=$ac_arg
4045
rm -f core conftest.err conftest.$ac_objext
4046
test "x$ac_cv_prog_cc_c89" != "xno" && break
4048
rm -f conftest.$ac_ext
4053
case "x$ac_cv_prog_cc_c89" in
4055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4056
$as_echo "none needed" >&6; } ;;
4058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4059
$as_echo "unsupported" >&6; } ;;
4061
CC="$CC $ac_cv_prog_cc_c89"
4062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4063
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4065
if test "x$ac_cv_prog_cc_c89" != xno; then :
4070
ac_cpp='$CPP $CPPFLAGS'
4071
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076
ac_cpp='$CPP $CPPFLAGS'
4077
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4081
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4082
if ${am_cv_prog_cc_c_o+:} false; then :
4083
$as_echo_n "(cached) " >&6
4085
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086
/* end confdefs.h. */
4096
# Make sure it works both with $CC and with simple cc.
4097
# Following AC_PROG_CC_C_O, we do the test twice because some
4098
# compilers refuse to overwrite an existing .o file with -o,
4099
# though they will create one.
4100
am_cv_prog_cc_c_o=yes
4102
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4103
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106
(exit $ac_status); } \
4107
&& test -f conftest2.$ac_objext; then
4110
am_cv_prog_cc_c_o=no
4114
rm -f core conftest*
4117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4118
$as_echo "$am_cv_prog_cc_c_o" >&6; }
4119
if test "$am_cv_prog_cc_c_o" != yes; then
4120
# Losing compiler, so override with the script.
4121
# FIXME: It is wrong to rewrite CC.
4122
# But if we don't then we get into trouble of one sort or another.
4123
# A longer-term fix would be to have automake use am__CC in this case,
4124
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4125
CC="$am_aux_dir/compile $CC"
4128
ac_cpp='$CPP $CPPFLAGS'
4129
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134
depcc="$CC" am_compiler_list=
4136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4137
$as_echo_n "checking dependency style of $depcc... " >&6; }
4138
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4139
$as_echo_n "(cached) " >&6
4141
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4142
# We make a subdir and do the tests there. Otherwise we can end up
4143
# making bogus files that we don't know about and never remove. For
4144
# instance it was reported that on HP-UX the gcc test will end up
4145
# making a dummy file named 'D' -- because '-MD' means "put the output
4149
# Copy depcomp to subdir because otherwise we won't find it if we're
4150
# using a relative directory.
4151
cp "$am_depcomp" conftest.dir
4153
# We will build objects and dependencies in a subdirectory because
4154
# it helps to detect inapplicable dependency modes. For instance
4155
# both Tru64's cc and ICC support -MD to output dependencies as a
4156
# side effect of compilation, but ICC will put the dependencies in
4157
# the current directory while Tru64 will put them in the object
4161
am_cv_CC_dependencies_compiler_type=none
4162
if test "$am_compiler_list" = ""; then
4163
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4166
case " $depcc " in #(
4167
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4170
for depmode in $am_compiler_list; do
4171
# Setup a source with many dependencies, because some compilers
4172
# like to wrap large dependency lists on column 80 (with \), and
4173
# we should not choose a depcomp mode which is confused by this.
4175
# We need to recreate these files for each test, as the compiler may
4176
# overwrite some of them when testing with obscure command lines.
4177
# This happens at least with the AIX C compiler.
4179
for i in 1 2 3 4 5 6; do
4180
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4181
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4182
# Solaris 10 /bin/sh.
4183
echo '/* dummy */' > sub/conftst$i.h
4185
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4187
# We check with '-c' and '-o' for the sake of the "dashmstdout"
4188
# mode. It turns out that the SunPro C++ compiler does not properly
4189
# handle '-M -o', and we need to detect this. Also, some Intel
4190
# versions had trouble with output in subdirs.
4191
am__obj=sub/conftest.${OBJEXT-o}
4192
am__minus_obj="-o $am__obj"
4195
# This depmode causes a compiler race in universal mode.
4196
test "$am__universal" = false || continue
4199
# After this tag, mechanisms are not by side-effect, so they'll
4200
# only be used when explicitly requested.
4201
if test "x$enable_dependency_tracking" = xyes; then
4207
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4208
# This compiler won't grok '-c -o', but also, the minuso test has
4209
# not run yet. These depmodes are late enough in the game, and
4210
# so weak that their functioning should not be impacted.
4211
am__obj=conftest.${OBJEXT-o}
4216
if depmode=$depmode \
4217
source=sub/conftest.c object=$am__obj \
4218
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4219
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4220
>/dev/null 2>conftest.err &&
4221
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4222
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4223
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4224
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4225
# icc doesn't choke on unknown options, it will just issue warnings
4226
# or remarks (even with -Werror). So we grep stderr for any message
4227
# that says an option was ignored or not supported.
4228
# When given -MP, icc 7.0 and 7.1 complain thusly:
4229
# icc: Command line warning: ignoring option '-M'; no argument required
4230
# The diagnosis changed in icc 8.0:
4231
# icc: Command line remark: option '-MP' not supported
4232
if (grep 'ignoring option' conftest.err ||
4233
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4234
am_cv_CC_dependencies_compiler_type=$depmode
4243
am_cv_CC_dependencies_compiler_type=none
4247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4248
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4249
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4252
test "x$enable_dependency_tracking" != xno \
4253
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4255
am__fastdepCC_FALSE='#'
4257
am__fastdepCC_TRUE='#'
4258
am__fastdepCC_FALSE=
4262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4263
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4264
if ${ac_cv_path_SED+:} false; then :
4265
$as_echo_n "(cached) " >&6
4267
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4268
for ac_i in 1 2 3 4 5 6 7; do
4269
ac_script="$ac_script$as_nl$ac_script"
4271
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4272
{ ac_script=; unset ac_script;}
4273
if test -z "$SED"; then
4274
ac_path_SED_found=false
4275
# Loop through the user's path and test for each of PROGNAME-LIST
4276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280
test -z "$as_dir" && as_dir=.
4281
for ac_prog in sed gsed; do
4282
for ac_exec_ext in '' $ac_executable_extensions; do
4283
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4284
as_fn_executable_p "$ac_path_SED" || continue
4285
# Check for GNU ac_path_SED and select it if it is found.
4286
# Check for GNU $ac_path_SED
4287
case `"$ac_path_SED" --version 2>&1` in
4289
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4292
$as_echo_n 0123456789 >"conftest.in"
4295
cat "conftest.in" "conftest.in" >"conftest.tmp"
4296
mv "conftest.tmp" "conftest.in"
4297
cp "conftest.in" "conftest.nl"
4298
$as_echo '' >> "conftest.nl"
4299
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4300
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4301
as_fn_arith $ac_count + 1 && ac_count=$as_val
4302
if test $ac_count -gt ${ac_path_SED_max-0}; then
4303
# Best one so far, save it but keep looking for a better one
4304
ac_cv_path_SED="$ac_path_SED"
4305
ac_path_SED_max=$ac_count
4307
# 10*(2^10) chars as input seems more than enough
4308
test $ac_count -gt 10 && break
4310
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313
$ac_path_SED_found && break 3
4318
if test -z "$ac_cv_path_SED"; then
4319
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4327
$as_echo "$ac_cv_path_SED" >&6; }
4328
SED="$ac_cv_path_SED"
4331
test -z "$SED" && SED=sed
4332
Xsed="$SED -e 1s/^X//"
4344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4345
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4346
if ${ac_cv_path_GREP+:} false; then :
4347
$as_echo_n "(cached) " >&6
4349
if test -z "$GREP"; then
4350
ac_path_GREP_found=false
4351
# Loop through the user's path and test for each of PROGNAME-LIST
4352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4356
test -z "$as_dir" && as_dir=.
4357
for ac_prog in grep ggrep; do
4358
for ac_exec_ext in '' $ac_executable_extensions; do
4359
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4360
as_fn_executable_p "$ac_path_GREP" || continue
4361
# Check for GNU ac_path_GREP and select it if it is found.
4362
# Check for GNU $ac_path_GREP
4363
case `"$ac_path_GREP" --version 2>&1` in
4365
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4368
$as_echo_n 0123456789 >"conftest.in"
4371
cat "conftest.in" "conftest.in" >"conftest.tmp"
4372
mv "conftest.tmp" "conftest.in"
4373
cp "conftest.in" "conftest.nl"
4374
$as_echo 'GREP' >> "conftest.nl"
4375
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377
as_fn_arith $ac_count + 1 && ac_count=$as_val
4378
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4379
# Best one so far, save it but keep looking for a better one
4380
ac_cv_path_GREP="$ac_path_GREP"
4381
ac_path_GREP_max=$ac_count
4383
# 10*(2^10) chars as input seems more than enough
4384
test $ac_count -gt 10 && break
4386
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4389
$ac_path_GREP_found && break 3
4394
if test -z "$ac_cv_path_GREP"; then
4395
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4398
ac_cv_path_GREP=$GREP
4402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4403
$as_echo "$ac_cv_path_GREP" >&6; }
4404
GREP="$ac_cv_path_GREP"
4407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4408
$as_echo_n "checking for egrep... " >&6; }
4409
if ${ac_cv_path_EGREP+:} false; then :
4410
$as_echo_n "(cached) " >&6
4412
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4413
then ac_cv_path_EGREP="$GREP -E"
4415
if test -z "$EGREP"; then
4416
ac_path_EGREP_found=false
4417
# Loop through the user's path and test for each of PROGNAME-LIST
4418
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4422
test -z "$as_dir" && as_dir=.
4423
for ac_prog in egrep; do
4424
for ac_exec_ext in '' $ac_executable_extensions; do
4425
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4426
as_fn_executable_p "$ac_path_EGREP" || continue
4427
# Check for GNU ac_path_EGREP and select it if it is found.
4428
# Check for GNU $ac_path_EGREP
4429
case `"$ac_path_EGREP" --version 2>&1` in
4431
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4434
$as_echo_n 0123456789 >"conftest.in"
4437
cat "conftest.in" "conftest.in" >"conftest.tmp"
4438
mv "conftest.tmp" "conftest.in"
4439
cp "conftest.in" "conftest.nl"
4440
$as_echo 'EGREP' >> "conftest.nl"
4441
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4442
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4443
as_fn_arith $ac_count + 1 && ac_count=$as_val
4444
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4445
# Best one so far, save it but keep looking for a better one
4446
ac_cv_path_EGREP="$ac_path_EGREP"
4447
ac_path_EGREP_max=$ac_count
4449
# 10*(2^10) chars as input seems more than enough
4450
test $ac_count -gt 10 && break
4452
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4455
$ac_path_EGREP_found && break 3
4460
if test -z "$ac_cv_path_EGREP"; then
4461
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4464
ac_cv_path_EGREP=$EGREP
4469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4470
$as_echo "$ac_cv_path_EGREP" >&6; }
4471
EGREP="$ac_cv_path_EGREP"
4474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4475
$as_echo_n "checking for fgrep... " >&6; }
4476
if ${ac_cv_path_FGREP+:} false; then :
4477
$as_echo_n "(cached) " >&6
4479
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4480
then ac_cv_path_FGREP="$GREP -F"
4482
if test -z "$FGREP"; then
4483
ac_path_FGREP_found=false
4484
# Loop through the user's path and test for each of PROGNAME-LIST
4485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4489
test -z "$as_dir" && as_dir=.
4490
for ac_prog in fgrep; do
4491
for ac_exec_ext in '' $ac_executable_extensions; do
4492
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4493
as_fn_executable_p "$ac_path_FGREP" || continue
4494
# Check for GNU ac_path_FGREP and select it if it is found.
4495
# Check for GNU $ac_path_FGREP
4496
case `"$ac_path_FGREP" --version 2>&1` in
4498
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4501
$as_echo_n 0123456789 >"conftest.in"
4504
cat "conftest.in" "conftest.in" >"conftest.tmp"
4505
mv "conftest.tmp" "conftest.in"
4506
cp "conftest.in" "conftest.nl"
4507
$as_echo 'FGREP' >> "conftest.nl"
4508
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4509
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4510
as_fn_arith $ac_count + 1 && ac_count=$as_val
4511
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4512
# Best one so far, save it but keep looking for a better one
4513
ac_cv_path_FGREP="$ac_path_FGREP"
4514
ac_path_FGREP_max=$ac_count
4516
# 10*(2^10) chars as input seems more than enough
4517
test $ac_count -gt 10 && break
4519
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4522
$ac_path_FGREP_found && break 3
4527
if test -z "$ac_cv_path_FGREP"; then
4528
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4531
ac_cv_path_FGREP=$FGREP
4536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4537
$as_echo "$ac_cv_path_FGREP" >&6; }
4538
FGREP="$ac_cv_path_FGREP"
4541
test -z "$GREP" && GREP=grep
4561
# Check whether --with-gnu-ld was given.
4562
if test "${with_gnu_ld+set}" = set; then :
4563
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4569
if test "$GCC" = yes; then
4570
# Check if gcc -print-prog-name=ld gives a path.
4571
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4572
$as_echo_n "checking for ld used by $CC... " >&6; }
4575
# gcc leaves a trailing carriage return which upsets mingw
4576
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4578
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4581
# Accept absolute paths.
4583
re_direlt='/[^/][^/]*/\.\./'
4584
# Canonicalize the pathname of ld
4585
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4586
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4587
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4589
test -z "$LD" && LD="$ac_prog"
4592
# If it fails, then pretend we aren't using GCC.
4596
# If it is relative, then search for the first ld in PATH.
4600
elif test "$with_gnu_ld" = yes; then
4601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4602
$as_echo_n "checking for GNU ld... " >&6; }
4604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4605
$as_echo_n "checking for non-GNU ld... " >&6; }
4607
if ${lt_cv_path_LD+:} false; then :
4608
$as_echo_n "(cached) " >&6
4610
if test -z "$LD"; then
4611
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4612
for ac_dir in $PATH; do
4614
test -z "$ac_dir" && ac_dir=.
4615
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4616
lt_cv_path_LD="$ac_dir/$ac_prog"
4617
# Check to see if the program is GNU ld. I'd rather use --version,
4618
# but apparently some variants of GNU ld only accept -v.
4619
# Break only if it was the GNU/non-GNU ld that we prefer.
4620
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4621
*GNU* | *'with BFD'*)
4622
test "$with_gnu_ld" != no && break
4625
test "$with_gnu_ld" != yes && break
4632
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4637
if test -n "$LD"; then
4638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4639
$as_echo "$LD" >&6; }
4641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642
$as_echo "no" >&6; }
4644
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4646
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4647
if ${lt_cv_prog_gnu_ld+:} false; then :
4648
$as_echo_n "(cached) " >&6
4650
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4651
case `$LD -v 2>&1 </dev/null` in
4652
*GNU* | *'with BFD'*)
4653
lt_cv_prog_gnu_ld=yes
4656
lt_cv_prog_gnu_ld=no
4660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4661
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4662
with_gnu_ld=$lt_cv_prog_gnu_ld
4672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4673
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4674
if ${lt_cv_path_NM+:} false; then :
4675
$as_echo_n "(cached) " >&6
4677
if test -n "$NM"; then
4678
# Let the user override the test.
4681
lt_nm_to_check="${ac_tool_prefix}nm"
4682
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4683
lt_nm_to_check="$lt_nm_to_check nm"
4685
for lt_tmp_nm in $lt_nm_to_check; do
4686
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4687
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4689
test -z "$ac_dir" && ac_dir=.
4690
tmp_nm="$ac_dir/$lt_tmp_nm"
4691
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4692
# Check to see if the nm accepts a BSD-compat flag.
4693
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4694
# nm: unknown option "B" ignored
4695
# Tru64's nm complains that /dev/null is an invalid object file
4696
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4697
*/dev/null* | *'Invalid file or object type'*)
4698
lt_cv_path_NM="$tmp_nm -B"
4702
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4704
lt_cv_path_NM="$tmp_nm -p"
4708
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4709
continue # so that we can try to find one that supports BSD flags
4718
: ${lt_cv_path_NM=no}
4721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4722
$as_echo "$lt_cv_path_NM" >&6; }
4723
if test "$lt_cv_path_NM" != "no"; then
4726
# Didn't find any BSD compatible name lister, look for dumpbin.
4727
if test -n "$DUMPBIN"; then :
4728
# Let the user override the test.
4730
if test -n "$ac_tool_prefix"; then
4731
for ac_prog in dumpbin "link -dump"
4733
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4734
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736
$as_echo_n "checking for $ac_word... " >&6; }
4737
if ${ac_cv_prog_DUMPBIN+:} false; then :
4738
$as_echo_n "(cached) " >&6
4740
if test -n "$DUMPBIN"; then
4741
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4743
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747
test -z "$as_dir" && as_dir=.
4748
for ac_exec_ext in '' $ac_executable_extensions; do
4749
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4750
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4751
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760
DUMPBIN=$ac_cv_prog_DUMPBIN
4761
if test -n "$DUMPBIN"; then
4762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4763
$as_echo "$DUMPBIN" >&6; }
4765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766
$as_echo "no" >&6; }
4770
test -n "$DUMPBIN" && break
4773
if test -z "$DUMPBIN"; then
4774
ac_ct_DUMPBIN=$DUMPBIN
4775
for ac_prog in dumpbin "link -dump"
4777
# Extract the first word of "$ac_prog", so it can be a program name with args.
4778
set dummy $ac_prog; ac_word=$2
4779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780
$as_echo_n "checking for $ac_word... " >&6; }
4781
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4782
$as_echo_n "(cached) " >&6
4784
if test -n "$ac_ct_DUMPBIN"; then
4785
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4787
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791
test -z "$as_dir" && as_dir=.
4792
for ac_exec_ext in '' $ac_executable_extensions; do
4793
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4795
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4805
if test -n "$ac_ct_DUMPBIN"; then
4806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4807
$as_echo "$ac_ct_DUMPBIN" >&6; }
4809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810
$as_echo "no" >&6; }
4814
test -n "$ac_ct_DUMPBIN" && break
4817
if test "x$ac_ct_DUMPBIN" = x; then
4820
case $cross_compiling:$ac_tool_warned in
4822
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4823
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4824
ac_tool_warned=yes ;;
4826
DUMPBIN=$ac_ct_DUMPBIN
4830
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4832
DUMPBIN="$DUMPBIN -symbols"
4840
if test "$DUMPBIN" != ":"; then
4844
test -z "$NM" && NM=nm
4851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4852
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4853
if ${lt_cv_nm_interface+:} false; then :
4854
$as_echo_n "(cached) " >&6
4856
lt_cv_nm_interface="BSD nm"
4857
echo "int some_variable = 0;" > conftest.$ac_ext
4858
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4859
(eval "$ac_compile" 2>conftest.err)
4860
cat conftest.err >&5
4861
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4862
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4863
cat conftest.err >&5
4864
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
4865
cat conftest.out >&5
4866
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4867
lt_cv_nm_interface="MS dumpbin"
4871
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4872
$as_echo "$lt_cv_nm_interface" >&6; }
4874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4875
$as_echo_n "checking whether ln -s works... " >&6; }
4877
if test "$LN_S" = "ln -s"; then
4878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4879
$as_echo "yes" >&6; }
4881
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4882
$as_echo "no, using $LN_S" >&6; }
4885
# find the maximum length of command line arguments
4886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4887
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4888
if ${lt_cv_sys_max_cmd_len+:} false; then :
4889
$as_echo_n "(cached) " >&6
4896
# On DJGPP, this test can blow up pretty badly due to problems in libc
4897
# (any single argument exceeding 2000 bytes causes a buffer overrun
4898
# during glob expansion). Even if it were fixed, the result of this
4899
# check would be larger than it should be.
4900
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4904
# Under GNU Hurd, this test is not required because there is
4905
# no limit to the length of command line arguments.
4906
# Libtool will interpret -1 as no limit whatsoever
4907
lt_cv_sys_max_cmd_len=-1;
4910
cygwin* | mingw* | cegcc*)
4911
# On Win9x/ME, this test blows up -- it succeeds, but takes
4912
# about 5 minutes as the teststring grows exponentially.
4913
# Worse, since 9x/ME are not pre-emptively multitasking,
4914
# you end up with a "frozen" computer, even though with patience
4915
# the test eventually succeeds (with a max line length of 256k).
4916
# Instead, let's just punt: use the minimum linelength reported by
4917
# all of the supported platforms: 8192 (on NT/2K/XP).
4918
lt_cv_sys_max_cmd_len=8192;
4922
# On MiNT this can take a long time and run out of memory.
4923
lt_cv_sys_max_cmd_len=8192;
4927
# On AmigaOS with pdksh, this test takes hours, literally.
4928
# So we just punt and use a minimum line length of 8192.
4929
lt_cv_sys_max_cmd_len=8192;
4932
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4933
# This has been around since 386BSD, at least. Likely further.
4934
if test -x /sbin/sysctl; then
4935
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4936
elif test -x /usr/sbin/sysctl; then
4937
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4939
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4941
# And add a safety zone
4942
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4943
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4947
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4948
lt_cv_sys_max_cmd_len=196608
4952
# The test takes a long time on OS/2.
4953
lt_cv_sys_max_cmd_len=8192
4957
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4958
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4959
# nice to cause kernel panics so lets avoid the loop below.
4960
# First set a reasonable default.
4961
lt_cv_sys_max_cmd_len=16384
4963
if test -x /sbin/sysconfig; then
4964
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4965
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4970
lt_cv_sys_max_cmd_len=102400
4972
sysv5* | sco5v6* | sysv4.2uw2*)
4973
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4974
if test -n "$kargmax"; then
4975
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4977
lt_cv_sys_max_cmd_len=32768
4981
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4982
if test -n "$lt_cv_sys_max_cmd_len"; then
4983
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4984
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4986
# Make teststring a little bigger before we do anything with it.
4987
# a 1K string should be a reasonable start.
4988
for i in 1 2 3 4 5 6 7 8 ; do
4989
teststring=$teststring$teststring
4991
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4992
# If test is not a shell built-in, we'll probably end up computing a
4993
# maximum length that is only half of the actual maximum length, but
4995
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4996
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
4997
test $i != 17 # 1/2 MB should be enough
5000
teststring=$teststring$teststring
5002
# Only check the string length outside the loop.
5003
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5005
# Add a significant safety factor because C++ compilers can tack on
5006
# massive amounts of additional arguments before passing them to the
5007
# linker. It appears as though 1/2 is a usable value.
5008
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5015
if test -n $lt_cv_sys_max_cmd_len ; then
5016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5017
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5020
$as_echo "none" >&6; }
5022
max_cmd_len=$lt_cv_sys_max_cmd_len
5033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5034
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5035
# Try some XSI features
5038
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5040
&& eval 'test $(( 1 + 1 )) -eq 2 \
5041
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5044
$as_echo "$xsi_shell" >&6; }
5047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5048
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5050
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5052
&& lt_shell_append=yes
5053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5054
$as_echo "$lt_shell_append" >&6; }
5057
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5067
# test EBCDIC or ASCII
5068
case `echo X|tr X '\101'` in
5069
A) # ASCII based system
5070
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5071
lt_SP2NL='tr \040 \012'
5072
lt_NL2SP='tr \015\012 \040\040'
5074
*) # EBCDIC based system
5075
lt_SP2NL='tr \100 \n'
5076
lt_NL2SP='tr \r\n \100\100'
5088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5089
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5090
if ${lt_cv_to_host_file_cmd+:} false; then :
5091
$as_echo_n "(cached) " >&6
5096
*-*-mingw* ) # actually msys
5097
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5100
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5102
* ) # otherwise, assume *nix
5103
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5109
*-*-mingw* ) # actually msys
5110
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5113
lt_cv_to_host_file_cmd=func_convert_file_noop
5115
* ) # otherwise, assume *nix
5116
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5120
* ) # unhandled hosts (and "normal" native builds)
5121
lt_cv_to_host_file_cmd=func_convert_file_noop
5127
to_host_file_cmd=$lt_cv_to_host_file_cmd
5128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5129
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5136
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5137
if ${lt_cv_to_tool_file_cmd+:} false; then :
5138
$as_echo_n "(cached) " >&6
5140
#assume ordinary cross tools, or native build.
5141
lt_cv_to_tool_file_cmd=func_convert_file_noop
5145
*-*-mingw* ) # actually msys
5146
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5154
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5156
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5163
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5164
if ${lt_cv_ld_reload_flag+:} false; then :
5165
$as_echo_n "(cached) " >&6
5167
lt_cv_ld_reload_flag='-r'
5169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5170
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5171
reload_flag=$lt_cv_ld_reload_flag
5172
case $reload_flag in
5174
*) reload_flag=" $reload_flag" ;;
5176
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5178
cygwin* | mingw* | pw32* | cegcc*)
5179
if test "$GCC" != yes; then
5184
if test "$GCC" = yes; then
5185
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5187
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5200
if test -n "$ac_tool_prefix"; then
5201
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5202
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204
$as_echo_n "checking for $ac_word... " >&6; }
5205
if ${ac_cv_prog_OBJDUMP+:} false; then :
5206
$as_echo_n "(cached) " >&6
5208
if test -n "$OBJDUMP"; then
5209
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215
test -z "$as_dir" && as_dir=.
5216
for ac_exec_ext in '' $ac_executable_extensions; do
5217
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5219
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228
OBJDUMP=$ac_cv_prog_OBJDUMP
5229
if test -n "$OBJDUMP"; then
5230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5231
$as_echo "$OBJDUMP" >&6; }
5233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234
$as_echo "no" >&6; }
5239
if test -z "$ac_cv_prog_OBJDUMP"; then
5240
ac_ct_OBJDUMP=$OBJDUMP
5241
# Extract the first word of "objdump", so it can be a program name with args.
5242
set dummy objdump; ac_word=$2
5243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244
$as_echo_n "checking for $ac_word... " >&6; }
5245
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5246
$as_echo_n "(cached) " >&6
5248
if test -n "$ac_ct_OBJDUMP"; then
5249
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255
test -z "$as_dir" && as_dir=.
5256
for ac_exec_ext in '' $ac_executable_extensions; do
5257
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5259
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5269
if test -n "$ac_ct_OBJDUMP"; then
5270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5271
$as_echo "$ac_ct_OBJDUMP" >&6; }
5273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274
$as_echo "no" >&6; }
5277
if test "x$ac_ct_OBJDUMP" = x; then
5280
case $cross_compiling:$ac_tool_warned in
5282
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5283
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5284
ac_tool_warned=yes ;;
5286
OBJDUMP=$ac_ct_OBJDUMP
5289
OBJDUMP="$ac_cv_prog_OBJDUMP"
5292
test -z "$OBJDUMP" && OBJDUMP=objdump
5299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5300
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5301
if ${lt_cv_deplibs_check_method+:} false; then :
5302
$as_echo_n "(cached) " >&6
5304
lt_cv_file_magic_cmd='$MAGIC_CMD'
5305
lt_cv_file_magic_test_file=
5306
lt_cv_deplibs_check_method='unknown'
5307
# Need to set the preceding variable on all platforms that support
5308
# interlibrary dependencies.
5309
# 'none' -- dependencies not supported.
5310
# `unknown' -- same as none, but documents that we really don't know.
5311
# 'pass_all' -- all dependencies passed with no checks.
5312
# 'test_compile' -- check by making test program.
5313
# 'file_magic [[regex]]' -- check by looking for files in library path
5314
# which responds to the $file_magic_cmd with a given extended regex.
5315
# If you have `file' or equivalent on your system and you're not sure
5316
# whether `pass_all' will *always* work, you probably want this one.
5320
lt_cv_deplibs_check_method=pass_all
5324
lt_cv_deplibs_check_method=pass_all
5328
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5329
lt_cv_file_magic_cmd='/usr/bin/file -L'
5330
lt_cv_file_magic_test_file=/shlib/libc.so
5334
# func_win32_libid is a shell function defined in ltmain.sh
5335
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5336
lt_cv_file_magic_cmd='func_win32_libid'
5340
# Base MSYS/MinGW do not provide the 'file' command needed by
5341
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5342
# unless we find 'file', for example because we are cross-compiling.
5343
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5344
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5345
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5346
lt_cv_file_magic_cmd='func_win32_libid'
5348
# Keep this pattern in sync with the one in func_win32_libid.
5349
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5350
lt_cv_file_magic_cmd='$OBJDUMP -f'
5355
# use the weaker test based on 'objdump'. See mingw*.
5356
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5357
lt_cv_file_magic_cmd='$OBJDUMP -f'
5360
darwin* | rhapsody*)
5361
lt_cv_deplibs_check_method=pass_all
5364
freebsd* | dragonfly*)
5365
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5368
# Not sure whether the presence of OpenBSD here was a mistake.
5369
# Let's accept both of them until this is cleared up.
5370
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5371
lt_cv_file_magic_cmd=/usr/bin/file
5372
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5376
lt_cv_deplibs_check_method=pass_all
5381
lt_cv_deplibs_check_method=pass_all
5385
lt_cv_deplibs_check_method=pass_all
5388
hpux10.20* | hpux11*)
5389
lt_cv_file_magic_cmd=/usr/bin/file
5392
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5393
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5396
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]'
5397
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5400
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5401
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5407
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5408
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5411
irix5* | irix6* | nonstopux*)
5413
*-32|*"-32 ") libmagic=32-bit;;
5414
*-n32|*"-n32 ") libmagic=N32;;
5415
*-64|*"-64 ") libmagic=64-bit;;
5416
*) libmagic=never-match;;
5418
lt_cv_deplibs_check_method=pass_all
5421
# This must be glibc/ELF.
5422
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5423
lt_cv_deplibs_check_method=pass_all
5427
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5428
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5430
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5435
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5436
lt_cv_file_magic_cmd=/usr/bin/file
5437
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5441
lt_cv_deplibs_check_method=pass_all
5445
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5446
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5448
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5452
osf3* | osf4* | osf5*)
5453
lt_cv_deplibs_check_method=pass_all
5457
lt_cv_deplibs_check_method=pass_all
5461
lt_cv_deplibs_check_method=pass_all
5464
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5465
lt_cv_deplibs_check_method=pass_all
5469
case $host_vendor in
5471
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]'
5472
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5475
lt_cv_deplibs_check_method=pass_all
5478
lt_cv_file_magic_cmd='/bin/file'
5479
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5482
lt_cv_file_magic_cmd='/bin/file'
5483
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5484
lt_cv_file_magic_test_file=/lib/libc.so
5487
lt_cv_deplibs_check_method=pass_all
5490
lt_cv_deplibs_check_method=pass_all
5496
lt_cv_deplibs_check_method=pass_all
5501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5502
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5506
if test "$build" = "$host"; then
5509
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5512
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5518
file_magic_cmd=$lt_cv_file_magic_cmd
5519
deplibs_check_method=$lt_cv_deplibs_check_method
5520
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5543
if test -n "$ac_tool_prefix"; then
5544
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5545
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547
$as_echo_n "checking for $ac_word... " >&6; }
5548
if ${ac_cv_prog_DLLTOOL+:} false; then :
5549
$as_echo_n "(cached) " >&6
5551
if test -n "$DLLTOOL"; then
5552
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5554
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558
test -z "$as_dir" && as_dir=.
5559
for ac_exec_ext in '' $ac_executable_extensions; do
5560
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5562
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571
DLLTOOL=$ac_cv_prog_DLLTOOL
5572
if test -n "$DLLTOOL"; then
5573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5574
$as_echo "$DLLTOOL" >&6; }
5576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577
$as_echo "no" >&6; }
5582
if test -z "$ac_cv_prog_DLLTOOL"; then
5583
ac_ct_DLLTOOL=$DLLTOOL
5584
# Extract the first word of "dlltool", so it can be a program name with args.
5585
set dummy dlltool; ac_word=$2
5586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587
$as_echo_n "checking for $ac_word... " >&6; }
5588
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5589
$as_echo_n "(cached) " >&6
5591
if test -n "$ac_ct_DLLTOOL"; then
5592
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5594
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598
test -z "$as_dir" && as_dir=.
5599
for ac_exec_ext in '' $ac_executable_extensions; do
5600
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5602
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5612
if test -n "$ac_ct_DLLTOOL"; then
5613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5614
$as_echo "$ac_ct_DLLTOOL" >&6; }
5616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617
$as_echo "no" >&6; }
5620
if test "x$ac_ct_DLLTOOL" = x; then
5623
case $cross_compiling:$ac_tool_warned in
5625
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627
ac_tool_warned=yes ;;
5629
DLLTOOL=$ac_ct_DLLTOOL
5632
DLLTOOL="$ac_cv_prog_DLLTOOL"
5635
test -z "$DLLTOOL" && DLLTOOL=dlltool
5643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5644
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5645
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5646
$as_echo_n "(cached) " >&6
5648
lt_cv_sharedlib_from_linklib_cmd='unknown'
5651
cygwin* | mingw* | pw32* | cegcc*)
5652
# two different shell functions defined in ltmain.sh
5653
# decide which to use based on capabilities of $DLLTOOL
5654
case `$DLLTOOL --help 2>&1` in
5655
*--identify-strict*)
5656
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5659
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5664
# fallback: assume linklib IS sharedlib
5665
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5671
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5672
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5673
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5682
if test -n "$ac_tool_prefix"; then
5685
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5686
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688
$as_echo_n "checking for $ac_word... " >&6; }
5689
if ${ac_cv_prog_AR+:} false; then :
5690
$as_echo_n "(cached) " >&6
5692
if test -n "$AR"; then
5693
ac_cv_prog_AR="$AR" # Let the user override the test.
5695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699
test -z "$as_dir" && as_dir=.
5700
for ac_exec_ext in '' $ac_executable_extensions; do
5701
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5703
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713
if test -n "$AR"; then
5714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5715
$as_echo "$AR" >&6; }
5717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718
$as_echo "no" >&6; }
5722
test -n "$AR" && break
5725
if test -z "$AR"; then
5729
# Extract the first word of "$ac_prog", so it can be a program name with args.
5730
set dummy $ac_prog; ac_word=$2
5731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732
$as_echo_n "checking for $ac_word... " >&6; }
5733
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5734
$as_echo_n "(cached) " >&6
5736
if test -n "$ac_ct_AR"; then
5737
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5739
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743
test -z "$as_dir" && as_dir=.
5744
for ac_exec_ext in '' $ac_executable_extensions; do
5745
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746
ac_cv_prog_ac_ct_AR="$ac_prog"
5747
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5757
if test -n "$ac_ct_AR"; then
5758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5759
$as_echo "$ac_ct_AR" >&6; }
5761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762
$as_echo "no" >&6; }
5766
test -n "$ac_ct_AR" && break
5769
if test "x$ac_ct_AR" = x; then
5772
case $cross_compiling:$ac_tool_warned in
5774
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5775
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5776
ac_tool_warned=yes ;;
5795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5796
$as_echo_n "checking for archiver @FILE support... " >&6; }
5797
if ${lt_cv_ar_at_file+:} false; then :
5798
$as_echo_n "(cached) " >&6
5801
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802
/* end confdefs.h. */
5812
if ac_fn_c_try_compile "$LINENO"; then :
5813
echo conftest.$ac_objext > conftest.lst
5814
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5815
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5816
(eval $lt_ar_try) 2>&5
5818
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5819
test $ac_status = 0; }
5820
if test "$ac_status" -eq 0; then
5821
# Ensure the archiver fails upon bogus file names.
5822
rm -f conftest.$ac_objext libconftest.a
5823
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5824
(eval $lt_ar_try) 2>&5
5826
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5827
test $ac_status = 0; }
5828
if test "$ac_status" -ne 0; then
5832
rm -f conftest.* libconftest.a
5835
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5839
$as_echo "$lt_cv_ar_at_file" >&6; }
5841
if test "x$lt_cv_ar_at_file" = xno; then
5844
archiver_list_spec=$lt_cv_ar_at_file
5853
if test -n "$ac_tool_prefix"; then
5854
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5855
set dummy ${ac_tool_prefix}strip; ac_word=$2
5856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857
$as_echo_n "checking for $ac_word... " >&6; }
5858
if ${ac_cv_prog_STRIP+:} false; then :
5859
$as_echo_n "(cached) " >&6
5861
if test -n "$STRIP"; then
5862
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5864
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868
test -z "$as_dir" && as_dir=.
5869
for ac_exec_ext in '' $ac_executable_extensions; do
5870
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5872
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881
STRIP=$ac_cv_prog_STRIP
5882
if test -n "$STRIP"; then
5883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5884
$as_echo "$STRIP" >&6; }
5886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887
$as_echo "no" >&6; }
5892
if test -z "$ac_cv_prog_STRIP"; then
5894
# Extract the first word of "strip", so it can be a program name with args.
5895
set dummy strip; ac_word=$2
5896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897
$as_echo_n "checking for $ac_word... " >&6; }
5898
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5899
$as_echo_n "(cached) " >&6
5901
if test -n "$ac_ct_STRIP"; then
5902
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5904
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908
test -z "$as_dir" && as_dir=.
5909
for ac_exec_ext in '' $ac_executable_extensions; do
5910
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911
ac_cv_prog_ac_ct_STRIP="strip"
5912
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5922
if test -n "$ac_ct_STRIP"; then
5923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5924
$as_echo "$ac_ct_STRIP" >&6; }
5926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927
$as_echo "no" >&6; }
5930
if test "x$ac_ct_STRIP" = x; then
5933
case $cross_compiling:$ac_tool_warned in
5935
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5936
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5937
ac_tool_warned=yes ;;
5942
STRIP="$ac_cv_prog_STRIP"
5945
test -z "$STRIP" && STRIP=:
5952
if test -n "$ac_tool_prefix"; then
5953
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5954
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956
$as_echo_n "checking for $ac_word... " >&6; }
5957
if ${ac_cv_prog_RANLIB+:} false; then :
5958
$as_echo_n "(cached) " >&6
5960
if test -n "$RANLIB"; then
5961
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967
test -z "$as_dir" && as_dir=.
5968
for ac_exec_ext in '' $ac_executable_extensions; do
5969
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5970
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5971
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980
RANLIB=$ac_cv_prog_RANLIB
5981
if test -n "$RANLIB"; then
5982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5983
$as_echo "$RANLIB" >&6; }
5985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986
$as_echo "no" >&6; }
5991
if test -z "$ac_cv_prog_RANLIB"; then
5992
ac_ct_RANLIB=$RANLIB
5993
# Extract the first word of "ranlib", so it can be a program name with args.
5994
set dummy ranlib; ac_word=$2
5995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996
$as_echo_n "checking for $ac_word... " >&6; }
5997
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5998
$as_echo_n "(cached) " >&6
6000
if test -n "$ac_ct_RANLIB"; then
6001
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6003
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007
test -z "$as_dir" && as_dir=.
6008
for ac_exec_ext in '' $ac_executable_extensions; do
6009
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6010
ac_cv_prog_ac_ct_RANLIB="ranlib"
6011
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6020
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6021
if test -n "$ac_ct_RANLIB"; then
6022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6023
$as_echo "$ac_ct_RANLIB" >&6; }
6025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026
$as_echo "no" >&6; }
6029
if test "x$ac_ct_RANLIB" = x; then
6032
case $cross_compiling:$ac_tool_warned in
6034
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6035
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6036
ac_tool_warned=yes ;;
6038
RANLIB=$ac_ct_RANLIB
6041
RANLIB="$ac_cv_prog_RANLIB"
6044
test -z "$RANLIB" && RANLIB=:
6051
# Determine commands to create old-style static archives.
6052
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6053
old_postinstall_cmds='chmod 644 $oldlib'
6054
old_postuninstall_cmds=
6056
if test -n "$RANLIB"; then
6059
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6062
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6065
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6070
lock_old_archive_extraction=yes ;;
6072
lock_old_archive_extraction=no ;;
6113
# If no C compiler was specified, use CC.
6116
# If no C compiler flags were specified, use CFLAGS.
6117
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6119
# Allow CC to be a program name with arguments.
6123
# Check for command to grab the raw symbol name followed by C symbol from nm.
6124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6125
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6126
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6127
$as_echo_n "(cached) " >&6
6130
# These are sane defaults that work on at least a few old systems.
6131
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6133
# Character class describing NM global symbol codes.
6134
symcode='[BCDEGRST]'
6136
# Regexp to match symbols that can be accessed directly from C.
6137
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6139
# Define system-specific variables.
6144
cygwin* | mingw* | pw32* | cegcc*)
6145
symcode='[ABCDGISTW]'
6148
if test "$host_cpu" = ia64; then
6149
symcode='[ABCDEGRST]'
6153
symcode='[BCDEGRST]'
6156
symcode='[BCDEGQRST]'
6167
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6175
# If we're using GNU nm, then use its standard symbol codes.
6176
case `$NM -V 2>&1` in
6177
*GNU* | *'with BFD'*)
6178
symcode='[ABCDGIRSTW]' ;;
6181
# Transform an extracted symbol line into a proper C declaration.
6182
# Some systems (esp. on ia64) link data and code symbols differently,
6183
# so use this general approach.
6184
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6186
# Transform an extracted symbol line into symbol name and symbol address
6187
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6188
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'"
6190
# Handle CRLF in mingw tool chain
6194
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6198
# Try without a prefix underscore, then with it.
6199
for ac_symprfx in "" "_"; do
6201
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6202
symxfrm="\\1 $ac_symprfx\\2 \\2"
6204
# Write the raw and C identifiers.
6205
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6206
# Fake it for dumpbin and say T for any non-static function
6207
# and D for any global variable.
6208
# Also find C++ and __fastcall symbols from MSVC++,
6209
# which start with @ or ?.
6210
lt_cv_sys_global_symbol_pipe="$AWK '"\
6211
" {last_section=section; section=\$ 3};"\
6212
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6213
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6214
" \$ 0!~/External *\|/{next};"\
6215
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6216
" {if(hide[section]) next};"\
6217
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6218
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6219
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6220
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6221
" ' prfx=^$ac_symprfx"
6223
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6225
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6227
# Check to see that the pipe works correctly.
6231
cat > conftest.$ac_ext <<_LT_EOF
6236
void nm_test_func(void);
6237
void nm_test_func(void){}
6241
int main(){nm_test_var='a';nm_test_func();return(0);}
6244
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6245
(eval $ac_compile) 2>&5
6247
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248
test $ac_status = 0; }; then
6249
# Now try to grab the symbols.
6251
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6252
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6254
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6255
test $ac_status = 0; } && test -s "$nlist"; then
6256
# Try sorting and uniquifying the output.
6257
if sort "$nlist" | uniq > "$nlist"T; then
6258
mv -f "$nlist"T "$nlist"
6263
# Make sure that we snagged all the symbols we need.
6264
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6265
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6266
cat <<_LT_EOF > conftest.$ac_ext
6267
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6268
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6269
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6270
relocations are performed -- see ld's documentation on pseudo-relocs. */
6271
# define LT_DLSYM_CONST
6272
#elif defined(__osf__)
6273
/* This system does not cope well with relocations in const data. */
6274
# define LT_DLSYM_CONST
6276
# define LT_DLSYM_CONST const
6284
# Now generate the symbol file.
6285
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6287
cat <<_LT_EOF >> conftest.$ac_ext
6289
/* The mapping between symbol names and symbols. */
6290
LT_DLSYM_CONST struct {
6294
lt__PROGRAM__LTX_preloaded_symbols[] =
6296
{ "@PROGRAM@", (void *) 0 },
6298
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6299
cat <<\_LT_EOF >> conftest.$ac_ext
6303
/* This works around a problem in FreeBSD linker */
6304
#ifdef FREEBSD_WORKAROUND
6305
static const void *lt_preloaded_setup() {
6306
return lt__PROGRAM__LTX_preloaded_symbols;
6314
# Now try linking the two files.
6315
mv conftest.$ac_objext conftstm.$ac_objext
6316
lt_globsym_save_LIBS=$LIBS
6317
lt_globsym_save_CFLAGS=$CFLAGS
6318
LIBS="conftstm.$ac_objext"
6319
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6320
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6321
(eval $ac_link) 2>&5
6323
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6327
LIBS=$lt_globsym_save_LIBS
6328
CFLAGS=$lt_globsym_save_CFLAGS
6330
echo "cannot find nm_test_func in $nlist" >&5
6333
echo "cannot find nm_test_var in $nlist" >&5
6336
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6339
echo "$progname: failed program was:" >&5
6340
cat conftest.$ac_ext >&5
6342
rm -rf conftest* conftst*
6344
# Do not use the global_symbol_pipe unless it works.
6345
if test "$pipe_works" = yes; then
6348
lt_cv_sys_global_symbol_pipe=
6354
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6355
lt_cv_sys_global_symbol_to_cdecl=
6357
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6359
$as_echo "failed" >&6; }
6361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6362
$as_echo "ok" >&6; }
6365
# Response file support.
6366
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6367
nm_file_list_spec='@'
6368
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6369
nm_file_list_spec='@'
6398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6399
$as_echo_n "checking for sysroot... " >&6; }
6401
# Check whether --with-sysroot was given.
6402
if test "${with_sysroot+set}" = set; then :
6403
withval=$with_sysroot;
6410
case ${with_sysroot} in #(
6412
if test "$GCC" = yes; then
6413
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6417
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6423
$as_echo "${with_sysroot}" >&6; }
6424
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6429
$as_echo "${lt_sysroot:-no}" >&6; }
6435
# Check whether --enable-libtool-lock was given.
6436
if test "${enable_libtool_lock+set}" = set; then :
6437
enableval=$enable_libtool_lock;
6440
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6442
# Some flags need to be propagated to the compiler or linker for good
6446
# Find out which ABI we are using.
6447
echo 'int i;' > conftest.$ac_ext
6448
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6449
(eval $ac_compile) 2>&5
6451
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6452
test $ac_status = 0; }; then
6453
case `/usr/bin/file conftest.$ac_objext` in
6465
# Find out which ABI we are using.
6466
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6467
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6468
(eval $ac_compile) 2>&5
6470
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471
test $ac_status = 0; }; then
6472
if test "$lt_cv_prog_gnu_ld" = yes; then
6473
case `/usr/bin/file conftest.$ac_objext` in
6475
LD="${LD-ld} -melf32bsmip"
6478
LD="${LD-ld} -melf32bmipn32"
6481
LD="${LD-ld} -melf64bmip"
6485
case `/usr/bin/file conftest.$ac_objext` in
6501
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6502
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6503
# Find out which ABI we are using.
6504
echo 'int i;' > conftest.$ac_ext
6505
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6506
(eval $ac_compile) 2>&5
6508
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509
test $ac_status = 0; }; then
6510
case `/usr/bin/file conftest.o` in
6513
x86_64-*kfreebsd*-gnu)
6514
LD="${LD-ld} -m elf_i386_fbsd"
6517
LD="${LD-ld} -m elf_i386"
6519
ppc64-*linux*|powerpc64-*linux*)
6520
LD="${LD-ld} -m elf32ppclinux"
6523
LD="${LD-ld} -m elf_s390"
6526
LD="${LD-ld} -m elf32_sparc"
6532
x86_64-*kfreebsd*-gnu)
6533
LD="${LD-ld} -m elf_x86_64_fbsd"
6536
LD="${LD-ld} -m elf_x86_64"
6538
ppc*-*linux*|powerpc*-*linux*)
6539
LD="${LD-ld} -m elf64ppc"
6541
s390*-*linux*|s390*-*tpf*)
6542
LD="${LD-ld} -m elf64_s390"
6545
LD="${LD-ld} -m elf64_sparc"
6555
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6556
SAVE_CFLAGS="$CFLAGS"
6557
CFLAGS="$CFLAGS -belf"
6558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6559
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6560
if ${lt_cv_cc_needs_belf+:} false; then :
6561
$as_echo_n "(cached) " >&6
6564
ac_cpp='$CPP $CPPFLAGS'
6565
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6566
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6567
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6569
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570
/* end confdefs.h. */
6580
if ac_fn_c_try_link "$LINENO"; then :
6581
lt_cv_cc_needs_belf=yes
6583
lt_cv_cc_needs_belf=no
6585
rm -f core conftest.err conftest.$ac_objext \
6586
conftest$ac_exeext conftest.$ac_ext
6588
ac_cpp='$CPP $CPPFLAGS'
6589
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6590
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6591
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6594
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6595
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6596
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6597
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6598
CFLAGS="$SAVE_CFLAGS"
6602
# Find out which ABI we are using.
6603
echo 'int i;' > conftest.$ac_ext
6604
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6605
(eval $ac_compile) 2>&5
6607
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608
test $ac_status = 0; }; then
6609
case `/usr/bin/file conftest.o` in
6611
case $lt_cv_prog_gnu_ld in
6615
LD="${LD-ld} -m elf_x86_64"
6618
LD="${LD-ld} -m elf64_sparc"
6621
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6622
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6627
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6639
need_locks="$enable_libtool_lock"
6641
if test -n "$ac_tool_prefix"; then
6642
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6643
set dummy ${ac_tool_prefix}mt; ac_word=$2
6644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645
$as_echo_n "checking for $ac_word... " >&6; }
6646
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6647
$as_echo_n "(cached) " >&6
6649
if test -n "$MANIFEST_TOOL"; then
6650
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6652
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656
test -z "$as_dir" && as_dir=.
6657
for ac_exec_ext in '' $ac_executable_extensions; do
6658
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6659
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6660
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6670
if test -n "$MANIFEST_TOOL"; then
6671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6672
$as_echo "$MANIFEST_TOOL" >&6; }
6674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675
$as_echo "no" >&6; }
6680
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6681
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6682
# Extract the first word of "mt", so it can be a program name with args.
6683
set dummy mt; ac_word=$2
6684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685
$as_echo_n "checking for $ac_word... " >&6; }
6686
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6687
$as_echo_n "(cached) " >&6
6689
if test -n "$ac_ct_MANIFEST_TOOL"; then
6690
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6692
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696
test -z "$as_dir" && as_dir=.
6697
for ac_exec_ext in '' $ac_executable_extensions; do
6698
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6699
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6700
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6710
if test -n "$ac_ct_MANIFEST_TOOL"; then
6711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6712
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715
$as_echo "no" >&6; }
6718
if test "x$ac_ct_MANIFEST_TOOL" = x; then
6721
case $cross_compiling:$ac_tool_warned in
6723
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6724
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6725
ac_tool_warned=yes ;;
6727
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6730
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6733
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6735
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6736
if ${lt_cv_path_mainfest_tool+:} false; then :
6737
$as_echo_n "(cached) " >&6
6739
lt_cv_path_mainfest_tool=no
6740
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6741
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6742
cat conftest.err >&5
6743
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6744
lt_cv_path_mainfest_tool=yes
6748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6749
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6750
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6760
rhapsody* | darwin*)
6761
if test -n "$ac_tool_prefix"; then
6762
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6763
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765
$as_echo_n "checking for $ac_word... " >&6; }
6766
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6767
$as_echo_n "(cached) " >&6
6769
if test -n "$DSYMUTIL"; then
6770
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6772
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776
test -z "$as_dir" && as_dir=.
6777
for ac_exec_ext in '' $ac_executable_extensions; do
6778
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6780
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6790
if test -n "$DSYMUTIL"; then
6791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6792
$as_echo "$DSYMUTIL" >&6; }
6794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795
$as_echo "no" >&6; }
6800
if test -z "$ac_cv_prog_DSYMUTIL"; then
6801
ac_ct_DSYMUTIL=$DSYMUTIL
6802
# Extract the first word of "dsymutil", so it can be a program name with args.
6803
set dummy dsymutil; ac_word=$2
6804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805
$as_echo_n "checking for $ac_word... " >&6; }
6806
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6807
$as_echo_n "(cached) " >&6
6809
if test -n "$ac_ct_DSYMUTIL"; then
6810
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816
test -z "$as_dir" && as_dir=.
6817
for ac_exec_ext in '' $ac_executable_extensions; do
6818
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6820
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6830
if test -n "$ac_ct_DSYMUTIL"; then
6831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6832
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835
$as_echo "no" >&6; }
6838
if test "x$ac_ct_DSYMUTIL" = x; then
6841
case $cross_compiling:$ac_tool_warned in
6843
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845
ac_tool_warned=yes ;;
6847
DSYMUTIL=$ac_ct_DSYMUTIL
6850
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6853
if test -n "$ac_tool_prefix"; then
6854
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6855
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857
$as_echo_n "checking for $ac_word... " >&6; }
6858
if ${ac_cv_prog_NMEDIT+:} false; then :
6859
$as_echo_n "(cached) " >&6
6861
if test -n "$NMEDIT"; then
6862
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6864
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868
test -z "$as_dir" && as_dir=.
6869
for ac_exec_ext in '' $ac_executable_extensions; do
6870
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6872
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881
NMEDIT=$ac_cv_prog_NMEDIT
6882
if test -n "$NMEDIT"; then
6883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6884
$as_echo "$NMEDIT" >&6; }
6886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887
$as_echo "no" >&6; }
6892
if test -z "$ac_cv_prog_NMEDIT"; then
6893
ac_ct_NMEDIT=$NMEDIT
6894
# Extract the first word of "nmedit", so it can be a program name with args.
6895
set dummy nmedit; ac_word=$2
6896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897
$as_echo_n "checking for $ac_word... " >&6; }
6898
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6899
$as_echo_n "(cached) " >&6
6901
if test -n "$ac_ct_NMEDIT"; then
6902
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6904
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908
test -z "$as_dir" && as_dir=.
6909
for ac_exec_ext in '' $ac_executable_extensions; do
6910
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6912
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6922
if test -n "$ac_ct_NMEDIT"; then
6923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6924
$as_echo "$ac_ct_NMEDIT" >&6; }
6926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927
$as_echo "no" >&6; }
6930
if test "x$ac_ct_NMEDIT" = x; then
6933
case $cross_compiling:$ac_tool_warned in
6935
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6936
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6937
ac_tool_warned=yes ;;
6939
NMEDIT=$ac_ct_NMEDIT
6942
NMEDIT="$ac_cv_prog_NMEDIT"
6945
if test -n "$ac_tool_prefix"; then
6946
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6947
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949
$as_echo_n "checking for $ac_word... " >&6; }
6950
if ${ac_cv_prog_LIPO+:} false; then :
6951
$as_echo_n "(cached) " >&6
6953
if test -n "$LIPO"; then
6954
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6956
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960
test -z "$as_dir" && as_dir=.
6961
for ac_exec_ext in '' $ac_executable_extensions; do
6962
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6964
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973
LIPO=$ac_cv_prog_LIPO
6974
if test -n "$LIPO"; then
6975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6976
$as_echo "$LIPO" >&6; }
6978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979
$as_echo "no" >&6; }
6984
if test -z "$ac_cv_prog_LIPO"; then
6986
# Extract the first word of "lipo", so it can be a program name with args.
6987
set dummy lipo; ac_word=$2
6988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989
$as_echo_n "checking for $ac_word... " >&6; }
6990
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6991
$as_echo_n "(cached) " >&6
6993
if test -n "$ac_ct_LIPO"; then
6994
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6996
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000
test -z "$as_dir" && as_dir=.
7001
for ac_exec_ext in '' $ac_executable_extensions; do
7002
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003
ac_cv_prog_ac_ct_LIPO="lipo"
7004
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7014
if test -n "$ac_ct_LIPO"; then
7015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7016
$as_echo "$ac_ct_LIPO" >&6; }
7018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019
$as_echo "no" >&6; }
7022
if test "x$ac_ct_LIPO" = x; then
7025
case $cross_compiling:$ac_tool_warned in
7027
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7028
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7029
ac_tool_warned=yes ;;
7034
LIPO="$ac_cv_prog_LIPO"
7037
if test -n "$ac_tool_prefix"; then
7038
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7039
set dummy ${ac_tool_prefix}otool; ac_word=$2
7040
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041
$as_echo_n "checking for $ac_word... " >&6; }
7042
if ${ac_cv_prog_OTOOL+:} false; then :
7043
$as_echo_n "(cached) " >&6
7045
if test -n "$OTOOL"; then
7046
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052
test -z "$as_dir" && as_dir=.
7053
for ac_exec_ext in '' $ac_executable_extensions; do
7054
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7056
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065
OTOOL=$ac_cv_prog_OTOOL
7066
if test -n "$OTOOL"; then
7067
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7068
$as_echo "$OTOOL" >&6; }
7070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071
$as_echo "no" >&6; }
7076
if test -z "$ac_cv_prog_OTOOL"; then
7078
# Extract the first word of "otool", so it can be a program name with args.
7079
set dummy otool; ac_word=$2
7080
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081
$as_echo_n "checking for $ac_word... " >&6; }
7082
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7083
$as_echo_n "(cached) " >&6
7085
if test -n "$ac_ct_OTOOL"; then
7086
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7088
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092
test -z "$as_dir" && as_dir=.
7093
for ac_exec_ext in '' $ac_executable_extensions; do
7094
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095
ac_cv_prog_ac_ct_OTOOL="otool"
7096
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7106
if test -n "$ac_ct_OTOOL"; then
7107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7108
$as_echo "$ac_ct_OTOOL" >&6; }
7110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111
$as_echo "no" >&6; }
7114
if test "x$ac_ct_OTOOL" = x; then
7117
case $cross_compiling:$ac_tool_warned in
7119
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7120
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7121
ac_tool_warned=yes ;;
7126
OTOOL="$ac_cv_prog_OTOOL"
7129
if test -n "$ac_tool_prefix"; then
7130
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7131
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133
$as_echo_n "checking for $ac_word... " >&6; }
7134
if ${ac_cv_prog_OTOOL64+:} false; then :
7135
$as_echo_n "(cached) " >&6
7137
if test -n "$OTOOL64"; then
7138
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144
test -z "$as_dir" && as_dir=.
7145
for ac_exec_ext in '' $ac_executable_extensions; do
7146
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7148
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157
OTOOL64=$ac_cv_prog_OTOOL64
7158
if test -n "$OTOOL64"; then
7159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7160
$as_echo "$OTOOL64" >&6; }
7162
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163
$as_echo "no" >&6; }
7168
if test -z "$ac_cv_prog_OTOOL64"; then
7169
ac_ct_OTOOL64=$OTOOL64
7170
# Extract the first word of "otool64", so it can be a program name with args.
7171
set dummy otool64; ac_word=$2
7172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173
$as_echo_n "checking for $ac_word... " >&6; }
7174
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7175
$as_echo_n "(cached) " >&6
7177
if test -n "$ac_ct_OTOOL64"; then
7178
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184
test -z "$as_dir" && as_dir=.
7185
for ac_exec_ext in '' $ac_executable_extensions; do
7186
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187
ac_cv_prog_ac_ct_OTOOL64="otool64"
7188
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7198
if test -n "$ac_ct_OTOOL64"; then
7199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7200
$as_echo "$ac_ct_OTOOL64" >&6; }
7202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203
$as_echo "no" >&6; }
7206
if test "x$ac_ct_OTOOL64" = x; then
7209
case $cross_compiling:$ac_tool_warned in
7211
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7212
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7213
ac_tool_warned=yes ;;
7215
OTOOL64=$ac_ct_OTOOL64
7218
OTOOL64="$ac_cv_prog_OTOOL64"
7247
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7248
$as_echo_n "checking for -single_module linker flag... " >&6; }
7249
if ${lt_cv_apple_cc_single_mod+:} false; then :
7250
$as_echo_n "(cached) " >&6
7252
lt_cv_apple_cc_single_mod=no
7253
if test -z "${LT_MULTI_MODULE}"; then
7254
# By default we will add the -single_module flag. You can override
7255
# by either setting the environment variable LT_MULTI_MODULE
7256
# non-empty at configure time, or by adding -multi_module to the
7258
rm -rf libconftest.dylib*
7259
echo "int foo(void){return 1;}" > conftest.c
7260
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7261
-dynamiclib -Wl,-single_module conftest.c" >&5
7262
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7263
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7265
# If there is a non-empty error log, and "single_module"
7266
# appears in it, assume the flag caused a linker warning
7267
if test -s conftest.err && $GREP single_module conftest.err; then
7268
cat conftest.err >&5
7269
# Otherwise, if the output was created with a 0 exit code from
7270
# the compiler, it worked.
7271
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7272
lt_cv_apple_cc_single_mod=yes
7274
cat conftest.err >&5
7276
rm -rf libconftest.dylib*
7280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7281
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7284
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7285
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7286
$as_echo_n "(cached) " >&6
7288
lt_cv_ld_exported_symbols_list=no
7289
save_LDFLAGS=$LDFLAGS
7290
echo "_main" > conftest.sym
7291
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7292
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293
/* end confdefs.h. */
7303
if ac_fn_c_try_link "$LINENO"; then :
7304
lt_cv_ld_exported_symbols_list=yes
7306
lt_cv_ld_exported_symbols_list=no
7308
rm -f core conftest.err conftest.$ac_objext \
7309
conftest$ac_exeext conftest.$ac_ext
7310
LDFLAGS="$save_LDFLAGS"
7313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7314
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7317
$as_echo_n "checking for -force_load linker flag... " >&6; }
7318
if ${lt_cv_ld_force_load+:} false; then :
7319
$as_echo_n "(cached) " >&6
7321
lt_cv_ld_force_load=no
7322
cat > conftest.c << _LT_EOF
7323
int forced_loaded() { return 2;}
7325
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7326
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7327
echo "$AR cru libconftest.a conftest.o" >&5
7328
$AR cru libconftest.a conftest.o 2>&5
7329
echo "$RANLIB libconftest.a" >&5
7330
$RANLIB libconftest.a 2>&5
7331
cat > conftest.c << _LT_EOF
7332
int main() { return 0;}
7334
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7335
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7337
if test -s conftest.err && $GREP force_load conftest.err; then
7338
cat conftest.err >&5
7339
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7340
lt_cv_ld_force_load=yes
7342
cat conftest.err >&5
7344
rm -f conftest.err libconftest.a conftest conftest.c
7345
rm -rf conftest.dSYM
7348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7349
$as_echo "$lt_cv_ld_force_load" >&6; }
7351
rhapsody* | darwin1.[012])
7352
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7354
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7355
darwin*) # darwin 5.x on
7356
# if running on 10.5 or later, the deployment target defaults
7357
# to the OS version, if on x86, and 10.4, the deployment
7358
# target defaults to 10.4. Don't you love it?
7359
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7360
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7361
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7363
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7365
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7369
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7370
_lt_dar_single_mod='$single_module'
7372
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7373
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7375
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7377
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7378
_lt_dsymutil='~$DSYMUTIL $lib || :'
7386
ac_cpp='$CPP $CPPFLAGS'
7387
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7388
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7389
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7391
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7392
# On Suns, sometimes $CPP names a directory.
7393
if test -n "$CPP" && test -d "$CPP"; then
7396
if test -z "$CPP"; then
7397
if ${ac_cv_prog_CPP+:} false; then :
7398
$as_echo_n "(cached) " >&6
7400
# Double quotes because CPP needs to be expanded
7401
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7404
for ac_c_preproc_warn_flag in '' yes
7406
# Use a header file that comes with gcc, so configuring glibc
7407
# with a fresh cross-compiler works.
7408
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7409
# <limits.h> exists even on freestanding compilers.
7410
# On the NeXT, cc -E runs the code through the compiler's parser,
7411
# not just through cpp. "Syntax error" is here to catch this case.
7412
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413
/* end confdefs.h. */
7415
# include <limits.h>
7417
# include <assert.h>
7421
if ac_fn_c_try_cpp "$LINENO"; then :
7424
# Broken: fails on valid input.
7427
rm -f conftest.err conftest.i conftest.$ac_ext
7429
# OK, works on sane cases. Now check whether nonexistent headers
7430
# can be detected and how.
7431
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432
/* end confdefs.h. */
7433
#include <ac_nonexistent.h>
7435
if ac_fn_c_try_cpp "$LINENO"; then :
7436
# Broken: success on invalid input.
7439
# Passes both tests.
7443
rm -f conftest.err conftest.i conftest.$ac_ext
7446
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7447
rm -f conftest.i conftest.err conftest.$ac_ext
7448
if $ac_preproc_ok; then :
7460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7461
$as_echo "$CPP" >&6; }
7463
for ac_c_preproc_warn_flag in '' yes
7465
# Use a header file that comes with gcc, so configuring glibc
7466
# with a fresh cross-compiler works.
7467
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7468
# <limits.h> exists even on freestanding compilers.
7469
# On the NeXT, cc -E runs the code through the compiler's parser,
7470
# not just through cpp. "Syntax error" is here to catch this case.
7471
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472
/* end confdefs.h. */
7474
# include <limits.h>
7476
# include <assert.h>
7480
if ac_fn_c_try_cpp "$LINENO"; then :
7483
# Broken: fails on valid input.
7486
rm -f conftest.err conftest.i conftest.$ac_ext
7488
# OK, works on sane cases. Now check whether nonexistent headers
7489
# can be detected and how.
7490
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491
/* end confdefs.h. */
7492
#include <ac_nonexistent.h>
7494
if ac_fn_c_try_cpp "$LINENO"; then :
7495
# Broken: success on invalid input.
7498
# Passes both tests.
7502
rm -f conftest.err conftest.i conftest.$ac_ext
7505
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7506
rm -f conftest.i conftest.err conftest.$ac_ext
7507
if $ac_preproc_ok; then :
7510
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7511
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7512
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7513
See \`config.log' for more details" "$LINENO" 5; }
7517
ac_cpp='$CPP $CPPFLAGS'
7518
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7524
$as_echo_n "checking for ANSI C header files... " >&6; }
7525
if ${ac_cv_header_stdc+:} false; then :
7526
$as_echo_n "(cached) " >&6
7528
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529
/* end confdefs.h. */
7543
if ac_fn_c_try_compile "$LINENO"; then :
7544
ac_cv_header_stdc=yes
7546
ac_cv_header_stdc=no
7548
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550
if test $ac_cv_header_stdc = yes; then
7551
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7552
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553
/* end confdefs.h. */
7557
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7558
$EGREP "memchr" >/dev/null 2>&1; then :
7561
ac_cv_header_stdc=no
7567
if test $ac_cv_header_stdc = yes; then
7568
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7569
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570
/* end confdefs.h. */
7574
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7575
$EGREP "free" >/dev/null 2>&1; then :
7578
ac_cv_header_stdc=no
7584
if test $ac_cv_header_stdc = yes; then
7585
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7586
if test "$cross_compiling" = yes; then :
7589
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590
/* end confdefs.h. */
7593
#if ((' ' & 0x0FF) == 0x020)
7594
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7595
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7597
# define ISLOWER(c) \
7598
(('a' <= (c) && (c) <= 'i') \
7599
|| ('j' <= (c) && (c) <= 'r') \
7600
|| ('s' <= (c) && (c) <= 'z'))
7601
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7604
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7609
for (i = 0; i < 256; i++)
7610
if (XOR (islower (i), ISLOWER (i))
7611
|| toupper (i) != TOUPPER (i))
7616
if ac_fn_c_try_run "$LINENO"; then :
7619
ac_cv_header_stdc=no
7621
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7622
conftest.$ac_objext conftest.beam conftest.$ac_ext
7627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7628
$as_echo "$ac_cv_header_stdc" >&6; }
7629
if test $ac_cv_header_stdc = yes; then
7631
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7635
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7636
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7637
inttypes.h stdint.h unistd.h
7639
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7640
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7642
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7643
cat >>confdefs.h <<_ACEOF
7644
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7652
for ac_header in dlfcn.h
7654
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7656
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7657
cat >>confdefs.h <<_ACEOF
7658
#define HAVE_DLFCN_H 1
7671
enable_win32_dll=yes
7674
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7675
if test -n "$ac_tool_prefix"; then
7676
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7677
set dummy ${ac_tool_prefix}as; ac_word=$2
7678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679
$as_echo_n "checking for $ac_word... " >&6; }
7680
if ${ac_cv_prog_AS+:} false; then :
7681
$as_echo_n "(cached) " >&6
7683
if test -n "$AS"; then
7684
ac_cv_prog_AS="$AS" # Let the user override the test.
7686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690
test -z "$as_dir" && as_dir=.
7691
for ac_exec_ext in '' $ac_executable_extensions; do
7692
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693
ac_cv_prog_AS="${ac_tool_prefix}as"
7694
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704
if test -n "$AS"; then
7705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7706
$as_echo "$AS" >&6; }
7708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709
$as_echo "no" >&6; }
7714
if test -z "$ac_cv_prog_AS"; then
7716
# Extract the first word of "as", so it can be a program name with args.
7717
set dummy as; ac_word=$2
7718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719
$as_echo_n "checking for $ac_word... " >&6; }
7720
if ${ac_cv_prog_ac_ct_AS+:} false; then :
7721
$as_echo_n "(cached) " >&6
7723
if test -n "$ac_ct_AS"; then
7724
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730
test -z "$as_dir" && as_dir=.
7731
for ac_exec_ext in '' $ac_executable_extensions; do
7732
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7733
ac_cv_prog_ac_ct_AS="as"
7734
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743
ac_ct_AS=$ac_cv_prog_ac_ct_AS
7744
if test -n "$ac_ct_AS"; then
7745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7746
$as_echo "$ac_ct_AS" >&6; }
7748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749
$as_echo "no" >&6; }
7752
if test "x$ac_ct_AS" = x; then
7755
case $cross_compiling:$ac_tool_warned in
7757
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7758
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7759
ac_tool_warned=yes ;;
7767
if test -n "$ac_tool_prefix"; then
7768
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7769
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771
$as_echo_n "checking for $ac_word... " >&6; }
7772
if ${ac_cv_prog_DLLTOOL+:} false; then :
7773
$as_echo_n "(cached) " >&6
7775
if test -n "$DLLTOOL"; then
7776
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7778
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782
test -z "$as_dir" && as_dir=.
7783
for ac_exec_ext in '' $ac_executable_extensions; do
7784
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7786
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795
DLLTOOL=$ac_cv_prog_DLLTOOL
7796
if test -n "$DLLTOOL"; then
7797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7798
$as_echo "$DLLTOOL" >&6; }
7800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801
$as_echo "no" >&6; }
7806
if test -z "$ac_cv_prog_DLLTOOL"; then
7807
ac_ct_DLLTOOL=$DLLTOOL
7808
# Extract the first word of "dlltool", so it can be a program name with args.
7809
set dummy dlltool; ac_word=$2
7810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811
$as_echo_n "checking for $ac_word... " >&6; }
7812
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7813
$as_echo_n "(cached) " >&6
7815
if test -n "$ac_ct_DLLTOOL"; then
7816
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7818
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822
test -z "$as_dir" && as_dir=.
7823
for ac_exec_ext in '' $ac_executable_extensions; do
7824
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7825
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7826
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7836
if test -n "$ac_ct_DLLTOOL"; then
7837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7838
$as_echo "$ac_ct_DLLTOOL" >&6; }
7840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841
$as_echo "no" >&6; }
7844
if test "x$ac_ct_DLLTOOL" = x; then
7847
case $cross_compiling:$ac_tool_warned in
7849
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7850
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7851
ac_tool_warned=yes ;;
7853
DLLTOOL=$ac_ct_DLLTOOL
7856
DLLTOOL="$ac_cv_prog_DLLTOOL"
7859
if test -n "$ac_tool_prefix"; then
7860
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7861
set dummy ${ac_tool_prefix}objdump; ac_word=$2
7862
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863
$as_echo_n "checking for $ac_word... " >&6; }
7864
if ${ac_cv_prog_OBJDUMP+:} false; then :
7865
$as_echo_n "(cached) " >&6
7867
if test -n "$OBJDUMP"; then
7868
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7870
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874
test -z "$as_dir" && as_dir=.
7875
for ac_exec_ext in '' $ac_executable_extensions; do
7876
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7878
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7887
OBJDUMP=$ac_cv_prog_OBJDUMP
7888
if test -n "$OBJDUMP"; then
7889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7890
$as_echo "$OBJDUMP" >&6; }
7892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893
$as_echo "no" >&6; }
7898
if test -z "$ac_cv_prog_OBJDUMP"; then
7899
ac_ct_OBJDUMP=$OBJDUMP
7900
# Extract the first word of "objdump", so it can be a program name with args.
7901
set dummy objdump; ac_word=$2
7902
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903
$as_echo_n "checking for $ac_word... " >&6; }
7904
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7905
$as_echo_n "(cached) " >&6
7907
if test -n "$ac_ct_OBJDUMP"; then
7908
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7910
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914
test -z "$as_dir" && as_dir=.
7915
for ac_exec_ext in '' $ac_executable_extensions; do
7916
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7917
ac_cv_prog_ac_ct_OBJDUMP="objdump"
7918
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7928
if test -n "$ac_ct_OBJDUMP"; then
7929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7930
$as_echo "$ac_ct_OBJDUMP" >&6; }
7932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933
$as_echo "no" >&6; }
7936
if test "x$ac_ct_OBJDUMP" = x; then
7939
case $cross_compiling:$ac_tool_warned in
7941
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7942
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7943
ac_tool_warned=yes ;;
7945
OBJDUMP=$ac_ct_OBJDUMP
7948
OBJDUMP="$ac_cv_prog_OBJDUMP"
7954
test -z "$AS" && AS=as
7960
test -z "$DLLTOOL" && DLLTOOL=dlltool
7966
test -z "$OBJDUMP" && OBJDUMP=objdump
7978
# Check whether --enable-shared was given.
7979
if test "${enable_shared+set}" = set; then :
7980
enableval=$enable_shared; p=${PACKAGE-default}
7982
yes) enable_shared=yes ;;
7983
no) enable_shared=no ;;
7986
# Look at the argument we got. We use all the common list separators.
7987
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7988
for pkg in $enableval; do
7990
if test "X$pkg" = "X$p"; then
8009
# Check whether --enable-static was given.
8010
if test "${enable_static+set}" = set; then :
8011
enableval=$enable_static; p=${PACKAGE-default}
8013
yes) enable_static=yes ;;
8014
no) enable_static=no ;;
8017
# Look at the argument we got. We use all the common list separators.
8018
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8019
for pkg in $enableval; do
8021
if test "X$pkg" = "X$p"; then
8041
# Check whether --with-pic was given.
8042
if test "${with_pic+set}" = set; then :
8043
withval=$with_pic; lt_p=${PACKAGE-default}
8045
yes|no) pic_mode=$withval ;;
8048
# Look at the argument we got. We use all the common list separators.
8049
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8050
for lt_pkg in $withval; do
8052
if test "X$lt_pkg" = "X$lt_p"; then
8064
test -z "$pic_mode" && pic_mode=default
8072
# Check whether --enable-fast-install was given.
8073
if test "${enable_fast_install+set}" = set; then :
8074
enableval=$enable_fast_install; p=${PACKAGE-default}
8076
yes) enable_fast_install=yes ;;
8077
no) enable_fast_install=no ;;
8079
enable_fast_install=no
8080
# Look at the argument we got. We use all the common list separators.
8081
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8082
for pkg in $enableval; do
8084
if test "X$pkg" = "X$p"; then
8085
enable_fast_install=yes
8092
enable_fast_install=yes
8105
# This can be used to rebuild libtool when needed
8106
LIBTOOL_DEPS="$ltmain"
8108
# Always use our own libtool.
8109
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8140
test -z "$LN_S" && LN_S="ln -s"
8155
if test -n "${ZSH_VERSION+set}" ; then
8156
setopt NO_GLOB_SUBST
8159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8160
$as_echo_n "checking for objdir... " >&6; }
8161
if ${lt_cv_objdir+:} false; then :
8162
$as_echo_n "(cached) " >&6
8164
rm -f .libs 2>/dev/null
8165
mkdir .libs 2>/dev/null
8166
if test -d .libs; then
8169
# MS-DOS does not allow filenames that begin with a dot.
8172
rmdir .libs 2>/dev/null
8174
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8175
$as_echo "$lt_cv_objdir" >&6; }
8176
objdir=$lt_cv_objdir
8182
cat >>confdefs.h <<_ACEOF
8183
#define LT_OBJDIR "$lt_cv_objdir/"
8191
# AIX sometimes has problems with the GCC collect2 program. For some
8192
# reason, if we set the COLLECT_NAMES environment variable, the problems
8193
# vanish in a puff of smoke.
8194
if test "X${COLLECT_NAMES+set}" != Xset; then
8196
export COLLECT_NAMES
8203
can_build_shared=yes
8205
# All known linkers require a `.a' archive for static linking (except MSVC,
8206
# which needs '.lib').
8209
with_gnu_ld="$lt_cv_prog_gnu_ld"
8212
old_CFLAGS="$CFLAGS"
8214
# Set sane defaults for various variables
8215
test -z "$CC" && CC=cc
8216
test -z "$LTCC" && LTCC=$CC
8217
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8218
test -z "$LD" && LD=ld
8219
test -z "$ac_objext" && ac_objext=o
8221
for cc_temp in $compiler""; do
8223
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8224
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8229
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8232
# Only perform the check for file, if the check method requires it
8233
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8234
case $deplibs_check_method in
8236
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8238
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8239
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8240
$as_echo_n "(cached) " >&6
8244
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8247
lt_save_MAGIC_CMD="$MAGIC_CMD"
8248
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8249
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8250
for ac_dir in $ac_dummy; do
8252
test -z "$ac_dir" && ac_dir=.
8253
if test -f $ac_dir/${ac_tool_prefix}file; then
8254
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8255
if test -n "$file_magic_test_file"; then
8256
case $deplibs_check_method in
8258
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8259
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8260
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8261
$EGREP "$file_magic_regex" > /dev/null; then
8266
*** Warning: the command libtool uses to detect shared libraries,
8267
*** $file_magic_cmd, produces output that libtool cannot recognize.
8268
*** The result is that libtool may fail to recognize shared libraries
8269
*** as such. This will affect the creation of libtool libraries that
8270
*** depend on shared libraries, but programs linked with such libtool
8271
*** libraries will work regardless of this problem. Nevertheless, you
8272
*** may want to report the problem to your system manager and/or to
8273
*** bug-libtool@gnu.org
8283
MAGIC_CMD="$lt_save_MAGIC_CMD"
8288
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8289
if test -n "$MAGIC_CMD"; then
8290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8291
$as_echo "$MAGIC_CMD" >&6; }
8293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294
$as_echo "no" >&6; }
8301
if test -z "$lt_cv_path_MAGIC_CMD"; then
8302
if test -n "$ac_tool_prefix"; then
8303
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8304
$as_echo_n "checking for file... " >&6; }
8305
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8306
$as_echo_n "(cached) " >&6
8310
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8313
lt_save_MAGIC_CMD="$MAGIC_CMD"
8314
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8315
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8316
for ac_dir in $ac_dummy; do
8318
test -z "$ac_dir" && ac_dir=.
8319
if test -f $ac_dir/file; then
8320
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8321
if test -n "$file_magic_test_file"; then
8322
case $deplibs_check_method in
8324
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8325
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8326
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8327
$EGREP "$file_magic_regex" > /dev/null; then
8332
*** Warning: the command libtool uses to detect shared libraries,
8333
*** $file_magic_cmd, produces output that libtool cannot recognize.
8334
*** The result is that libtool may fail to recognize shared libraries
8335
*** as such. This will affect the creation of libtool libraries that
8336
*** depend on shared libraries, but programs linked with such libtool
8337
*** libraries will work regardless of this problem. Nevertheless, you
8338
*** may want to report the problem to your system manager and/or to
8339
*** bug-libtool@gnu.org
8349
MAGIC_CMD="$lt_save_MAGIC_CMD"
8354
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8355
if test -n "$MAGIC_CMD"; then
8356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8357
$as_echo "$MAGIC_CMD" >&6; }
8359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360
$as_echo "no" >&6; }
8373
# Use C for the default configuration in the libtool script
8377
ac_cpp='$CPP $CPPFLAGS'
8378
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8379
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8380
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8383
# Source file extension for C test sources.
8386
# Object file extension for compiled C test sources.
8390
# Code to be used in simple compile tests
8391
lt_simple_compile_test_code="int some_variable = 0;"
8393
# Code to be used in simple link tests
8394
lt_simple_link_test_code='int main(){return(0);}'
8402
# If no C compiler was specified, use CC.
8405
# If no C compiler flags were specified, use CFLAGS.
8406
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8408
# Allow CC to be a program name with arguments.
8411
# Save the default compiler, since it gets overwritten when the other
8412
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8413
compiler_DEFAULT=$CC
8415
# save warnings/boilerplate of simple test code
8416
ac_outfile=conftest.$ac_objext
8417
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8418
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8419
_lt_compiler_boilerplate=`cat conftest.err`
8422
ac_outfile=conftest.$ac_objext
8423
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8424
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8425
_lt_linker_boilerplate=`cat conftest.err`
8430
## There is no encapsulation within the following macros, do not change
8431
## the running order or otherwise move them around unless you know exactly
8432
## what you are doing...
8433
if test -n "$compiler"; then
8435
lt_prog_compiler_no_builtin_flag=
8437
if test "$GCC" = yes; then
8438
case $cc_basename in
8440
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8442
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8446
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8447
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8448
$as_echo_n "(cached) " >&6
8450
lt_cv_prog_compiler_rtti_exceptions=no
8451
ac_outfile=conftest.$ac_objext
8452
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8453
lt_compiler_flag="-fno-rtti -fno-exceptions"
8454
# Insert the option either (1) after the last *FLAGS variable, or
8455
# (2) before a word containing "conftest.", or (3) at the end.
8456
# Note that $ac_compile itself does not contain backslashes and begins
8457
# with a dollar sign (not a hyphen), so the echo should work correctly.
8458
# The option is referenced via a variable to avoid confusing sed.
8459
lt_compile=`echo "$ac_compile" | $SED \
8460
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8461
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8462
-e 's:$: $lt_compiler_flag:'`
8463
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8464
(eval "$lt_compile" 2>conftest.err)
8466
cat conftest.err >&5
8467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468
if (exit $ac_status) && test -s "$ac_outfile"; then
8469
# The compiler can only warn and ignore the option if not recognized
8470
# So say no if there are warnings other than the usual output.
8471
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8472
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8473
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8474
lt_cv_prog_compiler_rtti_exceptions=yes
8480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8481
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8483
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8484
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8496
lt_prog_compiler_wl=
8497
lt_prog_compiler_pic=
8498
lt_prog_compiler_static=
8501
if test "$GCC" = yes; then
8502
lt_prog_compiler_wl='-Wl,'
8503
lt_prog_compiler_static='-static'
8507
# All AIX code is PIC.
8508
if test "$host_cpu" = ia64; then
8509
# AIX 5 now supports IA64 processor
8510
lt_prog_compiler_static='-Bstatic'
8517
# see comment about AmigaOS4 .so support
8518
lt_prog_compiler_pic='-fPIC'
8521
# FIXME: we need at least 68020 code to build shared libraries, but
8522
# adding the `-m68020' flag to GCC prevents building anything better,
8524
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8529
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8530
# PIC is the default for these OSes.
8533
mingw* | cygwin* | pw32* | os2* | cegcc*)
8534
# This hack is so that the source file can tell whether it is being
8535
# built for inclusion in a dll (and should export symbols for example).
8536
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8537
# (--disable-auto-import) libraries
8538
lt_prog_compiler_pic='-DDLL_EXPORT'
8541
darwin* | rhapsody*)
8542
# PIC is the default on this platform
8543
# Common symbols not allowed in MH_DYLIB files
8544
lt_prog_compiler_pic='-fno-common'
8548
# PIC is the default for Haiku.
8549
# The "-static" flag exists, but is broken.
8550
lt_prog_compiler_static=
8554
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8555
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8556
# sets the default TLS model and affects inlining.
8562
lt_prog_compiler_pic='-fPIC'
8568
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8569
# Instead, we relocate shared libraries at runtime.
8573
# Just because we use GCC doesn't mean we suddenly get shared libraries
8574
# on systems that don't support them.
8575
lt_prog_compiler_can_build_shared=no
8580
# QNX uses GNU C++, but need to define -shared option too, otherwise
8582
lt_prog_compiler_pic='-fPIC -shared'
8586
if test -d /usr/nec; then
8587
lt_prog_compiler_pic=-Kconform_pic
8592
lt_prog_compiler_pic='-fPIC'
8596
case $cc_basename in
8597
nvcc*) # Cuda Compiler Driver 2.2
8598
lt_prog_compiler_wl='-Xlinker '
8599
if test -n "$lt_prog_compiler_pic"; then
8600
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8605
# PORTME Check for flag to pass linker flags through the system compiler.
8608
lt_prog_compiler_wl='-Wl,'
8609
if test "$host_cpu" = ia64; then
8610
# AIX 5 now supports IA64 processor
8611
lt_prog_compiler_static='-Bstatic'
8613
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8617
mingw* | cygwin* | pw32* | os2* | cegcc*)
8618
# This hack is so that the source file can tell whether it is being
8619
# built for inclusion in a dll (and should export symbols for example).
8620
lt_prog_compiler_pic='-DDLL_EXPORT'
8623
hpux9* | hpux10* | hpux11*)
8624
lt_prog_compiler_wl='-Wl,'
8625
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8632
lt_prog_compiler_pic='+Z'
8635
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8636
lt_prog_compiler_static='${wl}-a ${wl}archive'
8639
irix5* | irix6* | nonstopux*)
8640
lt_prog_compiler_wl='-Wl,'
8641
# PIC (with -KPIC) is the default.
8642
lt_prog_compiler_static='-non_shared'
8645
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8646
case $cc_basename in
8647
# old Intel for x86_64 which still supported -KPIC.
8649
lt_prog_compiler_wl='-Wl,'
8650
lt_prog_compiler_pic='-KPIC'
8651
lt_prog_compiler_static='-static'
8653
# icc used to be incompatible with GCC.
8654
# ICC 10 doesn't accept -KPIC any more.
8656
lt_prog_compiler_wl='-Wl,'
8657
lt_prog_compiler_pic='-fPIC'
8658
lt_prog_compiler_static='-static'
8660
# Lahey Fortran 8.1.
8662
lt_prog_compiler_wl='-Wl,'
8663
lt_prog_compiler_pic='--shared'
8664
lt_prog_compiler_static='--static'
8667
# NAG Fortran compiler
8668
lt_prog_compiler_wl='-Wl,-Wl,,'
8669
lt_prog_compiler_pic='-PIC'
8670
lt_prog_compiler_static='-Bstatic'
8672
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8673
# Portland Group compilers (*not* the Pentium gcc compiler,
8674
# which looks to be a dead project)
8675
lt_prog_compiler_wl='-Wl,'
8676
lt_prog_compiler_pic='-fpic'
8677
lt_prog_compiler_static='-Bstatic'
8680
lt_prog_compiler_wl='-Wl,'
8681
# All Alpha code is PIC.
8682
lt_prog_compiler_static='-non_shared'
8684
xl* | bgxl* | bgf* | mpixl*)
8685
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8686
lt_prog_compiler_wl='-Wl,'
8687
lt_prog_compiler_pic='-qpic'
8688
lt_prog_compiler_static='-qstaticlink'
8691
case `$CC -V 2>&1 | sed 5q` in
8692
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8693
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8694
lt_prog_compiler_pic='-KPIC'
8695
lt_prog_compiler_static='-Bstatic'
8696
lt_prog_compiler_wl=''
8698
*Sun\ F* | *Sun*Fortran*)
8699
lt_prog_compiler_pic='-KPIC'
8700
lt_prog_compiler_static='-Bstatic'
8701
lt_prog_compiler_wl='-Qoption ld '
8705
lt_prog_compiler_pic='-KPIC'
8706
lt_prog_compiler_static='-Bstatic'
8707
lt_prog_compiler_wl='-Wl,'
8709
*Intel*\ [CF]*Compiler*)
8710
lt_prog_compiler_wl='-Wl,'
8711
lt_prog_compiler_pic='-fPIC'
8712
lt_prog_compiler_static='-static'
8715
lt_prog_compiler_wl='-Wl,'
8716
lt_prog_compiler_pic='-fpic'
8717
lt_prog_compiler_static='-Bstatic'
8725
lt_prog_compiler_pic='-KPIC'
8726
lt_prog_compiler_static='-Bstatic'
8730
# QNX uses GNU C++, but need to define -shared option too, otherwise
8732
lt_prog_compiler_pic='-fPIC -shared'
8735
osf3* | osf4* | osf5*)
8736
lt_prog_compiler_wl='-Wl,'
8737
# All OSF/1 code is PIC.
8738
lt_prog_compiler_static='-non_shared'
8742
lt_prog_compiler_static='-non_shared'
8746
lt_prog_compiler_pic='-KPIC'
8747
lt_prog_compiler_static='-Bstatic'
8748
case $cc_basename in
8749
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8750
lt_prog_compiler_wl='-Qoption ld ';;
8752
lt_prog_compiler_wl='-Wl,';;
8757
lt_prog_compiler_wl='-Qoption ld '
8758
lt_prog_compiler_pic='-PIC'
8759
lt_prog_compiler_static='-Bstatic'
8762
sysv4 | sysv4.2uw2* | sysv4.3*)
8763
lt_prog_compiler_wl='-Wl,'
8764
lt_prog_compiler_pic='-KPIC'
8765
lt_prog_compiler_static='-Bstatic'
8769
if test -d /usr/nec ;then
8770
lt_prog_compiler_pic='-Kconform_pic'
8771
lt_prog_compiler_static='-Bstatic'
8775
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8776
lt_prog_compiler_wl='-Wl,'
8777
lt_prog_compiler_pic='-KPIC'
8778
lt_prog_compiler_static='-Bstatic'
8782
lt_prog_compiler_wl='-Wl,'
8783
lt_prog_compiler_can_build_shared=no
8787
lt_prog_compiler_pic='-pic'
8788
lt_prog_compiler_static='-Bstatic'
8792
lt_prog_compiler_can_build_shared=no
8798
# For platforms which do not support PIC, -DPIC is meaningless:
8800
lt_prog_compiler_pic=
8803
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8808
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8809
if ${lt_cv_prog_compiler_pic+:} false; then :
8810
$as_echo_n "(cached) " >&6
8812
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8815
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8816
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8819
# Check to make sure the PIC flag actually works.
8821
if test -n "$lt_prog_compiler_pic"; then
8822
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8823
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8824
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8825
$as_echo_n "(cached) " >&6
8827
lt_cv_prog_compiler_pic_works=no
8828
ac_outfile=conftest.$ac_objext
8829
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8830
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8831
# Insert the option either (1) after the last *FLAGS variable, or
8832
# (2) before a word containing "conftest.", or (3) at the end.
8833
# Note that $ac_compile itself does not contain backslashes and begins
8834
# with a dollar sign (not a hyphen), so the echo should work correctly.
8835
# The option is referenced via a variable to avoid confusing sed.
8836
lt_compile=`echo "$ac_compile" | $SED \
8837
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8838
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8839
-e 's:$: $lt_compiler_flag:'`
8840
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8841
(eval "$lt_compile" 2>conftest.err)
8843
cat conftest.err >&5
8844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845
if (exit $ac_status) && test -s "$ac_outfile"; then
8846
# The compiler can only warn and ignore the option if not recognized
8847
# So say no if there are warnings other than the usual output.
8848
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8849
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8850
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8851
lt_cv_prog_compiler_pic_works=yes
8857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8858
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8860
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8861
case $lt_prog_compiler_pic in
8863
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8866
lt_prog_compiler_pic=
8867
lt_prog_compiler_can_build_shared=no
8883
# Check to make sure the static flag actually works.
8885
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8887
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8888
if ${lt_cv_prog_compiler_static_works+:} false; then :
8889
$as_echo_n "(cached) " >&6
8891
lt_cv_prog_compiler_static_works=no
8892
save_LDFLAGS="$LDFLAGS"
8893
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8894
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8895
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8896
# The linker can only warn and ignore the option if not recognized
8897
# So say no if there are warnings
8898
if test -s conftest.err; then
8899
# Append any errors to the config.log.
8900
cat conftest.err 1>&5
8901
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8902
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8903
if diff conftest.exp conftest.er2 >/dev/null; then
8904
lt_cv_prog_compiler_static_works=yes
8907
lt_cv_prog_compiler_static_works=yes
8911
LDFLAGS="$save_LDFLAGS"
8914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8915
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8917
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8920
lt_prog_compiler_static=
8929
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8930
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8931
if ${lt_cv_prog_compiler_c_o+:} false; then :
8932
$as_echo_n "(cached) " >&6
8934
lt_cv_prog_compiler_c_o=no
8935
$RM -r conftest 2>/dev/null
8939
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8941
lt_compiler_flag="-o out/conftest2.$ac_objext"
8942
# Insert the option either (1) after the last *FLAGS variable, or
8943
# (2) before a word containing "conftest.", or (3) at the end.
8944
# Note that $ac_compile itself does not contain backslashes and begins
8945
# with a dollar sign (not a hyphen), so the echo should work correctly.
8946
lt_compile=`echo "$ac_compile" | $SED \
8947
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8948
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8949
-e 's:$: $lt_compiler_flag:'`
8950
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8951
(eval "$lt_compile" 2>out/conftest.err)
8953
cat out/conftest.err >&5
8954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8957
# The compiler can only warn and ignore the option if not recognized
8958
# So say no if there are warnings
8959
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8960
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8961
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8962
lt_cv_prog_compiler_c_o=yes
8967
# SGI C++ compiler will create directory out/ii_files/ for
8968
# template instantiation
8969
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8970
$RM out/* && rmdir out
8976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8977
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8985
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8986
if ${lt_cv_prog_compiler_c_o+:} false; then :
8987
$as_echo_n "(cached) " >&6
8989
lt_cv_prog_compiler_c_o=no
8990
$RM -r conftest 2>/dev/null
8994
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8996
lt_compiler_flag="-o out/conftest2.$ac_objext"
8997
# Insert the option either (1) after the last *FLAGS variable, or
8998
# (2) before a word containing "conftest.", or (3) at the end.
8999
# Note that $ac_compile itself does not contain backslashes and begins
9000
# with a dollar sign (not a hyphen), so the echo should work correctly.
9001
lt_compile=`echo "$ac_compile" | $SED \
9002
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9003
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9004
-e 's:$: $lt_compiler_flag:'`
9005
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9006
(eval "$lt_compile" 2>out/conftest.err)
9008
cat out/conftest.err >&5
9009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9012
# The compiler can only warn and ignore the option if not recognized
9013
# So say no if there are warnings
9014
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9015
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9016
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9017
lt_cv_prog_compiler_c_o=yes
9022
# SGI C++ compiler will create directory out/ii_files/ for
9023
# template instantiation
9024
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9025
$RM out/* && rmdir out
9031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9032
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9037
hard_links="nottested"
9038
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9039
# do not overwrite the value of need_locks provided by the user
9040
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9041
$as_echo_n "checking if we can lock with hard links... " >&6; }
9044
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9046
ln conftest.a conftest.b 2>&5 || hard_links=no
9047
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9048
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9049
$as_echo "$hard_links" >&6; }
9050
if test "$hard_links" = no; then
9051
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9052
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9065
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9068
allow_undefined_flag=
9069
always_export_symbols=no
9071
archive_expsym_cmds=
9072
compiler_needs_object=no
9073
enable_shared_with_static_runtimes=no
9074
export_dynamic_flag_spec=
9075
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9076
hardcode_automatic=no
9078
hardcode_direct_absolute=no
9079
hardcode_libdir_flag_spec=
9080
hardcode_libdir_separator=
9082
hardcode_shlibpath_var=unsupported
9084
link_all_deplibs=unknown
9087
old_archive_from_new_cmds=
9088
old_archive_from_expsyms_cmds=
9089
thread_safe_flag_spec=
9090
whole_archive_flag_spec=
9091
# include_expsyms should be a list of space-separated symbols to be *always*
9092
# included in the symbol list
9094
# exclude_expsyms can be an extended regexp of symbols to exclude
9095
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9096
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9097
# as well as any symbol that contains `d'.
9098
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9099
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9100
# platforms (ab)use it in PIC code, but their linkers get confused if
9101
# the symbol is explicitly referenced. Since portable code cannot
9102
# rely on this symbol name, it's probably fine to never include it in
9103
# preloaded symbol tables.
9104
# Exclude shared library initialization/finalization symbols.
9105
extract_expsyms_cmds=
9108
cygwin* | mingw* | pw32* | cegcc*)
9109
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9110
# When not using gcc, we currently assume that we are using
9111
# Microsoft Visual C++.
9112
if test "$GCC" != yes; then
9117
# we just hope/assume this is gcc and not c89 (= MSVC++)
9127
# On some targets, GNU ld is compatible enough with the native linker
9128
# that we're better off using the native interface for both.
9129
lt_use_gnu_ld_interface=no
9130
if test "$with_gnu_ld" = yes; then
9133
# The AIX port of GNU ld has always aspired to compatibility
9134
# with the native linker. However, as the warning in the GNU ld
9135
# block says, versions before 2.19.5* couldn't really create working
9136
# shared libraries, regardless of the interface used.
9137
case `$LD -v 2>&1` in
9138
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9139
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9140
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
9142
lt_use_gnu_ld_interface=yes
9147
lt_use_gnu_ld_interface=yes
9152
if test "$lt_use_gnu_ld_interface" = yes; then
9153
# If archive_cmds runs LD, not CC, wlarc should be empty
9156
# Set some defaults for GNU ld with shared library support. These
9157
# are reset later if shared libraries are not supported. Putting them
9158
# here allows them to be overridden if necessary.
9159
runpath_var=LD_RUN_PATH
9160
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161
export_dynamic_flag_spec='${wl}--export-dynamic'
9162
# ancient GNU ld didn't support --whole-archive et. al.
9163
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9164
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9166
whole_archive_flag_spec=
9168
supports_anon_versioning=no
9169
case `$LD -v 2>&1` in
9170
*GNU\ gold*) supports_anon_versioning=yes ;;
9171
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9172
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9173
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9174
*\ 2.11.*) ;; # other 2.11 versions
9175
*) supports_anon_versioning=yes ;;
9178
# See if GNU ld supports shared libraries.
9181
# On AIX/PPC, the GNU linker is very broken
9182
if test "$host_cpu" != ia64; then
9186
*** Warning: the GNU linker, at least up to release 2.19, is reported
9187
*** to be unable to reliably create shared libraries on AIX.
9188
*** Therefore, libtool is disabling shared libraries support. If you
9189
*** really care for shared libraries, you may want to install binutils
9190
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9191
*** You will then need to restart the configuration process.
9200
# see comment about AmigaOS4 .so support
9201
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202
archive_expsym_cmds=''
9205
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)'
9206
hardcode_libdir_flag_spec='-L$libdir'
9207
hardcode_minus_L=yes
9213
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9214
allow_undefined_flag=unsupported
9215
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9216
# support --undefined. This deserves some investigation. FIXME
9217
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9223
cygwin* | mingw* | pw32* | cegcc*)
9224
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9225
# as there is no search path for DLLs.
9226
hardcode_libdir_flag_spec='-L$libdir'
9227
export_dynamic_flag_spec='${wl}--export-all-symbols'
9228
allow_undefined_flag=unsupported
9229
always_export_symbols=no
9230
enable_shared_with_static_runtimes=yes
9231
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'
9232
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9234
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9235
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9236
# If the export-symbols file already is a .def file (1st line
9237
# is EXPORTS), use it as is; otherwise, prepend...
9238
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9239
cp $export_symbols $output_objdir/$soname.def;
9241
echo EXPORTS > $output_objdir/$soname.def;
9242
cat $export_symbols >> $output_objdir/$soname.def;
9244
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9251
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252
link_all_deplibs=yes
9257
hardcode_shlibpath_var=no
9258
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9259
export_dynamic_flag_spec='${wl}-E'
9260
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9261
# Instead, shared libraries are loaded at an image base (0x10000000 by
9262
# default) and relocated if they conflict, which is a slow very memory
9263
# consuming and fragmenting process. To avoid this, we pick a random,
9264
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9265
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9266
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9267
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'
9270
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9272
if test "$host_os" = linux-dietlibc; then
9273
case $cc_basename in
9274
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9277
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9278
&& test "$tmp_diet" = no
9280
tmp_addflag=' $pic_flag'
9281
tmp_sharedflag='-shared'
9282
case $cc_basename,$host_cpu in
9283
pgcc*) # Portland Group C compiler
9284
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'
9285
tmp_addflag=' $pic_flag'
9287
pgf77* | pgf90* | pgf95* | pgfortran*)
9288
# Portland Group f77 and f90 compilers
9289
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'
9290
tmp_addflag=' $pic_flag -Mnomain' ;;
9291
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9292
tmp_addflag=' -i_dynamic' ;;
9293
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9294
tmp_addflag=' -i_dynamic -nofor_main' ;;
9295
ifc* | ifort*) # Intel Fortran compiler
9296
tmp_addflag=' -nofor_main' ;;
9297
lf95*) # Lahey Fortran 8.1
9298
whole_archive_flag_spec=
9299
tmp_sharedflag='--shared' ;;
9300
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9301
tmp_sharedflag='-qmkshrobj'
9303
nvcc*) # Cuda Compiler Driver 2.2
9304
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'
9305
compiler_needs_object=yes
9308
case `$CC -V 2>&1 | sed 5q` in
9309
*Sun\ C*) # Sun C 5.9
9310
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'
9311
compiler_needs_object=yes
9312
tmp_sharedflag='-G' ;;
9313
*Sun\ F*) # Sun Fortran 8.3
9314
tmp_sharedflag='-G' ;;
9316
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9318
if test "x$supports_anon_versioning" = xyes; then
9319
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9320
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9321
echo "local: *; };" >> $output_objdir/$libname.ver~
9322
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9325
case $cc_basename in
9326
xlf* | bgf* | bgxlf* | mpixlf*)
9327
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9328
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9329
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9330
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9331
if test "x$supports_anon_versioning" = xyes; then
9332
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9333
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334
echo "local: *; };" >> $output_objdir/$libname.ver~
9335
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9345
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9346
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9349
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9355
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9359
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9360
*** create shared libraries on Solaris systems. Therefore, libtool
9361
*** is disabling shared libraries support. We urge you to upgrade GNU
9362
*** binutils to release 2.9.1 or newer. Another option is to modify
9363
*** your PATH or compiler configuration so that the native linker is
9364
*** used, and then restart.
9367
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9368
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9375
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9376
case `$LD -v 2>&1` in
9377
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9381
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9382
*** reliably create shared libraries on SCO systems. Therefore, libtool
9383
*** is disabling shared libraries support. We urge you to upgrade GNU
9384
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9385
*** your PATH or compiler configuration so that the native linker is
9386
*** used, and then restart.
9391
# For security reasons, it is highly recommended that you always
9392
# use absolute paths for naming shared libraries, and exclude the
9393
# DT_RUNPATH tag from executables and libraries. But doing so
9394
# requires that you compile everything twice, which is a pain.
9395
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9397
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9407
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9410
hardcode_shlibpath_var=no
9414
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9415
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9423
if test "$ld_shlibs" = no; then
9425
hardcode_libdir_flag_spec=
9426
export_dynamic_flag_spec=
9427
whole_archive_flag_spec=
9430
# PORTME fill in a description of your system's linker (not GNU ld)
9433
allow_undefined_flag=unsupported
9434
always_export_symbols=yes
9435
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'
9436
# Note: this linker hardcodes the directories in LIBPATH if there
9437
# are no directories specified by -L.
9438
hardcode_minus_L=yes
9439
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9440
# Neither direct hardcoding nor static linking is supported with a
9442
hardcode_direct=unsupported
9447
if test "$host_cpu" = ia64; then
9448
# On IA64, the linker does run time linking by default, so we don't
9449
# have to do anything special.
9450
aix_use_runtimelinking=no
9451
exp_sym_flag='-Bexport'
9454
# If we're using GNU nm, then we don't want the "-C" option.
9455
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9456
# Also, AIX nm treats weak defined symbols like other global
9457
# defined symbols, whereas GNU nm marks them as "W".
9458
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9459
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'
9461
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'
9463
aix_use_runtimelinking=no
9465
# Test if we are trying to use run time linking or normal
9466
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9467
# need to do runtime linking.
9468
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9469
for ld_flag in $LDFLAGS; do
9470
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9471
aix_use_runtimelinking=yes
9478
exp_sym_flag='-bexport'
9479
no_entry_flag='-bnoentry'
9482
# When large executables or shared objects are built, AIX ld can
9483
# have problems creating the table of contents. If linking a library
9484
# or program results in "error TOC overflow" add -mminimal-toc to
9485
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9486
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9490
hardcode_direct_absolute=yes
9491
hardcode_libdir_separator=':'
9492
link_all_deplibs=yes
9493
file_list_spec='${wl}-f,'
9495
if test "$GCC" = yes; then
9496
case $host_os in aix4.[012]|aix4.[012].*)
9497
# We only want to do this on AIX 4.2 and lower, the check
9498
# below for broken collect2 doesn't work under 4.3+
9499
collect2name=`${CC} -print-prog-name=collect2`
9500
if test -f "$collect2name" &&
9501
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9503
# We have reworked collect2
9506
# We have old collect2
9507
hardcode_direct=unsupported
9508
# It fails to find uninstalled libraries when the uninstalled
9509
# path is not listed in the libpath. Setting hardcode_minus_L
9510
# to unsupported forces relinking
9511
hardcode_minus_L=yes
9512
hardcode_libdir_flag_spec='-L$libdir'
9513
hardcode_libdir_separator=
9517
shared_flag='-shared'
9518
if test "$aix_use_runtimelinking" = yes; then
9519
shared_flag="$shared_flag "'${wl}-G'
9523
if test "$host_cpu" = ia64; then
9524
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9525
# chokes on -Wl,-G. The following line is correct:
9528
if test "$aix_use_runtimelinking" = yes; then
9529
shared_flag='${wl}-G'
9531
shared_flag='${wl}-bM:SRE'
9536
export_dynamic_flag_spec='${wl}-bexpall'
9537
# It seems that -bexpall does not export symbols beginning with
9538
# underscore (_), so it is better to generate a list of symbols to export.
9539
always_export_symbols=yes
9540
if test "$aix_use_runtimelinking" = yes; then
9541
# Warning - without using the other runtime loading flags (-brtl),
9542
# -berok will link without error, but may produce a broken library.
9543
allow_undefined_flag='-berok'
9544
# Determine the default libpath from the value encoded in an
9546
if test "${lt_cv_aix_libpath+set}" = set; then
9547
aix_libpath=$lt_cv_aix_libpath
9549
if ${lt_cv_aix_libpath_+:} false; then :
9550
$as_echo_n "(cached) " >&6
9552
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553
/* end confdefs.h. */
9563
if ac_fn_c_try_link "$LINENO"; then :
9565
lt_aix_libpath_sed='
9566
/Import File Strings/,/^$/ {
9568
s/^0 *\([^ ]*\) *$/\1/
9572
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9573
# Check for a 64-bit object if we didn't find anything.
9574
if test -z "$lt_cv_aix_libpath_"; then
9575
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9578
rm -f core conftest.err conftest.$ac_objext \
9579
conftest$ac_exeext conftest.$ac_ext
9580
if test -z "$lt_cv_aix_libpath_"; then
9581
lt_cv_aix_libpath_="/usr/lib:/lib"
9586
aix_libpath=$lt_cv_aix_libpath_
9589
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9590
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"
9592
if test "$host_cpu" = ia64; then
9593
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9594
allow_undefined_flag="-z nodefs"
9595
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"
9597
# Determine the default libpath from the value encoded in an
9599
if test "${lt_cv_aix_libpath+set}" = set; then
9600
aix_libpath=$lt_cv_aix_libpath
9602
if ${lt_cv_aix_libpath_+:} false; then :
9603
$as_echo_n "(cached) " >&6
9605
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606
/* end confdefs.h. */
9616
if ac_fn_c_try_link "$LINENO"; then :
9618
lt_aix_libpath_sed='
9619
/Import File Strings/,/^$/ {
9621
s/^0 *\([^ ]*\) *$/\1/
9625
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9626
# Check for a 64-bit object if we didn't find anything.
9627
if test -z "$lt_cv_aix_libpath_"; then
9628
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9631
rm -f core conftest.err conftest.$ac_objext \
9632
conftest$ac_exeext conftest.$ac_ext
9633
if test -z "$lt_cv_aix_libpath_"; then
9634
lt_cv_aix_libpath_="/usr/lib:/lib"
9639
aix_libpath=$lt_cv_aix_libpath_
9642
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9643
# Warning - without using the other run time loading flags,
9644
# -berok will link without error, but may produce a broken library.
9645
no_undefined_flag=' ${wl}-bernotok'
9646
allow_undefined_flag=' ${wl}-berok'
9647
if test "$with_gnu_ld" = yes; then
9648
# We only use this code for GNU lds that support --whole-archive.
9649
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9651
# Exported symbols can be pulled into shared objects from archives
9652
whole_archive_flag_spec='$convenience'
9654
archive_cmds_need_lc=yes
9655
# This is similar to how AIX traditionally builds its shared libraries.
9656
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'
9664
# see comment about AmigaOS4 .so support
9665
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666
archive_expsym_cmds=''
9669
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)'
9670
hardcode_libdir_flag_spec='-L$libdir'
9671
hardcode_minus_L=yes
9677
export_dynamic_flag_spec=-rdynamic
9680
cygwin* | mingw* | pw32* | cegcc*)
9681
# When not using gcc, we currently assume that we are using
9682
# Microsoft Visual C++.
9683
# hardcode_libdir_flag_spec is actually meaningless, as there is
9684
# no search path for DLLs.
9685
case $cc_basename in
9688
hardcode_libdir_flag_spec=' '
9689
allow_undefined_flag=unsupported
9690
always_export_symbols=yes
9692
# Tell ltmain to make .lib files, not .a files.
9694
# Tell ltmain to make .dll files, not .so files.
9696
# FIXME: Setting linknames here is a bad hack.
9697
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9698
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9699
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9701
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9703
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9705
# The linker will not automatically build a static lib if we build a DLL.
9706
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9707
enable_shared_with_static_runtimes=yes
9708
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9709
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9711
old_postinstall_cmds='chmod 644 $oldlib'
9712
postlink_cmds='lt_outputfile="@OUTPUT@"~
9713
lt_tool_outputfile="@TOOL_OUTPUT@"~
9714
case $lt_outputfile in
9717
lt_outputfile="$lt_outputfile.exe"
9718
lt_tool_outputfile="$lt_tool_outputfile.exe"
9721
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9722
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9723
$RM "$lt_outputfile.manifest";
9727
# Assume MSVC wrapper
9728
hardcode_libdir_flag_spec=' '
9729
allow_undefined_flag=unsupported
9730
# Tell ltmain to make .lib files, not .a files.
9732
# Tell ltmain to make .dll files, not .so files.
9734
# FIXME: Setting linknames here is a bad hack.
9735
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9736
# The linker will automatically build a .lib file if we build a DLL.
9737
old_archive_from_new_cmds='true'
9738
# FIXME: Should let the user specify the lib program.
9739
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9740
enable_shared_with_static_runtimes=yes
9745
darwin* | rhapsody*)
9748
archive_cmds_need_lc=no
9750
hardcode_automatic=yes
9751
hardcode_shlibpath_var=unsupported
9752
if test "$lt_cv_ld_force_load" = "yes"; then
9753
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\"`'
9756
whole_archive_flag_spec=''
9758
link_all_deplibs=yes
9759
allow_undefined_flag="$_lt_dar_allow_undefined"
9760
case $cc_basename in
9761
ifort*) _lt_dar_can_shared=yes ;;
9762
*) _lt_dar_can_shared=$GCC ;;
9764
if test "$_lt_dar_can_shared" = "yes"; then
9765
output_verbose_link_cmd=func_echo_all
9766
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9767
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9768
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}"
9769
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}"
9778
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779
hardcode_libdir_flag_spec='-L$libdir'
9780
hardcode_shlibpath_var=no
9783
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9784
# support. Future versions do this automatically, but an explicit c++rt0.o
9785
# does not break anything, and helps significantly (at the cost of a little
9788
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9789
hardcode_libdir_flag_spec='-R$libdir'
9791
hardcode_shlibpath_var=no
9794
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9796
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9798
hardcode_minus_L=yes
9799
hardcode_shlibpath_var=no
9802
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9803
freebsd* | dragonfly*)
9804
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9805
hardcode_libdir_flag_spec='-R$libdir'
9807
hardcode_shlibpath_var=no
9811
if test "$GCC" = yes; then
9812
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'
9814
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'
9816
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9817
hardcode_libdir_separator=:
9820
# hardcode_minus_L: Not really in the search PATH,
9821
# but as the default location of the library.
9822
hardcode_minus_L=yes
9823
export_dynamic_flag_spec='${wl}-E'
9827
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9828
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9830
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9832
if test "$with_gnu_ld" = no; then
9833
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9834
hardcode_libdir_separator=:
9836
hardcode_direct_absolute=yes
9837
export_dynamic_flag_spec='${wl}-E'
9838
# hardcode_minus_L: Not really in the search PATH,
9839
# but as the default location of the library.
9840
hardcode_minus_L=yes
9845
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9848
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9851
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9854
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9860
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9863
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9867
# Older versions of the 11.00 compiler do not understand -b yet
9868
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9870
$as_echo_n "checking if $CC understands -b... " >&6; }
9871
if ${lt_cv_prog_compiler__b+:} false; then :
9872
$as_echo_n "(cached) " >&6
9874
lt_cv_prog_compiler__b=no
9875
save_LDFLAGS="$LDFLAGS"
9876
LDFLAGS="$LDFLAGS -b"
9877
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9878
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9879
# The linker can only warn and ignore the option if not recognized
9880
# So say no if there are warnings
9881
if test -s conftest.err; then
9882
# Append any errors to the config.log.
9883
cat conftest.err 1>&5
9884
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9885
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9886
if diff conftest.exp conftest.er2 >/dev/null; then
9887
lt_cv_prog_compiler__b=yes
9890
lt_cv_prog_compiler__b=yes
9894
LDFLAGS="$save_LDFLAGS"
9897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9898
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9900
if test x"$lt_cv_prog_compiler__b" = xyes; then
9901
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9903
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9909
if test "$with_gnu_ld" = no; then
9910
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911
hardcode_libdir_separator=:
9916
hardcode_shlibpath_var=no
9920
hardcode_direct_absolute=yes
9921
export_dynamic_flag_spec='${wl}-E'
9923
# hardcode_minus_L: Not really in the search PATH,
9924
# but as the default location of the library.
9925
hardcode_minus_L=yes
9931
irix5* | irix6* | nonstopux*)
9932
if test "$GCC" = yes; then
9933
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'
9934
# Try to use the -exported_symbol ld option, if it does not
9935
# work, assume that -exports_file does not work either and
9936
# implicitly export all symbols.
9937
# This should be the same for all languages, so no per-tag cache variable.
9938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9939
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9940
if ${lt_cv_irix_exported_symbol+:} false; then :
9941
$as_echo_n "(cached) " >&6
9943
save_LDFLAGS="$LDFLAGS"
9944
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9945
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946
/* end confdefs.h. */
9947
int foo (void) { return 0; }
9949
if ac_fn_c_try_link "$LINENO"; then :
9950
lt_cv_irix_exported_symbol=yes
9952
lt_cv_irix_exported_symbol=no
9954
rm -f core conftest.err conftest.$ac_objext \
9955
conftest$ac_exeext conftest.$ac_ext
9956
LDFLAGS="$save_LDFLAGS"
9958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9959
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9960
if test "$lt_cv_irix_exported_symbol" = yes; then
9961
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'
9964
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'
9965
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'
9967
archive_cmds_need_lc='no'
9968
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9969
hardcode_libdir_separator=:
9971
link_all_deplibs=yes
9975
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9976
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9978
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9980
hardcode_libdir_flag_spec='-R$libdir'
9982
hardcode_shlibpath_var=no
9986
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9989
hardcode_libdir_separator=:
9990
hardcode_shlibpath_var=no
9997
if test -f /usr/libexec/ld.so; then
9999
hardcode_shlibpath_var=no
10000
hardcode_direct_absolute=yes
10001
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10002
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10003
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10004
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10005
export_dynamic_flag_spec='${wl}-E'
10008
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10009
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10010
hardcode_libdir_flag_spec='-R$libdir'
10013
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10014
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10024
hardcode_libdir_flag_spec='-L$libdir'
10025
hardcode_minus_L=yes
10026
allow_undefined_flag=unsupported
10027
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'
10028
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10032
if test "$GCC" = yes; then
10033
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10034
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'
10036
allow_undefined_flag=' -expect_unresolved \*'
10037
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'
10039
archive_cmds_need_lc='no'
10040
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10041
hardcode_libdir_separator=:
10044
osf4* | osf5*) # as osf3* with the addition of -msym flag
10045
if test "$GCC" = yes; then
10046
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10047
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'
10048
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10050
allow_undefined_flag=' -expect_unresolved \*'
10051
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'
10052
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~
10053
$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'
10055
# Both c and cxx compiler support -rpath directly
10056
hardcode_libdir_flag_spec='-rpath $libdir'
10058
archive_cmds_need_lc='no'
10059
hardcode_libdir_separator=:
10063
no_undefined_flag=' -z defs'
10064
if test "$GCC" = yes; then
10066
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10067
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10068
$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'
10070
case `$CC -V 2>&1` in
10073
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10075
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10079
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10080
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10081
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10085
hardcode_libdir_flag_spec='-R$libdir'
10086
hardcode_shlibpath_var=no
10088
solaris2.[0-5] | solaris2.[0-5].*) ;;
10090
# The compiler driver will combine and reorder linker options,
10091
# but understands `-z linker_flag'. GCC discards it without `$wl',
10092
# but is careful enough not to reorder.
10093
# Supported since Solaris 2.6 (maybe 2.5.1?)
10094
if test "$GCC" = yes; then
10095
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10097
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10101
link_all_deplibs=yes
10105
if test "x$host_vendor" = xsequent; then
10106
# Use $CC to link under sequent, because it throws in some extra .o
10107
# files that make .init and .fini sections work.
10108
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10110
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10112
hardcode_libdir_flag_spec='-L$libdir'
10113
hardcode_direct=yes
10114
hardcode_minus_L=yes
10115
hardcode_shlibpath_var=no
10119
case $host_vendor in
10121
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122
hardcode_direct=yes # is this really true???
10125
## LD is ld it makes a PLAMLIB
10126
## CC just makes a GrossModule.
10127
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10128
reload_cmds='$CC -r -o $output$reload_objs'
10132
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10136
runpath_var='LD_RUN_PATH'
10137
hardcode_shlibpath_var=no
10141
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142
hardcode_shlibpath_var=no
10143
export_dynamic_flag_spec='-Bexport'
10147
if test -d /usr/nec; then
10148
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149
hardcode_shlibpath_var=no
10150
runpath_var=LD_RUN_PATH
10151
hardcode_runpath_var=yes
10156
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10157
no_undefined_flag='${wl}-z,text'
10158
archive_cmds_need_lc=no
10159
hardcode_shlibpath_var=no
10160
runpath_var='LD_RUN_PATH'
10162
if test "$GCC" = yes; then
10163
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10171
sysv5* | sco3.2v5* | sco5v6*)
10172
# Note: We can NOT use -z defs as we might desire, because we do not
10173
# link with -lc, and that would cause any symbols used from libc to
10174
# always be unresolved, which means just about no library would
10175
# ever link correctly. If we're not using GNU ld we use -z text
10176
# though, which does catch some bad symbols but isn't as heavy-handed
10178
no_undefined_flag='${wl}-z,text'
10179
allow_undefined_flag='${wl}-z,nodefs'
10180
archive_cmds_need_lc=no
10181
hardcode_shlibpath_var=no
10182
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10183
hardcode_libdir_separator=':'
10184
link_all_deplibs=yes
10185
export_dynamic_flag_spec='${wl}-Bexport'
10186
runpath_var='LD_RUN_PATH'
10188
if test "$GCC" = yes; then
10189
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10198
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10199
hardcode_libdir_flag_spec='-L$libdir'
10200
hardcode_shlibpath_var=no
10208
if test x$host_vendor = xsni; then
10210
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10211
export_dynamic_flag_spec='${wl}-Blargedynsym'
10217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10218
$as_echo "$ld_shlibs" >&6; }
10219
test "$ld_shlibs" = no && can_build_shared=no
10221
with_gnu_ld=$with_gnu_ld
10238
# Do we need to explicitly link libc?
10240
case "x$archive_cmds_need_lc" in
10242
# Assume -lc should be added
10243
archive_cmds_need_lc=yes
10245
if test "$enable_shared" = yes && test "$GCC" = yes; then
10246
case $archive_cmds in
10248
# FIXME: we may have to deal with multi-command sequences.
10251
# Test whether the compiler implicitly links with -lc since on some
10252
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10253
# to ld, don't add -lc before -lgcc.
10254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10255
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10256
if ${lt_cv_archive_cmds_need_lc+:} false; then :
10257
$as_echo_n "(cached) " >&6
10260
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10262
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10263
(eval $ac_compile) 2>&5
10265
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10266
test $ac_status = 0; } 2>conftest.err; then
10269
libobjs=conftest.$ac_objext
10271
wl=$lt_prog_compiler_wl
10272
pic_flag=$lt_prog_compiler_pic
10278
lt_save_allow_undefined_flag=$allow_undefined_flag
10279
allow_undefined_flag=
10280
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10281
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10283
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10284
test $ac_status = 0; }
10286
lt_cv_archive_cmds_need_lc=no
10288
lt_cv_archive_cmds_need_lc=yes
10290
allow_undefined_flag=$lt_save_allow_undefined_flag
10292
cat conftest.err 1>&5
10297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10298
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10299
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10458
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10460
if test "$GCC" = yes; then
10462
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10463
*) lt_awk_arg="/^libraries:/" ;;
10466
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10467
*) lt_sed_strip_eq="s,=/,/,g" ;;
10469
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10470
case $lt_search_path_spec in
10472
# if the path contains ";" then we assume it to be the separator
10473
# otherwise default to the standard path separator (i.e. ":") - it is
10474
# assumed that no part of a normal pathname contains ";" but that should
10475
# okay in the real world where ";" in dirpaths is itself problematic.
10476
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10479
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10482
# Ok, now we have the path, separated by spaces, we can step through it
10483
# and add multilib dir if necessary.
10484
lt_tmp_lt_search_path_spec=
10485
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10486
for lt_sys_path in $lt_search_path_spec; do
10487
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10488
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10490
test -d "$lt_sys_path" && \
10491
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10494
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10495
BEGIN {RS=" "; FS="/|\n";} {
10498
for (lt_i = NF; lt_i > 0; lt_i--) {
10499
if ($lt_i != "" && $lt_i != ".") {
10500
if ($lt_i == "..") {
10503
if (lt_count == 0) {
10504
lt_foo="/" $lt_i lt_foo;
10511
if (lt_foo != "") { lt_freq[lt_foo]++; }
10512
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10514
# AWK program above erroneously prepends '/' to C:/dos/paths
10517
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10518
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
10520
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10522
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10524
library_names_spec=
10525
libname_spec='lib$name'
10529
postuninstall_cmds=
10533
shlibpath_overrides_runpath=unknown
10535
dynamic_linker="$host_os ld.so"
10536
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10537
need_lib_prefix=unknown
10538
hardcode_into_libs=no
10540
# when you set need_version to no, make sure it does not cause -set_version
10541
# flags to be left without arguments
10542
need_version=unknown
10546
version_type=linux # correct to gnu/linux during the next big refactor
10547
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10548
shlibpath_var=LIBPATH
10550
# AIX 3 has no versioning support, so we append a major version to the name.
10551
soname_spec='${libname}${release}${shared_ext}$major'
10555
version_type=linux # correct to gnu/linux during the next big refactor
10558
hardcode_into_libs=yes
10559
if test "$host_cpu" = ia64; then
10560
# AIX 5 supports IA64
10561
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10562
shlibpath_var=LD_LIBRARY_PATH
10564
# With GCC up to 2.95.x, collect2 would create an import file
10565
# for dependence libraries. The import file would start with
10566
# the line `#! .'. This would cause the generated library to
10567
# depend on `.', always an invalid library. This was fixed in
10568
# development snapshots of GCC prior to 3.0.
10570
aix4 | aix4.[01] | aix4.[01].*)
10571
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10573
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10576
can_build_shared=no
10580
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10581
# soname into executable. Probably we can add versioning support to
10582
# collect2, so additional links can be useful in future.
10583
if test "$aix_use_runtimelinking" = yes; then
10584
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10585
# instead of lib<name>.a to let people know that these are not
10586
# typical AIX shared libraries.
10587
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589
# We preserve .a as extension for shared libraries through AIX4.2
10590
# and later when we are not doing run time linking.
10591
library_names_spec='${libname}${release}.a $libname.a'
10592
soname_spec='${libname}${release}${shared_ext}$major'
10594
shlibpath_var=LIBPATH
10601
# Since July 2007 AmigaOS4 officially supports .so libraries.
10602
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606
library_names_spec='$libname.ixlibrary $libname.a'
10607
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10608
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'
10614
library_names_spec='${libname}${shared_ext}'
10615
dynamic_linker="$host_os ld.so"
10616
shlibpath_var=LIBRARY_PATH
10620
version_type=linux # correct to gnu/linux during the next big refactor
10622
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623
soname_spec='${libname}${release}${shared_ext}$major'
10624
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10625
shlibpath_var=LD_LIBRARY_PATH
10626
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10627
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10628
# the default ld.so.conf also contains /usr/contrib/lib and
10629
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10630
# libtool to hard-code these into programs
10633
cygwin* | mingw* | pw32* | cegcc*)
10634
version_type=windows
10639
case $GCC,$cc_basename in
10642
library_names_spec='$libname.dll.a'
10643
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10644
postinstall_cmds='base_file=`basename \${file}`~
10645
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10646
dldir=$destdir/`dirname \$dlpath`~
10647
test -d \$dldir || mkdir -p \$dldir~
10648
$install_prog $dir/$dlname \$dldir/$dlname~
10649
chmod a+x \$dldir/$dlname~
10650
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10651
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10653
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10654
dlpath=$dir/\$dldll~
10656
shlibpath_overrides_runpath=yes
10660
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10661
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10663
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10666
# MinGW DLLs use traditional 'lib' prefix
10667
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10670
# pw32 DLLs use 'pw' prefix rather than 'lib'
10671
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10674
dynamic_linker='Win32 ld.exe'
10679
libname_spec='$name'
10680
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10681
library_names_spec='${libname}.dll.lib'
10685
sys_lib_search_path_spec=
10688
for lt_path in $LIB
10691
# Let DOS variable expansion print the short 8.3 style file name.
10692
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10693
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10696
# Convert to MSYS style.
10697
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10700
# Convert to unix form, then to dos form, then back to unix form
10701
# but this time dos style (no spaces!) so that the unix form looks
10702
# like /cygdrive/c/PROGRA~1:/cygdr...
10703
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10704
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10705
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10708
sys_lib_search_path_spec="$LIB"
10709
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10710
# It is most probably a Windows format PATH.
10711
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10713
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10715
# FIXME: find the short name or the path components, as spaces are
10716
# common. (e.g. "Program Files" -> "PROGRA~1")
10720
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10721
postinstall_cmds='base_file=`basename \${file}`~
10722
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10723
dldir=$destdir/`dirname \$dlpath`~
10724
test -d \$dldir || mkdir -p \$dldir~
10725
$install_prog $dir/$dlname \$dldir/$dlname'
10726
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10727
dlpath=$dir/\$dldll~
10729
shlibpath_overrides_runpath=yes
10730
dynamic_linker='Win32 link.exe'
10734
# Assume MSVC wrapper
10735
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10736
dynamic_linker='Win32 ld.exe'
10739
# FIXME: first we should search . and the directory the executable is in
10743
darwin* | rhapsody*)
10744
dynamic_linker="$host_os dyld"
10745
version_type=darwin
10748
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10749
soname_spec='${libname}${release}${major}$shared_ext'
10750
shlibpath_overrides_runpath=yes
10751
shlibpath_var=DYLD_LIBRARY_PATH
10752
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10754
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10755
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10759
version_type=linux # correct to gnu/linux during the next big refactor
10762
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10763
soname_spec='${libname}${release}${shared_ext}$major'
10764
shlibpath_var=LD_LIBRARY_PATH
10767
freebsd* | dragonfly*)
10768
# DragonFly does not have aout. When/if they implement a new
10769
# versioning mechanism, adjust this.
10770
if test -x /usr/bin/objformat; then
10771
objformat=`/usr/bin/objformat`
10774
freebsd[23].*) objformat=aout ;;
10775
*) objformat=elf ;;
10778
version_type=freebsd-$objformat
10779
case $version_type in
10781
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10786
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10790
shlibpath_var=LD_LIBRARY_PATH
10793
shlibpath_overrides_runpath=yes
10795
freebsd3.[01]* | freebsdelf3.[01]*)
10796
shlibpath_overrides_runpath=yes
10797
hardcode_into_libs=yes
10799
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10800
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10801
shlibpath_overrides_runpath=no
10802
hardcode_into_libs=yes
10804
*) # from 4.6 on, and DragonFly
10805
shlibpath_overrides_runpath=yes
10806
hardcode_into_libs=yes
10812
version_type=linux # correct to gnu/linux during the next big refactor
10815
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10816
soname_spec='${libname}${release}${shared_ext}$major'
10817
shlibpath_var=LD_LIBRARY_PATH
10818
shlibpath_overrides_runpath=no
10819
hardcode_into_libs=yes
10823
version_type=linux # correct to gnu/linux during the next big refactor
10826
dynamic_linker="$host_os runtime_loader"
10827
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10828
soname_spec='${libname}${release}${shared_ext}$major'
10829
shlibpath_var=LIBRARY_PATH
10830
shlibpath_overrides_runpath=yes
10831
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10832
hardcode_into_libs=yes
10835
hpux9* | hpux10* | hpux11*)
10836
# Give a soname corresponding to the major version so that dld.sl refuses to
10837
# link against other versions.
10844
hardcode_into_libs=yes
10845
dynamic_linker="$host_os dld.so"
10846
shlibpath_var=LD_LIBRARY_PATH
10847
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10848
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849
soname_spec='${libname}${release}${shared_ext}$major'
10850
if test "X$HPUX_IA64_MODE" = X32; then
10851
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10853
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10855
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10859
hardcode_into_libs=yes
10860
dynamic_linker="$host_os dld.sl"
10861
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10862
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10863
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864
soname_spec='${libname}${release}${shared_ext}$major'
10865
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10866
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10870
dynamic_linker="$host_os dld.sl"
10871
shlibpath_var=SHLIB_PATH
10872
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874
soname_spec='${libname}${release}${shared_ext}$major'
10877
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10878
postinstall_cmds='chmod 555 $lib'
10879
# or fails outright, so override atomically:
10880
install_override_mode=555
10884
version_type=linux # correct to gnu/linux during the next big refactor
10887
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10888
soname_spec='${libname}${release}${shared_ext}$major'
10889
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10890
shlibpath_var=LD_LIBRARY_PATH
10891
shlibpath_overrides_runpath=no
10892
hardcode_into_libs=yes
10895
irix5* | irix6* | nonstopux*)
10897
nonstopux*) version_type=nonstopux ;;
10899
if test "$lt_cv_prog_gnu_ld" = yes; then
10900
version_type=linux # correct to gnu/linux during the next big refactor
10907
soname_spec='${libname}${release}${shared_ext}$major'
10908
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10910
irix5* | nonstopux*)
10911
libsuff= shlibsuff=
10914
case $LD in # libtool.m4 will add one of these switches to LD
10915
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10916
libsuff= shlibsuff= libmagic=32-bit;;
10917
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10918
libsuff=32 shlibsuff=N32 libmagic=N32;;
10919
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10920
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10921
*) libsuff= shlibsuff= libmagic=never-match;;
10925
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10926
shlibpath_overrides_runpath=no
10927
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10928
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10929
hardcode_into_libs=yes
10932
# No shared lib support for Linux oldld, aout, or coff.
10933
linux*oldld* | linux*aout* | linux*coff*)
10937
# This must be glibc/ELF.
10938
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10939
version_type=linux # correct to gnu/linux during the next big refactor
10942
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943
soname_spec='${libname}${release}${shared_ext}$major'
10944
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10945
shlibpath_var=LD_LIBRARY_PATH
10946
shlibpath_overrides_runpath=no
10948
# Some binutils ld are patched to set DT_RUNPATH
10949
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10950
$as_echo_n "(cached) " >&6
10952
lt_cv_shlibpath_overrides_runpath=no
10953
save_LDFLAGS=$LDFLAGS
10954
save_libdir=$libdir
10955
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10956
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10957
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958
/* end confdefs.h. */
10968
if ac_fn_c_try_link "$LINENO"; then :
10969
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10970
lt_cv_shlibpath_overrides_runpath=yes
10973
rm -f core conftest.err conftest.$ac_objext \
10974
conftest$ac_exeext conftest.$ac_ext
10975
LDFLAGS=$save_LDFLAGS
10976
libdir=$save_libdir
10980
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10982
# This implies no fast_install, which is unacceptable.
10983
# Some rework will be needed to allow for fast_install
10984
# before this can be enabled.
10985
hardcode_into_libs=yes
10987
# Add ABI-specific directories to the system library path.
10988
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10990
# Append ld.so.conf contents to the search path
10991
if test -f /etc/ld.so.conf; then
10992
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' ' '`
10993
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10997
# We used to test for /lib/ld.so.1 and disable shared libraries on
10998
# powerpc, because MkLinux only supported shared libraries with the
10999
# GNU dynamic linker. Since this was broken with cross compilers,
11000
# most powerpc-linux boxes support dynamic linking these days and
11001
# people can always --disable-shared, the test was removed, and we
11002
# assume the GNU/Linux dynamic linker is in use.
11003
dynamic_linker='GNU/Linux ld.so'
11010
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11011
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11012
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11013
dynamic_linker='NetBSD (a.out) ld.so'
11015
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11016
soname_spec='${libname}${release}${shared_ext}$major'
11017
dynamic_linker='NetBSD ld.elf_so'
11019
shlibpath_var=LD_LIBRARY_PATH
11020
shlibpath_overrides_runpath=yes
11021
hardcode_into_libs=yes
11025
version_type=linux # correct to gnu/linux during the next big refactor
11026
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027
shlibpath_var=LD_LIBRARY_PATH
11028
shlibpath_overrides_runpath=yes
11035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036
soname_spec='${libname}${release}${shared_ext}$major'
11037
shlibpath_var=LD_LIBRARY_PATH
11038
shlibpath_overrides_runpath=no
11039
hardcode_into_libs=yes
11040
dynamic_linker='ldqnx.so'
11045
sys_lib_dlsearch_path_spec="/usr/lib"
11047
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11049
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11050
*) need_version=no ;;
11052
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11053
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11054
shlibpath_var=LD_LIBRARY_PATH
11055
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11057
openbsd2.[89] | openbsd2.[89].*)
11058
shlibpath_overrides_runpath=no
11061
shlibpath_overrides_runpath=yes
11065
shlibpath_overrides_runpath=yes
11070
libname_spec='$name'
11073
library_names_spec='$libname${shared_ext} $libname.a'
11074
dynamic_linker='OS/2 ld.exe'
11075
shlibpath_var=LIBPATH
11078
osf3* | osf4* | osf5*)
11082
soname_spec='${libname}${release}${shared_ext}$major'
11083
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11084
shlibpath_var=LD_LIBRARY_PATH
11085
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11086
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11094
version_type=linux # correct to gnu/linux during the next big refactor
11097
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098
soname_spec='${libname}${release}${shared_ext}$major'
11099
shlibpath_var=LD_LIBRARY_PATH
11100
shlibpath_overrides_runpath=yes
11101
hardcode_into_libs=yes
11102
# ldd complains unless libraries are executable
11103
postinstall_cmds='chmod +x $lib'
11108
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11109
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11110
shlibpath_var=LD_LIBRARY_PATH
11111
shlibpath_overrides_runpath=yes
11112
if test "$with_gnu_ld" = yes; then
11119
version_type=linux # correct to gnu/linux during the next big refactor
11120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121
soname_spec='${libname}${release}${shared_ext}$major'
11122
shlibpath_var=LD_LIBRARY_PATH
11123
case $host_vendor in
11125
shlibpath_overrides_runpath=no
11127
runpath_var=LD_RUN_PATH
11135
shlibpath_overrides_runpath=no
11136
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11142
if test -d /usr/nec ;then
11143
version_type=linux # correct to gnu/linux during the next big refactor
11144
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11145
soname_spec='$libname${shared_ext}.$major'
11146
shlibpath_var=LD_LIBRARY_PATH
11150
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11151
version_type=freebsd-elf
11154
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11155
soname_spec='${libname}${release}${shared_ext}$major'
11156
shlibpath_var=LD_LIBRARY_PATH
11157
shlibpath_overrides_runpath=yes
11158
hardcode_into_libs=yes
11159
if test "$with_gnu_ld" = yes; then
11160
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11162
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11165
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11169
sys_lib_dlsearch_path_spec='/usr/lib'
11173
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11174
version_type=linux # correct to gnu/linux during the next big refactor
11177
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178
shlibpath_var=LD_LIBRARY_PATH
11179
shlibpath_overrides_runpath=no
11180
hardcode_into_libs=yes
11184
version_type=linux # correct to gnu/linux during the next big refactor
11185
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186
soname_spec='${libname}${release}${shared_ext}$major'
11187
shlibpath_var=LD_LIBRARY_PATH
11194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11195
$as_echo "$dynamic_linker" >&6; }
11196
test "$dynamic_linker" = no && can_build_shared=no
11198
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11199
if test "$GCC" = yes; then
11200
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11203
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11204
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11206
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11207
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11302
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11304
if test -n "$hardcode_libdir_flag_spec" ||
11305
test -n "$runpath_var" ||
11306
test "X$hardcode_automatic" = "Xyes" ; then
11308
# We can hardcode non-existent directories.
11309
if test "$hardcode_direct" != no &&
11310
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11311
# have to relink, otherwise we might link with an installed library
11312
# when we should be linking with a yet-to-be-installed one
11313
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11314
test "$hardcode_minus_L" != no; then
11315
# Linking always hardcodes the temporary library directory.
11316
hardcode_action=relink
11318
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11319
hardcode_action=immediate
11322
# We cannot hardcode anything, or else we can only hardcode existing
11324
hardcode_action=unsupported
11326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11327
$as_echo "$hardcode_action" >&6; }
11329
if test "$hardcode_action" = relink ||
11330
test "$inherit_rpath" = yes; then
11331
# Fast installation is not supported
11332
enable_fast_install=no
11333
elif test "$shlibpath_overrides_runpath" = yes ||
11334
test "$enable_shared" = no; then
11335
# Fast installation is not necessary
11336
enable_fast_install=needless
11344
if test "x$enable_dlopen" != xyes; then
11345
enable_dlopen=unknown
11346
enable_dlopen_self=unknown
11347
enable_dlopen_self_static=unknown
11354
lt_cv_dlopen="load_add_on"
11356
lt_cv_dlopen_self=yes
11359
mingw* | pw32* | cegcc*)
11360
lt_cv_dlopen="LoadLibrary"
11365
lt_cv_dlopen="dlopen"
11370
# if libdl is installed we need to link against it
11371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11372
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11373
if ${ac_cv_lib_dl_dlopen+:} false; then :
11374
$as_echo_n "(cached) " >&6
11376
ac_check_lib_save_LIBS=$LIBS
11378
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379
/* end confdefs.h. */
11381
/* Override any GCC internal prototype to avoid an error.
11382
Use char because int might match the return type of a GCC
11383
builtin and then its argument prototype would still apply. */
11396
if ac_fn_c_try_link "$LINENO"; then :
11397
ac_cv_lib_dl_dlopen=yes
11399
ac_cv_lib_dl_dlopen=no
11401
rm -f core conftest.err conftest.$ac_objext \
11402
conftest$ac_exeext conftest.$ac_ext
11403
LIBS=$ac_check_lib_save_LIBS
11405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11406
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11407
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11408
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11411
lt_cv_dlopen="dyld"
11413
lt_cv_dlopen_self=yes
11420
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11421
if test "x$ac_cv_func_shl_load" = xyes; then :
11422
lt_cv_dlopen="shl_load"
11424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11425
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11426
if ${ac_cv_lib_dld_shl_load+:} false; then :
11427
$as_echo_n "(cached) " >&6
11429
ac_check_lib_save_LIBS=$LIBS
11431
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11432
/* end confdefs.h. */
11434
/* Override any GCC internal prototype to avoid an error.
11435
Use char because int might match the return type of a GCC
11436
builtin and then its argument prototype would still apply. */
11444
return shl_load ();
11449
if ac_fn_c_try_link "$LINENO"; then :
11450
ac_cv_lib_dld_shl_load=yes
11452
ac_cv_lib_dld_shl_load=no
11454
rm -f core conftest.err conftest.$ac_objext \
11455
conftest$ac_exeext conftest.$ac_ext
11456
LIBS=$ac_check_lib_save_LIBS
11458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11459
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11460
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11461
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11463
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11464
if test "x$ac_cv_func_dlopen" = xyes; then :
11465
lt_cv_dlopen="dlopen"
11467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11468
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11469
if ${ac_cv_lib_dl_dlopen+:} false; then :
11470
$as_echo_n "(cached) " >&6
11472
ac_check_lib_save_LIBS=$LIBS
11474
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475
/* end confdefs.h. */
11477
/* Override any GCC internal prototype to avoid an error.
11478
Use char because int might match the return type of a GCC
11479
builtin and then its argument prototype would still apply. */
11492
if ac_fn_c_try_link "$LINENO"; then :
11493
ac_cv_lib_dl_dlopen=yes
11495
ac_cv_lib_dl_dlopen=no
11497
rm -f core conftest.err conftest.$ac_objext \
11498
conftest$ac_exeext conftest.$ac_ext
11499
LIBS=$ac_check_lib_save_LIBS
11501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11502
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11503
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11504
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11507
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11508
if ${ac_cv_lib_svld_dlopen+:} false; then :
11509
$as_echo_n "(cached) " >&6
11511
ac_check_lib_save_LIBS=$LIBS
11512
LIBS="-lsvld $LIBS"
11513
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514
/* end confdefs.h. */
11516
/* Override any GCC internal prototype to avoid an error.
11517
Use char because int might match the return type of a GCC
11518
builtin and then its argument prototype would still apply. */
11531
if ac_fn_c_try_link "$LINENO"; then :
11532
ac_cv_lib_svld_dlopen=yes
11534
ac_cv_lib_svld_dlopen=no
11536
rm -f core conftest.err conftest.$ac_objext \
11537
conftest$ac_exeext conftest.$ac_ext
11538
LIBS=$ac_check_lib_save_LIBS
11540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11541
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11542
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11543
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11546
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11547
if ${ac_cv_lib_dld_dld_link+:} false; then :
11548
$as_echo_n "(cached) " >&6
11550
ac_check_lib_save_LIBS=$LIBS
11552
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553
/* end confdefs.h. */
11555
/* Override any GCC internal prototype to avoid an error.
11556
Use char because int might match the return type of a GCC
11557
builtin and then its argument prototype would still apply. */
11565
return dld_link ();
11570
if ac_fn_c_try_link "$LINENO"; then :
11571
ac_cv_lib_dld_dld_link=yes
11573
ac_cv_lib_dld_dld_link=no
11575
rm -f core conftest.err conftest.$ac_objext \
11576
conftest$ac_exeext conftest.$ac_ext
11577
LIBS=$ac_check_lib_save_LIBS
11579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11580
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11581
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11582
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11603
if test "x$lt_cv_dlopen" != xno; then
11609
case $lt_cv_dlopen in
11611
save_CPPFLAGS="$CPPFLAGS"
11612
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11614
save_LDFLAGS="$LDFLAGS"
11615
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11618
LIBS="$lt_cv_dlopen_libs $LIBS"
11620
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11621
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11622
if ${lt_cv_dlopen_self+:} false; then :
11623
$as_echo_n "(cached) " >&6
11625
if test "$cross_compiling" = yes; then :
11626
lt_cv_dlopen_self=cross
11628
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11629
lt_status=$lt_dlunknown
11630
cat > conftest.$ac_ext <<_LT_EOF
11631
#line $LINENO "configure"
11632
#include "confdefs.h"
11641
# define LT_DLGLOBAL RTLD_GLOBAL
11644
# define LT_DLGLOBAL DL_GLOBAL
11646
# define LT_DLGLOBAL 0
11650
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11651
find out it does not work in some platform. */
11652
#ifndef LT_DLLAZY_OR_NOW
11654
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11657
# define LT_DLLAZY_OR_NOW DL_LAZY
11660
# define LT_DLLAZY_OR_NOW RTLD_NOW
11663
# define LT_DLLAZY_OR_NOW DL_NOW
11665
# define LT_DLLAZY_OR_NOW 0
11672
/* When -fvisbility=hidden is used, assume the code has been annotated
11673
correspondingly for the symbols needed. */
11674
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11675
int fnord () __attribute__((visibility("default")));
11678
int fnord () { return 42; }
11681
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11682
int status = $lt_dlunknown;
11686
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11689
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11690
else puts (dlerror ());
11692
/* dlclose (self); */
11700
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11701
(eval $ac_link) 2>&5
11703
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11704
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11705
(./conftest; exit; ) >&5 2>/dev/null
11707
case x$lt_status in
11708
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11709
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11710
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11713
# compilation failed
11714
lt_cv_dlopen_self=no
11721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11722
$as_echo "$lt_cv_dlopen_self" >&6; }
11724
if test "x$lt_cv_dlopen_self" = xyes; then
11725
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11727
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11728
if ${lt_cv_dlopen_self_static+:} false; then :
11729
$as_echo_n "(cached) " >&6
11731
if test "$cross_compiling" = yes; then :
11732
lt_cv_dlopen_self_static=cross
11734
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11735
lt_status=$lt_dlunknown
11736
cat > conftest.$ac_ext <<_LT_EOF
11737
#line $LINENO "configure"
11738
#include "confdefs.h"
11747
# define LT_DLGLOBAL RTLD_GLOBAL
11750
# define LT_DLGLOBAL DL_GLOBAL
11752
# define LT_DLGLOBAL 0
11756
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11757
find out it does not work in some platform. */
11758
#ifndef LT_DLLAZY_OR_NOW
11760
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11763
# define LT_DLLAZY_OR_NOW DL_LAZY
11766
# define LT_DLLAZY_OR_NOW RTLD_NOW
11769
# define LT_DLLAZY_OR_NOW DL_NOW
11771
# define LT_DLLAZY_OR_NOW 0
11778
/* When -fvisbility=hidden is used, assume the code has been annotated
11779
correspondingly for the symbols needed. */
11780
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11781
int fnord () __attribute__((visibility("default")));
11784
int fnord () { return 42; }
11787
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11788
int status = $lt_dlunknown;
11792
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11795
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11796
else puts (dlerror ());
11798
/* dlclose (self); */
11806
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11807
(eval $ac_link) 2>&5
11809
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11810
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11811
(./conftest; exit; ) >&5 2>/dev/null
11813
case x$lt_status in
11814
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11815
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11816
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11819
# compilation failed
11820
lt_cv_dlopen_self_static=no
11827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11828
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11831
CPPFLAGS="$save_CPPFLAGS"
11832
LDFLAGS="$save_LDFLAGS"
11837
case $lt_cv_dlopen_self in
11838
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11839
*) enable_dlopen_self=unknown ;;
11842
case $lt_cv_dlopen_self_static in
11843
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11844
*) enable_dlopen_self_static=unknown ;;
11866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11867
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11868
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11869
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11870
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11871
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11872
$as_echo "yes" >&6; }
11874
# FIXME - insert some real tests, host_os isn't really good enough
11877
if test -n "$STRIP" ; then
11878
striplib="$STRIP -x"
11879
old_striplib="$STRIP -S"
11880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11881
$as_echo "yes" >&6; }
11883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884
$as_echo "no" >&6; }
11888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889
$as_echo "no" >&6; }
11905
# Report which library types will actually be built
11906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11907
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11908
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11909
$as_echo "$can_build_shared" >&6; }
11911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11912
$as_echo_n "checking whether to build shared libraries... " >&6; }
11913
test "$can_build_shared" = "no" && enable_shared=no
11915
# On AIX, shared libraries and static libraries use the same namespace, and
11916
# are all built from PIC.
11919
test "$enable_shared" = yes && enable_static=no
11920
if test -n "$RANLIB"; then
11921
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11922
postinstall_cmds='$RANLIB $lib'
11927
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11928
test "$enable_shared" = yes && enable_static=no
11932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11933
$as_echo "$enable_shared" >&6; }
11935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11936
$as_echo_n "checking whether to build static libraries... " >&6; }
11937
# Make sure either enable_shared or enable_static is yes.
11938
test "$enable_shared" = yes || enable_static=yes
11939
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11940
$as_echo "$enable_static" >&6; }
11947
ac_cpp='$CPP $CPPFLAGS'
11948
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11949
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11950
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11957
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11958
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11959
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11961
if test -z "$F77" || test "X$F77" = "Xno"; then
11962
_lt_disable_F77=yes
11965
archive_cmds_need_lc_F77=no
11966
allow_undefined_flag_F77=
11967
always_export_symbols_F77=no
11968
archive_expsym_cmds_F77=
11969
export_dynamic_flag_spec_F77=
11970
hardcode_direct_F77=no
11971
hardcode_direct_absolute_F77=no
11972
hardcode_libdir_flag_spec_F77=
11973
hardcode_libdir_separator_F77=
11974
hardcode_minus_L_F77=no
11975
hardcode_automatic_F77=no
11976
inherit_rpath_F77=no
11978
module_expsym_cmds_F77=
11979
link_all_deplibs_F77=unknown
11980
old_archive_cmds_F77=$old_archive_cmds
11981
reload_flag_F77=$reload_flag
11982
reload_cmds_F77=$reload_cmds
11983
no_undefined_flag_F77=
11984
whole_archive_flag_spec_F77=
11985
enable_shared_with_static_runtimes_F77=no
11987
# Source file extension for f77 test sources.
11990
# Object file extension for compiled f77 test sources.
11994
# No sense in running all these tests if we already determined that
11995
# the F77 compiler isn't working. Some variables (like enable_shared)
11996
# are currently assumed to apply to all compilers on this platform,
11997
# and will be corrupted by setting them based on a non-working compiler.
11998
if test "$_lt_disable_F77" != yes; then
11999
# Code to be used in simple compile tests
12000
lt_simple_compile_test_code="\
12006
# Code to be used in simple link tests
12007
lt_simple_link_test_code="\
12012
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12019
# If no C compiler was specified, use CC.
12022
# If no C compiler flags were specified, use CFLAGS.
12023
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12025
# Allow CC to be a program name with arguments.
12029
# save warnings/boilerplate of simple test code
12030
ac_outfile=conftest.$ac_objext
12031
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12032
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12033
_lt_compiler_boilerplate=`cat conftest.err`
12036
ac_outfile=conftest.$ac_objext
12037
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12038
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12039
_lt_linker_boilerplate=`cat conftest.err`
12043
# Allow CC to be a program name with arguments.
12046
lt_save_CFLAGS=$CFLAGS
12051
for cc_temp in $compiler""; do
12053
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12054
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12059
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12062
if test -n "$compiler"; then
12063
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12064
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12065
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12066
$as_echo "$can_build_shared" >&6; }
12068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12069
$as_echo_n "checking whether to build shared libraries... " >&6; }
12070
test "$can_build_shared" = "no" && enable_shared=no
12072
# On AIX, shared libraries and static libraries use the same namespace, and
12073
# are all built from PIC.
12076
test "$enable_shared" = yes && enable_static=no
12077
if test -n "$RANLIB"; then
12078
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12079
postinstall_cmds='$RANLIB $lib'
12083
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12084
test "$enable_shared" = yes && enable_static=no
12088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12089
$as_echo "$enable_shared" >&6; }
12091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12092
$as_echo_n "checking whether to build static libraries... " >&6; }
12093
# Make sure either enable_shared or enable_static is yes.
12094
test "$enable_shared" = yes || enable_static=yes
12095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12096
$as_echo "$enable_static" >&6; }
12102
## There is no encapsulation within the following macros, do not change
12103
## the running order or otherwise move them around unless you know exactly
12104
## what you are doing...
12105
lt_prog_compiler_wl_F77=
12106
lt_prog_compiler_pic_F77=
12107
lt_prog_compiler_static_F77=
12110
if test "$GCC" = yes; then
12111
lt_prog_compiler_wl_F77='-Wl,'
12112
lt_prog_compiler_static_F77='-static'
12116
# All AIX code is PIC.
12117
if test "$host_cpu" = ia64; then
12118
# AIX 5 now supports IA64 processor
12119
lt_prog_compiler_static_F77='-Bstatic'
12126
# see comment about AmigaOS4 .so support
12127
lt_prog_compiler_pic_F77='-fPIC'
12130
# FIXME: we need at least 68020 code to build shared libraries, but
12131
# adding the `-m68020' flag to GCC prevents building anything better,
12133
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12138
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12139
# PIC is the default for these OSes.
12142
mingw* | cygwin* | pw32* | os2* | cegcc*)
12143
# This hack is so that the source file can tell whether it is being
12144
# built for inclusion in a dll (and should export symbols for example).
12145
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12146
# (--disable-auto-import) libraries
12147
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12150
darwin* | rhapsody*)
12151
# PIC is the default on this platform
12152
# Common symbols not allowed in MH_DYLIB files
12153
lt_prog_compiler_pic_F77='-fno-common'
12157
# PIC is the default for Haiku.
12158
# The "-static" flag exists, but is broken.
12159
lt_prog_compiler_static_F77=
12163
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12164
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12165
# sets the default TLS model and affects inlining.
12171
lt_prog_compiler_pic_F77='-fPIC'
12177
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12178
# Instead, we relocate shared libraries at runtime.
12182
# Just because we use GCC doesn't mean we suddenly get shared libraries
12183
# on systems that don't support them.
12184
lt_prog_compiler_can_build_shared_F77=no
12189
# QNX uses GNU C++, but need to define -shared option too, otherwise
12190
# it will coredump.
12191
lt_prog_compiler_pic_F77='-fPIC -shared'
12195
if test -d /usr/nec; then
12196
lt_prog_compiler_pic_F77=-Kconform_pic
12201
lt_prog_compiler_pic_F77='-fPIC'
12205
case $cc_basename in
12206
nvcc*) # Cuda Compiler Driver 2.2
12207
lt_prog_compiler_wl_F77='-Xlinker '
12208
if test -n "$lt_prog_compiler_pic_F77"; then
12209
lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
12214
# PORTME Check for flag to pass linker flags through the system compiler.
12217
lt_prog_compiler_wl_F77='-Wl,'
12218
if test "$host_cpu" = ia64; then
12219
# AIX 5 now supports IA64 processor
12220
lt_prog_compiler_static_F77='-Bstatic'
12222
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12226
mingw* | cygwin* | pw32* | os2* | cegcc*)
12227
# This hack is so that the source file can tell whether it is being
12228
# built for inclusion in a dll (and should export symbols for example).
12229
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12232
hpux9* | hpux10* | hpux11*)
12233
lt_prog_compiler_wl_F77='-Wl,'
12234
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12235
# not for PA HP-UX.
12241
lt_prog_compiler_pic_F77='+Z'
12244
# Is there a better lt_prog_compiler_static that works with the bundled CC?
12245
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12248
irix5* | irix6* | nonstopux*)
12249
lt_prog_compiler_wl_F77='-Wl,'
12250
# PIC (with -KPIC) is the default.
12251
lt_prog_compiler_static_F77='-non_shared'
12254
linux* | k*bsd*-gnu | kopensolaris*-gnu)
12255
case $cc_basename in
12256
# old Intel for x86_64 which still supported -KPIC.
12258
lt_prog_compiler_wl_F77='-Wl,'
12259
lt_prog_compiler_pic_F77='-KPIC'
12260
lt_prog_compiler_static_F77='-static'
12262
# icc used to be incompatible with GCC.
12263
# ICC 10 doesn't accept -KPIC any more.
12265
lt_prog_compiler_wl_F77='-Wl,'
12266
lt_prog_compiler_pic_F77='-fPIC'
12267
lt_prog_compiler_static_F77='-static'
12269
# Lahey Fortran 8.1.
12271
lt_prog_compiler_wl_F77='-Wl,'
12272
lt_prog_compiler_pic_F77='--shared'
12273
lt_prog_compiler_static_F77='--static'
12276
# NAG Fortran compiler
12277
lt_prog_compiler_wl_F77='-Wl,-Wl,,'
12278
lt_prog_compiler_pic_F77='-PIC'
12279
lt_prog_compiler_static_F77='-Bstatic'
12281
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12282
# Portland Group compilers (*not* the Pentium gcc compiler,
12283
# which looks to be a dead project)
12284
lt_prog_compiler_wl_F77='-Wl,'
12285
lt_prog_compiler_pic_F77='-fpic'
12286
lt_prog_compiler_static_F77='-Bstatic'
12289
lt_prog_compiler_wl_F77='-Wl,'
12290
# All Alpha code is PIC.
12291
lt_prog_compiler_static_F77='-non_shared'
12293
xl* | bgxl* | bgf* | mpixl*)
12294
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12295
lt_prog_compiler_wl_F77='-Wl,'
12296
lt_prog_compiler_pic_F77='-qpic'
12297
lt_prog_compiler_static_F77='-qstaticlink'
12300
case `$CC -V 2>&1 | sed 5q` in
12301
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12302
# Sun Fortran 8.3 passes all unrecognized flags to the linker
12303
lt_prog_compiler_pic_F77='-KPIC'
12304
lt_prog_compiler_static_F77='-Bstatic'
12305
lt_prog_compiler_wl_F77=''
12307
*Sun\ F* | *Sun*Fortran*)
12308
lt_prog_compiler_pic_F77='-KPIC'
12309
lt_prog_compiler_static_F77='-Bstatic'
12310
lt_prog_compiler_wl_F77='-Qoption ld '
12314
lt_prog_compiler_pic_F77='-KPIC'
12315
lt_prog_compiler_static_F77='-Bstatic'
12316
lt_prog_compiler_wl_F77='-Wl,'
12318
*Intel*\ [CF]*Compiler*)
12319
lt_prog_compiler_wl_F77='-Wl,'
12320
lt_prog_compiler_pic_F77='-fPIC'
12321
lt_prog_compiler_static_F77='-static'
12324
lt_prog_compiler_wl_F77='-Wl,'
12325
lt_prog_compiler_pic_F77='-fpic'
12326
lt_prog_compiler_static_F77='-Bstatic'
12334
lt_prog_compiler_pic_F77='-KPIC'
12335
lt_prog_compiler_static_F77='-Bstatic'
12339
# QNX uses GNU C++, but need to define -shared option too, otherwise
12340
# it will coredump.
12341
lt_prog_compiler_pic_F77='-fPIC -shared'
12344
osf3* | osf4* | osf5*)
12345
lt_prog_compiler_wl_F77='-Wl,'
12346
# All OSF/1 code is PIC.
12347
lt_prog_compiler_static_F77='-non_shared'
12351
lt_prog_compiler_static_F77='-non_shared'
12355
lt_prog_compiler_pic_F77='-KPIC'
12356
lt_prog_compiler_static_F77='-Bstatic'
12357
case $cc_basename in
12358
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12359
lt_prog_compiler_wl_F77='-Qoption ld ';;
12361
lt_prog_compiler_wl_F77='-Wl,';;
12366
lt_prog_compiler_wl_F77='-Qoption ld '
12367
lt_prog_compiler_pic_F77='-PIC'
12368
lt_prog_compiler_static_F77='-Bstatic'
12371
sysv4 | sysv4.2uw2* | sysv4.3*)
12372
lt_prog_compiler_wl_F77='-Wl,'
12373
lt_prog_compiler_pic_F77='-KPIC'
12374
lt_prog_compiler_static_F77='-Bstatic'
12378
if test -d /usr/nec ;then
12379
lt_prog_compiler_pic_F77='-Kconform_pic'
12380
lt_prog_compiler_static_F77='-Bstatic'
12384
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12385
lt_prog_compiler_wl_F77='-Wl,'
12386
lt_prog_compiler_pic_F77='-KPIC'
12387
lt_prog_compiler_static_F77='-Bstatic'
12391
lt_prog_compiler_wl_F77='-Wl,'
12392
lt_prog_compiler_can_build_shared_F77=no
12396
lt_prog_compiler_pic_F77='-pic'
12397
lt_prog_compiler_static_F77='-Bstatic'
12401
lt_prog_compiler_can_build_shared_F77=no
12407
# For platforms which do not support PIC, -DPIC is meaningless:
12409
lt_prog_compiler_pic_F77=
12412
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12417
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12418
if ${lt_cv_prog_compiler_pic_F77+:} false; then :
12419
$as_echo_n "(cached) " >&6
12421
lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
12423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
12424
$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
12425
lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
12428
# Check to make sure the PIC flag actually works.
12430
if test -n "$lt_prog_compiler_pic_F77"; then
12431
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12432
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
12433
if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
12434
$as_echo_n "(cached) " >&6
12436
lt_cv_prog_compiler_pic_works_F77=no
12437
ac_outfile=conftest.$ac_objext
12438
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12439
lt_compiler_flag="$lt_prog_compiler_pic_F77"
12440
# Insert the option either (1) after the last *FLAGS variable, or
12441
# (2) before a word containing "conftest.", or (3) at the end.
12442
# Note that $ac_compile itself does not contain backslashes and begins
12443
# with a dollar sign (not a hyphen), so the echo should work correctly.
12444
# The option is referenced via a variable to avoid confusing sed.
12445
lt_compile=`echo "$ac_compile" | $SED \
12446
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12447
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12448
-e 's:$: $lt_compiler_flag:'`
12449
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12450
(eval "$lt_compile" 2>conftest.err)
12452
cat conftest.err >&5
12453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454
if (exit $ac_status) && test -s "$ac_outfile"; then
12455
# The compiler can only warn and ignore the option if not recognized
12456
# So say no if there are warnings other than the usual output.
12457
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12458
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12459
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12460
lt_cv_prog_compiler_pic_works_F77=yes
12466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
12467
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
12469
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
12470
case $lt_prog_compiler_pic_F77 in
12472
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12475
lt_prog_compiler_pic_F77=
12476
lt_prog_compiler_can_build_shared_F77=no
12486
# Check to make sure the static flag actually works.
12488
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
12489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12490
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12491
if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
12492
$as_echo_n "(cached) " >&6
12494
lt_cv_prog_compiler_static_works_F77=no
12495
save_LDFLAGS="$LDFLAGS"
12496
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12497
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12498
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12499
# The linker can only warn and ignore the option if not recognized
12500
# So say no if there are warnings
12501
if test -s conftest.err; then
12502
# Append any errors to the config.log.
12503
cat conftest.err 1>&5
12504
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12505
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12506
if diff conftest.exp conftest.er2 >/dev/null; then
12507
lt_cv_prog_compiler_static_works_F77=yes
12510
lt_cv_prog_compiler_static_works_F77=yes
12514
LDFLAGS="$save_LDFLAGS"
12517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
12518
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
12520
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
12523
lt_prog_compiler_static_F77=
12529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12530
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12531
if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
12532
$as_echo_n "(cached) " >&6
12534
lt_cv_prog_compiler_c_o_F77=no
12535
$RM -r conftest 2>/dev/null
12539
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12541
lt_compiler_flag="-o out/conftest2.$ac_objext"
12542
# Insert the option either (1) after the last *FLAGS variable, or
12543
# (2) before a word containing "conftest.", or (3) at the end.
12544
# Note that $ac_compile itself does not contain backslashes and begins
12545
# with a dollar sign (not a hyphen), so the echo should work correctly.
12546
lt_compile=`echo "$ac_compile" | $SED \
12547
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12548
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12549
-e 's:$: $lt_compiler_flag:'`
12550
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12551
(eval "$lt_compile" 2>out/conftest.err)
12553
cat out/conftest.err >&5
12554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12557
# The compiler can only warn and ignore the option if not recognized
12558
# So say no if there are warnings
12559
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12560
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12561
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12562
lt_cv_prog_compiler_c_o_F77=yes
12567
# SGI C++ compiler will create directory out/ii_files/ for
12568
# template instantiation
12569
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12570
$RM out/* && rmdir out
12576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
12577
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
12581
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12582
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12583
if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
12584
$as_echo_n "(cached) " >&6
12586
lt_cv_prog_compiler_c_o_F77=no
12587
$RM -r conftest 2>/dev/null
12591
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12593
lt_compiler_flag="-o out/conftest2.$ac_objext"
12594
# Insert the option either (1) after the last *FLAGS variable, or
12595
# (2) before a word containing "conftest.", or (3) at the end.
12596
# Note that $ac_compile itself does not contain backslashes and begins
12597
# with a dollar sign (not a hyphen), so the echo should work correctly.
12598
lt_compile=`echo "$ac_compile" | $SED \
12599
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12600
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12601
-e 's:$: $lt_compiler_flag:'`
12602
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12603
(eval "$lt_compile" 2>out/conftest.err)
12605
cat out/conftest.err >&5
12606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12609
# The compiler can only warn and ignore the option if not recognized
12610
# So say no if there are warnings
12611
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12612
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12613
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12614
lt_cv_prog_compiler_c_o_F77=yes
12619
# SGI C++ compiler will create directory out/ii_files/ for
12620
# template instantiation
12621
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12622
$RM out/* && rmdir out
12628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
12629
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
12634
hard_links="nottested"
12635
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12636
# do not overwrite the value of need_locks provided by the user
12637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12638
$as_echo_n "checking if we can lock with hard links... " >&6; }
12641
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12643
ln conftest.a conftest.b 2>&5 || hard_links=no
12644
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12646
$as_echo "$hard_links" >&6; }
12647
if test "$hard_links" = no; then
12648
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12649
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12659
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12662
allow_undefined_flag_F77=
12663
always_export_symbols_F77=no
12665
archive_expsym_cmds_F77=
12666
compiler_needs_object_F77=no
12667
enable_shared_with_static_runtimes_F77=no
12668
export_dynamic_flag_spec_F77=
12669
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12670
hardcode_automatic_F77=no
12671
hardcode_direct_F77=no
12672
hardcode_direct_absolute_F77=no
12673
hardcode_libdir_flag_spec_F77=
12674
hardcode_libdir_separator_F77=
12675
hardcode_minus_L_F77=no
12676
hardcode_shlibpath_var_F77=unsupported
12677
inherit_rpath_F77=no
12678
link_all_deplibs_F77=unknown
12680
module_expsym_cmds_F77=
12681
old_archive_from_new_cmds_F77=
12682
old_archive_from_expsyms_cmds_F77=
12683
thread_safe_flag_spec_F77=
12684
whole_archive_flag_spec_F77=
12685
# include_expsyms should be a list of space-separated symbols to be *always*
12686
# included in the symbol list
12687
include_expsyms_F77=
12688
# exclude_expsyms can be an extended regexp of symbols to exclude
12689
# it will be wrapped by ` (' and `)$', so one must not match beginning or
12690
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12691
# as well as any symbol that contains `d'.
12692
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12693
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12694
# platforms (ab)use it in PIC code, but their linkers get confused if
12695
# the symbol is explicitly referenced. Since portable code cannot
12696
# rely on this symbol name, it's probably fine to never include it in
12697
# preloaded symbol tables.
12698
# Exclude shared library initialization/finalization symbols.
12699
extract_expsyms_cmds=
12702
cygwin* | mingw* | pw32* | cegcc*)
12703
# FIXME: the MSVC++ port hasn't been tested in a loooong time
12704
# When not using gcc, we currently assume that we are using
12705
# Microsoft Visual C++.
12706
if test "$GCC" != yes; then
12711
# we just hope/assume this is gcc and not c89 (= MSVC++)
12721
# On some targets, GNU ld is compatible enough with the native linker
12722
# that we're better off using the native interface for both.
12723
lt_use_gnu_ld_interface=no
12724
if test "$with_gnu_ld" = yes; then
12727
# The AIX port of GNU ld has always aspired to compatibility
12728
# with the native linker. However, as the warning in the GNU ld
12729
# block says, versions before 2.19.5* couldn't really create working
12730
# shared libraries, regardless of the interface used.
12731
case `$LD -v 2>&1` in
12732
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12733
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12734
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
12736
lt_use_gnu_ld_interface=yes
12741
lt_use_gnu_ld_interface=yes
12746
if test "$lt_use_gnu_ld_interface" = yes; then
12747
# If archive_cmds runs LD, not CC, wlarc should be empty
12750
# Set some defaults for GNU ld with shared library support. These
12751
# are reset later if shared libraries are not supported. Putting them
12752
# here allows them to be overridden if necessary.
12753
runpath_var=LD_RUN_PATH
12754
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12755
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12756
# ancient GNU ld didn't support --whole-archive et. al.
12757
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12758
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12760
whole_archive_flag_spec_F77=
12762
supports_anon_versioning=no
12763
case `$LD -v 2>&1` in
12764
*GNU\ gold*) supports_anon_versioning=yes ;;
12765
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12766
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12767
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12768
*\ 2.11.*) ;; # other 2.11 versions
12769
*) supports_anon_versioning=yes ;;
12772
# See if GNU ld supports shared libraries.
12775
# On AIX/PPC, the GNU linker is very broken
12776
if test "$host_cpu" != ia64; then
12780
*** Warning: the GNU linker, at least up to release 2.19, is reported
12781
*** to be unable to reliably create shared libraries on AIX.
12782
*** Therefore, libtool is disabling shared libraries support. If you
12783
*** really care for shared libraries, you may want to install binutils
12784
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12785
*** You will then need to restart the configuration process.
12794
# see comment about AmigaOS4 .so support
12795
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12796
archive_expsym_cmds_F77=''
12799
archive_cmds_F77='$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)'
12800
hardcode_libdir_flag_spec_F77='-L$libdir'
12801
hardcode_minus_L_F77=yes
12807
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12808
allow_undefined_flag_F77=unsupported
12809
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12810
# support --undefined. This deserves some investigation. FIXME
12811
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12817
cygwin* | mingw* | pw32* | cegcc*)
12818
# _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12819
# as there is no search path for DLLs.
12820
hardcode_libdir_flag_spec_F77='-L$libdir'
12821
export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
12822
allow_undefined_flag_F77=unsupported
12823
always_export_symbols_F77=no
12824
enable_shared_with_static_runtimes_F77=yes
12825
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12826
exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12828
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12829
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12830
# If the export-symbols file already is a .def file (1st line
12831
# is EXPORTS), use it as is; otherwise, prepend...
12832
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12833
cp $export_symbols $output_objdir/$soname.def;
12835
echo EXPORTS > $output_objdir/$soname.def;
12836
cat $export_symbols >> $output_objdir/$soname.def;
12838
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12845
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846
link_all_deplibs_F77=yes
12850
hardcode_direct_F77=no
12851
hardcode_shlibpath_var_F77=no
12852
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
12853
export_dynamic_flag_spec_F77='${wl}-E'
12854
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12855
# Instead, shared libraries are loaded at an image base (0x10000000 by
12856
# default) and relocated if they conflict, which is a slow very memory
12857
# consuming and fragmenting process. To avoid this, we pick a random,
12858
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12859
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12860
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12861
archive_expsym_cmds_F77='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'
12864
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12866
if test "$host_os" = linux-dietlibc; then
12867
case $cc_basename in
12868
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12871
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12872
&& test "$tmp_diet" = no
12874
tmp_addflag=' $pic_flag'
12875
tmp_sharedflag='-shared'
12876
case $cc_basename,$host_cpu in
12877
pgcc*) # Portland Group C compiler
12878
whole_archive_flag_spec_F77='${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'
12879
tmp_addflag=' $pic_flag'
12881
pgf77* | pgf90* | pgf95* | pgfortran*)
12882
# Portland Group f77 and f90 compilers
12883
whole_archive_flag_spec_F77='${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'
12884
tmp_addflag=' $pic_flag -Mnomain' ;;
12885
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12886
tmp_addflag=' -i_dynamic' ;;
12887
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12888
tmp_addflag=' -i_dynamic -nofor_main' ;;
12889
ifc* | ifort*) # Intel Fortran compiler
12890
tmp_addflag=' -nofor_main' ;;
12891
lf95*) # Lahey Fortran 8.1
12892
whole_archive_flag_spec_F77=
12893
tmp_sharedflag='--shared' ;;
12894
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12895
tmp_sharedflag='-qmkshrobj'
12897
nvcc*) # Cuda Compiler Driver 2.2
12898
whole_archive_flag_spec_F77='${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'
12899
compiler_needs_object_F77=yes
12902
case `$CC -V 2>&1 | sed 5q` in
12903
*Sun\ C*) # Sun C 5.9
12904
whole_archive_flag_spec_F77='${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'
12905
compiler_needs_object_F77=yes
12906
tmp_sharedflag='-G' ;;
12907
*Sun\ F*) # Sun Fortran 8.3
12908
tmp_sharedflag='-G' ;;
12910
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12912
if test "x$supports_anon_versioning" = xyes; then
12913
archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
12914
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12915
echo "local: *; };" >> $output_objdir/$libname.ver~
12916
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12919
case $cc_basename in
12920
xlf* | bgf* | bgxlf* | mpixlf*)
12921
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12922
whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
12923
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12924
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12925
if test "x$supports_anon_versioning" = xyes; then
12926
archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
12927
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12928
echo "local: *; };" >> $output_objdir/$libname.ver~
12929
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12939
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12940
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12943
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12944
archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12949
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12953
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12954
*** create shared libraries on Solaris systems. Therefore, libtool
12955
*** is disabling shared libraries support. We urge you to upgrade GNU
12956
*** binutils to release 2.9.1 or newer. Another option is to modify
12957
*** your PATH or compiler configuration so that the native linker is
12958
*** used, and then restart.
12961
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12962
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12963
archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12969
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12970
case `$LD -v 2>&1` in
12971
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12975
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12976
*** reliably create shared libraries on SCO systems. Therefore, libtool
12977
*** is disabling shared libraries support. We urge you to upgrade GNU
12978
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12979
*** your PATH or compiler configuration so that the native linker is
12980
*** used, and then restart.
12985
# For security reasons, it is highly recommended that you always
12986
# use absolute paths for naming shared libraries, and exclude the
12987
# DT_RUNPATH tag from executables and libraries. But doing so
12988
# requires that you compile everything twice, which is a pain.
12989
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12990
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12991
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12992
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13001
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13003
hardcode_direct_F77=yes
13004
hardcode_shlibpath_var_F77=no
13008
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13009
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13010
archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13017
if test "$ld_shlibs_F77" = no; then
13019
hardcode_libdir_flag_spec_F77=
13020
export_dynamic_flag_spec_F77=
13021
whole_archive_flag_spec_F77=
13024
# PORTME fill in a description of your system's linker (not GNU ld)
13027
allow_undefined_flag_F77=unsupported
13028
always_export_symbols_F77=yes
13029
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13030
# Note: this linker hardcodes the directories in LIBPATH if there
13031
# are no directories specified by -L.
13032
hardcode_minus_L_F77=yes
13033
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13034
# Neither direct hardcoding nor static linking is supported with a
13036
hardcode_direct_F77=unsupported
13041
if test "$host_cpu" = ia64; then
13042
# On IA64, the linker does run time linking by default, so we don't
13043
# have to do anything special.
13044
aix_use_runtimelinking=no
13045
exp_sym_flag='-Bexport'
13048
# If we're using GNU nm, then we don't want the "-C" option.
13049
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13050
# Also, AIX nm treats weak defined symbols like other global
13051
# defined symbols, whereas GNU nm marks them as "W".
13052
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13053
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13055
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13057
aix_use_runtimelinking=no
13059
# Test if we are trying to use run time linking or normal
13060
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13061
# need to do runtime linking.
13062
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13063
for ld_flag in $LDFLAGS; do
13064
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13065
aix_use_runtimelinking=yes
13072
exp_sym_flag='-bexport'
13073
no_entry_flag='-bnoentry'
13076
# When large executables or shared objects are built, AIX ld can
13077
# have problems creating the table of contents. If linking a library
13078
# or program results in "error TOC overflow" add -mminimal-toc to
13079
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13080
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13082
archive_cmds_F77=''
13083
hardcode_direct_F77=yes
13084
hardcode_direct_absolute_F77=yes
13085
hardcode_libdir_separator_F77=':'
13086
link_all_deplibs_F77=yes
13087
file_list_spec_F77='${wl}-f,'
13089
if test "$GCC" = yes; then
13090
case $host_os in aix4.[012]|aix4.[012].*)
13091
# We only want to do this on AIX 4.2 and lower, the check
13092
# below for broken collect2 doesn't work under 4.3+
13093
collect2name=`${CC} -print-prog-name=collect2`
13094
if test -f "$collect2name" &&
13095
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13097
# We have reworked collect2
13100
# We have old collect2
13101
hardcode_direct_F77=unsupported
13102
# It fails to find uninstalled libraries when the uninstalled
13103
# path is not listed in the libpath. Setting hardcode_minus_L
13104
# to unsupported forces relinking
13105
hardcode_minus_L_F77=yes
13106
hardcode_libdir_flag_spec_F77='-L$libdir'
13107
hardcode_libdir_separator_F77=
13111
shared_flag='-shared'
13112
if test "$aix_use_runtimelinking" = yes; then
13113
shared_flag="$shared_flag "'${wl}-G'
13117
if test "$host_cpu" = ia64; then
13118
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13119
# chokes on -Wl,-G. The following line is correct:
13122
if test "$aix_use_runtimelinking" = yes; then
13123
shared_flag='${wl}-G'
13125
shared_flag='${wl}-bM:SRE'
13130
export_dynamic_flag_spec_F77='${wl}-bexpall'
13131
# It seems that -bexpall does not export symbols beginning with
13132
# underscore (_), so it is better to generate a list of symbols to export.
13133
always_export_symbols_F77=yes
13134
if test "$aix_use_runtimelinking" = yes; then
13135
# Warning - without using the other runtime loading flags (-brtl),
13136
# -berok will link without error, but may produce a broken library.
13137
allow_undefined_flag_F77='-berok'
13138
# Determine the default libpath from the value encoded in an
13139
# empty executable.
13140
if test "${lt_cv_aix_libpath+set}" = set; then
13141
aix_libpath=$lt_cv_aix_libpath
13143
if ${lt_cv_aix_libpath__F77+:} false; then :
13144
$as_echo_n "(cached) " >&6
13146
cat > conftest.$ac_ext <<_ACEOF
13151
if ac_fn_f77_try_link "$LINENO"; then :
13153
lt_aix_libpath_sed='
13154
/Import File Strings/,/^$/ {
13156
s/^0 *\([^ ]*\) *$/\1/
13160
lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13161
# Check for a 64-bit object if we didn't find anything.
13162
if test -z "$lt_cv_aix_libpath__F77"; then
13163
lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13166
rm -f core conftest.err conftest.$ac_objext \
13167
conftest$ac_exeext conftest.$ac_ext
13168
if test -z "$lt_cv_aix_libpath__F77"; then
13169
lt_cv_aix_libpath__F77="/usr/lib:/lib"
13174
aix_libpath=$lt_cv_aix_libpath__F77
13177
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13178
archive_expsym_cmds_F77='$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"
13180
if test "$host_cpu" = ia64; then
13181
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13182
allow_undefined_flag_F77="-z nodefs"
13183
archive_expsym_cmds_F77="\$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"
13185
# Determine the default libpath from the value encoded in an
13186
# empty executable.
13187
if test "${lt_cv_aix_libpath+set}" = set; then
13188
aix_libpath=$lt_cv_aix_libpath
13190
if ${lt_cv_aix_libpath__F77+:} false; then :
13191
$as_echo_n "(cached) " >&6
13193
cat > conftest.$ac_ext <<_ACEOF
13198
if ac_fn_f77_try_link "$LINENO"; then :
13200
lt_aix_libpath_sed='
13201
/Import File Strings/,/^$/ {
13203
s/^0 *\([^ ]*\) *$/\1/
13207
lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13208
# Check for a 64-bit object if we didn't find anything.
13209
if test -z "$lt_cv_aix_libpath__F77"; then
13210
lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13213
rm -f core conftest.err conftest.$ac_objext \
13214
conftest$ac_exeext conftest.$ac_ext
13215
if test -z "$lt_cv_aix_libpath__F77"; then
13216
lt_cv_aix_libpath__F77="/usr/lib:/lib"
13221
aix_libpath=$lt_cv_aix_libpath__F77
13224
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13225
# Warning - without using the other run time loading flags,
13226
# -berok will link without error, but may produce a broken library.
13227
no_undefined_flag_F77=' ${wl}-bernotok'
13228
allow_undefined_flag_F77=' ${wl}-berok'
13229
if test "$with_gnu_ld" = yes; then
13230
# We only use this code for GNU lds that support --whole-archive.
13231
whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13233
# Exported symbols can be pulled into shared objects from archives
13234
whole_archive_flag_spec_F77='$convenience'
13236
archive_cmds_need_lc_F77=yes
13237
# This is similar to how AIX traditionally builds its shared libraries.
13238
archive_expsym_cmds_F77="\$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'
13246
# see comment about AmigaOS4 .so support
13247
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13248
archive_expsym_cmds_F77=''
13251
archive_cmds_F77='$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)'
13252
hardcode_libdir_flag_spec_F77='-L$libdir'
13253
hardcode_minus_L_F77=yes
13259
export_dynamic_flag_spec_F77=-rdynamic
13262
cygwin* | mingw* | pw32* | cegcc*)
13263
# When not using gcc, we currently assume that we are using
13264
# Microsoft Visual C++.
13265
# hardcode_libdir_flag_spec is actually meaningless, as there is
13266
# no search path for DLLs.
13267
case $cc_basename in
13270
hardcode_libdir_flag_spec_F77=' '
13271
allow_undefined_flag_F77=unsupported
13272
always_export_symbols_F77=yes
13273
file_list_spec_F77='@'
13274
# Tell ltmain to make .lib files, not .a files.
13276
# Tell ltmain to make .dll files, not .so files.
13278
# FIXME: Setting linknames here is a bad hack.
13279
archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13280
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13281
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13283
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13285
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13287
# The linker will not automatically build a static lib if we build a DLL.
13288
# _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
13289
enable_shared_with_static_runtimes_F77=yes
13290
exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13291
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13293
old_postinstall_cmds_F77='chmod 644 $oldlib'
13294
postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
13295
lt_tool_outputfile="@TOOL_OUTPUT@"~
13296
case $lt_outputfile in
13299
lt_outputfile="$lt_outputfile.exe"
13300
lt_tool_outputfile="$lt_tool_outputfile.exe"
13303
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13304
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13305
$RM "$lt_outputfile.manifest";
13309
# Assume MSVC wrapper
13310
hardcode_libdir_flag_spec_F77=' '
13311
allow_undefined_flag_F77=unsupported
13312
# Tell ltmain to make .lib files, not .a files.
13314
# Tell ltmain to make .dll files, not .so files.
13316
# FIXME: Setting linknames here is a bad hack.
13317
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13318
# The linker will automatically build a .lib file if we build a DLL.
13319
old_archive_from_new_cmds_F77='true'
13320
# FIXME: Should let the user specify the lib program.
13321
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
13322
enable_shared_with_static_runtimes_F77=yes
13327
darwin* | rhapsody*)
13330
archive_cmds_need_lc_F77=no
13331
hardcode_direct_F77=no
13332
hardcode_automatic_F77=yes
13333
hardcode_shlibpath_var_F77=unsupported
13334
if test "$lt_cv_ld_force_load" = "yes"; then
13335
whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13336
compiler_needs_object_F77=yes
13338
whole_archive_flag_spec_F77=''
13340
link_all_deplibs_F77=yes
13341
allow_undefined_flag_F77="$_lt_dar_allow_undefined"
13342
case $cc_basename in
13343
ifort*) _lt_dar_can_shared=yes ;;
13344
*) _lt_dar_can_shared=$GCC ;;
13346
if test "$_lt_dar_can_shared" = "yes"; then
13347
output_verbose_link_cmd=func_echo_all
13348
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13349
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13350
archive_expsym_cmds_F77="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}"
13351
module_expsym_cmds_F77="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}"
13360
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13361
hardcode_libdir_flag_spec_F77='-L$libdir'
13362
hardcode_shlibpath_var_F77=no
13365
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13366
# support. Future versions do this automatically, but an explicit c++rt0.o
13367
# does not break anything, and helps significantly (at the cost of a little
13370
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13371
hardcode_libdir_flag_spec_F77='-R$libdir'
13372
hardcode_direct_F77=yes
13373
hardcode_shlibpath_var_F77=no
13376
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13378
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13379
hardcode_direct_F77=yes
13380
hardcode_minus_L_F77=yes
13381
hardcode_shlibpath_var_F77=no
13384
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13385
freebsd* | dragonfly*)
13386
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13387
hardcode_libdir_flag_spec_F77='-R$libdir'
13388
hardcode_direct_F77=yes
13389
hardcode_shlibpath_var_F77=no
13393
if test "$GCC" = yes; then
13394
archive_cmds_F77='$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'
13396
archive_cmds_F77='$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'
13398
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13399
hardcode_libdir_separator_F77=:
13400
hardcode_direct_F77=yes
13402
# hardcode_minus_L: Not really in the search PATH,
13403
# but as the default location of the library.
13404
hardcode_minus_L_F77=yes
13405
export_dynamic_flag_spec_F77='${wl}-E'
13409
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13410
archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13412
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13414
if test "$with_gnu_ld" = no; then
13415
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13416
hardcode_libdir_separator_F77=:
13417
hardcode_direct_F77=yes
13418
hardcode_direct_absolute_F77=yes
13419
export_dynamic_flag_spec_F77='${wl}-E'
13420
# hardcode_minus_L: Not really in the search PATH,
13421
# but as the default location of the library.
13422
hardcode_minus_L_F77=yes
13427
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13430
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13433
archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13436
archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13442
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13445
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13448
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13452
if test "$with_gnu_ld" = no; then
13453
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13454
hardcode_libdir_separator_F77=:
13458
hardcode_direct_F77=no
13459
hardcode_shlibpath_var_F77=no
13462
hardcode_direct_F77=yes
13463
hardcode_direct_absolute_F77=yes
13464
export_dynamic_flag_spec_F77='${wl}-E'
13466
# hardcode_minus_L: Not really in the search PATH,
13467
# but as the default location of the library.
13468
hardcode_minus_L_F77=yes
13474
irix5* | irix6* | nonstopux*)
13475
if test "$GCC" = yes; then
13476
archive_cmds_F77='$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'
13477
# Try to use the -exported_symbol ld option, if it does not
13478
# work, assume that -exports_file does not work either and
13479
# implicitly export all symbols.
13480
# This should be the same for all languages, so no per-tag cache variable.
13481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13482
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13483
if ${lt_cv_irix_exported_symbol+:} false; then :
13484
$as_echo_n "(cached) " >&6
13486
save_LDFLAGS="$LDFLAGS"
13487
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13488
cat > conftest.$ac_ext <<_ACEOF
13493
if ac_fn_f77_try_link "$LINENO"; then :
13494
lt_cv_irix_exported_symbol=yes
13496
lt_cv_irix_exported_symbol=no
13498
rm -f core conftest.err conftest.$ac_objext \
13499
conftest$ac_exeext conftest.$ac_ext
13500
LDFLAGS="$save_LDFLAGS"
13502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13503
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13504
if test "$lt_cv_irix_exported_symbol" = yes; then
13505
archive_expsym_cmds_F77='$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'
13508
archive_cmds_F77='$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'
13509
archive_expsym_cmds_F77='$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'
13511
archive_cmds_need_lc_F77='no'
13512
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13513
hardcode_libdir_separator_F77=:
13514
inherit_rpath_F77=yes
13515
link_all_deplibs_F77=yes
13519
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13520
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13522
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13524
hardcode_libdir_flag_spec_F77='-R$libdir'
13525
hardcode_direct_F77=yes
13526
hardcode_shlibpath_var_F77=no
13530
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13531
hardcode_direct_F77=yes
13532
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13533
hardcode_libdir_separator_F77=:
13534
hardcode_shlibpath_var_F77=no
13541
if test -f /usr/libexec/ld.so; then
13542
hardcode_direct_F77=yes
13543
hardcode_shlibpath_var_F77=no
13544
hardcode_direct_absolute_F77=yes
13545
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13546
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13547
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13548
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13549
export_dynamic_flag_spec_F77='${wl}-E'
13552
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13553
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13554
hardcode_libdir_flag_spec_F77='-R$libdir'
13557
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13558
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13568
hardcode_libdir_flag_spec_F77='-L$libdir'
13569
hardcode_minus_L_F77=yes
13570
allow_undefined_flag_F77=unsupported
13571
archive_cmds_F77='$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'
13572
old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13576
if test "$GCC" = yes; then
13577
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13578
archive_cmds_F77='$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'
13580
allow_undefined_flag_F77=' -expect_unresolved \*'
13581
archive_cmds_F77='$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'
13583
archive_cmds_need_lc_F77='no'
13584
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13585
hardcode_libdir_separator_F77=:
13588
osf4* | osf5*) # as osf3* with the addition of -msym flag
13589
if test "$GCC" = yes; then
13590
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13591
archive_cmds_F77='$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'
13592
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13594
allow_undefined_flag_F77=' -expect_unresolved \*'
13595
archive_cmds_F77='$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'
13596
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13597
$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'
13599
# Both c and cxx compiler support -rpath directly
13600
hardcode_libdir_flag_spec_F77='-rpath $libdir'
13602
archive_cmds_need_lc_F77='no'
13603
hardcode_libdir_separator_F77=:
13607
no_undefined_flag_F77=' -z defs'
13608
if test "$GCC" = yes; then
13610
archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13611
archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13612
$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'
13614
case `$CC -V 2>&1` in
13617
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13618
archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13619
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13623
archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13624
archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13625
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13629
hardcode_libdir_flag_spec_F77='-R$libdir'
13630
hardcode_shlibpath_var_F77=no
13632
solaris2.[0-5] | solaris2.[0-5].*) ;;
13634
# The compiler driver will combine and reorder linker options,
13635
# but understands `-z linker_flag'. GCC discards it without `$wl',
13636
# but is careful enough not to reorder.
13637
# Supported since Solaris 2.6 (maybe 2.5.1?)
13638
if test "$GCC" = yes; then
13639
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13641
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
13645
link_all_deplibs_F77=yes
13649
if test "x$host_vendor" = xsequent; then
13650
# Use $CC to link under sequent, because it throws in some extra .o
13651
# files that make .init and .fini sections work.
13652
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13654
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13656
hardcode_libdir_flag_spec_F77='-L$libdir'
13657
hardcode_direct_F77=yes
13658
hardcode_minus_L_F77=yes
13659
hardcode_shlibpath_var_F77=no
13663
case $host_vendor in
13665
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13666
hardcode_direct_F77=yes # is this really true???
13669
## LD is ld it makes a PLAMLIB
13670
## CC just makes a GrossModule.
13671
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13672
reload_cmds_F77='$CC -r -o $output$reload_objs'
13673
hardcode_direct_F77=no
13676
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13677
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13680
runpath_var='LD_RUN_PATH'
13681
hardcode_shlibpath_var_F77=no
13685
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13686
hardcode_shlibpath_var_F77=no
13687
export_dynamic_flag_spec_F77='-Bexport'
13691
if test -d /usr/nec; then
13692
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13693
hardcode_shlibpath_var_F77=no
13694
runpath_var=LD_RUN_PATH
13695
hardcode_runpath_var=yes
13700
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13701
no_undefined_flag_F77='${wl}-z,text'
13702
archive_cmds_need_lc_F77=no
13703
hardcode_shlibpath_var_F77=no
13704
runpath_var='LD_RUN_PATH'
13706
if test "$GCC" = yes; then
13707
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13708
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13710
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13711
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13715
sysv5* | sco3.2v5* | sco5v6*)
13716
# Note: We can NOT use -z defs as we might desire, because we do not
13717
# link with -lc, and that would cause any symbols used from libc to
13718
# always be unresolved, which means just about no library would
13719
# ever link correctly. If we're not using GNU ld we use -z text
13720
# though, which does catch some bad symbols but isn't as heavy-handed
13722
no_undefined_flag_F77='${wl}-z,text'
13723
allow_undefined_flag_F77='${wl}-z,nodefs'
13724
archive_cmds_need_lc_F77=no
13725
hardcode_shlibpath_var_F77=no
13726
hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
13727
hardcode_libdir_separator_F77=':'
13728
link_all_deplibs_F77=yes
13729
export_dynamic_flag_spec_F77='${wl}-Bexport'
13730
runpath_var='LD_RUN_PATH'
13732
if test "$GCC" = yes; then
13733
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13734
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13737
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13742
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13743
hardcode_libdir_flag_spec_F77='-L$libdir'
13744
hardcode_shlibpath_var_F77=no
13752
if test x$host_vendor = xsni; then
13754
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13755
export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
13761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
13762
$as_echo "$ld_shlibs_F77" >&6; }
13763
test "$ld_shlibs_F77" = no && can_build_shared=no
13765
with_gnu_ld_F77=$with_gnu_ld
13773
# Do we need to explicitly link libc?
13775
case "x$archive_cmds_need_lc_F77" in
13777
# Assume -lc should be added
13778
archive_cmds_need_lc_F77=yes
13780
if test "$enable_shared" = yes && test "$GCC" = yes; then
13781
case $archive_cmds_F77 in
13783
# FIXME: we may have to deal with multi-command sequences.
13786
# Test whether the compiler implicitly links with -lc since on some
13787
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13788
# to ld, don't add -lc before -lgcc.
13789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13790
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13791
if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
13792
$as_echo_n "(cached) " >&6
13795
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13797
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13798
(eval $ac_compile) 2>&5
13800
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13801
test $ac_status = 0; } 2>conftest.err; then
13804
libobjs=conftest.$ac_objext
13806
wl=$lt_prog_compiler_wl_F77
13807
pic_flag=$lt_prog_compiler_pic_F77
13813
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13814
allow_undefined_flag_F77=
13815
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13816
(eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13818
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13819
test $ac_status = 0; }
13821
lt_cv_archive_cmds_need_lc_F77=no
13823
lt_cv_archive_cmds_need_lc_F77=yes
13825
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13827
cat conftest.err 1>&5
13832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
13833
$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
13834
archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
13902
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13903
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13905
library_names_spec=
13906
libname_spec='lib$name'
13910
postuninstall_cmds=
13914
shlibpath_overrides_runpath=unknown
13916
dynamic_linker="$host_os ld.so"
13917
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13918
need_lib_prefix=unknown
13919
hardcode_into_libs=no
13921
# when you set need_version to no, make sure it does not cause -set_version
13922
# flags to be left without arguments
13923
need_version=unknown
13927
version_type=linux # correct to gnu/linux during the next big refactor
13928
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13929
shlibpath_var=LIBPATH
13931
# AIX 3 has no versioning support, so we append a major version to the name.
13932
soname_spec='${libname}${release}${shared_ext}$major'
13936
version_type=linux # correct to gnu/linux during the next big refactor
13939
hardcode_into_libs=yes
13940
if test "$host_cpu" = ia64; then
13941
# AIX 5 supports IA64
13942
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13943
shlibpath_var=LD_LIBRARY_PATH
13945
# With GCC up to 2.95.x, collect2 would create an import file
13946
# for dependence libraries. The import file would start with
13947
# the line `#! .'. This would cause the generated library to
13948
# depend on `.', always an invalid library. This was fixed in
13949
# development snapshots of GCC prior to 3.0.
13951
aix4 | aix4.[01] | aix4.[01].*)
13952
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13954
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13957
can_build_shared=no
13961
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13962
# soname into executable. Probably we can add versioning support to
13963
# collect2, so additional links can be useful in future.
13964
if test "$aix_use_runtimelinking" = yes; then
13965
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13966
# instead of lib<name>.a to let people know that these are not
13967
# typical AIX shared libraries.
13968
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13970
# We preserve .a as extension for shared libraries through AIX4.2
13971
# and later when we are not doing run time linking.
13972
library_names_spec='${libname}${release}.a $libname.a'
13973
soname_spec='${libname}${release}${shared_ext}$major'
13975
shlibpath_var=LIBPATH
13982
# Since July 2007 AmigaOS4 officially supports .so libraries.
13983
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13984
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13987
library_names_spec='$libname.ixlibrary $libname.a'
13988
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13989
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'
13995
library_names_spec='${libname}${shared_ext}'
13996
dynamic_linker="$host_os ld.so"
13997
shlibpath_var=LIBRARY_PATH
14001
version_type=linux # correct to gnu/linux during the next big refactor
14003
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14004
soname_spec='${libname}${release}${shared_ext}$major'
14005
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14006
shlibpath_var=LD_LIBRARY_PATH
14007
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14008
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14009
# the default ld.so.conf also contains /usr/contrib/lib and
14010
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14011
# libtool to hard-code these into programs
14014
cygwin* | mingw* | pw32* | cegcc*)
14015
version_type=windows
14020
case $GCC,$cc_basename in
14023
library_names_spec='$libname.dll.a'
14024
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14025
postinstall_cmds='base_file=`basename \${file}`~
14026
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14027
dldir=$destdir/`dirname \$dlpath`~
14028
test -d \$dldir || mkdir -p \$dldir~
14029
$install_prog $dir/$dlname \$dldir/$dlname~
14030
chmod a+x \$dldir/$dlname~
14031
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14032
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14034
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14035
dlpath=$dir/\$dldll~
14037
shlibpath_overrides_runpath=yes
14041
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14042
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14046
# MinGW DLLs use traditional 'lib' prefix
14047
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14050
# pw32 DLLs use 'pw' prefix rather than 'lib'
14051
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14054
dynamic_linker='Win32 ld.exe'
14059
libname_spec='$name'
14060
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14061
library_names_spec='${libname}.dll.lib'
14065
sys_lib_search_path_spec=
14068
for lt_path in $LIB
14071
# Let DOS variable expansion print the short 8.3 style file name.
14072
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14073
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14076
# Convert to MSYS style.
14077
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14080
# Convert to unix form, then to dos form, then back to unix form
14081
# but this time dos style (no spaces!) so that the unix form looks
14082
# like /cygdrive/c/PROGRA~1:/cygdr...
14083
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14084
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14085
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14088
sys_lib_search_path_spec="$LIB"
14089
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14090
# It is most probably a Windows format PATH.
14091
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14093
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14095
# FIXME: find the short name or the path components, as spaces are
14096
# common. (e.g. "Program Files" -> "PROGRA~1")
14100
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14101
postinstall_cmds='base_file=`basename \${file}`~
14102
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14103
dldir=$destdir/`dirname \$dlpath`~
14104
test -d \$dldir || mkdir -p \$dldir~
14105
$install_prog $dir/$dlname \$dldir/$dlname'
14106
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14107
dlpath=$dir/\$dldll~
14109
shlibpath_overrides_runpath=yes
14110
dynamic_linker='Win32 link.exe'
14114
# Assume MSVC wrapper
14115
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14116
dynamic_linker='Win32 ld.exe'
14119
# FIXME: first we should search . and the directory the executable is in
14123
darwin* | rhapsody*)
14124
dynamic_linker="$host_os dyld"
14125
version_type=darwin
14128
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14129
soname_spec='${libname}${release}${major}$shared_ext'
14130
shlibpath_overrides_runpath=yes
14131
shlibpath_var=DYLD_LIBRARY_PATH
14132
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14134
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14138
version_type=linux # correct to gnu/linux during the next big refactor
14141
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14142
soname_spec='${libname}${release}${shared_ext}$major'
14143
shlibpath_var=LD_LIBRARY_PATH
14146
freebsd* | dragonfly*)
14147
# DragonFly does not have aout. When/if they implement a new
14148
# versioning mechanism, adjust this.
14149
if test -x /usr/bin/objformat; then
14150
objformat=`/usr/bin/objformat`
14153
freebsd[23].*) objformat=aout ;;
14154
*) objformat=elf ;;
14157
version_type=freebsd-$objformat
14158
case $version_type in
14160
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14165
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14169
shlibpath_var=LD_LIBRARY_PATH
14172
shlibpath_overrides_runpath=yes
14174
freebsd3.[01]* | freebsdelf3.[01]*)
14175
shlibpath_overrides_runpath=yes
14176
hardcode_into_libs=yes
14178
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14179
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14180
shlibpath_overrides_runpath=no
14181
hardcode_into_libs=yes
14183
*) # from 4.6 on, and DragonFly
14184
shlibpath_overrides_runpath=yes
14185
hardcode_into_libs=yes
14191
version_type=linux # correct to gnu/linux during the next big refactor
14194
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14195
soname_spec='${libname}${release}${shared_ext}$major'
14196
shlibpath_var=LD_LIBRARY_PATH
14197
shlibpath_overrides_runpath=no
14198
hardcode_into_libs=yes
14202
version_type=linux # correct to gnu/linux during the next big refactor
14205
dynamic_linker="$host_os runtime_loader"
14206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14207
soname_spec='${libname}${release}${shared_ext}$major'
14208
shlibpath_var=LIBRARY_PATH
14209
shlibpath_overrides_runpath=yes
14210
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14211
hardcode_into_libs=yes
14214
hpux9* | hpux10* | hpux11*)
14215
# Give a soname corresponding to the major version so that dld.sl refuses to
14216
# link against other versions.
14223
hardcode_into_libs=yes
14224
dynamic_linker="$host_os dld.so"
14225
shlibpath_var=LD_LIBRARY_PATH
14226
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14227
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14228
soname_spec='${libname}${release}${shared_ext}$major'
14229
if test "X$HPUX_IA64_MODE" = X32; then
14230
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14232
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14234
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14238
hardcode_into_libs=yes
14239
dynamic_linker="$host_os dld.sl"
14240
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14241
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14242
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14243
soname_spec='${libname}${release}${shared_ext}$major'
14244
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14245
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14249
dynamic_linker="$host_os dld.sl"
14250
shlibpath_var=SHLIB_PATH
14251
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14252
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14253
soname_spec='${libname}${release}${shared_ext}$major'
14256
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14257
postinstall_cmds='chmod 555 $lib'
14258
# or fails outright, so override atomically:
14259
install_override_mode=555
14263
version_type=linux # correct to gnu/linux during the next big refactor
14266
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14267
soname_spec='${libname}${release}${shared_ext}$major'
14268
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14269
shlibpath_var=LD_LIBRARY_PATH
14270
shlibpath_overrides_runpath=no
14271
hardcode_into_libs=yes
14274
irix5* | irix6* | nonstopux*)
14276
nonstopux*) version_type=nonstopux ;;
14278
if test "$lt_cv_prog_gnu_ld" = yes; then
14279
version_type=linux # correct to gnu/linux during the next big refactor
14286
soname_spec='${libname}${release}${shared_ext}$major'
14287
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14289
irix5* | nonstopux*)
14290
libsuff= shlibsuff=
14293
case $LD in # libtool.m4 will add one of these switches to LD
14294
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14295
libsuff= shlibsuff= libmagic=32-bit;;
14296
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14297
libsuff=32 shlibsuff=N32 libmagic=N32;;
14298
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14299
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14300
*) libsuff= shlibsuff= libmagic=never-match;;
14304
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14305
shlibpath_overrides_runpath=no
14306
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14307
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14308
hardcode_into_libs=yes
14311
# No shared lib support for Linux oldld, aout, or coff.
14312
linux*oldld* | linux*aout* | linux*coff*)
14316
# This must be glibc/ELF.
14317
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14318
version_type=linux # correct to gnu/linux during the next big refactor
14321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14322
soname_spec='${libname}${release}${shared_ext}$major'
14323
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14324
shlibpath_var=LD_LIBRARY_PATH
14325
shlibpath_overrides_runpath=no
14327
# Some binutils ld are patched to set DT_RUNPATH
14328
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14329
$as_echo_n "(cached) " >&6
14331
lt_cv_shlibpath_overrides_runpath=no
14332
save_LDFLAGS=$LDFLAGS
14333
save_libdir=$libdir
14334
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
14335
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
14336
cat > conftest.$ac_ext <<_ACEOF
14341
if ac_fn_f77_try_link "$LINENO"; then :
14342
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14343
lt_cv_shlibpath_overrides_runpath=yes
14346
rm -f core conftest.err conftest.$ac_objext \
14347
conftest$ac_exeext conftest.$ac_ext
14348
LDFLAGS=$save_LDFLAGS
14349
libdir=$save_libdir
14353
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14355
# This implies no fast_install, which is unacceptable.
14356
# Some rework will be needed to allow for fast_install
14357
# before this can be enabled.
14358
hardcode_into_libs=yes
14360
# Add ABI-specific directories to the system library path.
14361
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14363
# Append ld.so.conf contents to the search path
14364
if test -f /etc/ld.so.conf; then
14365
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' ' '`
14366
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14370
# We used to test for /lib/ld.so.1 and disable shared libraries on
14371
# powerpc, because MkLinux only supported shared libraries with the
14372
# GNU dynamic linker. Since this was broken with cross compilers,
14373
# most powerpc-linux boxes support dynamic linking these days and
14374
# people can always --disable-shared, the test was removed, and we
14375
# assume the GNU/Linux dynamic linker is in use.
14376
dynamic_linker='GNU/Linux ld.so'
14383
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14385
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14386
dynamic_linker='NetBSD (a.out) ld.so'
14388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14389
soname_spec='${libname}${release}${shared_ext}$major'
14390
dynamic_linker='NetBSD ld.elf_so'
14392
shlibpath_var=LD_LIBRARY_PATH
14393
shlibpath_overrides_runpath=yes
14394
hardcode_into_libs=yes
14398
version_type=linux # correct to gnu/linux during the next big refactor
14399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14400
shlibpath_var=LD_LIBRARY_PATH
14401
shlibpath_overrides_runpath=yes
14408
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14409
soname_spec='${libname}${release}${shared_ext}$major'
14410
shlibpath_var=LD_LIBRARY_PATH
14411
shlibpath_overrides_runpath=no
14412
hardcode_into_libs=yes
14413
dynamic_linker='ldqnx.so'
14418
sys_lib_dlsearch_path_spec="/usr/lib"
14420
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14422
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14423
*) need_version=no ;;
14425
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14426
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14427
shlibpath_var=LD_LIBRARY_PATH
14428
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14430
openbsd2.[89] | openbsd2.[89].*)
14431
shlibpath_overrides_runpath=no
14434
shlibpath_overrides_runpath=yes
14438
shlibpath_overrides_runpath=yes
14443
libname_spec='$name'
14446
library_names_spec='$libname${shared_ext} $libname.a'
14447
dynamic_linker='OS/2 ld.exe'
14448
shlibpath_var=LIBPATH
14451
osf3* | osf4* | osf5*)
14455
soname_spec='${libname}${release}${shared_ext}$major'
14456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14457
shlibpath_var=LD_LIBRARY_PATH
14458
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14459
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14467
version_type=linux # correct to gnu/linux during the next big refactor
14470
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471
soname_spec='${libname}${release}${shared_ext}$major'
14472
shlibpath_var=LD_LIBRARY_PATH
14473
shlibpath_overrides_runpath=yes
14474
hardcode_into_libs=yes
14475
# ldd complains unless libraries are executable
14476
postinstall_cmds='chmod +x $lib'
14481
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14482
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14483
shlibpath_var=LD_LIBRARY_PATH
14484
shlibpath_overrides_runpath=yes
14485
if test "$with_gnu_ld" = yes; then
14492
version_type=linux # correct to gnu/linux during the next big refactor
14493
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14494
soname_spec='${libname}${release}${shared_ext}$major'
14495
shlibpath_var=LD_LIBRARY_PATH
14496
case $host_vendor in
14498
shlibpath_overrides_runpath=no
14500
runpath_var=LD_RUN_PATH
14508
shlibpath_overrides_runpath=no
14509
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14515
if test -d /usr/nec ;then
14516
version_type=linux # correct to gnu/linux during the next big refactor
14517
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14518
soname_spec='$libname${shared_ext}.$major'
14519
shlibpath_var=LD_LIBRARY_PATH
14523
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14524
version_type=freebsd-elf
14527
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14528
soname_spec='${libname}${release}${shared_ext}$major'
14529
shlibpath_var=LD_LIBRARY_PATH
14530
shlibpath_overrides_runpath=yes
14531
hardcode_into_libs=yes
14532
if test "$with_gnu_ld" = yes; then
14533
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14535
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14538
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14542
sys_lib_dlsearch_path_spec='/usr/lib'
14546
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14547
version_type=linux # correct to gnu/linux during the next big refactor
14550
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14551
shlibpath_var=LD_LIBRARY_PATH
14552
shlibpath_overrides_runpath=no
14553
hardcode_into_libs=yes
14557
version_type=linux # correct to gnu/linux during the next big refactor
14558
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559
soname_spec='${libname}${release}${shared_ext}$major'
14560
shlibpath_var=LD_LIBRARY_PATH
14567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14568
$as_echo "$dynamic_linker" >&6; }
14569
test "$dynamic_linker" = no && can_build_shared=no
14571
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14572
if test "$GCC" = yes; then
14573
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14576
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14577
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14579
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14580
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14620
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14621
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14622
hardcode_action_F77=
14623
if test -n "$hardcode_libdir_flag_spec_F77" ||
14624
test -n "$runpath_var_F77" ||
14625
test "X$hardcode_automatic_F77" = "Xyes" ; then
14627
# We can hardcode non-existent directories.
14628
if test "$hardcode_direct_F77" != no &&
14629
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14630
# have to relink, otherwise we might link with an installed library
14631
# when we should be linking with a yet-to-be-installed one
14632
## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14633
test "$hardcode_minus_L_F77" != no; then
14634
# Linking always hardcodes the temporary library directory.
14635
hardcode_action_F77=relink
14637
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14638
hardcode_action_F77=immediate
14641
# We cannot hardcode anything, or else we can only hardcode existing
14643
hardcode_action_F77=unsupported
14645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
14646
$as_echo "$hardcode_action_F77" >&6; }
14648
if test "$hardcode_action_F77" = relink ||
14649
test "$inherit_rpath_F77" = yes; then
14650
# Fast installation is not supported
14651
enable_fast_install=no
14652
elif test "$shlibpath_overrides_runpath" = yes ||
14653
test "$enable_shared" = no; then
14654
# Fast installation is not necessary
14655
enable_fast_install=needless
14664
fi # test -n "$compiler"
14668
CFLAGS="$lt_save_CFLAGS"
14669
fi # test "$_lt_disable_F77" != yes
14672
ac_cpp='$CPP $CPPFLAGS'
14673
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14674
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14675
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14689
ac_config_commands="$ac_config_commands libtool"
14694
# Only expand once:
14700
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14701
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14702
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
14704
$as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
14705
if ${ac_cv_prog_f77_v+:} false; then :
14706
$as_echo_n "(cached) " >&6
14708
cat > conftest.$ac_ext <<_ACEOF
14713
if ac_fn_f77_try_compile "$LINENO"; then :
14715
# Try some options frequently used verbose output
14716
for ac_verb in -v -verbose --verbose -V -\#\#\#; do
14717
cat > conftest.$ac_ext <<_ACEOF
14723
# Compile and link our simple test program by passing a flag (argument
14724
# 1 to this macro) to the Fortran compiler in order to get
14725
# "verbose" output that we can then parse for the Fortran linker
14727
ac_save_FFLAGS=$FFLAGS
14728
FFLAGS="$FFLAGS $ac_verb"
14729
eval "set x $ac_link"
14731
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
14732
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
14733
# LIBRARY_PATH; skip all such settings.
14734
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
14735
sed '/^Driving:/d; /^Configured with:/d;
14736
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
14737
$as_echo "$ac_f77_v_output" >&5
14738
FFLAGS=$ac_save_FFLAGS
14742
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
14743
# /foo, /bar, and /baz are search directories for the Fortran linker.
14744
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
14745
ac_f77_v_output="`echo $ac_f77_v_output |
14747
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
14749
# FIXME: we keep getting bitten by quoted arguments; a more general fix
14750
# that detects unbalanced quotes in FLIBS should be implemented
14751
# and (ugh) tested at some point.
14752
case $ac_f77_v_output in
14753
# With xlf replace commas with spaces,
14754
# and remove "-link" and closing parenthesis.
14756
ac_f77_v_output=`echo $ac_f77_v_output |
14764
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
14765
# $LIBS confuse us, and the libraries appear later in the output anyway).
14766
*mGLOB_options_string*)
14767
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
14769
# Portland Group compiler has singly- or doubly-quoted -cmdline argument
14770
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
14771
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
14772
*-cmdline\ * | *-ignore\ * | *-def\ *)
14773
ac_f77_v_output=`echo $ac_f77_v_output | sed "\
14774
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
14775
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
14776
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
14778
# If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
14780
ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
14781
/:[ ]\+Running[ ]\{1,\}"gcc"/{
14788
# If we are using Cray Fortran then delete quotes.
14790
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
14794
# look for -l* and *.a constructs in the output
14795
for ac_arg in $ac_f77_v_output; do
14797
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
14798
ac_cv_prog_f77_v=$ac_verb
14803
if test -z "$ac_cv_prog_f77_v"; then
14804
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
14805
$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
14808
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
14809
$as_echo "$as_me: WARNING: compilation failed" >&2;}
14811
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
14815
$as_echo "$ac_cv_prog_f77_v" >&6; }
14816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
14817
$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
14818
if ${ac_cv_f77_libs+:} false; then :
14819
$as_echo_n "(cached) " >&6
14821
if test "x$FLIBS" != "x"; then
14822
ac_cv_f77_libs="$FLIBS" # Let the user override the test.
14825
cat > conftest.$ac_ext <<_ACEOF
14831
# Compile and link our simple test program by passing a flag (argument
14832
# 1 to this macro) to the Fortran compiler in order to get
14833
# "verbose" output that we can then parse for the Fortran linker
14835
ac_save_FFLAGS=$FFLAGS
14836
FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
14837
eval "set x $ac_link"
14839
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
14840
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
14841
# LIBRARY_PATH; skip all such settings.
14842
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
14843
sed '/^Driving:/d; /^Configured with:/d;
14844
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
14845
$as_echo "$ac_f77_v_output" >&5
14846
FFLAGS=$ac_save_FFLAGS
14850
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
14851
# /foo, /bar, and /baz are search directories for the Fortran linker.
14852
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
14853
ac_f77_v_output="`echo $ac_f77_v_output |
14855
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
14857
# FIXME: we keep getting bitten by quoted arguments; a more general fix
14858
# that detects unbalanced quotes in FLIBS should be implemented
14859
# and (ugh) tested at some point.
14860
case $ac_f77_v_output in
14861
# With xlf replace commas with spaces,
14862
# and remove "-link" and closing parenthesis.
14864
ac_f77_v_output=`echo $ac_f77_v_output |
14872
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
14873
# $LIBS confuse us, and the libraries appear later in the output anyway).
14874
*mGLOB_options_string*)
14875
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
14877
# Portland Group compiler has singly- or doubly-quoted -cmdline argument
14878
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
14879
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
14880
*-cmdline\ * | *-ignore\ * | *-def\ *)
14881
ac_f77_v_output=`echo $ac_f77_v_output | sed "\
14882
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
14883
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
14884
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
14886
# If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
14888
ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
14889
/:[ ]\+Running[ ]\{1,\}"gcc"/{
14896
# If we are using Cray Fortran then delete quotes.
14898
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
14905
# Save positional arguments (if any)
14906
ac_save_positional="$@"
14908
set X $ac_f77_v_output
14909
while test $# != 1; do
14913
[\\/]*.a | ?:[\\/]*.a)
14915
for ac_i in $ac_cv_f77_libs; do
14916
if test x"$ac_arg" = x"$ac_i"; then
14922
if test x"$ac_exists" = xtrue; then :
14925
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
14930
for ac_i in $ac_cv_f77_libs; do
14931
if test x"$ac_arg" = x"$ac_i"; then
14937
if test x"$ac_exists" = xtrue; then :
14940
if test "$ac_compiler_gnu" = yes; then
14941
for ac_link_opt in $ac_arg; do
14942
ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
14945
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
14949
# Ignore these flags.
14950
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
14951
|-LANG:=* | -LIST:* | -LNO:* | -link)
14956
*) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
14961
# These flags, when seen by themselves, take an argument.
14962
# We remove the space between option and argument and re-iterate
14963
# unless we find an empty arg or a new option (starting with -)
14974
for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
14976
for ac_i in $ac_cv_f77_libs; do
14977
if test x"$ac_j" = x"$ac_i"; then
14983
if test x"$ac_exists" = xtrue; then :
14986
ac_arg="$ac_arg $ac_j"
14987
ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
14993
for ac_i in $ac_cv_f77_libs; do
14994
if test x"$ac_arg" = x"$ac_i"; then
15000
if test x"$ac_exists" = xtrue; then :
15003
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
15006
-zallextract*| -zdefaultextract)
15007
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
15009
# Ignore everything else.
15012
# restore positional arguments
15013
set X $ac_save_positional; shift
15015
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
15016
# then we insist that the "run path" must be an absolute path (i.e. it
15017
# must begin with a "/").
15018
case `(uname -sr) 2>/dev/null` in
15020
ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
15021
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
15022
test "x$ac_ld_run_path" != x &&
15023
if test "$ac_compiler_gnu" = yes; then
15024
for ac_link_opt in $ac_ld_run_path; do
15025
ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
15028
ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
15032
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
15035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
15036
$as_echo "$ac_cv_f77_libs" >&6; }
15037
FLIBS="$ac_cv_f77_libs"
15041
ac_cpp='$CPP $CPPFLAGS'
15042
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15043
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15044
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15047
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15048
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15049
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
15052
$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
15053
if ${ac_cv_f77_dummy_main+:} false; then :
15054
$as_echo_n "(cached) " >&6
15056
ac_f77_dm_save_LIBS=$LIBS
15057
LIBS="$LIBS $FLIBS"
15058
ac_fortran_dm_var=F77_DUMMY_MAIN
15060
ac_cpp='$CPP $CPPFLAGS'
15061
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15062
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15063
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15065
# First, try linking without a dummy main:
15066
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15067
/* end confdefs.h. */
15069
#ifdef F77_DUMMY_MAIN
15071
# ifdef __cplusplus
15074
int F77_DUMMY_MAIN() { return 1; }
15085
if ac_fn_c_try_link "$LINENO"; then :
15086
ac_cv_fortran_dummy_main=none
15088
ac_cv_fortran_dummy_main=unknown
15090
rm -f core conftest.err conftest.$ac_objext \
15091
conftest$ac_exeext conftest.$ac_ext
15093
if test $ac_cv_fortran_dummy_main = unknown; then
15094
for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
15095
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096
/* end confdefs.h. */
15097
#define $ac_fortran_dm_var $ac_func
15098
#ifdef F77_DUMMY_MAIN
15100
# ifdef __cplusplus
15103
int F77_DUMMY_MAIN() { return 1; }
15114
if ac_fn_c_try_link "$LINENO"; then :
15115
ac_cv_fortran_dummy_main=$ac_func; break
15117
rm -f core conftest.err conftest.$ac_objext \
15118
conftest$ac_exeext conftest.$ac_ext
15122
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15123
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15124
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15125
ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
15127
LIBS=$ac_f77_dm_save_LIBS
15130
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
15131
$as_echo "$ac_cv_f77_dummy_main" >&6; }
15132
F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
15133
if test "$F77_DUMMY_MAIN" != unknown; then :
15134
if test $F77_DUMMY_MAIN != none; then
15136
cat >>confdefs.h <<_ACEOF
15137
#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
15140
if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
15142
$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
15147
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15148
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15149
as_fn_error $? "linking to Fortran libraries from C fails
15150
See \`config.log' for more details" "$LINENO" 5; }
15154
ac_cpp='$CPP $CPPFLAGS'
15155
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15156
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15157
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15160
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15161
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15162
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
15164
$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
15165
if ${ac_cv_f77_mangling+:} false; then :
15166
$as_echo_n "(cached) " >&6
15168
cat > conftest.$ac_ext <<_ACEOF
15169
subroutine foobar()
15172
subroutine foo_bar()
15176
if ac_fn_f77_try_compile "$LINENO"; then :
15177
mv conftest.$ac_objext cfortran_test.$ac_objext
15180
LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
15183
ac_cpp='$CPP $CPPFLAGS'
15184
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15185
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15186
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15188
for ac_foobar in foobar FOOBAR; do
15189
for ac_underscore in "" "_"; do
15190
ac_func="$ac_foobar$ac_underscore"
15191
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192
/* end confdefs.h. */
15194
/* Override any GCC internal prototype to avoid an error.
15195
Use char because int might match the return type of a GCC
15196
builtin and then its argument prototype would still apply. */
15201
#ifdef F77_DUMMY_MAIN
15203
# ifdef __cplusplus
15206
int F77_DUMMY_MAIN() { return 1; }
15212
return $ac_func ();
15217
if ac_fn_c_try_link "$LINENO"; then :
15218
ac_success=yes; break 2
15220
rm -f core conftest.err conftest.$ac_objext \
15221
conftest$ac_exeext conftest.$ac_ext
15225
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15226
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15227
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15229
if test "$ac_success" = "yes"; then
15242
ac_cpp='$CPP $CPPFLAGS'
15243
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15244
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15245
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15246
ac_success_extra=no
15247
for ac_extra in "" "_"; do
15248
ac_func="$ac_foo_bar$ac_underscore$ac_extra"
15249
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15250
/* end confdefs.h. */
15252
/* Override any GCC internal prototype to avoid an error.
15253
Use char because int might match the return type of a GCC
15254
builtin and then its argument prototype would still apply. */
15259
#ifdef F77_DUMMY_MAIN
15261
# ifdef __cplusplus
15264
int F77_DUMMY_MAIN() { return 1; }
15270
return $ac_func ();
15275
if ac_fn_c_try_link "$LINENO"; then :
15276
ac_success_extra=yes; break
15278
rm -f core conftest.err conftest.$ac_objext \
15279
conftest$ac_exeext conftest.$ac_ext
15282
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15283
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15284
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15286
if test "$ac_success_extra" = "yes"; then
15287
ac_cv_f77_mangling="$ac_case case"
15288
if test -z "$ac_underscore"; then
15289
ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
15291
ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
15293
if test -z "$ac_extra"; then
15294
ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
15296
ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
15299
ac_cv_f77_mangling="unknown"
15302
ac_cv_f77_mangling="unknown"
15307
rm -f cfortran_test*
15309
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15310
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15311
as_fn_error $? "cannot compile a simple Fortran program
15312
See \`config.log' for more details" "$LINENO" 5; }
15314
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
15318
$as_echo "$ac_cv_f77_mangling" >&6; }
15321
ac_cpp='$CPP $CPPFLAGS'
15322
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15323
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15324
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15332
# Check whether --with-blas was given.
15333
if test "${with_blas+set}" = set; then :
15334
withval=$with_blas;
15339
no) ax_blas_ok=disable ;;
15340
-* | */* | *.a | *.so | *.so.* | *.o) BLAS_LIBS="$with_blas" ;;
15341
*) BLAS_LIBS="-l$with_blas" ;;
15344
# Get fortran linker names of BLAS functions to check for.
15346
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15347
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15348
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15349
case $ac_cv_f77_mangling in
15350
upper*) ac_val="SGEMM" ;;
15351
lower*) ac_val="sgemm" ;;
15352
*) ac_val="unknown" ;;
15354
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
15359
ac_cpp='$CPP $CPPFLAGS'
15360
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15361
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15362
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15365
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15366
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15367
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15368
case $ac_cv_f77_mangling in
15369
upper*) ac_val="DGEMM" ;;
15370
lower*) ac_val="dgemm" ;;
15371
*) ac_val="unknown" ;;
15373
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
15378
ac_cpp='$CPP $CPPFLAGS'
15379
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15380
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15381
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15384
ax_blas_save_LIBS="$LIBS"
15385
LIBS="$LIBS $FLIBS"
15387
# First, check BLAS_LIBS environment variable
15388
if test $ax_blas_ok = no; then
15389
if test "x$BLAS_LIBS" != x; then
15390
save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS"
15391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in $BLAS_LIBS" >&5
15392
$as_echo_n "checking for $sgemm in $BLAS_LIBS... " >&6; }
15393
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15394
/* end confdefs.h. */
15396
/* Override any GCC internal prototype to avoid an error.
15397
Use char because int might match the return type of a GCC
15398
builtin and then its argument prototype would still apply. */
15403
#ifdef F77_DUMMY_MAIN
15405
# ifdef __cplusplus
15408
int F77_DUMMY_MAIN() { return 1; }
15419
if ac_fn_c_try_link "$LINENO"; then :
15424
rm -f core conftest.err conftest.$ac_objext \
15425
conftest$ac_exeext conftest.$ac_ext
15426
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_blas_ok" >&5
15427
$as_echo "$ax_blas_ok" >&6; }
15432
# BLAS linked to by default? (happens on some supercomputers)
15433
if test $ax_blas_ok = no; then
15434
save_LIBS="$LIBS"; LIBS="$LIBS"
15435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $sgemm is being linked in already" >&5
15436
$as_echo_n "checking if $sgemm is being linked in already... " >&6; }
15437
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438
/* end confdefs.h. */
15440
/* Override any GCC internal prototype to avoid an error.
15441
Use char because int might match the return type of a GCC
15442
builtin and then its argument prototype would still apply. */
15447
#ifdef F77_DUMMY_MAIN
15449
# ifdef __cplusplus
15452
int F77_DUMMY_MAIN() { return 1; }
15463
if ac_fn_c_try_link "$LINENO"; then :
15466
rm -f core conftest.err conftest.$ac_objext \
15467
conftest$ac_exeext conftest.$ac_ext
15468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_blas_ok" >&5
15469
$as_echo "$ax_blas_ok" >&6; }
15473
# BLAS in ATLAS library? (http://math-atlas.sourceforge.net/)
15474
if test $ax_blas_ok = no; then
15475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5
15476
$as_echo_n "checking for ATL_xerbla in -latlas... " >&6; }
15477
if ${ac_cv_lib_atlas_ATL_xerbla+:} false; then :
15478
$as_echo_n "(cached) " >&6
15480
ac_check_lib_save_LIBS=$LIBS
15481
LIBS="-latlas $LIBS"
15482
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483
/* end confdefs.h. */
15485
/* Override any GCC internal prototype to avoid an error.
15486
Use char because int might match the return type of a GCC
15487
builtin and then its argument prototype would still apply. */
15491
char ATL_xerbla ();
15492
#ifdef F77_DUMMY_MAIN
15494
# ifdef __cplusplus
15497
int F77_DUMMY_MAIN() { return 1; }
15503
return ATL_xerbla ();
15508
if ac_fn_c_try_link "$LINENO"; then :
15509
ac_cv_lib_atlas_ATL_xerbla=yes
15511
ac_cv_lib_atlas_ATL_xerbla=no
15513
rm -f core conftest.err conftest.$ac_objext \
15514
conftest$ac_exeext conftest.$ac_ext
15515
LIBS=$ac_check_lib_save_LIBS
15517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5
15518
$as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; }
15519
if test "x$ac_cv_lib_atlas_ATL_xerbla" = xyes; then :
15520
as_ac_Lib=`$as_echo "ac_cv_lib_f77blas_$sgemm" | $as_tr_sh`
15521
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lf77blas" >&5
15522
$as_echo_n "checking for $sgemm in -lf77blas... " >&6; }
15523
if eval \${$as_ac_Lib+:} false; then :
15524
$as_echo_n "(cached) " >&6
15526
ac_check_lib_save_LIBS=$LIBS
15527
LIBS="-lf77blas -latlas $LIBS"
15528
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529
/* end confdefs.h. */
15531
/* Override any GCC internal prototype to avoid an error.
15532
Use char because int might match the return type of a GCC
15533
builtin and then its argument prototype would still apply. */
15538
#ifdef F77_DUMMY_MAIN
15540
# ifdef __cplusplus
15543
int F77_DUMMY_MAIN() { return 1; }
15554
if ac_fn_c_try_link "$LINENO"; then :
15555
eval "$as_ac_Lib=yes"
15557
eval "$as_ac_Lib=no"
15559
rm -f core conftest.err conftest.$ac_objext \
15560
conftest$ac_exeext conftest.$ac_ext
15561
LIBS=$ac_check_lib_save_LIBS
15563
eval ac_res=\$$as_ac_Lib
15564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15565
$as_echo "$ac_res" >&6; }
15566
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15567
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
15568
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
15569
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
15570
$as_echo_n "(cached) " >&6
15572
ac_check_lib_save_LIBS=$LIBS
15573
LIBS="-lcblas -lf77blas -latlas $LIBS"
15574
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575
/* end confdefs.h. */
15577
/* Override any GCC internal prototype to avoid an error.
15578
Use char because int might match the return type of a GCC
15579
builtin and then its argument prototype would still apply. */
15583
char cblas_dgemm ();
15584
#ifdef F77_DUMMY_MAIN
15586
# ifdef __cplusplus
15589
int F77_DUMMY_MAIN() { return 1; }
15595
return cblas_dgemm ();
15600
if ac_fn_c_try_link "$LINENO"; then :
15601
ac_cv_lib_cblas_cblas_dgemm=yes
15603
ac_cv_lib_cblas_cblas_dgemm=no
15605
rm -f core conftest.err conftest.$ac_objext \
15606
conftest$ac_exeext conftest.$ac_ext
15607
LIBS=$ac_check_lib_save_LIBS
15609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
15610
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
15611
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
15613
BLAS_LIBS="-lcblas -lf77blas -latlas"
15622
# BLAS in PhiPACK libraries? (requires generic BLAS lib, too)
15623
if test $ax_blas_ok = no; then
15624
as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
15625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
15626
$as_echo_n "checking for $sgemm in -lblas... " >&6; }
15627
if eval \${$as_ac_Lib+:} false; then :
15628
$as_echo_n "(cached) " >&6
15630
ac_check_lib_save_LIBS=$LIBS
15631
LIBS="-lblas $LIBS"
15632
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633
/* end confdefs.h. */
15635
/* Override any GCC internal prototype to avoid an error.
15636
Use char because int might match the return type of a GCC
15637
builtin and then its argument prototype would still apply. */
15642
#ifdef F77_DUMMY_MAIN
15644
# ifdef __cplusplus
15647
int F77_DUMMY_MAIN() { return 1; }
15658
if ac_fn_c_try_link "$LINENO"; then :
15659
eval "$as_ac_Lib=yes"
15661
eval "$as_ac_Lib=no"
15663
rm -f core conftest.err conftest.$ac_objext \
15664
conftest$ac_exeext conftest.$ac_ext
15665
LIBS=$ac_check_lib_save_LIBS
15667
eval ac_res=\$$as_ac_Lib
15668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15669
$as_echo "$ac_res" >&6; }
15670
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15671
as_ac_Lib=`$as_echo "ac_cv_lib_dgemm_$dgemm" | $as_tr_sh`
15672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dgemm in -ldgemm" >&5
15673
$as_echo_n "checking for $dgemm in -ldgemm... " >&6; }
15674
if eval \${$as_ac_Lib+:} false; then :
15675
$as_echo_n "(cached) " >&6
15677
ac_check_lib_save_LIBS=$LIBS
15678
LIBS="-ldgemm -lblas $LIBS"
15679
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680
/* end confdefs.h. */
15682
/* Override any GCC internal prototype to avoid an error.
15683
Use char because int might match the return type of a GCC
15684
builtin and then its argument prototype would still apply. */
15689
#ifdef F77_DUMMY_MAIN
15691
# ifdef __cplusplus
15694
int F77_DUMMY_MAIN() { return 1; }
15705
if ac_fn_c_try_link "$LINENO"; then :
15706
eval "$as_ac_Lib=yes"
15708
eval "$as_ac_Lib=no"
15710
rm -f core conftest.err conftest.$ac_objext \
15711
conftest$ac_exeext conftest.$ac_ext
15712
LIBS=$ac_check_lib_save_LIBS
15714
eval ac_res=\$$as_ac_Lib
15715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15716
$as_echo "$ac_res" >&6; }
15717
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15718
as_ac_Lib=`$as_echo "ac_cv_lib_sgemm_$sgemm" | $as_tr_sh`
15719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsgemm" >&5
15720
$as_echo_n "checking for $sgemm in -lsgemm... " >&6; }
15721
if eval \${$as_ac_Lib+:} false; then :
15722
$as_echo_n "(cached) " >&6
15724
ac_check_lib_save_LIBS=$LIBS
15725
LIBS="-lsgemm -lblas $LIBS"
15726
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727
/* end confdefs.h. */
15729
/* Override any GCC internal prototype to avoid an error.
15730
Use char because int might match the return type of a GCC
15731
builtin and then its argument prototype would still apply. */
15736
#ifdef F77_DUMMY_MAIN
15738
# ifdef __cplusplus
15741
int F77_DUMMY_MAIN() { return 1; }
15752
if ac_fn_c_try_link "$LINENO"; then :
15753
eval "$as_ac_Lib=yes"
15755
eval "$as_ac_Lib=no"
15757
rm -f core conftest.err conftest.$ac_objext \
15758
conftest$ac_exeext conftest.$ac_ext
15759
LIBS=$ac_check_lib_save_LIBS
15761
eval ac_res=\$$as_ac_Lib
15762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15763
$as_echo "$ac_res" >&6; }
15764
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15765
ax_blas_ok=yes; BLAS_LIBS="-lsgemm -ldgemm -lblas"
15774
# BLAS in Intel MKL library?
15775
if test $ax_blas_ok = no; then
15776
as_ac_Lib=`$as_echo "ac_cv_lib_mkl_$sgemm" | $as_tr_sh`
15777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lmkl" >&5
15778
$as_echo_n "checking for $sgemm in -lmkl... " >&6; }
15779
if eval \${$as_ac_Lib+:} false; then :
15780
$as_echo_n "(cached) " >&6
15782
ac_check_lib_save_LIBS=$LIBS
15784
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785
/* end confdefs.h. */
15787
/* Override any GCC internal prototype to avoid an error.
15788
Use char because int might match the return type of a GCC
15789
builtin and then its argument prototype would still apply. */
15794
#ifdef F77_DUMMY_MAIN
15796
# ifdef __cplusplus
15799
int F77_DUMMY_MAIN() { return 1; }
15810
if ac_fn_c_try_link "$LINENO"; then :
15811
eval "$as_ac_Lib=yes"
15813
eval "$as_ac_Lib=no"
15815
rm -f core conftest.err conftest.$ac_objext \
15816
conftest$ac_exeext conftest.$ac_ext
15817
LIBS=$ac_check_lib_save_LIBS
15819
eval ac_res=\$$as_ac_Lib
15820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15821
$as_echo "$ac_res" >&6; }
15822
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15823
ax_blas_ok=yes;BLAS_LIBS="-lmkl"
15828
# BLAS in Apple vecLib library?
15829
if test $ax_blas_ok = no; then
15830
save_LIBS="$LIBS"; LIBS="-framework vecLib $LIBS"
15831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -framework vecLib" >&5
15832
$as_echo_n "checking for $sgemm in -framework vecLib... " >&6; }
15833
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834
/* end confdefs.h. */
15836
/* Override any GCC internal prototype to avoid an error.
15837
Use char because int might match the return type of a GCC
15838
builtin and then its argument prototype would still apply. */
15843
#ifdef F77_DUMMY_MAIN
15845
# ifdef __cplusplus
15848
int F77_DUMMY_MAIN() { return 1; }
15859
if ac_fn_c_try_link "$LINENO"; then :
15860
ax_blas_ok=yes;BLAS_LIBS="-framework vecLib"
15862
rm -f core conftest.err conftest.$ac_objext \
15863
conftest$ac_exeext conftest.$ac_ext
15864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_blas_ok" >&5
15865
$as_echo "$ax_blas_ok" >&6; }
15869
# BLAS in Alpha CXML library?
15870
if test $ax_blas_ok = no; then
15871
as_ac_Lib=`$as_echo "ac_cv_lib_cxml_$sgemm" | $as_tr_sh`
15872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lcxml" >&5
15873
$as_echo_n "checking for $sgemm in -lcxml... " >&6; }
15874
if eval \${$as_ac_Lib+:} false; then :
15875
$as_echo_n "(cached) " >&6
15877
ac_check_lib_save_LIBS=$LIBS
15878
LIBS="-lcxml $LIBS"
15879
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880
/* end confdefs.h. */
15882
/* Override any GCC internal prototype to avoid an error.
15883
Use char because int might match the return type of a GCC
15884
builtin and then its argument prototype would still apply. */
15889
#ifdef F77_DUMMY_MAIN
15891
# ifdef __cplusplus
15894
int F77_DUMMY_MAIN() { return 1; }
15905
if ac_fn_c_try_link "$LINENO"; then :
15906
eval "$as_ac_Lib=yes"
15908
eval "$as_ac_Lib=no"
15910
rm -f core conftest.err conftest.$ac_objext \
15911
conftest$ac_exeext conftest.$ac_ext
15912
LIBS=$ac_check_lib_save_LIBS
15914
eval ac_res=\$$as_ac_Lib
15915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15916
$as_echo "$ac_res" >&6; }
15917
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15918
ax_blas_ok=yes;BLAS_LIBS="-lcxml"
15923
# BLAS in Alpha DXML library? (now called CXML, see above)
15924
if test $ax_blas_ok = no; then
15925
as_ac_Lib=`$as_echo "ac_cv_lib_dxml_$sgemm" | $as_tr_sh`
15926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -ldxml" >&5
15927
$as_echo_n "checking for $sgemm in -ldxml... " >&6; }
15928
if eval \${$as_ac_Lib+:} false; then :
15929
$as_echo_n "(cached) " >&6
15931
ac_check_lib_save_LIBS=$LIBS
15932
LIBS="-ldxml $LIBS"
15933
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15934
/* end confdefs.h. */
15936
/* Override any GCC internal prototype to avoid an error.
15937
Use char because int might match the return type of a GCC
15938
builtin and then its argument prototype would still apply. */
15943
#ifdef F77_DUMMY_MAIN
15945
# ifdef __cplusplus
15948
int F77_DUMMY_MAIN() { return 1; }
15959
if ac_fn_c_try_link "$LINENO"; then :
15960
eval "$as_ac_Lib=yes"
15962
eval "$as_ac_Lib=no"
15964
rm -f core conftest.err conftest.$ac_objext \
15965
conftest$ac_exeext conftest.$ac_ext
15966
LIBS=$ac_check_lib_save_LIBS
15968
eval ac_res=\$$as_ac_Lib
15969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15970
$as_echo "$ac_res" >&6; }
15971
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15972
ax_blas_ok=yes;BLAS_LIBS="-ldxml"
15977
# BLAS in Sun Performance library?
15978
if test $ax_blas_ok = no; then
15979
if test "x$GCC" != xyes; then # only works with Sun CC
15980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5
15981
$as_echo_n "checking for acosp in -lsunmath... " >&6; }
15982
if ${ac_cv_lib_sunmath_acosp+:} false; then :
15983
$as_echo_n "(cached) " >&6
15985
ac_check_lib_save_LIBS=$LIBS
15986
LIBS="-lsunmath $LIBS"
15987
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988
/* end confdefs.h. */
15990
/* Override any GCC internal prototype to avoid an error.
15991
Use char because int might match the return type of a GCC
15992
builtin and then its argument prototype would still apply. */
15997
#ifdef F77_DUMMY_MAIN
15999
# ifdef __cplusplus
16002
int F77_DUMMY_MAIN() { return 1; }
16013
if ac_fn_c_try_link "$LINENO"; then :
16014
ac_cv_lib_sunmath_acosp=yes
16016
ac_cv_lib_sunmath_acosp=no
16018
rm -f core conftest.err conftest.$ac_objext \
16019
conftest$ac_exeext conftest.$ac_ext
16020
LIBS=$ac_check_lib_save_LIBS
16022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5
16023
$as_echo "$ac_cv_lib_sunmath_acosp" >&6; }
16024
if test "x$ac_cv_lib_sunmath_acosp" = xyes; then :
16025
as_ac_Lib=`$as_echo "ac_cv_lib_sunperf_$sgemm" | $as_tr_sh`
16026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsunperf" >&5
16027
$as_echo_n "checking for $sgemm in -lsunperf... " >&6; }
16028
if eval \${$as_ac_Lib+:} false; then :
16029
$as_echo_n "(cached) " >&6
16031
ac_check_lib_save_LIBS=$LIBS
16032
LIBS="-lsunperf -lsunmath $LIBS"
16033
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034
/* end confdefs.h. */
16036
/* Override any GCC internal prototype to avoid an error.
16037
Use char because int might match the return type of a GCC
16038
builtin and then its argument prototype would still apply. */
16043
#ifdef F77_DUMMY_MAIN
16045
# ifdef __cplusplus
16048
int F77_DUMMY_MAIN() { return 1; }
16059
if ac_fn_c_try_link "$LINENO"; then :
16060
eval "$as_ac_Lib=yes"
16062
eval "$as_ac_Lib=no"
16064
rm -f core conftest.err conftest.$ac_objext \
16065
conftest$ac_exeext conftest.$ac_ext
16066
LIBS=$ac_check_lib_save_LIBS
16068
eval ac_res=\$$as_ac_Lib
16069
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16070
$as_echo "$ac_res" >&6; }
16071
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16072
BLAS_LIBS="-xlic_lib=sunperf -lsunmath"
16081
# BLAS in SCSL library? (SGI/Cray Scientific Library)
16082
if test $ax_blas_ok = no; then
16083
as_ac_Lib=`$as_echo "ac_cv_lib_scs_$sgemm" | $as_tr_sh`
16084
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lscs" >&5
16085
$as_echo_n "checking for $sgemm in -lscs... " >&6; }
16086
if eval \${$as_ac_Lib+:} false; then :
16087
$as_echo_n "(cached) " >&6
16089
ac_check_lib_save_LIBS=$LIBS
16091
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092
/* end confdefs.h. */
16094
/* Override any GCC internal prototype to avoid an error.
16095
Use char because int might match the return type of a GCC
16096
builtin and then its argument prototype would still apply. */
16101
#ifdef F77_DUMMY_MAIN
16103
# ifdef __cplusplus
16106
int F77_DUMMY_MAIN() { return 1; }
16117
if ac_fn_c_try_link "$LINENO"; then :
16118
eval "$as_ac_Lib=yes"
16120
eval "$as_ac_Lib=no"
16122
rm -f core conftest.err conftest.$ac_objext \
16123
conftest$ac_exeext conftest.$ac_ext
16124
LIBS=$ac_check_lib_save_LIBS
16126
eval ac_res=\$$as_ac_Lib
16127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16128
$as_echo "$ac_res" >&6; }
16129
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16130
ax_blas_ok=yes; BLAS_LIBS="-lscs"
16135
# BLAS in SGIMATH library?
16136
if test $ax_blas_ok = no; then
16137
as_ac_Lib=`$as_echo "ac_cv_lib_complib.sgimath_$sgemm" | $as_tr_sh`
16138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lcomplib.sgimath" >&5
16139
$as_echo_n "checking for $sgemm in -lcomplib.sgimath... " >&6; }
16140
if eval \${$as_ac_Lib+:} false; then :
16141
$as_echo_n "(cached) " >&6
16143
ac_check_lib_save_LIBS=$LIBS
16144
LIBS="-lcomplib.sgimath $LIBS"
16145
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146
/* end confdefs.h. */
16148
/* Override any GCC internal prototype to avoid an error.
16149
Use char because int might match the return type of a GCC
16150
builtin and then its argument prototype would still apply. */
16155
#ifdef F77_DUMMY_MAIN
16157
# ifdef __cplusplus
16160
int F77_DUMMY_MAIN() { return 1; }
16171
if ac_fn_c_try_link "$LINENO"; then :
16172
eval "$as_ac_Lib=yes"
16174
eval "$as_ac_Lib=no"
16176
rm -f core conftest.err conftest.$ac_objext \
16177
conftest$ac_exeext conftest.$ac_ext
16178
LIBS=$ac_check_lib_save_LIBS
16180
eval ac_res=\$$as_ac_Lib
16181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16182
$as_echo "$ac_res" >&6; }
16183
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16184
ax_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath"
16189
# BLAS in IBM ESSL library? (requires generic BLAS lib, too)
16190
if test $ax_blas_ok = no; then
16191
as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
16192
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
16193
$as_echo_n "checking for $sgemm in -lblas... " >&6; }
16194
if eval \${$as_ac_Lib+:} false; then :
16195
$as_echo_n "(cached) " >&6
16197
ac_check_lib_save_LIBS=$LIBS
16198
LIBS="-lblas $LIBS"
16199
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200
/* end confdefs.h. */
16202
/* Override any GCC internal prototype to avoid an error.
16203
Use char because int might match the return type of a GCC
16204
builtin and then its argument prototype would still apply. */
16209
#ifdef F77_DUMMY_MAIN
16211
# ifdef __cplusplus
16214
int F77_DUMMY_MAIN() { return 1; }
16225
if ac_fn_c_try_link "$LINENO"; then :
16226
eval "$as_ac_Lib=yes"
16228
eval "$as_ac_Lib=no"
16230
rm -f core conftest.err conftest.$ac_objext \
16231
conftest$ac_exeext conftest.$ac_ext
16232
LIBS=$ac_check_lib_save_LIBS
16234
eval ac_res=\$$as_ac_Lib
16235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16236
$as_echo "$ac_res" >&6; }
16237
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16238
as_ac_Lib=`$as_echo "ac_cv_lib_essl_$sgemm" | $as_tr_sh`
16239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lessl" >&5
16240
$as_echo_n "checking for $sgemm in -lessl... " >&6; }
16241
if eval \${$as_ac_Lib+:} false; then :
16242
$as_echo_n "(cached) " >&6
16244
ac_check_lib_save_LIBS=$LIBS
16245
LIBS="-lessl -lblas $FLIBS $LIBS"
16246
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247
/* end confdefs.h. */
16249
/* Override any GCC internal prototype to avoid an error.
16250
Use char because int might match the return type of a GCC
16251
builtin and then its argument prototype would still apply. */
16256
#ifdef F77_DUMMY_MAIN
16258
# ifdef __cplusplus
16261
int F77_DUMMY_MAIN() { return 1; }
16272
if ac_fn_c_try_link "$LINENO"; then :
16273
eval "$as_ac_Lib=yes"
16275
eval "$as_ac_Lib=no"
16277
rm -f core conftest.err conftest.$ac_objext \
16278
conftest$ac_exeext conftest.$ac_ext
16279
LIBS=$ac_check_lib_save_LIBS
16281
eval ac_res=\$$as_ac_Lib
16282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16283
$as_echo "$ac_res" >&6; }
16284
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16285
ax_blas_ok=yes; BLAS_LIBS="-lessl -lblas"
16292
# Generic BLAS library?
16293
if test $ax_blas_ok = no; then
16294
as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
16295
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
16296
$as_echo_n "checking for $sgemm in -lblas... " >&6; }
16297
if eval \${$as_ac_Lib+:} false; then :
16298
$as_echo_n "(cached) " >&6
16300
ac_check_lib_save_LIBS=$LIBS
16301
LIBS="-lblas $LIBS"
16302
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303
/* end confdefs.h. */
16305
/* Override any GCC internal prototype to avoid an error.
16306
Use char because int might match the return type of a GCC
16307
builtin and then its argument prototype would still apply. */
16312
#ifdef F77_DUMMY_MAIN
16314
# ifdef __cplusplus
16317
int F77_DUMMY_MAIN() { return 1; }
16328
if ac_fn_c_try_link "$LINENO"; then :
16329
eval "$as_ac_Lib=yes"
16331
eval "$as_ac_Lib=no"
16333
rm -f core conftest.err conftest.$ac_objext \
16334
conftest$ac_exeext conftest.$ac_ext
16335
LIBS=$ac_check_lib_save_LIBS
16337
eval ac_res=\$$as_ac_Lib
16338
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16339
$as_echo "$ac_res" >&6; }
16340
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16341
ax_blas_ok=yes; BLAS_LIBS="-lblas"
16348
LIBS="$ax_blas_save_LIBS"
16350
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16351
if test x"$ax_blas_ok" = xyes; then
16353
$as_echo "#define HAVE_BLAS 1" >>confdefs.h
16361
if test "$ax_blas_ok" = "no"; then
16362
as_fn_error $? "Cannot find BLAS libraries" "$LINENO" 5
16371
# Check whether --with-lapack was given.
16372
if test "${with_lapack+set}" = set; then :
16373
withval=$with_lapack;
16376
case $with_lapack in
16378
no) ax_lapack_ok=disable ;;
16379
-* | */* | *.a | *.so | *.so.* | *.o) LAPACK_LIBS="$with_lapack" ;;
16380
*) LAPACK_LIBS="-l$with_lapack" ;;
16383
# Get fortran linker name of LAPACK function to check for.
16385
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16386
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16387
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16388
case $ac_cv_f77_mangling in
16389
upper*) ac_val="CHEEV" ;;
16390
lower*) ac_val="cheev" ;;
16391
*) ac_val="unknown" ;;
16393
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
16398
ac_cpp='$CPP $CPPFLAGS'
16399
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16400
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16401
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16404
# We cannot use LAPACK if BLAS is not found
16405
if test "x$ax_blas_ok" != xyes; then
16406
ax_lapack_ok=noblas
16410
# First, check LAPACK_LIBS environment variable
16411
if test "x$LAPACK_LIBS" != x; then
16412
save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS"
16413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in $LAPACK_LIBS" >&5
16414
$as_echo_n "checking for $cheev in $LAPACK_LIBS... " >&6; }
16415
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416
/* end confdefs.h. */
16418
/* Override any GCC internal prototype to avoid an error.
16419
Use char because int might match the return type of a GCC
16420
builtin and then its argument prototype would still apply. */
16425
#ifdef F77_DUMMY_MAIN
16427
# ifdef __cplusplus
16430
int F77_DUMMY_MAIN() { return 1; }
16441
if ac_fn_c_try_link "$LINENO"; then :
16446
rm -f core conftest.err conftest.$ac_objext \
16447
conftest$ac_exeext conftest.$ac_ext
16448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_lapack_ok" >&5
16449
$as_echo "$ax_lapack_ok" >&6; }
16451
if test $ax_lapack_ok = no; then
16456
# LAPACK linked to by default? (is sometimes included in BLAS lib)
16457
if test $ax_lapack_ok = no; then
16458
save_LIBS="$LIBS"; LIBS="$LIBS $BLAS_LIBS $FLIBS"
16459
as_ac_var=`$as_echo "ac_cv_func_$cheev" | $as_tr_sh`
16460
ac_fn_c_check_func "$LINENO" "$cheev" "$as_ac_var"
16461
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16468
# Generic LAPACK library?
16469
for lapack in lapack lapack_rs6k; do
16470
if test $ax_lapack_ok = no; then
16471
save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS"
16472
as_ac_Lib=`$as_echo "ac_cv_lib_$lapack''_$cheev" | $as_tr_sh`
16473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in -l$lapack" >&5
16474
$as_echo_n "checking for $cheev in -l$lapack... " >&6; }
16475
if eval \${$as_ac_Lib+:} false; then :
16476
$as_echo_n "(cached) " >&6
16478
ac_check_lib_save_LIBS=$LIBS
16479
LIBS="-l$lapack $FLIBS $LIBS"
16480
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481
/* end confdefs.h. */
16483
/* Override any GCC internal prototype to avoid an error.
16484
Use char because int might match the return type of a GCC
16485
builtin and then its argument prototype would still apply. */
16490
#ifdef F77_DUMMY_MAIN
16492
# ifdef __cplusplus
16495
int F77_DUMMY_MAIN() { return 1; }
16506
if ac_fn_c_try_link "$LINENO"; then :
16507
eval "$as_ac_Lib=yes"
16509
eval "$as_ac_Lib=no"
16511
rm -f core conftest.err conftest.$ac_objext \
16512
conftest$ac_exeext conftest.$ac_ext
16513
LIBS=$ac_check_lib_save_LIBS
16515
eval ac_res=\$$as_ac_Lib
16516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16517
$as_echo "$ac_res" >&6; }
16518
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16519
ax_lapack_ok=yes; LAPACK_LIBS="-l$lapack"
16528
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16529
if test x"$ax_lapack_ok" = xyes; then
16531
$as_echo "#define HAVE_LAPACK 1" >>confdefs.h
16539
if test "$ax_lapack_ok" = "no"; then
16540
as_fn_error $? "Cannot find LAPACK libraries" "$LINENO" 5
16543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI mode" >&5
16544
$as_echo_n "checking for MPI mode... " >&6; }
16545
# Check whether --enable-mpi was given.
16546
if test "${enable_mpi+set}" = set; then :
16547
enableval=$enable_mpi; enable_mpi=$enableval
16552
if test x"$enable_mpi" != x"no"; then
16554
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16555
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16556
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16563
for ac_prog in mpif77 hf77 mpxlf_r mpxlf mpf77 cmpifc
16565
# Extract the first word of "$ac_prog", so it can be a program name with args.
16566
set dummy $ac_prog; ac_word=$2
16567
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16568
$as_echo_n "checking for $ac_word... " >&6; }
16569
if ${ac_cv_prog_MPIF77+:} false; then :
16570
$as_echo_n "(cached) " >&6
16572
if test -n "$MPIF77"; then
16573
ac_cv_prog_MPIF77="$MPIF77" # Let the user override the test.
16575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16576
for as_dir in $PATH
16579
test -z "$as_dir" && as_dir=.
16580
for ac_exec_ext in '' $ac_executable_extensions; do
16581
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16582
ac_cv_prog_MPIF77="$ac_prog"
16583
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16592
MPIF77=$ac_cv_prog_MPIF77
16593
if test -n "$MPIF77"; then
16594
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIF77" >&5
16595
$as_echo "$MPIF77" >&6; }
16597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16598
$as_echo "no" >&6; }
16602
test -n "$MPIF77" && break
16604
test -n "$MPIF77" || MPIF77="$F77"
16606
ax_mpi_save_F77="$F77"
16611
if test x = x"$MPILIBS"; then
16612
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
16613
$as_echo_n "checking for MPI_Init... " >&6; }
16614
cat > conftest.$ac_ext <<_ACEOF
16619
if ac_fn_f77_try_link "$LINENO"; then :
16621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16622
$as_echo "yes" >&6; }
16624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16625
$as_echo "no" >&6; }
16627
rm -f core conftest.err conftest.$ac_objext \
16628
conftest$ac_exeext conftest.$ac_ext
16631
if test x = x"$MPILIBS"; then
16632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
16633
$as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
16634
if ${ac_cv_lib_fmpi_MPI_Init+:} false; then :
16635
$as_echo_n "(cached) " >&6
16637
ac_check_lib_save_LIBS=$LIBS
16638
LIBS="-lfmpi $LIBS"
16639
cat > conftest.$ac_ext <<_ACEOF
16644
if ac_fn_f77_try_link "$LINENO"; then :
16645
ac_cv_lib_fmpi_MPI_Init=yes
16647
ac_cv_lib_fmpi_MPI_Init=no
16649
rm -f core conftest.err conftest.$ac_objext \
16650
conftest$ac_exeext conftest.$ac_ext
16651
LIBS=$ac_check_lib_save_LIBS
16653
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
16654
$as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
16655
if test "x$ac_cv_lib_fmpi_MPI_Init" = xyes; then :
16660
if test x = x"$MPILIBS"; then
16661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpich" >&5
16662
$as_echo_n "checking for MPI_Init in -lfmpich... " >&6; }
16663
if ${ac_cv_lib_fmpich_MPI_Init+:} false; then :
16664
$as_echo_n "(cached) " >&6
16666
ac_check_lib_save_LIBS=$LIBS
16667
LIBS="-lfmpich $LIBS"
16668
cat > conftest.$ac_ext <<_ACEOF
16673
if ac_fn_f77_try_link "$LINENO"; then :
16674
ac_cv_lib_fmpich_MPI_Init=yes
16676
ac_cv_lib_fmpich_MPI_Init=no
16678
rm -f core conftest.err conftest.$ac_objext \
16679
conftest$ac_exeext conftest.$ac_ext
16680
LIBS=$ac_check_lib_save_LIBS
16682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpich_MPI_Init" >&5
16683
$as_echo "$ac_cv_lib_fmpich_MPI_Init" >&6; }
16684
if test "x$ac_cv_lib_fmpich_MPI_Init" = xyes; then :
16689
if test x = x"$MPILIBS"; then
16690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpif77" >&5
16691
$as_echo_n "checking for MPI_Init in -lmpif77... " >&6; }
16692
if ${ac_cv_lib_mpif77_MPI_Init+:} false; then :
16693
$as_echo_n "(cached) " >&6
16695
ac_check_lib_save_LIBS=$LIBS
16696
LIBS="-lmpif77 $LIBS"
16697
cat > conftest.$ac_ext <<_ACEOF
16702
if ac_fn_f77_try_link "$LINENO"; then :
16703
ac_cv_lib_mpif77_MPI_Init=yes
16705
ac_cv_lib_mpif77_MPI_Init=no
16707
rm -f core conftest.err conftest.$ac_objext \
16708
conftest$ac_exeext conftest.$ac_ext
16709
LIBS=$ac_check_lib_save_LIBS
16711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpif77_MPI_Init" >&5
16712
$as_echo "$ac_cv_lib_mpif77_MPI_Init" >&6; }
16713
if test "x$ac_cv_lib_mpif77_MPI_Init" = xyes; then :
16719
if test x = x"$MPILIBS"; then
16720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
16721
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
16722
if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
16723
$as_echo_n "(cached) " >&6
16725
ac_check_lib_save_LIBS=$LIBS
16727
cat > conftest.$ac_ext <<_ACEOF
16732
if ac_fn_f77_try_link "$LINENO"; then :
16733
ac_cv_lib_mpi_MPI_Init=yes
16735
ac_cv_lib_mpi_MPI_Init=no
16737
rm -f core conftest.err conftest.$ac_objext \
16738
conftest$ac_exeext conftest.$ac_ext
16739
LIBS=$ac_check_lib_save_LIBS
16741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
16742
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
16743
if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
16748
if test x = x"$MPILIBS"; then
16749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
16750
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
16751
if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
16752
$as_echo_n "(cached) " >&6
16754
ac_check_lib_save_LIBS=$LIBS
16755
LIBS="-lmpich $LIBS"
16756
cat > conftest.$ac_ext <<_ACEOF
16761
if ac_fn_f77_try_link "$LINENO"; then :
16762
ac_cv_lib_mpich_MPI_Init=yes
16764
ac_cv_lib_mpich_MPI_Init=no
16766
rm -f core conftest.err conftest.$ac_objext \
16767
conftest$ac_exeext conftest.$ac_ext
16768
LIBS=$ac_check_lib_save_LIBS
16770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
16771
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
16772
if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
16778
if test x != x"$MPILIBS"; then
16779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
16780
$as_echo_n "checking for mpif.h... " >&6; }
16781
cat > conftest.$ac_ext <<_ACEOF
16786
if ac_fn_f77_try_compile "$LINENO"; then :
16787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16788
$as_echo "yes" >&6; }
16791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16792
$as_echo "no" >&6; }
16794
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16797
F77="$ax_mpi_save_F77"
16801
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16802
if test x = x"$MPILIBS"; then
16803
as_fn_error $? "could not compile a MPI test program" "$LINENO" 5
16807
$as_echo "#define HAVE_MPI 1" >>confdefs.h
16813
ac_cpp='$CPP $CPPFLAGS'
16814
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16815
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16816
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16820
if test x"$enable_mpi" = x"yes"; then
16832
ac_config_files="$ac_config_files arpack.pc Makefile SRC/Makefile UTIL/Makefile TESTS/Makefile EXAMPLES/Makefile EXAMPLES/BAND/Makefile EXAMPLES/COMPLEX/Makefile EXAMPLES/NONSYM/Makefile EXAMPLES/SIMPLE/Makefile EXAMPLES/SVD/Makefile EXAMPLES/SYM/Makefile PARPACK/Makefile PARPACK/SRC/Makefile PARPACK/SRC/MPI/Makefile PARPACK/UTIL/Makefile PARPACK/UTIL/MPI/Makefile PARPACK/UTIL/BLACS/Makefile PARPACK/EXAMPLES/MPI/Makefile PARPACK/EXAMPLES/BLACS/Makefile PARPACK/SRC/BLACS/Makefile"
16834
cat >confcache <<\_ACEOF
16835
# This file is a shell script that caches the results of configure
16836
# tests run on this system so they can be shared between configure
16837
# scripts and configure runs, see configure's option --config-cache.
16838
# It is not useful on other systems. If it contains results you don't
16839
# want to keep, you may remove or edit it.
16841
# config.status only pays attention to the cache file if you give it
16842
# the --recheck option to rerun configure.
16844
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16845
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16846
# following values.
16850
# The following way of writing the cache mishandles newlines in values,
16851
# but we know of no workaround that is simple, portable, and efficient.
16852
# So, we kill variables containing newlines.
16853
# Ultrix sh set writes to stderr and can't be redirected directly,
16854
# and sets the high bit in the cache file unless we assign to the vars.
16856
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16857
eval ac_val=\$$ac_var
16861
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16862
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16865
_ | IFS | as_nl) ;; #(
16866
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16867
*) { eval $ac_var=; unset $ac_var;} ;;
16873
case $as_nl`(ac_space=' '; set) 2>&1` in #(
16874
*${as_nl}ac_space=\ *)
16875
# `set' does not quote correctly, so add quotes: double-quote
16876
# substitution turns \\\\ into \\, and sed turns \\ into \.
16879
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16882
# `set' quotes correctly as required by POSIX, so do not add quotes.
16883
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16892
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16894
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16896
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16897
if test -w "$cache_file"; then
16898
if test "x$cache_file" != "x/dev/null"; then
16899
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16900
$as_echo "$as_me: updating cache $cache_file" >&6;}
16901
if test ! -f "$cache_file" || test -h "$cache_file"; then
16902
cat confcache >"$cache_file"
16904
case $cache_file in #(
16906
mv -f confcache "$cache_file"$$ &&
16907
mv -f "$cache_file"$$ "$cache_file" ;; #(
16909
mv -f confcache "$cache_file" ;;
16914
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16915
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16920
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16921
# Let make expand exec_prefix.
16922
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16924
# Transform confdefs.h into DEFS.
16925
# Protect against shell expansion while executing Makefile rules.
16926
# Protect against Makefile macro expansion.
16928
# If the first sed substitution is executed (which looks for macros that
16929
# take arguments), then branch to the quote section. Otherwise,
16930
# look for a macro that doesn't take arguments.
16940
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16942
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16946
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16959
DEFS=`sed -n "$ac_script" confdefs.h`
16965
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16966
# 1. Remove the extension, and $U if already installed.
16967
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16968
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16969
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16970
# will be set to the directory where LIBOBJS objects are built.
16971
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16972
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16974
LIBOBJS=$ac_libobjs
16976
LTLIBOBJS=$ac_ltlibobjs
16979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16980
$as_echo_n "checking that generated files are newer than configure... " >&6; }
16981
if test -n "$am_sleep_pid"; then
16982
# Hide warnings about reused PIDs.
16983
wait $am_sleep_pid 2>/dev/null
16985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16986
$as_echo "done" >&6; }
16987
if test -n "$EXEEXT"; then
16989
am__EXEEXT_FALSE='#'
16991
am__EXEEXT_TRUE='#'
16995
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16996
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16997
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16999
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17000
as_fn_error $? "conditional \"AMDEP\" was never defined.
17001
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17003
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17004
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17005
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17007
if test -z "${MPI_TRUE}" && test -z "${MPI_FALSE}"; then
17008
as_fn_error $? "conditional \"MPI\" was never defined.
17009
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17012
: "${CONFIG_STATUS=./config.status}"
17014
ac_clean_files_save=$ac_clean_files
17015
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17016
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17017
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17019
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17021
# Generated by $as_me.
17022
# Run this file to recreate the current configuration.
17023
# Compiler output produced by configure, useful for debugging
17024
# configure, is in config.log if it exists.
17027
ac_cs_recheck=false
17030
SHELL=\${CONFIG_SHELL-$SHELL}
17033
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17034
## -------------------- ##
17035
## M4sh Initialization. ##
17036
## -------------------- ##
17038
# Be more Bourne compatible
17039
DUALCASE=1; export DUALCASE # for MKS sh
17040
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17043
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17044
# is contrary to our usage. Disable this feature.
17045
alias -g '${1+"$@"}'='"$@"'
17046
setopt NO_GLOB_SUBST
17048
case `(set -o) 2>/dev/null` in #(
17060
# Printing a long string crashes Solaris 7 /usr/bin/printf.
17061
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17062
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17063
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17064
# Prefer a ksh shell builtin over an external printf program on Solaris,
17065
# but without wasting forks for bash or zsh.
17066
if test -z "$BASH_VERSION$ZSH_VERSION" \
17067
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17068
as_echo='print -r --'
17069
as_echo_n='print -rn --'
17070
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17071
as_echo='printf %s\n'
17072
as_echo_n='printf %s'
17074
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17075
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17076
as_echo_n='/usr/ucb/echo -n'
17078
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17079
as_echo_n_body='eval
17083
expr "X$arg" : "X\\(.*\\)$as_nl";
17084
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17086
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17088
export as_echo_n_body
17089
as_echo_n='sh -c $as_echo_n_body as_echo'
17091
export as_echo_body
17092
as_echo='sh -c $as_echo_body as_echo'
17095
# The user is always right.
17096
if test "${PATH_SEPARATOR+set}" != set; then
17098
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17099
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17106
# We need space, tab and new line, in precisely that order. Quoting is
17107
# there to prevent editors from complaining about space-tab.
17108
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17109
# splitting by setting IFS to empty value.)
17112
# Find who we are. Look in the path if we contain no directory separator.
17115
*[\\/]* ) as_myself=$0 ;;
17116
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17117
for as_dir in $PATH
17120
test -z "$as_dir" && as_dir=.
17121
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17127
# We did not find ourselves, most probably we were run as `sh COMMAND'
17128
# in which case we are not to be found in the path.
17129
if test "x$as_myself" = x; then
17132
if test ! -f "$as_myself"; then
17133
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17137
# Unset variables that we do not need and which cause bugs (e.g. in
17138
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17139
# suppresses any "Segmentation fault" message there. '((' could
17140
# trigger a bug in pdksh 5.2.14.
17141
for as_var in BASH_ENV ENV MAIL MAILPATH
17142
do eval test x\${$as_var+set} = xset \
17143
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17156
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17159
# as_fn_error STATUS ERROR [LINENO LOG_FD]
17160
# ----------------------------------------
17161
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17162
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17163
# script with STATUS, using 1 if that was 0.
17166
as_status=$1; test $as_status -eq 0 && as_status=1
17168
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17169
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17171
$as_echo "$as_me: error: $2" >&2
17172
as_fn_exit $as_status
17176
# as_fn_set_status STATUS
17177
# -----------------------
17178
# Set $? to STATUS, without forking.
17179
as_fn_set_status ()
17182
} # as_fn_set_status
17184
# as_fn_exit STATUS
17185
# -----------------
17186
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17190
as_fn_set_status $1
17196
# Portably unset VAR.
17199
{ eval $1=; unset $1;}
17201
as_unset=as_fn_unset
17202
# as_fn_append VAR VALUE
17203
# ----------------------
17204
# Append the text in VALUE to the end of the definition contained in VAR. Take
17205
# advantage of any shell optimizations that allow amortized linear growth over
17206
# repeated appends, instead of the typical quadratic growth present in naive
17208
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17209
eval 'as_fn_append ()
17220
# as_fn_arith ARG...
17221
# ------------------
17222
# Perform arithmetic evaluation on the ARGs, and store the result in the
17223
# global $as_val. Take advantage of shells that can avoid forks. The arguments
17224
# must be portable across $(()) and expr.
17225
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17226
eval 'as_fn_arith ()
17233
as_val=`expr "$@" || test $? -eq 1`
17238
if expr a : '\(a\)' >/dev/null 2>&1 &&
17239
test "X`expr 00001 : '.*\(...\)'`" = X001; then
17245
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17246
as_basename=basename
17251
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17257
as_me=`$as_basename -- "$0" ||
17258
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17259
X"$0" : 'X\(//\)$' \| \
17260
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17262
sed '/^.*\/\([^/][^/]*\)\/*$/{
17276
# Avoid depending upon Character Ranges.
17277
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17278
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17279
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17280
as_cr_digits='0123456789'
17281
as_cr_alnum=$as_cr_Letters$as_cr_digits
17283
ECHO_C= ECHO_N= ECHO_T=
17284
case `echo -n x` in #(((((
17286
case `echo 'xy\c'` in
17287
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
17289
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17296
rm -f conf$$ conf$$.exe conf$$.file
17297
if test -d conf$$.dir; then
17298
rm -f conf$$.dir/conf$$.file
17301
mkdir conf$$.dir 2>/dev/null
17303
if (echo >conf$$.file) 2>/dev/null; then
17304
if ln -s conf$$.file conf$$ 2>/dev/null; then
17306
# ... but there are two gotchas:
17307
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17308
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17309
# In both cases, we have to default to `cp -pR'.
17310
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17312
elif ln conf$$.file conf$$ 2>/dev/null; then
17320
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17321
rmdir conf$$.dir 2>/dev/null
17326
# Create "$as_dir" as a directory, including parents if necessary.
17331
-*) as_dir=./$as_dir;;
17333
test -d "$as_dir" || eval $as_mkdir_p || {
17337
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17338
*) as_qdir=$as_dir;;
17340
as_dirs="'$as_qdir' $as_dirs"
17341
as_dir=`$as_dirname -- "$as_dir" ||
17342
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17343
X"$as_dir" : 'X\(//\)[^/]' \| \
17344
X"$as_dir" : 'X\(//\)$' \| \
17345
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17346
$as_echo X"$as_dir" |
17347
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17351
/^X\(\/\/\)[^/].*/{
17364
test -d "$as_dir" && break
17366
test -z "$as_dirs" || eval "mkdir $as_dirs"
17367
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17371
if mkdir -p . 2>/dev/null; then
17372
as_mkdir_p='mkdir -p "$as_dir"'
17374
test -d ./-p && rmdir ./-p
17379
# as_fn_executable_p FILE
17380
# -----------------------
17381
# Test if FILE is an executable regular file.
17382
as_fn_executable_p ()
17384
test -f "$1" && test -x "$1"
17385
} # as_fn_executable_p
17386
as_test_x='test -x'
17387
as_executable_p=as_fn_executable_p
17389
# Sed expression to map a string onto a valid CPP name.
17390
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17392
# Sed expression to map a string onto a valid variable name.
17393
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17397
## ----------------------------------- ##
17398
## Main body of $CONFIG_STATUS script. ##
17399
## ----------------------------------- ##
17401
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17403
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17404
# Save the log message, to keep $0 and so on meaningful, and to
17405
# report actual input values of CONFIG_FILES etc. instead of their
17406
# values after options handling.
17408
This file was extended by arpack-ng $as_me 3.1.5, which was
17409
generated by GNU Autoconf 2.69. Invocation command line was
17411
CONFIG_FILES = $CONFIG_FILES
17412
CONFIG_HEADERS = $CONFIG_HEADERS
17413
CONFIG_LINKS = $CONFIG_LINKS
17414
CONFIG_COMMANDS = $CONFIG_COMMANDS
17417
on `(hostname || uname -n) 2>/dev/null | sed 1q`
17422
case $ac_config_files in *"
17423
"*) set x $ac_config_files; shift; ac_config_files=$*;;
17428
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17429
# Files that config.status was made for.
17430
config_files="$ac_config_files"
17431
config_commands="$ac_config_commands"
17435
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17437
\`$as_me' instantiates files and other configuration actions
17438
from templates according to the current configuration. Unless the files
17439
and actions are specified as TAGs, all are instantiated by default.
17441
Usage: $0 [OPTION]... [TAG]...
17443
-h, --help print this help, then exit
17444
-V, --version print version number and configuration settings, then exit
17445
--config print configuration, then exit
17446
-q, --quiet, --silent
17447
do not print progress messages
17448
-d, --debug don't remove temporary files
17449
--recheck update $as_me by reconfiguring in the same conditions
17450
--file=FILE[:TEMPLATE]
17451
instantiate the configuration file FILE
17453
Configuration files:
17456
Configuration commands:
17459
Report bugs to <http://forge.scilab.org/index.php/p/arpack-ng/issues/>."
17462
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17463
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17465
arpack-ng config.status 3.1.5
17466
configured by $0, generated by GNU Autoconf 2.69,
17467
with options \\"\$ac_cs_config\\"
17469
Copyright (C) 2012 Free Software Foundation, Inc.
17470
This config.status script is free software; the Free Software Foundation
17471
gives unlimited permission to copy, distribute and modify it."
17478
test -n "\$AWK" || AWK=awk
17481
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17482
# The default lists apply if the user does not specify any file.
17488
ac_option=`expr "X$1" : 'X\([^=]*\)='`
17489
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17493
ac_option=`expr "X$1" : 'X\([^=]*\)='`
17505
# Handling of the options.
17506
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17508
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17509
$as_echo "$ac_cs_version"; exit ;;
17510
--config | --confi | --conf | --con | --co | --c )
17511
$as_echo "$ac_cs_config"; exit ;;
17512
--debug | --debu | --deb | --de | --d | -d )
17514
--file | --fil | --fi | --f )
17517
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17518
'') as_fn_error $? "missing file argument" ;;
17520
as_fn_append CONFIG_FILES " '$ac_optarg'"
17521
ac_need_defaults=false;;
17522
--he | --h | --help | --hel | -h )
17523
$as_echo "$ac_cs_usage"; exit ;;
17524
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
17525
| -silent | --silent | --silen | --sile | --sil | --si | --s)
17528
# This is an error.
17529
-*) as_fn_error $? "unrecognized option: \`$1'
17530
Try \`$0 --help' for more information." ;;
17532
*) as_fn_append ac_config_targets " $1"
17533
ac_need_defaults=false ;;
17539
ac_configure_extra_args=
17541
if $ac_cs_silent; then
17543
ac_configure_extra_args="$ac_configure_extra_args --silent"
17547
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17548
if \$ac_cs_recheck; then
17549
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17551
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17552
CONFIG_SHELL='$SHELL'
17553
export CONFIG_SHELL
17558
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17562
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17563
## Running $as_me. ##
17569
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17573
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17576
# The HP-UX ksh and POSIX shell print the target directory to stdout
17577
# if CDPATH is set.
17578
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17580
sed_quote_subst='$sed_quote_subst'
17581
double_quote_subst='$double_quote_subst'
17582
delay_variable_subst='$delay_variable_subst'
17583
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17584
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17585
AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17586
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17587
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17588
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17589
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17590
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17591
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17592
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17593
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17594
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17595
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17596
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17597
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17598
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17599
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17600
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17601
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17602
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17603
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17604
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17605
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17606
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17607
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17608
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17609
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17610
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17611
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17612
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17613
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17614
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17615
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17616
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17617
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17618
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17619
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17620
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17621
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17622
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17623
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17624
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17625
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17626
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17627
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17628
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17629
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17630
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17631
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17632
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17633
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17634
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17635
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17636
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17637
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17638
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17639
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17640
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"`'
17641
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17642
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17643
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17644
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17645
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17646
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17647
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17648
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17649
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17650
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17651
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17652
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17653
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17654
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17655
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17656
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17657
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17658
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17659
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17660
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17661
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17662
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17663
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17664
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17665
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17666
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17667
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17668
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17669
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17670
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17671
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17672
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17673
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17674
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17675
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17676
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17677
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17678
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17679
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17680
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17681
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17682
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17683
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17684
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17685
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17686
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17687
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17688
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17689
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17690
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17691
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17692
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17693
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17694
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17695
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17696
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17697
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17698
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17699
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17700
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17701
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17702
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17703
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17704
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17705
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17706
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17707
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17708
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17709
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17710
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17711
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17712
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17713
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17714
LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
17715
reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
17716
reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
17717
old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
17718
compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
17719
GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
17720
lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
17721
lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
17722
lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
17723
lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
17724
lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
17725
archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
17726
enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
17727
export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
17728
whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
17729
compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
17730
old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
17731
old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
17732
archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
17733
archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
17734
module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
17735
module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
17736
with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
17737
allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
17738
no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
17739
hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
17740
hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
17741
hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
17742
hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
17743
hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
17744
hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
17745
hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
17746
inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
17747
link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
17748
always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
17749
export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
17750
exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
17751
include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
17752
prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
17753
postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
17754
file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
17755
hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
17758
LTCFLAGS='$LTCFLAGS'
17759
compiler='$compiler_DEFAULT'
17761
# A function that is used when there is no print builtin or printf.
17762
func_fallback_echo ()
17764
eval 'cat <<_LTECHO_EOF
17769
# Quote evaled strings.
17786
deplibs_check_method \
17790
sharedlib_from_linklib_cmd \
17793
archiver_list_spec \
17799
lt_cv_sys_global_symbol_pipe \
17800
lt_cv_sys_global_symbol_to_cdecl \
17801
lt_cv_sys_global_symbol_to_c_name_address \
17802
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17803
nm_file_list_spec \
17804
lt_prog_compiler_no_builtin_flag \
17805
lt_prog_compiler_pic \
17806
lt_prog_compiler_wl \
17807
lt_prog_compiler_static \
17808
lt_cv_prog_compiler_c_o \
17817
export_dynamic_flag_spec \
17818
whole_archive_flag_spec \
17819
compiler_needs_object \
17821
allow_undefined_flag \
17822
no_undefined_flag \
17823
hardcode_libdir_flag_spec \
17824
hardcode_libdir_separator \
17828
variables_saved_for_relink \
17830
library_names_spec \
17832
install_override_mode \
17839
lt_prog_compiler_no_builtin_flag_F77 \
17840
lt_prog_compiler_pic_F77 \
17841
lt_prog_compiler_wl_F77 \
17842
lt_prog_compiler_static_F77 \
17843
lt_cv_prog_compiler_c_o_F77 \
17844
export_dynamic_flag_spec_F77 \
17845
whole_archive_flag_spec_F77 \
17846
compiler_needs_object_F77 \
17848
allow_undefined_flag_F77 \
17849
no_undefined_flag_F77 \
17850
hardcode_libdir_flag_spec_F77 \
17851
hardcode_libdir_separator_F77 \
17852
exclude_expsyms_F77 \
17853
include_expsyms_F77 \
17854
file_list_spec_F77; do
17855
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17856
*[\\\\\\\`\\"\\\$]*)
17857
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17860
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17865
# Double-quote double-evaled strings.
17866
for var in reload_cmds \
17867
old_postinstall_cmds \
17868
old_postuninstall_cmds \
17870
extract_expsyms_cmds \
17871
old_archive_from_new_cmds \
17872
old_archive_from_expsyms_cmds \
17874
archive_expsym_cmds \
17876
module_expsym_cmds \
17877
export_symbols_cmds \
17881
postuninstall_cmds \
17883
sys_lib_search_path_spec \
17884
sys_lib_dlsearch_path_spec \
17886
old_archive_cmds_F77 \
17887
old_archive_from_new_cmds_F77 \
17888
old_archive_from_expsyms_cmds_F77 \
17890
archive_expsym_cmds_F77 \
17892
module_expsym_cmds_F77 \
17893
export_symbols_cmds_F77 \
17895
postlink_cmds_F77; do
17896
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17897
*[\\\\\\\`\\"\\\$]*)
17898
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17901
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17906
ac_aux_dir='$ac_aux_dir'
17907
xsi_shell='$xsi_shell'
17908
lt_shell_append='$lt_shell_append'
17910
# See if we are running on zsh, and set the options which allow our
17911
# commands through without removal of \ escapes INIT.
17912
if test -n "\${ZSH_VERSION+set}" ; then
17913
setopt NO_GLOB_SUBST
17919
TIMESTAMP='$TIMESTAMP'
17930
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17932
# Handling of arguments.
17933
for ac_config_target in $ac_config_targets
17935
case $ac_config_target in
17936
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17937
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17938
"arpack.pc") CONFIG_FILES="$CONFIG_FILES arpack.pc" ;;
17939
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17940
"SRC/Makefile") CONFIG_FILES="$CONFIG_FILES SRC/Makefile" ;;
17941
"UTIL/Makefile") CONFIG_FILES="$CONFIG_FILES UTIL/Makefile" ;;
17942
"TESTS/Makefile") CONFIG_FILES="$CONFIG_FILES TESTS/Makefile" ;;
17943
"EXAMPLES/Makefile") CONFIG_FILES="$CONFIG_FILES EXAMPLES/Makefile" ;;
17944
"EXAMPLES/BAND/Makefile") CONFIG_FILES="$CONFIG_FILES EXAMPLES/BAND/Makefile" ;;
17945
"EXAMPLES/COMPLEX/Makefile") CONFIG_FILES="$CONFIG_FILES EXAMPLES/COMPLEX/Makefile" ;;
17946
"EXAMPLES/NONSYM/Makefile") CONFIG_FILES="$CONFIG_FILES EXAMPLES/NONSYM/Makefile" ;;
17947
"EXAMPLES/SIMPLE/Makefile") CONFIG_FILES="$CONFIG_FILES EXAMPLES/SIMPLE/Makefile" ;;
17948
"EXAMPLES/SVD/Makefile") CONFIG_FILES="$CONFIG_FILES EXAMPLES/SVD/Makefile" ;;
17949
"EXAMPLES/SYM/Makefile") CONFIG_FILES="$CONFIG_FILES EXAMPLES/SYM/Makefile" ;;
17950
"PARPACK/Makefile") CONFIG_FILES="$CONFIG_FILES PARPACK/Makefile" ;;
17951
"PARPACK/SRC/Makefile") CONFIG_FILES="$CONFIG_FILES PARPACK/SRC/Makefile" ;;
17952
"PARPACK/SRC/MPI/Makefile") CONFIG_FILES="$CONFIG_FILES PARPACK/SRC/MPI/Makefile" ;;
17953
"PARPACK/UTIL/Makefile") CONFIG_FILES="$CONFIG_FILES PARPACK/UTIL/Makefile" ;;
17954
"PARPACK/UTIL/MPI/Makefile") CONFIG_FILES="$CONFIG_FILES PARPACK/UTIL/MPI/Makefile" ;;
17955
"PARPACK/UTIL/BLACS/Makefile") CONFIG_FILES="$CONFIG_FILES PARPACK/UTIL/BLACS/Makefile" ;;
17956
"PARPACK/EXAMPLES/MPI/Makefile") CONFIG_FILES="$CONFIG_FILES PARPACK/EXAMPLES/MPI/Makefile" ;;
17957
"PARPACK/EXAMPLES/BLACS/Makefile") CONFIG_FILES="$CONFIG_FILES PARPACK/EXAMPLES/BLACS/Makefile" ;;
17958
"PARPACK/SRC/BLACS/Makefile") CONFIG_FILES="$CONFIG_FILES PARPACK/SRC/BLACS/Makefile" ;;
17960
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17965
# If the user did not use the arguments to specify the items to instantiate,
17966
# then the envvar interface is used. Set only those that are not.
17967
# We use the long form for the default assignment because of an extremely
17968
# bizarre bug on SunOS 4.1.3.
17969
if $ac_need_defaults; then
17970
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17971
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17974
# Have a temporary directory for convenience. Make it in the build tree
17975
# simply because there is no reason against having it here, and in addition,
17976
# creating and moving files from /tmp can sometimes cause problems.
17977
# Hook for its removal unless debugging.
17978
# Note that there is a small window in which the directory will not be cleaned:
17979
# after its creation but before its name has been assigned to `$tmp'.
17983
trap 'exit_status=$?
17984
: "${ac_tmp:=$tmp}"
17985
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17987
trap 'as_fn_exit 1' 1 2 13 15
17989
# Create a (secure) tmp directory for tmp files.
17992
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17996
tmp=./conf$$-$RANDOM
17997
(umask 077 && mkdir "$tmp")
17998
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18001
# Set up the scripts for CONFIG_FILES section.
18002
# No need to generate them if there are no CONFIG_FILES.
18003
# This happens for instance with `./config.status config.h'.
18004
if test -n "$CONFIG_FILES"; then
18007
ac_cr=`echo X | tr X '\015'`
18008
# On cygwin, bash can eat \r inside `` if the user requested igncr.
18009
# But we know of no other shell where ac_cr would be empty at this
18010
# point, so we can use a bashism as a fallback.
18011
if test "x$ac_cr" = x; then
18012
eval ac_cr=\$\'\\r\'
18014
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18015
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18018
ac_cs_awk_cr=$ac_cr
18021
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18026
echo "cat >conf$$subs.awk <<_ACEOF" &&
18027
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18029
} >conf$$subs.sh ||
18030
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18031
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18033
for ac_last_try in false false false false false :; do
18034
. ./conf$$subs.sh ||
18035
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18037
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18038
if test $ac_delim_n = $ac_delim_num; then
18040
elif $ac_last_try; then
18041
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18043
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18046
rm -f conf$$subs.sh
18048
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18049
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18053
s/^/S["/; s/!.*/"]=/
18063
s/\(.\{148\}\)..*/\1/
18065
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18070
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18077
s/\(.\{148\}\)..*/\1/
18079
s/["\\]/\\&/g; s/^/"/; s/$/"/
18083
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18088
' <conf$$subs.awk | sed '
18093
' >>$CONFIG_STATUS || ac_write_fail=1
18094
rm -f conf$$subs.awk
18095
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18097
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18098
for (key in S) S_is_set[key] = 1
18104
nfields = split(line, field, "@")
18106
len = length(field[1])
18107
for (i = 2; i < nfields; i++) {
18109
keylen = length(key)
18110
if (S_is_set[key]) {
18112
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18113
len += length(value) + length(field[++i])
18124
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18125
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18126
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18129
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18130
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18133
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18134
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18135
# trailing colons and then remove the whole line if VPATH becomes empty
18136
# (actually we leave an empty line to preserve line numbers).
18137
if test "x$srcdir" = x.; then
18138
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18156
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18157
fi # test -n "$CONFIG_FILES"
18160
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
18165
:[FHLC]) ac_mode=$ac_tag; continue;;
18167
case $ac_mode$ac_tag in
18169
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18170
:[FH]-) ac_tag=-:-;;
18171
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18188
-) ac_f="$ac_tmp/stdin";;
18189
*) # Look for the file first in the build tree, then in the source tree
18190
# (if the path is not absolute). The absolute path cannot be DOS-style,
18191
# because $ac_f cannot contain `:'.
18195
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18197
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18199
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18200
as_fn_append ac_file_inputs " '$ac_f'"
18203
# Let's still pretend it is `configure' which instantiates (i.e., don't
18204
# use $as_me), people would be surprised to read:
18205
# /* config.h. Generated by config.status. */
18206
configure_input='Generated from '`
18207
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18209
if test x"$ac_file" != x-; then
18210
configure_input="$ac_file. $configure_input"
18211
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18212
$as_echo "$as_me: creating $ac_file" >&6;}
18214
# Neutralize special characters interpreted by sed in replacement strings.
18215
case $configure_input in #(
18216
*\&* | *\|* | *\\* )
18217
ac_sed_conf_input=`$as_echo "$configure_input" |
18218
sed 's/[\\\\&|]/\\\\&/g'`;; #(
18219
*) ac_sed_conf_input=$configure_input;;
18223
*:-:* | *:-) cat >"$ac_tmp/stdin" \
18224
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18229
ac_dir=`$as_dirname -- "$ac_file" ||
18230
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18231
X"$ac_file" : 'X\(//\)[^/]' \| \
18232
X"$ac_file" : 'X\(//\)$' \| \
18233
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18234
$as_echo X"$ac_file" |
18235
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18239
/^X\(\/\/\)[^/].*/{
18252
as_dir="$ac_dir"; as_fn_mkdir_p
18256
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18258
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18259
# A ".." for each directory in $ac_dir_suffix.
18260
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18261
case $ac_top_builddir_sub in
18262
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18263
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18266
ac_abs_top_builddir=$ac_pwd
18267
ac_abs_builddir=$ac_pwd$ac_dir_suffix
18268
# for backward compatibility:
18269
ac_top_builddir=$ac_top_build_prefix
18272
.) # We are building in place.
18274
ac_top_srcdir=$ac_top_builddir_sub
18275
ac_abs_top_srcdir=$ac_pwd ;;
18276
[\\/]* | ?:[\\/]* ) # Absolute name.
18277
ac_srcdir=$srcdir$ac_dir_suffix;
18278
ac_top_srcdir=$srcdir
18279
ac_abs_top_srcdir=$srcdir ;;
18280
*) # Relative name.
18281
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18282
ac_top_srcdir=$ac_top_build_prefix$srcdir
18283
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18285
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18295
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18296
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18298
ac_MKDIR_P=$MKDIR_P
18300
[\\/$]* | ?:[\\/]* ) ;;
18301
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18305
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18306
# If the template does not know about datarootdir, expand it.
18307
# FIXME: This hack should be removed a few years after 2.60.
18308
ac_datarootdir_hack=; ac_datarootdir_seen=
18319
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18320
*datarootdir*) ac_datarootdir_seen=yes;;
18321
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18322
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18323
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18325
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18326
ac_datarootdir_hack='
18327
s&@datadir@&$datadir&g
18328
s&@docdir@&$docdir&g
18329
s&@infodir@&$infodir&g
18330
s&@localedir@&$localedir&g
18331
s&@mandir@&$mandir&g
18332
s&\\\${datarootdir}&$datarootdir&g' ;;
18336
# Neutralize VPATH when `$srcdir' = `.'.
18337
# Shell code in configure.ac might set extrasub.
18338
# FIXME: do we really want to maintain this feature?
18339
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18340
ac_sed_extra="$ac_vpsub
18343
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18345
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18346
s|@configure_input@|$ac_sed_conf_input|;t t
18347
s&@top_builddir@&$ac_top_builddir_sub&;t t
18348
s&@top_build_prefix@&$ac_top_build_prefix&;t t
18349
s&@srcdir@&$ac_srcdir&;t t
18350
s&@abs_srcdir@&$ac_abs_srcdir&;t t
18351
s&@top_srcdir@&$ac_top_srcdir&;t t
18352
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18353
s&@builddir@&$ac_builddir&;t t
18354
s&@abs_builddir@&$ac_abs_builddir&;t t
18355
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18356
s&@INSTALL@&$ac_INSTALL&;t t
18357
s&@MKDIR_P@&$ac_MKDIR_P&;t t
18358
$ac_datarootdir_hack
18360
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18361
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18363
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18364
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18365
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18366
"$ac_tmp/out"`; test -z "$ac_out"; } &&
18367
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18368
which seems to be undefined. Please make sure it is defined" >&5
18369
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18370
which seems to be undefined. Please make sure it is defined" >&2;}
18372
rm -f "$ac_tmp/stdin"
18374
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18375
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18377
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18381
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18382
$as_echo "$as_me: executing $ac_file commands" >&6;}
18387
case $ac_file$ac_mode in
18388
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18389
# Older Autoconf quotes --file arguments for eval, but not when files
18390
# are listed without --file. Let's play safe and only enable the eval
18391
# if we detect the quoting.
18392
case $CONFIG_FILES in
18393
*\'*) eval set x "$CONFIG_FILES" ;;
18394
*) set x $CONFIG_FILES ;;
18399
# Strip MF so we end up with the name of the file.
18400
mf=`echo "$mf" | sed -e 's/:.*$//'`
18401
# Check whether this is an Automake generated Makefile or not.
18402
# We used to match only the files named 'Makefile.in', but
18403
# some people rename them; so instead we look at the file content.
18404
# Grep'ing the first line is not enough: some people post-process
18405
# each Makefile.in and add a new line on top of each file to say so.
18406
# Grep'ing the whole file is not good either: AIX grep has a line
18407
# limit of 2048, but all sed's we know have understand at least 4000.
18408
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18409
dirpart=`$as_dirname -- "$mf" ||
18410
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18411
X"$mf" : 'X\(//\)[^/]' \| \
18412
X"$mf" : 'X\(//\)$' \| \
18413
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18415
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18419
/^X\(\/\/\)[^/].*/{
18435
# Extract the definition of DEPDIR, am__include, and am__quote
18436
# from the Makefile without running 'make'.
18437
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18438
test -z "$DEPDIR" && continue
18439
am__include=`sed -n 's/^am__include = //p' < "$mf"`
18440
test -z "$am__include" && continue
18441
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18442
# Find all dependency output files, they are included files with
18443
# $(DEPDIR) in their names. We invoke sed twice because it is the
18444
# simplest approach to changing $(DEPDIR) to its actual value in the
18446
for file in `sed -n "
18447
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18448
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18449
# Make sure the directory exists.
18450
test -f "$dirpart/$file" && continue
18451
fdir=`$as_dirname -- "$file" ||
18452
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18453
X"$file" : 'X\(//\)[^/]' \| \
18454
X"$file" : 'X\(//\)$' \| \
18455
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18456
$as_echo X"$file" |
18457
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18461
/^X\(\/\/\)[^/].*/{
18474
as_dir=$dirpart/$fdir; as_fn_mkdir_p
18475
# echo "creating $dirpart/$file"
18476
echo '# dummy' > "$dirpart/$file"
18483
# See if we are running on zsh, and set the options which allow our
18484
# commands through without removal of \ escapes.
18485
if test -n "${ZSH_VERSION+set}" ; then
18486
setopt NO_GLOB_SUBST
18489
cfgfile="${ofile}T"
18490
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18493
cat <<_LT_EOF >> "$cfgfile"
18496
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18497
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18498
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18499
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18501
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18502
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18504
# Written by Gordon Matzigkeit, 1996
18506
# This file is part of GNU Libtool.
18508
# GNU Libtool is free software; you can redistribute it and/or
18509
# modify it under the terms of the GNU General Public License as
18510
# published by the Free Software Foundation; either version 2 of
18511
# the License, or (at your option) any later version.
18513
# As a special exception to the GNU General Public License,
18514
# if you distribute this file as part of a program or library that
18515
# is built using GNU Libtool, you may include this file under the
18516
# same distribution terms that you use for the rest of that program.
18518
# GNU Libtool is distributed in the hope that it will be useful,
18519
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18520
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18521
# GNU General Public License for more details.
18523
# You should have received a copy of the GNU General Public License
18524
# along with GNU Libtool; see the file COPYING. If not, a copy
18525
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18526
# obtained by writing to the Free Software Foundation, Inc.,
18527
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18530
# The names of the tagged configurations supported by this script.
18531
available_tags="F77 "
18533
# ### BEGIN LIBTOOL CONFIG
18535
# Which release of libtool.m4 was used?
18536
macro_version=$macro_version
18537
macro_revision=$macro_revision
18539
# Assembler program.
18542
# DLL creation program.
18543
DLLTOOL=$lt_DLLTOOL
18545
# Object dumper program.
18546
OBJDUMP=$lt_OBJDUMP
18548
# Whether or not to build shared libraries.
18549
build_libtool_libs=$enable_shared
18551
# Whether or not to build static libraries.
18552
build_old_libs=$enable_static
18554
# What type of objects to build.
18557
# Whether or not to optimize for fast installation.
18558
fast_install=$enable_fast_install
18560
# Shell to use when invoking shell scripts.
18563
# An echo program that protects backslashes.
18566
# The PATH separator for the build system.
18567
PATH_SEPARATOR=$lt_PATH_SEPARATOR
18570
host_alias=$host_alias
18574
# The build system.
18575
build_alias=$build_alias
18579
# A sed program that does not truncate output.
18582
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18583
Xsed="\$SED -e 1s/^X//"
18585
# A grep program that handles long lines.
18591
# A literal string matcher.
18594
# A BSD- or MS-compatible name lister.
18597
# Whether we need soft or hard links.
18600
# What is the maximum length of a command?
18601
max_cmd_len=$max_cmd_len
18603
# Object file suffix (normally "o").
18606
# Executable file suffix (normally "").
18609
# whether the shell understands "unset".
18612
# turn spaces into newlines.
18615
# turn newlines into spaces.
18618
# convert \$build file names to \$host format.
18619
to_host_file_cmd=$lt_cv_to_host_file_cmd
18621
# convert \$build files to toolchain format.
18622
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18624
# Method to check whether dependent libraries are shared objects.
18625
deplibs_check_method=$lt_deplibs_check_method
18627
# Command to use when deplibs_check_method = "file_magic".
18628
file_magic_cmd=$lt_file_magic_cmd
18630
# How to find potential files when deplibs_check_method = "file_magic".
18631
file_magic_glob=$lt_file_magic_glob
18633
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18634
want_nocaseglob=$lt_want_nocaseglob
18636
# Command to associate shared and link libraries.
18637
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18642
# Flags to create an archive.
18643
AR_FLAGS=$lt_AR_FLAGS
18645
# How to feed a file listing to the archiver.
18646
archiver_list_spec=$lt_archiver_list_spec
18648
# A symbol stripping program.
18651
# Commands used to install an old-style archive.
18653
old_postinstall_cmds=$lt_old_postinstall_cmds
18654
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18656
# Whether to use a lock for old archive extraction.
18657
lock_old_archive_extraction=$lock_old_archive_extraction
18662
# LTCC compiler flags.
18663
LTCFLAGS=$lt_CFLAGS
18665
# Take the output of nm and produce a listing of raw symbols and C names.
18666
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18668
# Transform the output of nm in a proper C declaration.
18669
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18671
# Transform the output of nm in a C name address pair.
18672
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18674
# Transform the output of nm in a C name address pair when lib prefix is needed.
18675
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18677
# Specify filename containing input files for \$NM.
18678
nm_file_list_spec=$lt_nm_file_list_spec
18680
# The root where to search for dependent libraries,and in which our libraries should be installed.
18681
lt_sysroot=$lt_sysroot
18683
# The name of the directory that contains temporary libtool files.
18686
# Used to examine libraries when file_magic_cmd begins with "file".
18687
MAGIC_CMD=$MAGIC_CMD
18689
# Must we lock files when doing compilation?
18690
need_locks=$lt_need_locks
18693
MANIFEST_TOOL=$lt_MANIFEST_TOOL
18695
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18696
DSYMUTIL=$lt_DSYMUTIL
18698
# Tool to change global to local symbols on Mac OS X.
18701
# Tool to manipulate fat objects and archives on Mac OS X.
18704
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18707
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18708
OTOOL64=$lt_OTOOL64
18710
# Old archive suffix (normally "a").
18713
# Shared library suffix (normally ".so").
18714
shrext_cmds=$lt_shrext_cmds
18716
# The commands to extract the exported symbol list from a shared archive.
18717
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18719
# Variables whose values should be saved in libtool wrapper scripts and
18720
# restored at link time.
18721
variables_saved_for_relink=$lt_variables_saved_for_relink
18723
# Do we need the "lib" prefix for modules?
18724
need_lib_prefix=$need_lib_prefix
18726
# Do we need a version for libraries?
18727
need_version=$need_version
18729
# Library versioning type.
18730
version_type=$version_type
18732
# Shared library runtime path variable.
18733
runpath_var=$runpath_var
18735
# Shared library path variable.
18736
shlibpath_var=$shlibpath_var
18738
# Is shlibpath searched before the hard-coded library search path?
18739
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18741
# Format of library name prefix.
18742
libname_spec=$lt_libname_spec
18744
# List of archive names. First name is the real one, the rest are links.
18745
# The last name is the one that the linker finds with -lNAME
18746
library_names_spec=$lt_library_names_spec
18748
# The coded name of the library, if different from the real name.
18749
soname_spec=$lt_soname_spec
18751
# Permission mode override for installation of shared libraries.
18752
install_override_mode=$lt_install_override_mode
18754
# Command to use after installation of a shared archive.
18755
postinstall_cmds=$lt_postinstall_cmds
18757
# Command to use after uninstallation of a shared archive.
18758
postuninstall_cmds=$lt_postuninstall_cmds
18760
# Commands used to finish a libtool library installation in a directory.
18761
finish_cmds=$lt_finish_cmds
18763
# As "finish_cmds", except a single script fragment to be evaled but
18765
finish_eval=$lt_finish_eval
18767
# Whether we should hardcode library paths into libraries.
18768
hardcode_into_libs=$hardcode_into_libs
18770
# Compile-time system search path for libraries.
18771
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18773
# Run-time system search path for libraries.
18774
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18776
# Whether dlopen is supported.
18777
dlopen_support=$enable_dlopen
18779
# Whether dlopen of programs is supported.
18780
dlopen_self=$enable_dlopen_self
18782
# Whether dlopen of statically linked programs is supported.
18783
dlopen_self_static=$enable_dlopen_self_static
18785
# Commands to strip libraries.
18786
old_striplib=$lt_old_striplib
18787
striplib=$lt_striplib
18790
# The linker used to build libraries.
18793
# How to create reloadable object files.
18794
reload_flag=$lt_reload_flag
18795
reload_cmds=$lt_reload_cmds
18797
# Commands used to build an old-style archive.
18798
old_archive_cmds=$lt_old_archive_cmds
18800
# A language specific compiler.
18803
# Is the compiler the GNU compiler?
18806
# Compiler flag to turn off builtin functions.
18807
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18809
# Additional compiler flags for building library objects.
18810
pic_flag=$lt_lt_prog_compiler_pic
18812
# How to pass a linker flag through the compiler.
18813
wl=$lt_lt_prog_compiler_wl
18815
# Compiler flag to prevent dynamic linking.
18816
link_static_flag=$lt_lt_prog_compiler_static
18818
# Does compiler simultaneously support -c and -o options?
18819
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18821
# Whether or not to add -lc for building shared libraries.
18822
build_libtool_need_lc=$archive_cmds_need_lc
18824
# Whether or not to disallow shared libs when runtime libs are static.
18825
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18827
# Compiler flag to allow reflexive dlopens.
18828
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18830
# Compiler flag to generate shared objects directly from archives.
18831
whole_archive_flag_spec=$lt_whole_archive_flag_spec
18833
# Whether the compiler copes with passing no objects directly.
18834
compiler_needs_object=$lt_compiler_needs_object
18836
# Create an old-style archive from a shared archive.
18837
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18839
# Create a temporary old-style archive to link instead of a shared archive.
18840
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18842
# Commands used to build a shared archive.
18843
archive_cmds=$lt_archive_cmds
18844
archive_expsym_cmds=$lt_archive_expsym_cmds
18846
# Commands used to build a loadable module if different from building
18847
# a shared archive.
18848
module_cmds=$lt_module_cmds
18849
module_expsym_cmds=$lt_module_expsym_cmds
18851
# Whether we are building with GNU ld or not.
18852
with_gnu_ld=$lt_with_gnu_ld
18854
# Flag that allows shared libraries with undefined symbols to be built.
18855
allow_undefined_flag=$lt_allow_undefined_flag
18857
# Flag that enforces no undefined symbols.
18858
no_undefined_flag=$lt_no_undefined_flag
18860
# Flag to hardcode \$libdir into a binary during linking.
18861
# This must work even if \$libdir does not exist
18862
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18864
# Whether we need a single "-rpath" flag with a separated argument.
18865
hardcode_libdir_separator=$lt_hardcode_libdir_separator
18867
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18868
# DIR into the resulting binary.
18869
hardcode_direct=$hardcode_direct
18871
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18872
# DIR into the resulting binary and the resulting library dependency is
18873
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18874
# library is relocated.
18875
hardcode_direct_absolute=$hardcode_direct_absolute
18877
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18878
# into the resulting binary.
18879
hardcode_minus_L=$hardcode_minus_L
18881
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18882
# into the resulting binary.
18883
hardcode_shlibpath_var=$hardcode_shlibpath_var
18885
# Set to "yes" if building a shared library automatically hardcodes DIR
18886
# into the library and all subsequent libraries and executables linked
18888
hardcode_automatic=$hardcode_automatic
18890
# Set to yes if linker adds runtime paths of dependent libraries
18891
# to runtime path list.
18892
inherit_rpath=$inherit_rpath
18894
# Whether libtool must link a program against all its dependency libraries.
18895
link_all_deplibs=$link_all_deplibs
18897
# Set to "yes" if exported symbols are required.
18898
always_export_symbols=$always_export_symbols
18900
# The commands to list exported symbols.
18901
export_symbols_cmds=$lt_export_symbols_cmds
18903
# Symbols that should not be listed in the preloaded symbols.
18904
exclude_expsyms=$lt_exclude_expsyms
18906
# Symbols that must always be exported.
18907
include_expsyms=$lt_include_expsyms
18909
# Commands necessary for linking programs (against libraries) with templates.
18910
prelink_cmds=$lt_prelink_cmds
18912
# Commands necessary for finishing linking programs.
18913
postlink_cmds=$lt_postlink_cmds
18915
# Specify filename containing input files.
18916
file_list_spec=$lt_file_list_spec
18918
# How to hardcode a shared library path into an executable.
18919
hardcode_action=$hardcode_action
18921
# ### END LIBTOOL CONFIG
18927
cat <<\_LT_EOF >> "$cfgfile"
18928
# AIX sometimes has problems with the GCC collect2 program. For some
18929
# reason, if we set the COLLECT_NAMES environment variable, the problems
18930
# vanish in a puff of smoke.
18931
if test "X${COLLECT_NAMES+set}" != Xset; then
18933
export COLLECT_NAMES
18940
ltmain="$ac_aux_dir/ltmain.sh"
18943
# We use sed instead of cat because bash on DJGPP gets confused if
18944
# if finds mixed CR/LF and LF-only lines. Since sed operates in
18945
# text mode, it properly converts lines to CR/LF. This bash problem
18946
# is reportedly fixed, but why not run on old versions too?
18947
sed '$q' "$ltmain" >> "$cfgfile" \
18948
|| (rm -f "$cfgfile"; exit 1)
18950
if test x"$xsi_shell" = xyes; then
18951
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18955
\ */*) func_dirname_result="${1%/*}${2}" ;;\
18956
\ * ) func_dirname_result="${3}" ;;\
18958
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18959
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18960
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18961
test 0 -eq $? || _lt_function_replace_fail=:
18964
sed -e '/^func_basename ()$/,/^} # func_basename /c\
18967
\ func_basename_result="${1##*/}"\
18968
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18969
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18970
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18971
test 0 -eq $? || _lt_function_replace_fail=:
18974
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18975
func_dirname_and_basename ()\
18978
\ */*) func_dirname_result="${1%/*}${2}" ;;\
18979
\ * ) func_dirname_result="${3}" ;;\
18981
\ func_basename_result="${1##*/}"\
18982
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18983
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18984
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18985
test 0 -eq $? || _lt_function_replace_fail=:
18988
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18991
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18992
\ # positional parameters, so assign one to ordinary parameter first.\
18993
\ func_stripname_result=${3}\
18994
\ func_stripname_result=${func_stripname_result#"${1}"}\
18995
\ func_stripname_result=${func_stripname_result%"${2}"}\
18996
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18997
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18998
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18999
test 0 -eq $? || _lt_function_replace_fail=:
19002
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19003
func_split_long_opt ()\
19005
\ func_split_long_opt_name=${1%%=*}\
19006
\ func_split_long_opt_arg=${1#*=}\
19007
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19008
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19009
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19010
test 0 -eq $? || _lt_function_replace_fail=:
19013
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19014
func_split_short_opt ()\
19016
\ func_split_short_opt_arg=${1#??}\
19017
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19018
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19019
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19020
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19021
test 0 -eq $? || _lt_function_replace_fail=:
19024
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19028
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19029
\ *) func_lo2o_result=${1} ;;\
19031
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19032
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19033
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19034
test 0 -eq $? || _lt_function_replace_fail=:
19037
sed -e '/^func_xform ()$/,/^} # func_xform /c\
19040
func_xform_result=${1%.*}.lo\
19041
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19042
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19043
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19044
test 0 -eq $? || _lt_function_replace_fail=:
19047
sed -e '/^func_arith ()$/,/^} # func_arith /c\
19050
func_arith_result=$(( $* ))\
19051
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19052
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19053
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19054
test 0 -eq $? || _lt_function_replace_fail=:
19057
sed -e '/^func_len ()$/,/^} # func_len /c\
19060
func_len_result=${#1}\
19061
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19062
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19063
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19064
test 0 -eq $? || _lt_function_replace_fail=:
19068
if test x"$lt_shell_append" = xyes; then
19069
sed -e '/^func_append ()$/,/^} # func_append /c\
19072
eval "${1}+=\\${2}"\
19073
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19074
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19075
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19076
test 0 -eq $? || _lt_function_replace_fail=:
19079
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19080
func_append_quoted ()\
19082
\ func_quote_for_eval "${2}"\
19083
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19084
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19085
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19086
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19087
test 0 -eq $? || _lt_function_replace_fail=:
19090
# Save a `func_append' function call where possible by direct use of '+='
19091
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19092
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19093
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19094
test 0 -eq $? || _lt_function_replace_fail=:
19096
# Save a `func_append' function call even when '+=' is not available
19097
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19098
&& mv -f "$cfgfile.tmp" "$cfgfile" \
19099
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19100
test 0 -eq $? || _lt_function_replace_fail=:
19103
if test x"$_lt_function_replace_fail" = x":"; then
19104
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19105
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19109
mv -f "$cfgfile" "$ofile" ||
19110
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19114
cat <<_LT_EOF >> "$ofile"
19116
# ### BEGIN LIBTOOL TAG CONFIG: F77
19118
# The linker used to build libraries.
19121
# How to create reloadable object files.
19122
reload_flag=$lt_reload_flag_F77
19123
reload_cmds=$lt_reload_cmds_F77
19125
# Commands used to build an old-style archive.
19126
old_archive_cmds=$lt_old_archive_cmds_F77
19128
# A language specific compiler.
19129
CC=$lt_compiler_F77
19131
# Is the compiler the GNU compiler?
19134
# Compiler flag to turn off builtin functions.
19135
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19137
# Additional compiler flags for building library objects.
19138
pic_flag=$lt_lt_prog_compiler_pic_F77
19140
# How to pass a linker flag through the compiler.
19141
wl=$lt_lt_prog_compiler_wl_F77
19143
# Compiler flag to prevent dynamic linking.
19144
link_static_flag=$lt_lt_prog_compiler_static_F77
19146
# Does compiler simultaneously support -c and -o options?
19147
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19149
# Whether or not to add -lc for building shared libraries.
19150
build_libtool_need_lc=$archive_cmds_need_lc_F77
19152
# Whether or not to disallow shared libs when runtime libs are static.
19153
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
19155
# Compiler flag to allow reflexive dlopens.
19156
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19158
# Compiler flag to generate shared objects directly from archives.
19159
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19161
# Whether the compiler copes with passing no objects directly.
19162
compiler_needs_object=$lt_compiler_needs_object_F77
19164
# Create an old-style archive from a shared archive.
19165
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19167
# Create a temporary old-style archive to link instead of a shared archive.
19168
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19170
# Commands used to build a shared archive.
19171
archive_cmds=$lt_archive_cmds_F77
19172
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19174
# Commands used to build a loadable module if different from building
19175
# a shared archive.
19176
module_cmds=$lt_module_cmds_F77
19177
module_expsym_cmds=$lt_module_expsym_cmds_F77
19179
# Whether we are building with GNU ld or not.
19180
with_gnu_ld=$lt_with_gnu_ld_F77
19182
# Flag that allows shared libraries with undefined symbols to be built.
19183
allow_undefined_flag=$lt_allow_undefined_flag_F77
19185
# Flag that enforces no undefined symbols.
19186
no_undefined_flag=$lt_no_undefined_flag_F77
19188
# Flag to hardcode \$libdir into a binary during linking.
19189
# This must work even if \$libdir does not exist
19190
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19192
# Whether we need a single "-rpath" flag with a separated argument.
19193
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19195
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19196
# DIR into the resulting binary.
19197
hardcode_direct=$hardcode_direct_F77
19199
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19200
# DIR into the resulting binary and the resulting library dependency is
19201
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19202
# library is relocated.
19203
hardcode_direct_absolute=$hardcode_direct_absolute_F77
19205
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19206
# into the resulting binary.
19207
hardcode_minus_L=$hardcode_minus_L_F77
19209
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19210
# into the resulting binary.
19211
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19213
# Set to "yes" if building a shared library automatically hardcodes DIR
19214
# into the library and all subsequent libraries and executables linked
19216
hardcode_automatic=$hardcode_automatic_F77
19218
# Set to yes if linker adds runtime paths of dependent libraries
19219
# to runtime path list.
19220
inherit_rpath=$inherit_rpath_F77
19222
# Whether libtool must link a program against all its dependency libraries.
19223
link_all_deplibs=$link_all_deplibs_F77
19225
# Set to "yes" if exported symbols are required.
19226
always_export_symbols=$always_export_symbols_F77
19228
# The commands to list exported symbols.
19229
export_symbols_cmds=$lt_export_symbols_cmds_F77
19231
# Symbols that should not be listed in the preloaded symbols.
19232
exclude_expsyms=$lt_exclude_expsyms_F77
19234
# Symbols that must always be exported.
19235
include_expsyms=$lt_include_expsyms_F77
19237
# Commands necessary for linking programs (against libraries) with templates.
19238
prelink_cmds=$lt_prelink_cmds_F77
19240
# Commands necessary for finishing linking programs.
19241
postlink_cmds=$lt_postlink_cmds_F77
19243
# Specify filename containing input files.
19244
file_list_spec=$lt_file_list_spec_F77
19246
# How to hardcode a shared library path into an executable.
19247
hardcode_action=$hardcode_action_F77
19249
# ### END LIBTOOL TAG CONFIG: F77
19260
ac_clean_files=$ac_clean_files_save
19262
test $ac_write_fail = 0 ||
19263
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19266
# configure is writing to config.log, and then calls config.status.
19267
# config.status does its own redirection, appending to config.log.
19268
# Unfortunately, on DOS this fails, as config.log is still kept open
19269
# by configure, so config.status won't be able to write to it; its
19270
# output is simply discarded. So we exec the FD to /dev/null,
19271
# effectively closing config.log, so it can be properly (re)opened and
19272
# appended to by config.status. When coming back to configure, we
19273
# need to make the FD available again.
19274
if test "$no_create" != yes; then
19276
ac_config_status_args=
19277
test "$silent" = yes &&
19278
ac_config_status_args="$ac_config_status_args --quiet"
19280
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19282
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
19283
# would make configure fail if this is the last instruction.
19284
$ac_cs_success || as_fn_exit 1
19286
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19287
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19288
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}