2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.68 for arpack 96.
5
@%:@ Report bugs to <arpack@caam.rice.edu>.
8
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13
@%:@ This configure script is free software; the Free Software Foundation
14
@%:@ gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in @%:@(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
96
*[\\/]* ) as_myself=$0 ;;
97
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101
test -z "$as_dir" && as_dir=.
102
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108
# We did not find ourselves, most probably we were run as `sh COMMAND'
109
# in which case we are not to be found in the path.
110
if test "x$as_myself" = x; then
113
if test ! -f "$as_myself"; then
114
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118
# Unset variables that we do not need and which cause bugs (e.g. in
119
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120
# suppresses any "Segmentation fault" message there. '((' could
121
# trigger a bug in pdksh 5.2.14.
122
for as_var in BASH_ENV ENV MAIL MAILPATH
123
do eval test x\${$as_var+set} = xset \
124
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
if test "x$CONFIG_SHELL" = x; then
140
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144
# is contrary to our usage. Disable this feature.
145
alias -g '\${1+\"\$@\"}'='\"\$@\"'
148
case \`(set -o) 2>/dev/null\` in @%:@(
150
set -o posix ;; @%:@(
156
as_required="as_fn_return () { (exit \$1); }
157
as_fn_success () { as_fn_return 0; }
158
as_fn_failure () { as_fn_return 1; }
159
as_fn_ret_success () { return 0; }
160
as_fn_ret_failure () { return 1; }
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170
exitcode=1; echo positional parameters were not saved.
172
test x\$exitcode = x0 || exit 1"
173
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182
PATH=/empty FPATH=/empty; export PATH FPATH
183
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185
test \$(( 1 + 1 )) = 2 || exit 1"
186
if (eval "$as_required") 2>/dev/null; then :
191
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199
test -z "$as_dir" && as_dir=.
201
case $as_dir in @%:@(
203
for as_base in sh bash ksh sh5; do
204
# Try only shells that exist, to save several forks.
205
as_shell=$as_dir/$as_base
206
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
CONFIG_SHELL=$as_shell as_have_required=yes
209
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219
CONFIG_SHELL=$SHELL as_have_required=yes
224
if test "x$CONFIG_SHELL" != x; then :
225
# We cannot yet assume a decent shell, so we have to provide a
226
# neutralization value for shells without unset; and this also
227
# works around shells that cannot unset nonexistent variables.
228
# Preserve -v and -x to the replacement shell.
231
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234
*v*x* | *x*v* ) as_opts=-vx ;;
239
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242
if test x$as_have_required = xno; then :
243
$as_echo "$0: This script requires a shell more modern than all"
244
$as_echo "$0: the shells that I found on your system."
245
if test x${ZSH_VERSION+set} = xset ; then
246
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
249
$as_echo "$0: Please tell bug-autoconf@gnu.org and
250
$0: arpack@caam.rice.edu about your system, including any
251
$0: error possibly output before this message. Then install
252
$0: a modern shell, or manually run the script under such a
253
$0: shell if you do have one."
259
SHELL=${CONFIG_SHELL-/bin/sh}
261
# Unset more variables known to interfere with behavior of common tools.
262
CLICOLOR_FORCE= GREP_OPTIONS=
263
unset CLICOLOR_FORCE GREP_OPTIONS
265
## --------------------- ##
266
## M4sh Shell Functions. ##
267
## --------------------- ##
270
@%:@ Portably unset VAR.
273
{ eval $1=; unset $1;}
277
@%:@ as_fn_set_status STATUS
278
@%:@ -----------------------
279
@%:@ Set @S|@? to STATUS, without forking.
283
} @%:@ as_fn_set_status
285
@%:@ as_fn_exit STATUS
286
@%:@ -----------------
287
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
302
-*) as_dir=./$as_dir;;
304
test -d "$as_dir" || eval $as_mkdir_p || {
308
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311
as_dirs="'$as_qdir' $as_dirs"
312
as_dir=`$as_dirname -- "$as_dir" ||
313
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314
X"$as_dir" : 'X\(//\)[^/]' \| \
315
X"$as_dir" : 'X\(//\)$' \| \
316
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317
$as_echo X"$as_dir" |
318
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335
test -d "$as_dir" && break
337
test -z "$as_dirs" || eval "mkdir $as_dirs"
338
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342
@%:@ as_fn_append VAR VALUE
343
@%:@ ----------------------
344
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
345
@%:@ advantage of any shell optimizations that allow amortized linear growth over
346
@%:@ repeated appends, instead of the typical quadratic growth present in naive
347
@%:@ implementations.
348
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349
eval 'as_fn_append ()
360
@%:@ as_fn_arith ARG...
361
@%:@ ------------------
362
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
363
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
364
@%:@ must be portable across @S|@(()) and expr.
365
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373
as_val=`expr "$@" || test $? -eq 1`
378
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
379
@%:@ ----------------------------------------
380
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382
@%:@ script with STATUS, using 1 if that was 0.
385
as_status=$1; test $as_status -eq 0 && as_status=1
387
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390
$as_echo "$as_me: error: $2" >&2
391
as_fn_exit $as_status
394
if expr a : '\(a\)' >/dev/null 2>&1 &&
395
test "X`expr 00001 : '.*\(...\)'`" = X001; then
401
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413
as_me=`$as_basename -- "$0" ||
414
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415
X"$0" : 'X\(//\)$' \| \
416
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418
sed '/^.*\/\([^/][^/]*\)\/*$/{
432
# Avoid depending upon Character Ranges.
433
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436
as_cr_digits='0123456789'
437
as_cr_alnum=$as_cr_Letters$as_cr_digits
440
as_lineno_1=$LINENO as_lineno_1a=$LINENO
441
as_lineno_2=$LINENO as_lineno_2a=$LINENO
442
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460
chmod +x "$as_me.lineno" ||
461
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
# Don't try to exec as it changes $[0], causing all sort of problems
464
# (the dirname of $[0] is not the place where we might find the
465
# original and so on. Autoconf is especially sensitive to this).
467
# Exit status is that of the last command.
471
ECHO_C= ECHO_N= ECHO_T=
472
case `echo -n x` in @%:@(((((
474
case `echo 'xy\c'` in
475
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
477
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484
rm -f conf$$ conf$$.exe conf$$.file
485
if test -d conf$$.dir; then
486
rm -f conf$$.dir/conf$$.file
489
mkdir conf$$.dir 2>/dev/null
491
if (echo >conf$$.file) 2>/dev/null; then
492
if ln -s conf$$.file conf$$ 2>/dev/null; then
494
# ... but there are two gotchas:
495
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
# In both cases, we have to default to `cp -p'.
498
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500
elif ln conf$$.file conf$$ 2>/dev/null; then
508
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509
rmdir conf$$.dir 2>/dev/null
511
if mkdir -p . 2>/dev/null; then
512
as_mkdir_p='mkdir -p "$as_dir"'
514
test -d ./-p && rmdir ./-p
518
if test -x / >/dev/null 2>&1; then
521
if ls -dL / >/dev/null 2>&1; then
528
if test -d "$1"; then
534
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
535
???[sx]*):;;*)false;;esac;fi
539
as_executable_p=$as_test_x
541
# Sed expression to map a string onto a valid CPP name.
542
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
# Sed expression to map a string onto a valid variable name.
545
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
SHELL=${CONFIG_SHELL-/bin/sh}
550
test -n "$DJDIR" || exec 7<&0 </dev/null
554
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555
# so uname gets run too.
556
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
ac_default_prefix=/usr/local
563
ac_config_libobj_dir=.
570
# Identity of this package.
571
PACKAGE_NAME='arpack'
572
PACKAGE_TARNAME='arpack'
574
PACKAGE_STRING='arpack 96'
575
PACKAGE_BUGREPORT='arpack@caam.rice.edu'
578
# Factoring default headers for most tests.
579
ac_includes_default="\
581
#ifdef HAVE_SYS_TYPES_H
582
# include <sys/types.h>
584
#ifdef HAVE_SYS_STAT_H
585
# include <sys/stat.h>
591
# ifdef HAVE_STDLIB_H
596
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601
#ifdef HAVE_STRINGS_H
602
# include <strings.h>
604
#ifdef HAVE_INTTYPES_H
605
# include <inttypes.h>
614
ac_subst_vars='am__EXEEXT_FALSE
681
INSTALL_STRIP_PROGRAM
723
program_transform_name
736
enable_option_checking
741
enable_dependency_tracking
749
ac_precious_vars='build_alias
763
# Initialize some variables set by options.
765
ac_init_version=false
766
ac_unrecognized_opts=
768
# The variables have the same names as the options, with
769
# dashes changed to underlines.
777
program_transform_name=s,x,x,
785
# Installation directory options.
786
# These are left unexpanded so users can "make install exec_prefix=/foo"
787
# and all the variables that are supposed to be based on exec_prefix
788
# by default will actually change.
789
# Use braces instead of parens because sh, perl, etc. also accept them.
790
# (The list follows the same order as the GNU Coding Standards.)
791
bindir='${exec_prefix}/bin'
792
sbindir='${exec_prefix}/sbin'
793
libexecdir='${exec_prefix}/libexec'
794
datarootdir='${prefix}/share'
795
datadir='${datarootdir}'
796
sysconfdir='${prefix}/etc'
797
sharedstatedir='${prefix}/com'
798
localstatedir='${prefix}/var'
799
includedir='${prefix}/include'
800
oldincludedir='/usr/include'
801
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802
infodir='${datarootdir}/info'
807
libdir='${exec_prefix}/lib'
808
localedir='${datarootdir}/locale'
809
mandir='${datarootdir}/man'
815
# If the previous option needs an argument, assign it.
816
if test -n "$ac_prev"; then
817
eval $ac_prev=\$ac_option
823
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828
# Accept the important Cygnus configure options, so we can diagnose typos.
830
case $ac_dashdash$ac_option in
834
-bindir | --bindir | --bindi | --bind | --bin | --bi)
836
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
839
-build | --build | --buil | --bui | --bu)
840
ac_prev=build_alias ;;
841
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
842
build_alias=$ac_optarg ;;
844
-cache-file | --cache-file | --cache-fil | --cache-fi \
845
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
846
ac_prev=cache_file ;;
847
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
848
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
849
cache_file=$ac_optarg ;;
852
cache_file=config.cache ;;
854
-datadir | --datadir | --datadi | --datad)
856
-datadir=* | --datadir=* | --datadi=* | --datad=*)
857
datadir=$ac_optarg ;;
859
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
860
| --dataroo | --dataro | --datar)
861
ac_prev=datarootdir ;;
862
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
863
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
864
datarootdir=$ac_optarg ;;
866
-disable-* | --disable-*)
867
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
868
# Reject names that are not valid shell variable names.
869
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870
as_fn_error $? "invalid feature name: $ac_useropt"
871
ac_useropt_orig=$ac_useropt
872
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873
case $ac_user_opts in
877
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878
ac_unrecognized_sep=', ';;
880
eval enable_$ac_useropt=no ;;
882
-docdir | --docdir | --docdi | --doc | --do)
884
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
887
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
892
-enable-* | --enable-*)
893
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894
# Reject names that are not valid shell variable names.
895
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896
as_fn_error $? "invalid feature name: $ac_useropt"
897
ac_useropt_orig=$ac_useropt
898
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899
case $ac_user_opts in
903
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904
ac_unrecognized_sep=', ';;
906
eval enable_$ac_useropt=\$ac_optarg ;;
908
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910
| --exec | --exe | --ex)
911
ac_prev=exec_prefix ;;
912
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914
| --exec=* | --exe=* | --ex=*)
915
exec_prefix=$ac_optarg ;;
917
-gas | --gas | --ga | --g)
918
# Obsolete; use --with-gas.
921
-help | --help | --hel | --he | -h)
923
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924
ac_init_help=recursive ;;
925
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926
ac_init_help=short ;;
928
-host | --host | --hos | --ho)
929
ac_prev=host_alias ;;
930
-host=* | --host=* | --hos=* | --ho=*)
931
host_alias=$ac_optarg ;;
933
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937
htmldir=$ac_optarg ;;
939
-includedir | --includedir | --includedi | --included | --include \
940
| --includ | --inclu | --incl | --inc)
941
ac_prev=includedir ;;
942
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943
| --includ=* | --inclu=* | --incl=* | --inc=*)
944
includedir=$ac_optarg ;;
946
-infodir | --infodir | --infodi | --infod | --info | --inf)
948
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949
infodir=$ac_optarg ;;
951
-libdir | --libdir | --libdi | --libd)
953
-libdir=* | --libdir=* | --libdi=* | --libd=*)
956
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957
| --libexe | --libex | --libe)
958
ac_prev=libexecdir ;;
959
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960
| --libexe=* | --libex=* | --libe=*)
961
libexecdir=$ac_optarg ;;
963
-localedir | --localedir | --localedi | --localed | --locale)
965
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966
localedir=$ac_optarg ;;
968
-localstatedir | --localstatedir | --localstatedi | --localstated \
969
| --localstate | --localstat | --localsta | --localst | --locals)
970
ac_prev=localstatedir ;;
971
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973
localstatedir=$ac_optarg ;;
975
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981
# Obsolete; use --without-fp.
984
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
985
| --no-cr | --no-c | -n)
988
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
989
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994
| --oldin | --oldi | --old | --ol | --o)
995
ac_prev=oldincludedir ;;
996
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999
oldincludedir=$ac_optarg ;;
1001
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004
prefix=$ac_optarg ;;
1006
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1007
| --program-pre | --program-pr | --program-p)
1008
ac_prev=program_prefix ;;
1009
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1010
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011
program_prefix=$ac_optarg ;;
1013
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1014
| --program-suf | --program-su | --program-s)
1015
ac_prev=program_suffix ;;
1016
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1017
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018
program_suffix=$ac_optarg ;;
1020
-program-transform-name | --program-transform-name \
1021
| --program-transform-nam | --program-transform-na \
1022
| --program-transform-n | --program-transform- \
1023
| --program-transform | --program-transfor \
1024
| --program-transfo | --program-transf \
1025
| --program-trans | --program-tran \
1026
| --progr-tra | --program-tr | --program-t)
1027
ac_prev=program_transform_name ;;
1028
-program-transform-name=* | --program-transform-name=* \
1029
| --program-transform-nam=* | --program-transform-na=* \
1030
| --program-transform-n=* | --program-transform-=* \
1031
| --program-transform=* | --program-transfor=* \
1032
| --program-transfo=* | --program-transf=* \
1033
| --program-trans=* | --program-tran=* \
1034
| --progr-tra=* | --program-tr=* | --program-t=*)
1035
program_transform_name=$ac_optarg ;;
1037
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040
pdfdir=$ac_optarg ;;
1042
-psdir | --psdir | --psdi | --psd | --ps)
1044
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048
| -silent | --silent | --silen | --sile | --sil)
1051
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055
sbindir=$ac_optarg ;;
1057
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1058
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059
| --sharedst | --shareds | --shared | --share | --shar \
1061
ac_prev=sharedstatedir ;;
1062
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066
sharedstatedir=$ac_optarg ;;
1068
-site | --site | --sit)
1070
-site=* | --site=* | --sit=*)
1073
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076
srcdir=$ac_optarg ;;
1078
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079
| --syscon | --sysco | --sysc | --sys | --sy)
1080
ac_prev=sysconfdir ;;
1081
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083
sysconfdir=$ac_optarg ;;
1085
-target | --target | --targe | --targ | --tar | --ta | --t)
1086
ac_prev=target_alias ;;
1087
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088
target_alias=$ac_optarg ;;
1090
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1093
-version | --version | --versio | --versi | --vers | -V)
1094
ac_init_version=: ;;
1097
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098
# Reject names that are not valid shell variable names.
1099
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100
as_fn_error $? "invalid package name: $ac_useropt"
1101
ac_useropt_orig=$ac_useropt
1102
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103
case $ac_user_opts in
1107
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108
ac_unrecognized_sep=', ';;
1110
eval with_$ac_useropt=\$ac_optarg ;;
1112
-without-* | --without-*)
1113
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114
# Reject names that are not valid shell variable names.
1115
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116
as_fn_error $? "invalid package name: $ac_useropt"
1117
ac_useropt_orig=$ac_useropt
1118
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119
case $ac_user_opts in
1123
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1124
ac_unrecognized_sep=', ';;
1126
eval with_$ac_useropt=no ;;
1129
# Obsolete; use --with-x.
1132
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133
| --x-incl | --x-inc | --x-in | --x-i)
1134
ac_prev=x_includes ;;
1135
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1137
x_includes=$ac_optarg ;;
1139
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1140
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141
ac_prev=x_libraries ;;
1142
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1144
x_libraries=$ac_optarg ;;
1146
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1147
Try \`$0 --help' for more information"
1151
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1152
# Reject names that are not valid shell variable names.
1153
case $ac_envvar in #(
1154
'' | [0-9]* | *[!_$as_cr_alnum]* )
1155
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1157
eval $ac_envvar=\$ac_optarg
1158
export $ac_envvar ;;
1161
# FIXME: should be removed in autoconf 3.0.
1162
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1171
if test -n "$ac_prev"; then
1172
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173
as_fn_error $? "missing argument to $ac_option"
1176
if test -n "$ac_unrecognized_opts"; then
1177
case $enable_option_checking in
1179
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1180
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184
# Check all directory arguments for consistency.
1185
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1186
datadir sysconfdir sharedstatedir localstatedir includedir \
1187
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1188
libdir localedir mandir
1190
eval ac_val=\$$ac_var
1191
# Remove trailing slashes.
1194
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1195
eval $ac_var=\$ac_val;;
1197
# Be sure to have absolute directory names.
1199
[\\/$]* | ?:[\\/]* ) continue;;
1200
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1205
# There might be people who depend on the old broken behavior: `$host'
1206
# used to hold the argument of --host etc.
1207
# FIXME: To remove some day.
1210
target=$target_alias
1212
# FIXME: To remove some day.
1213
if test "x$host_alias" != x; then
1214
if test "x$build_alias" = x; then
1215
cross_compiling=maybe
1216
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1217
If a cross compiler is detected then cross compile mode will be used" >&2
1218
elif test "x$build_alias" != "x$host_alias"; then
1224
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
test "$silent" = yes && exec 6>/dev/null
1229
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1230
ac_ls_di=`ls -di .` &&
1231
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1232
as_fn_error $? "working directory cannot be determined"
1233
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234
as_fn_error $? "pwd does not report name of working directory"
1237
# Find the source files, if location was not specified.
1238
if test -z "$srcdir"; then
1239
ac_srcdir_defaulted=yes
1240
# Try the directory containing this script, then the parent directory.
1241
ac_confdir=`$as_dirname -- "$as_myself" ||
1242
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243
X"$as_myself" : 'X\(//\)[^/]' \| \
1244
X"$as_myself" : 'X\(//\)$' \| \
1245
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1246
$as_echo X"$as_myself" |
1247
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265
if test ! -r "$srcdir/$ac_unique_file"; then
1269
ac_srcdir_defaulted=no
1271
if test ! -r "$srcdir/$ac_unique_file"; then
1272
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279
# When building in place, set srcdir=.
1280
if test "$ac_abs_confdir" = "$ac_pwd"; then
1283
# Remove unnecessary trailing slashes from srcdir.
1284
# Double slashes in file names in object file debugging info
1285
# mess up M-x gdb in Emacs.
1287
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289
for ac_var in $ac_precious_vars; do
1290
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291
eval ac_env_${ac_var}_value=\$${ac_var}
1292
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297
# Report the --help message.
1299
if test "$ac_init_help" = "long"; then
1300
# Omit some internal or obsolete options to make the list less imposing.
1301
# This message is too long to be a string in the A/UX 3.1 sh.
1303
\`configure' configures arpack 96 to adapt to many kinds of systems.
1305
Usage: $0 [OPTION]... [VAR=VALUE]...
1307
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308
VAR=VALUE. See below for descriptions of some of the useful variables.
1310
Defaults for the options are specified in brackets.
1313
-h, --help display this help and exit
1314
--help=short display options specific to this package
1315
--help=recursive display the short help of all the included packages
1316
-V, --version display version information and exit
1317
-q, --quiet, --silent do not print \`checking ...' messages
1318
--cache-file=FILE cache test results in FILE [disabled]
1319
-C, --config-cache alias for \`--cache-file=config.cache'
1320
-n, --no-create do not create output files
1321
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
Installation directories:
1324
--prefix=PREFIX install architecture-independent files in PREFIX
1325
@<:@@S|@ac_default_prefix@:>@
1326
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329
By default, \`make install' will install all the files in
1330
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332
for instance \`--prefix=\$HOME'.
1334
For better control, use the options below.
1336
Fine tuning of the installation directories:
1337
--bindir=DIR user executables [EPREFIX/bin]
1338
--sbindir=DIR system admin executables [EPREFIX/sbin]
1339
--libexecdir=DIR program executables [EPREFIX/libexec]
1340
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343
--libdir=DIR object code libraries [EPREFIX/lib]
1344
--includedir=DIR C header files [PREFIX/include]
1345
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1346
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348
--infodir=DIR info documentation [DATAROOTDIR/info]
1349
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350
--mandir=DIR man documentation [DATAROOTDIR/man]
1351
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/arpack@:>@
1352
--htmldir=DIR html documentation [DOCDIR]
1353
--dvidir=DIR dvi documentation [DOCDIR]
1354
--pdfdir=DIR pdf documentation [DOCDIR]
1355
--psdir=DIR ps documentation [DOCDIR]
1361
--program-prefix=PREFIX prepend PREFIX to installed program names
1362
--program-suffix=SUFFIX append SUFFIX to installed program names
1363
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1366
--build=BUILD configure for building on BUILD [guessed]
1367
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1371
if test -n "$ac_init_help"; then
1372
case $ac_init_help in
1373
short | recursive ) echo "Configuration of arpack 96:";;
1378
--disable-option-checking ignore unrecognized --enable/--with options
1379
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1381
--enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1382
--enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1383
--enable-fast-install@<:@=PKGS@:>@
1384
optimize for fast installation @<:@default=yes@:>@
1385
--disable-dependency-tracking speeds up one-time build
1386
--enable-dependency-tracking do not reject slow dependency extractors
1387
--disable-libtool-lock avoid locking (might break parallel builds)
1388
--enable-mpi build parallel version of arpack with MPI
1391
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1392
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1393
--with-pic try to use only PIC/non-PIC objects @<:@default=use
1395
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1396
--with-sysroot=DIR Search for dependent libraries within DIR
1397
(or the compiler's sysroot if not specified).
1398
--with-blas=<lib> use BLAS library <lib>
1399
--with-lapack=<lib> use LAPACK library <lib>
1401
Some influential environment variables:
1402
F77 Fortran 77 compiler command
1403
FFLAGS Fortran 77 compiler flags
1404
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405
nonstandard directory <lib dir>
1406
LIBS libraries to pass to the linker, e.g. -l<library>
1407
CC C compiler command
1408
CFLAGS C compiler flags
1409
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1410
you have headers in a nonstandard directory <include dir>
1412
MPIF77 MPI Fortran 77 compiler command
1414
Use these variables to override the choices made by `configure' or to help
1415
it to find libraries and programs with nonstandard names/locations.
1417
Report bugs to <arpack@caam.rice.edu>.
1422
if test "$ac_init_help" = "recursive"; then
1423
# If there are subdirs, report their specific --help.
1424
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425
test -d "$ac_dir" ||
1426
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1434
# A ".." for each directory in $ac_dir_suffix.
1435
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1436
case $ac_top_builddir_sub in
1437
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441
ac_abs_top_builddir=$ac_pwd
1442
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1443
# for backward compatibility:
1444
ac_top_builddir=$ac_top_build_prefix
1447
.) # We are building in place.
1449
ac_top_srcdir=$ac_top_builddir_sub
1450
ac_abs_top_srcdir=$ac_pwd ;;
1451
[\\/]* | ?:[\\/]* ) # Absolute name.
1452
ac_srcdir=$srcdir$ac_dir_suffix;
1453
ac_top_srcdir=$srcdir
1454
ac_abs_top_srcdir=$srcdir ;;
1456
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457
ac_top_srcdir=$ac_top_build_prefix$srcdir
1458
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
cd "$ac_dir" || { ac_status=$?; continue; }
1463
# Check for guested configure.
1464
if test -f "$ac_srcdir/configure.gnu"; then
1466
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467
elif test -f "$ac_srcdir/configure"; then
1469
$SHELL "$ac_srcdir/configure" --help=recursive
1471
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473
cd "$ac_pwd" || { ac_status=$?; break; }
1477
test -n "$ac_init_help" && exit $ac_status
1478
if $ac_init_version; then
1481
generated by GNU Autoconf 2.68
1483
Copyright (C) 2010 Free Software Foundation, Inc.
1484
This configure script is free software; the Free Software Foundation
1485
gives unlimited permission to copy, distribute and modify it.
1490
## ------------------------ ##
1491
## Autoconf initialization. ##
1492
## ------------------------ ##
1494
@%:@ ac_fn_f77_try_compile LINENO
1495
@%:@ ----------------------------
1496
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1497
ac_fn_f77_try_compile ()
1499
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500
rm -f conftest.$ac_objext
1501
if { { ac_try="$ac_compile"
1503
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1504
*) ac_try_echo=$ac_try;;
1506
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507
$as_echo "$ac_try_echo"; } >&5
1508
(eval "$ac_compile") 2>conftest.err
1510
if test -s conftest.err; then
1511
grep -v '^ *+' conftest.err >conftest.er1
1512
cat conftest.er1 >&5
1513
mv -f conftest.er1 conftest.err
1515
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516
test $ac_status = 0; } && {
1517
test -z "$ac_f77_werror_flag" ||
1518
test ! -s conftest.err
1519
} && test -s conftest.$ac_objext; then :
1522
$as_echo "$as_me: failed program was:" >&5
1523
sed 's/^/| /' conftest.$ac_ext >&5
1527
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1528
as_fn_set_status $ac_retval
1530
} @%:@ ac_fn_f77_try_compile
1532
@%:@ ac_fn_c_try_compile LINENO
1533
@%:@ --------------------------
1534
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1535
ac_fn_c_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_c_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_c_try_compile
1570
@%:@ ac_fn_c_try_link LINENO
1571
@%:@ -----------------------
1572
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1575
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576
rm -f conftest.$ac_objext conftest$ac_exeext
1577
if { { ac_try="$ac_link"
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_link") 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_exeext && {
1596
test "$cross_compiling" = yes ||
1597
$as_test_x conftest$ac_exeext
1601
$as_echo "$as_me: failed program was:" >&5
1602
sed 's/^/| /' conftest.$ac_ext >&5
1606
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1607
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1608
# interfere with the next link command; also delete a directory that is
1609
# left behind by Apple's compiler. We do this before executing the actions.
1610
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1611
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612
as_fn_set_status $ac_retval
1614
} @%:@ ac_fn_c_try_link
1616
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1617
@%:@ -------------------------------------------------------
1618
@%:@ Tests whether HEADER exists and can be compiled using the include files in
1619
@%:@ INCLUDES, setting the cache variable VAR accordingly.
1620
ac_fn_c_check_header_compile ()
1622
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624
$as_echo_n "checking for $2... " >&6; }
1625
if eval \${$3+:} false; then :
1626
$as_echo_n "(cached) " >&6
1628
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629
/* end confdefs.h. */
1633
if ac_fn_c_try_compile "$LINENO"; then :
1638
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642
$as_echo "$ac_res" >&6; }
1643
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
} @%:@ ac_fn_c_check_header_compile
1647
@%:@ ac_fn_c_try_cpp LINENO
1648
@%:@ ----------------------
1649
@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1652
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653
if { { ac_try="$ac_cpp conftest.$ac_ext"
1655
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656
*) ac_try_echo=$ac_try;;
1658
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659
$as_echo "$ac_try_echo"; } >&5
1660
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662
if test -s conftest.err; then
1663
grep -v '^ *+' conftest.err >conftest.er1
1664
cat conftest.er1 >&5
1665
mv -f conftest.er1 conftest.err
1667
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668
test $ac_status = 0; } > conftest.i && {
1669
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670
test ! -s conftest.err
1674
$as_echo "$as_me: failed program was:" >&5
1675
sed 's/^/| /' conftest.$ac_ext >&5
1679
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
as_fn_set_status $ac_retval
1682
} @%:@ ac_fn_c_try_cpp
1684
@%:@ ac_fn_c_try_run LINENO
1685
@%:@ ----------------------
1686
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1687
@%:@ that executables *can* be run.
1690
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691
if { { ac_try="$ac_link"
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_link") 2>&5
1700
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702
{ { case "(($ac_try" in
1703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704
*) ac_try_echo=$ac_try;;
1706
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707
$as_echo "$ac_try_echo"; } >&5
1708
(eval "$ac_try") 2>&5
1710
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711
test $ac_status = 0; }; }; then :
1714
$as_echo "$as_me: program exited with status $ac_status" >&5
1715
$as_echo "$as_me: failed program was:" >&5
1716
sed 's/^/| /' conftest.$ac_ext >&5
1718
ac_retval=$ac_status
1720
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
as_fn_set_status $ac_retval
1724
} @%:@ ac_fn_c_try_run
1726
@%:@ ac_fn_c_check_func LINENO FUNC VAR
1727
@%:@ ----------------------------------
1728
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1729
ac_fn_c_check_func ()
1731
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733
$as_echo_n "checking for $2... " >&6; }
1734
if eval \${$3+:} false; then :
1735
$as_echo_n "(cached) " >&6
1737
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738
/* end confdefs.h. */
1739
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1740
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1741
#define $2 innocuous_$2
1743
/* System header to define __stub macros and hopefully few prototypes,
1744
which can conflict with char $2 (); below.
1745
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1746
<limits.h> exists even on freestanding compilers. */
1749
# include <limits.h>
1751
# include <assert.h>
1756
/* Override any GCC internal prototype to avoid an error.
1757
Use char because int might match the return type of a GCC
1758
builtin and then its argument prototype would still apply. */
1763
/* The GNU C library defines this for functions which it implements
1764
to always fail with ENOSYS. Some functions are actually named
1765
something starting with __ and the normal name is an alias. */
1766
#if defined __stub_$2 || defined __stub___$2
1778
if ac_fn_c_try_link "$LINENO"; then :
1783
rm -f core conftest.err conftest.$ac_objext \
1784
conftest$ac_exeext conftest.$ac_ext
1787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788
$as_echo "$ac_res" >&6; }
1789
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
} @%:@ ac_fn_c_check_func
1793
@%:@ ac_fn_f77_try_link LINENO
1794
@%:@ -------------------------
1795
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1796
ac_fn_f77_try_link ()
1798
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799
rm -f conftest.$ac_objext conftest$ac_exeext
1800
if { { ac_try="$ac_link"
1802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803
*) ac_try_echo=$ac_try;;
1805
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806
$as_echo "$ac_try_echo"; } >&5
1807
(eval "$ac_link") 2>conftest.err
1809
if test -s conftest.err; then
1810
grep -v '^ *+' conftest.err >conftest.er1
1811
cat conftest.er1 >&5
1812
mv -f conftest.er1 conftest.err
1814
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815
test $ac_status = 0; } && {
1816
test -z "$ac_f77_werror_flag" ||
1817
test ! -s conftest.err
1818
} && test -s conftest$ac_exeext && {
1819
test "$cross_compiling" = yes ||
1820
$as_test_x conftest$ac_exeext
1824
$as_echo "$as_me: failed program was:" >&5
1825
sed 's/^/| /' conftest.$ac_ext >&5
1829
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831
# interfere with the next link command; also delete a directory that is
1832
# left behind by Apple's compiler. We do this before executing the actions.
1833
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
as_fn_set_status $ac_retval
1837
} @%:@ ac_fn_f77_try_link
1838
cat >config.log <<_ACEOF
1839
This file contains any messages produced by compilers while
1840
running configure, to aid debugging if configure makes a mistake.
1842
It was created by arpack $as_me 96, which was
1843
generated by GNU Autoconf 2.68. Invocation command line was
1855
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1856
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1857
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1858
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1859
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1861
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1862
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1864
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1865
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1866
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1867
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1868
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1869
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1870
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878
test -z "$as_dir" && as_dir=.
1879
$as_echo "PATH: $as_dir"
1895
# Keep a trace of the command line.
1896
# Strip out --no-create and --no-recursion so they do not pile up.
1897
# Strip out --silent because we don't want to record it for future runs.
1898
# Also quote any args containing shell meta-characters.
1899
# Make two passes to allow for proper duplicate-argument suppression.
1903
ac_must_keep_next=false
1909
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1910
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1911
| -silent | --silent | --silen | --sile | --sil)
1914
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1917
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1919
as_fn_append ac_configure_args1 " '$ac_arg'"
1920
if test $ac_must_keep_next = true; then
1921
ac_must_keep_next=false # Got value, back to normal.
1924
*=* | --config-cache | -C | -disable-* | --disable-* \
1925
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1926
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1927
| -with-* | --with-* | -without-* | --without-* | --x)
1928
case "$ac_configure_args0 " in
1929
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1932
-* ) ac_must_keep_next=true ;;
1935
as_fn_append ac_configure_args " '$ac_arg'"
1940
{ ac_configure_args0=; unset ac_configure_args0;}
1941
{ ac_configure_args1=; unset ac_configure_args1;}
1943
# When interrupted or exit'd, cleanup temporary files, and complete
1944
# config.log. We remove comments because anyway the quotes in there
1945
# would cause problems or look ugly.
1946
# WARNING: Use '\'' to represent an apostrophe within the trap.
1947
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1948
trap 'exit_status=$?
1949
# Save into config.log some information that might help in debugging.
1953
$as_echo "## ---------------- ##
1954
## Cache variables. ##
1955
## ---------------- ##"
1957
# The following way of writing the cache mishandles newlines in values,
1959
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960
eval ac_val=\$$ac_var
1964
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1965
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1968
_ | IFS | as_nl) ;; #(
1969
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1970
*) { eval $ac_var=; unset $ac_var;} ;;
1975
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1976
*${as_nl}ac_space=\ *)
1978
"s/'\''/'\''\\\\'\'''\''/g;
1979
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1982
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1989
$as_echo "## ----------------- ##
1990
## Output variables. ##
1991
## ----------------- ##"
1993
for ac_var in $ac_subst_vars
1995
eval ac_val=\$$ac_var
1997
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999
$as_echo "$ac_var='\''$ac_val'\''"
2003
if test -n "$ac_subst_files"; then
2004
$as_echo "## ------------------- ##
2005
## File substitutions. ##
2006
## ------------------- ##"
2008
for ac_var in $ac_subst_files
2010
eval ac_val=\$$ac_var
2012
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014
$as_echo "$ac_var='\''$ac_val'\''"
2019
if test -s confdefs.h; then
2020
$as_echo "## ----------- ##
2027
test "$ac_signal" != 0 &&
2028
$as_echo "$as_me: caught signal $ac_signal"
2029
$as_echo "$as_me: exit $exit_status"
2031
rm -f core *.core core.conftest.* &&
2032
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2035
for ac_signal in 1 2 13 15; do
2036
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2040
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2041
rm -f -r conftest* confdefs.h
2043
$as_echo "/* confdefs.h */" > confdefs.h
2045
# Predefined preprocessor variables.
2047
cat >>confdefs.h <<_ACEOF
2048
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2051
cat >>confdefs.h <<_ACEOF
2052
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2055
cat >>confdefs.h <<_ACEOF
2056
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2059
cat >>confdefs.h <<_ACEOF
2060
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2063
cat >>confdefs.h <<_ACEOF
2064
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2067
cat >>confdefs.h <<_ACEOF
2068
@%:@define PACKAGE_URL "$PACKAGE_URL"
2072
# Let the site file select an alternate cache file if it wants to.
2073
# Prefer an explicitly selected file to automatically selected ones.
2076
if test -n "$CONFIG_SITE"; then
2077
# We do not want a PATH search for config.site.
2078
case $CONFIG_SITE in @%:@((
2079
-*) ac_site_file1=./$CONFIG_SITE;;
2080
*/*) ac_site_file1=$CONFIG_SITE;;
2081
*) ac_site_file1=./$CONFIG_SITE;;
2083
elif test "x$prefix" != xNONE; then
2084
ac_site_file1=$prefix/share/config.site
2085
ac_site_file2=$prefix/etc/config.site
2087
ac_site_file1=$ac_default_prefix/share/config.site
2088
ac_site_file2=$ac_default_prefix/etc/config.site
2090
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2092
test "x$ac_site_file" = xNONE && continue
2093
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2094
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2095
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2096
sed 's/^/| /' "$ac_site_file" >&5
2098
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2099
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2100
as_fn_error $? "failed to load site script $ac_site_file
2101
See \`config.log' for more details" "$LINENO" 5; }
2105
if test -r "$cache_file"; then
2106
# Some versions of bash will fail to source /dev/null (special files
2107
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2108
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2109
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2110
$as_echo "$as_me: loading cache $cache_file" >&6;}
2112
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2113
*) . "./$cache_file";;
2117
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2118
$as_echo "$as_me: creating cache $cache_file" >&6;}
2122
# Check that the precious variables saved in the cache have kept the same
2124
ac_cache_corrupted=false
2125
for ac_var in $ac_precious_vars; do
2126
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2127
eval ac_new_set=\$ac_env_${ac_var}_set
2128
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2129
eval ac_new_val=\$ac_env_${ac_var}_value
2130
case $ac_old_set,$ac_new_set in
2132
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2133
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2134
ac_cache_corrupted=: ;;
2136
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2137
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2138
ac_cache_corrupted=: ;;
2141
if test "x$ac_old_val" != "x$ac_new_val"; then
2142
# differences in whitespace do not lead to failure.
2143
ac_old_val_w=`echo x $ac_old_val`
2144
ac_new_val_w=`echo x $ac_new_val`
2145
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2146
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2147
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2148
ac_cache_corrupted=:
2150
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2151
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2152
eval $ac_var=\$ac_old_val
2154
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2155
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2156
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2157
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2160
# Pass precious variables to config.status.
2161
if test "$ac_new_set" = set; then
2163
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2164
*) ac_arg=$ac_var=$ac_new_val ;;
2166
case " $ac_configure_args " in
2167
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2168
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2172
if $ac_cache_corrupted; then
2173
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2174
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2175
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2176
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2177
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2179
## -------------------- ##
2180
## Main body of script. ##
2181
## -------------------- ##
2184
ac_cpp='$CPP $CPPFLAGS'
2185
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190
am__api_version='1.11'
2193
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2194
if test -f "$ac_dir/install-sh"; then
2196
ac_install_sh="$ac_aux_dir/install-sh -c"
2198
elif test -f "$ac_dir/install.sh"; then
2200
ac_install_sh="$ac_aux_dir/install.sh -c"
2202
elif test -f "$ac_dir/shtool"; then
2204
ac_install_sh="$ac_aux_dir/shtool install -c"
2208
if test -z "$ac_aux_dir"; then
2209
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2212
# These three variables are undocumented and unsupported,
2213
# and are intended to be withdrawn in a future Autoconf release.
2214
# They can cause serious problems if a builder's source tree is in a directory
2215
# whose full name contains unusual characters.
2216
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2217
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2218
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2221
# Find a good install program. We prefer a C program (faster),
2222
# so one script is as good as another. But avoid the broken or
2223
# incompatible versions:
2224
# SysV /etc/install, /usr/sbin/install
2225
# SunOS /usr/etc/install
2226
# IRIX /sbin/install
2228
# AmigaOS /C/install, which installs bootblocks on floppy discs
2229
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2230
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2231
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2232
# OS/2's system install, which has a completely different semantic
2233
# ./install, which can be erroneously created by make from ./install.sh.
2234
# Reject install programs that cannot install multiple files.
2235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2236
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2237
if test -z "$INSTALL"; then
2238
if ${ac_cv_path_install+:} false; then :
2239
$as_echo_n "(cached) " >&6
2241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245
test -z "$as_dir" && as_dir=.
2246
# Account for people who put trailing slashes in PATH elements.
2247
case $as_dir/ in @%:@((
2248
./ | .// | /[cC]/* | \
2249
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2250
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2253
# OSF1 and SCO ODT 3.0 have their own names for install.
2254
# Don't use installbsd from OSF since it installs stuff as root
2256
for ac_prog in ginstall scoinst install; do
2257
for ac_exec_ext in '' $ac_executable_extensions; do
2258
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2259
if test $ac_prog = install &&
2260
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2261
# AIX install. It has an incompatible calling convention.
2263
elif test $ac_prog = install &&
2264
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2265
# program-specific install script used by HP pwplus--don't use.
2268
rm -rf conftest.one conftest.two conftest.dir
2269
echo one > conftest.one
2270
echo two > conftest.two
2272
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2273
test -s conftest.one && test -s conftest.two &&
2274
test -s conftest.dir/conftest.one &&
2275
test -s conftest.dir/conftest.two
2277
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2290
rm -rf conftest.one conftest.two conftest.dir
2293
if test "${ac_cv_path_install+set}" = set; then
2294
INSTALL=$ac_cv_path_install
2296
# As a last resort, use the slow shell script. Don't cache a
2297
# value for INSTALL within a source directory, because that will
2298
# break other packages using the cache if that directory is
2299
# removed, or if the value is a relative name.
2300
INSTALL=$ac_install_sh
2303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2304
$as_echo "$INSTALL" >&6; }
2306
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2307
# It thinks the first close brace ends the variable substitution.
2308
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2310
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2312
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2315
$as_echo_n "checking whether build environment is sane... " >&6; }
2318
echo timestamp > conftest.file
2319
# Reject unsafe characters in $srcdir or the absolute working directory
2320
# name. Accept space and tab only in the latter.
2324
*[\\\"\#\$\&\'\`$am_lf]*)
2325
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2328
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2329
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2332
# Do `set' in a subshell so we don't clobber the current shell's
2333
# arguments. Must try -L first in case configure is actually a
2334
# symlink; some systems play weird games with the mod time of symlinks
2335
# (eg FreeBSD returns the mod time of the symlink's containing
2338
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2339
if test "$*" = "X"; then
2341
set X `ls -t "$srcdir/configure" conftest.file`
2344
if test "$*" != "X $srcdir/configure conftest.file" \
2345
&& test "$*" != "X conftest.file $srcdir/configure"; then
2347
# If neither matched, then we have a broken ls. This can happen
2348
# if, for instance, CONFIG_SHELL is bash and it inherits a
2349
# broken ls alias from the environment. This has actually
2350
# happened. Such a system could not be considered "sane".
2351
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2352
alias in your environment" "$LINENO" 5
2355
test "$2" = conftest.file
2361
as_fn_error $? "newly created file is older than distributed files!
2362
Check your system clock" "$LINENO" 5
2364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2365
$as_echo "yes" >&6; }
2366
test "$program_prefix" != NONE &&
2367
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2368
# Use a double $ so make ignores it.
2369
test "$program_suffix" != NONE &&
2370
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2371
# Double any \ or $.
2372
# By default was `s,x,x', remove it if useless.
2373
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2374
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2376
# expand $ac_aux_dir to an absolute path
2377
am_aux_dir=`cd $ac_aux_dir && pwd`
2379
if test x"${MISSING+set}" != xset; then
2382
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2384
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2387
# Use eval to expand $SHELL
2388
if eval "$MISSING --run true"; then
2389
am_missing_run="$MISSING --run "
2392
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2393
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2396
if test x"${install_sh}" != xset; then
2399
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2401
install_sh="\${SHELL} $am_aux_dir/install-sh"
2405
# Installed binaries are usually stripped using `strip' when the user
2406
# run `make install-strip'. However `strip' might not be the right
2407
# tool to use in cross-compilation environments, therefore Automake
2408
# will honor the `STRIP' environment variable to overrule this program.
2409
if test "$cross_compiling" != no; then
2410
if test -n "$ac_tool_prefix"; then
2411
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2412
set dummy ${ac_tool_prefix}strip; ac_word=$2
2413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414
$as_echo_n "checking for $ac_word... " >&6; }
2415
if ${ac_cv_prog_STRIP+:} false; then :
2416
$as_echo_n "(cached) " >&6
2418
if test -n "$STRIP"; then
2419
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2421
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425
test -z "$as_dir" && as_dir=.
2426
for ac_exec_ext in '' $ac_executable_extensions; do
2427
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2429
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2438
STRIP=$ac_cv_prog_STRIP
2439
if test -n "$STRIP"; then
2440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2441
$as_echo "$STRIP" >&6; }
2443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2444
$as_echo "no" >&6; }
2449
if test -z "$ac_cv_prog_STRIP"; then
2451
# Extract the first word of "strip", so it can be a program name with args.
2452
set dummy strip; ac_word=$2
2453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454
$as_echo_n "checking for $ac_word... " >&6; }
2455
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2456
$as_echo_n "(cached) " >&6
2458
if test -n "$ac_ct_STRIP"; then
2459
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2461
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465
test -z "$as_dir" && as_dir=.
2466
for ac_exec_ext in '' $ac_executable_extensions; do
2467
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468
ac_cv_prog_ac_ct_STRIP="strip"
2469
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2479
if test -n "$ac_ct_STRIP"; then
2480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2481
$as_echo "$ac_ct_STRIP" >&6; }
2483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484
$as_echo "no" >&6; }
2487
if test "x$ac_ct_STRIP" = x; then
2490
case $cross_compiling:$ac_tool_warned in
2492
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2493
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2494
ac_tool_warned=yes ;;
2499
STRIP="$ac_cv_prog_STRIP"
2503
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2506
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2507
if test -z "$MKDIR_P"; then
2508
if ${ac_cv_path_mkdir+:} false; then :
2509
$as_echo_n "(cached) " >&6
2511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2515
test -z "$as_dir" && as_dir=.
2516
for ac_prog in mkdir gmkdir; do
2517
for ac_exec_ext in '' $ac_executable_extensions; do
2518
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2519
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2520
'mkdir (GNU coreutils) '* | \
2521
'mkdir (coreutils) '* | \
2522
'mkdir (fileutils) '4.1*)
2523
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2533
test -d ./--version && rmdir ./--version
2534
if test "${ac_cv_path_mkdir+set}" = set; then
2535
MKDIR_P="$ac_cv_path_mkdir -p"
2537
# As a last resort, use the slow shell script. Don't cache a
2538
# value for MKDIR_P within a source directory, because that will
2539
# break other packages using the cache if that directory is
2540
# removed, or if the value is a relative name.
2541
MKDIR_P="$ac_install_sh -d"
2544
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2545
$as_echo "$MKDIR_P" >&6; }
2549
[\\/$]* | ?:[\\/]*) ;;
2550
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2553
for ac_prog in gawk mawk nawk awk
2555
# Extract the first word of "$ac_prog", so it can be a program name with args.
2556
set dummy $ac_prog; ac_word=$2
2557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558
$as_echo_n "checking for $ac_word... " >&6; }
2559
if ${ac_cv_prog_AWK+:} false; then :
2560
$as_echo_n "(cached) " >&6
2562
if test -n "$AWK"; then
2563
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2565
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569
test -z "$as_dir" && as_dir=.
2570
for ac_exec_ext in '' $ac_executable_extensions; do
2571
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572
ac_cv_prog_AWK="$ac_prog"
2573
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583
if test -n "$AWK"; then
2584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2585
$as_echo "$AWK" >&6; }
2587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588
$as_echo "no" >&6; }
2592
test -n "$AWK" && break
2595
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2596
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2598
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2599
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2600
$as_echo_n "(cached) " >&6
2602
cat >conftest.make <<\_ACEOF
2605
@echo '@@@%%%=$(MAKE)=@@@%%%'
2607
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2608
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2610
eval ac_cv_prog_make_${ac_make}_set=yes;;
2612
eval ac_cv_prog_make_${ac_make}_set=no;;
2616
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2618
$as_echo "yes" >&6; }
2621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622
$as_echo "no" >&6; }
2623
SET_MAKE="MAKE=${MAKE-make}"
2626
rm -rf .tst 2>/dev/null
2627
mkdir .tst 2>/dev/null
2628
if test -d .tst; then
2633
rmdir .tst 2>/dev/null
2635
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2636
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2637
# is not polluted with repeated "-I."
2638
am__isrc=' -I$(srcdir)'
2639
# test to see if srcdir already configured
2640
if test -f $srcdir/config.status; then
2641
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2645
# test whether we have cygpath
2646
if test -z "$CYGPATH_W"; then
2647
if (cygpath --version) >/dev/null 2>/dev/null; then
2648
CYGPATH_W='cygpath -w'
2655
# Define the identity of the package.
2660
cat >>confdefs.h <<_ACEOF
2661
@%:@define PACKAGE "$PACKAGE"
2665
cat >>confdefs.h <<_ACEOF
2666
@%:@define VERSION "$VERSION"
2669
# Some tools Automake needs.
2671
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2674
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2677
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2680
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2683
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2685
# We need awk for the "check" target. The system "awk" is bad on
2687
# Always define AMTAR for backward compatibility.
2689
AMTAR=${AMTAR-"${am_missing_run}tar"}
2691
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2701
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2702
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2704
if test -n "$ac_tool_prefix"; then
2705
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
2707
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2708
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2709
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710
$as_echo_n "checking for $ac_word... " >&6; }
2711
if ${ac_cv_prog_F77+:} false; then :
2712
$as_echo_n "(cached) " >&6
2714
if test -n "$F77"; then
2715
ac_cv_prog_F77="$F77" # Let the user override the test.
2717
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721
test -z "$as_dir" && as_dir=.
2722
for ac_exec_ext in '' $ac_executable_extensions; do
2723
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
2725
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735
if test -n "$F77"; then
2736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
2737
$as_echo "$F77" >&6; }
2739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740
$as_echo "no" >&6; }
2744
test -n "$F77" && break
2747
if test -z "$F77"; then
2749
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
2751
# Extract the first word of "$ac_prog", so it can be a program name with args.
2752
set dummy $ac_prog; ac_word=$2
2753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754
$as_echo_n "checking for $ac_word... " >&6; }
2755
if ${ac_cv_prog_ac_ct_F77+:} false; then :
2756
$as_echo_n "(cached) " >&6
2758
if test -n "$ac_ct_F77"; then
2759
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
2761
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765
test -z "$as_dir" && as_dir=.
2766
for ac_exec_ext in '' $ac_executable_extensions; do
2767
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768
ac_cv_prog_ac_ct_F77="$ac_prog"
2769
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778
ac_ct_F77=$ac_cv_prog_ac_ct_F77
2779
if test -n "$ac_ct_F77"; then
2780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
2781
$as_echo "$ac_ct_F77" >&6; }
2783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784
$as_echo "no" >&6; }
2788
test -n "$ac_ct_F77" && break
2791
if test "x$ac_ct_F77" = x; then
2794
case $cross_compiling:$ac_tool_warned in
2796
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2797
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2798
ac_tool_warned=yes ;;
2805
# Provide some information about the compiler.
2806
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
2809
for ac_option in --version -v -V -qversion; do
2810
{ { ac_try="$ac_compiler $ac_option >&5"
2812
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813
*) ac_try_echo=$ac_try;;
2815
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2816
$as_echo "$ac_try_echo"; } >&5
2817
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
2819
if test -s conftest.err; then
2821
... rest of stderr output deleted ...
2822
10q' conftest.err >conftest.er1
2823
cat conftest.er1 >&5
2825
rm -f conftest.er1 conftest.err
2826
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2827
test $ac_status = 0; }
2831
cat > conftest.$ac_ext <<_ACEOF
2836
ac_clean_files_save=$ac_clean_files
2837
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2838
# Try to create an executable without -o first, disregard a.out.
2839
# It will help us diagnose broken compilers, and finding out an intuition
2841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 77 compiler works" >&5
2842
$as_echo_n "checking whether the Fortran 77 compiler works... " >&6; }
2843
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2845
# The possible output files:
2846
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2849
for ac_file in $ac_files
2852
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2853
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2858
if { { ac_try="$ac_link_default"
2860
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861
*) ac_try_echo=$ac_try;;
2863
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2864
$as_echo "$ac_try_echo"; } >&5
2865
(eval "$ac_link_default") 2>&5
2867
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2868
test $ac_status = 0; }; then :
2869
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2870
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2871
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2872
# so that the user can short-circuit this test for compilers unknown to
2874
for ac_file in $ac_files ''
2876
test -f "$ac_file" || continue
2878
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2881
# We found the default executable, but exeext='' is most
2885
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2887
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2889
# We set ac_cv_exeext here because the later test for it is not
2890
# safe: cross compilers may not add the suffix if given an `-o'
2891
# argument, so we may need to know it at that point already.
2892
# Even if this section looks crufty: it has the advantage of
2899
test "$ac_cv_exeext" = no && ac_cv_exeext=
2904
if test -z "$ac_file"; then :
2905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906
$as_echo "no" >&6; }
2907
$as_echo "$as_me: failed program was:" >&5
2908
sed 's/^/| /' conftest.$ac_ext >&5
2910
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2911
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2912
as_fn_error 77 "Fortran 77 compiler cannot create executables
2913
See \`config.log' for more details" "$LINENO" 5; }
2915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2916
$as_echo "yes" >&6; }
2918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler default output file name" >&5
2919
$as_echo_n "checking for Fortran 77 compiler default output file name... " >&6; }
2920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2921
$as_echo "$ac_file" >&6; }
2922
ac_exeext=$ac_cv_exeext
2924
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2925
ac_clean_files=$ac_clean_files_save
2926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2927
$as_echo_n "checking for suffix of executables... " >&6; }
2928
if { { ac_try="$ac_link"
2930
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931
*) ac_try_echo=$ac_try;;
2933
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2934
$as_echo "$ac_try_echo"; } >&5
2935
(eval "$ac_link") 2>&5
2937
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938
test $ac_status = 0; }; then :
2939
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2940
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2941
# work properly (i.e., refer to `conftest.exe'), while it won't with
2943
for ac_file in conftest.exe conftest conftest.*; do
2944
test -f "$ac_file" || continue
2946
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2947
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2953
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2954
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2955
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2956
See \`config.log' for more details" "$LINENO" 5; }
2958
rm -f conftest conftest$ac_cv_exeext
2959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2960
$as_echo "$ac_cv_exeext" >&6; }
2962
rm -f conftest.$ac_ext
2963
EXEEXT=$ac_cv_exeext
2965
cat > conftest.$ac_ext <<_ACEOF
2967
open(unit=9,file='conftest.out')
2972
ac_clean_files="$ac_clean_files conftest.out"
2973
# Check that the compiler produces executables we can run. If not, either
2974
# the compiler is broken, or we cross compile.
2975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2976
$as_echo_n "checking whether we are cross compiling... " >&6; }
2977
if test "$cross_compiling" != yes; then
2978
{ { ac_try="$ac_link"
2980
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981
*) ac_try_echo=$ac_try;;
2983
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984
$as_echo "$ac_try_echo"; } >&5
2985
(eval "$ac_link") 2>&5
2987
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988
test $ac_status = 0; }
2989
if { ac_try='./conftest$ac_cv_exeext'
2990
{ { case "(($ac_try" in
2991
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992
*) ac_try_echo=$ac_try;;
2994
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995
$as_echo "$ac_try_echo"; } >&5
2996
(eval "$ac_try") 2>&5
2998
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999
test $ac_status = 0; }; }; then
3002
if test "$cross_compiling" = maybe; then
3005
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007
as_fn_error $? "cannot run Fortran 77 compiled programs.
3008
If you meant to cross compile, use \`--host'.
3009
See \`config.log' for more details" "$LINENO" 5; }
3013
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3014
$as_echo "$cross_compiling" >&6; }
3016
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3017
ac_clean_files=$ac_clean_files_save
3018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3019
$as_echo_n "checking for suffix of object files... " >&6; }
3020
if ${ac_cv_objext+:} false; then :
3021
$as_echo_n "(cached) " >&6
3023
cat > conftest.$ac_ext <<_ACEOF
3028
rm -f conftest.o conftest.obj
3029
if { { ac_try="$ac_compile"
3031
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032
*) ac_try_echo=$ac_try;;
3034
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035
$as_echo "$ac_try_echo"; } >&5
3036
(eval "$ac_compile") 2>&5
3038
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039
test $ac_status = 0; }; then :
3040
for ac_file in conftest.o conftest.obj conftest.*; do
3041
test -f "$ac_file" || continue;
3043
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3044
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3049
$as_echo "$as_me: failed program was:" >&5
3050
sed 's/^/| /' conftest.$ac_ext >&5
3052
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054
as_fn_error $? "cannot compute suffix of object files: cannot compile
3055
See \`config.log' for more details" "$LINENO" 5; }
3057
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3060
$as_echo "$ac_cv_objext" >&6; }
3061
OBJEXT=$ac_cv_objext
3063
# If we don't use `.F' as extension, the preprocessor is not run on the
3064
# input file. (Note that this only needs to work for GNU compilers.)
3067
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
3068
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
3069
if ${ac_cv_f77_compiler_gnu+:} false; then :
3070
$as_echo_n "(cached) " >&6
3072
cat > conftest.$ac_ext <<_ACEOF
3080
if ac_fn_f77_try_compile "$LINENO"; then :
3085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
3090
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
3092
ac_test_FFLAGS=${FFLAGS+set}
3093
ac_save_FFLAGS=$FFLAGS
3095
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
3096
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
3097
if ${ac_cv_prog_f77_g+:} false; then :
3098
$as_echo_n "(cached) " >&6
3101
cat > conftest.$ac_ext <<_ACEOF
3106
if ac_fn_f77_try_compile "$LINENO"; then :
3107
ac_cv_prog_f77_g=yes
3111
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
3115
$as_echo "$ac_cv_prog_f77_g" >&6; }
3116
if test "$ac_test_FFLAGS" = set; then
3117
FFLAGS=$ac_save_FFLAGS
3118
elif test $ac_cv_prog_f77_g = yes; then
3119
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3125
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3132
if test $ac_compiler_gnu = yes; then
3138
ac_cpp='$CPP $CPPFLAGS'
3139
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3146
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3151
macro_version='2.4.2'
3152
macro_revision='1.3337'
3166
ltmain="$ac_aux_dir/ltmain.sh"
3168
# Make sure we can run config.sub.
3169
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3170
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3173
$as_echo_n "checking build system type... " >&6; }
3174
if ${ac_cv_build+:} false; then :
3175
$as_echo_n "(cached) " >&6
3177
ac_build_alias=$build_alias
3178
test "x$ac_build_alias" = x &&
3179
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3180
test "x$ac_build_alias" = x &&
3181
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3182
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3183
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3187
$as_echo "$ac_cv_build" >&6; }
3188
case $ac_cv_build in
3190
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3193
ac_save_IFS=$IFS; IFS='-'
3199
# Remember, the first character of IFS is used to create $*,
3200
# except with old shells:
3203
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3207
$as_echo_n "checking host system type... " >&6; }
3208
if ${ac_cv_host+:} false; then :
3209
$as_echo_n "(cached) " >&6
3211
if test "x$host_alias" = x; then
3212
ac_cv_host=$ac_cv_build
3214
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3215
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3220
$as_echo "$ac_cv_host" >&6; }
3223
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3226
ac_save_IFS=$IFS; IFS='-'
3232
# Remember, the first character of IFS is used to create $*,
3233
# except with old shells:
3236
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3239
# Backslashify metacharacters that are still active within
3240
# double-quoted strings.
3241
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3243
# Same as above, but do not quote variable references.
3244
double_quote_subst='s/\(["`\\]\)/\\\1/g'
3246
# Sed substitution to delay expansion of an escaped shell variable in a
3247
# double_quote_subst'ed string.
3248
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3250
# Sed substitution to delay expansion of an escaped single quote.
3251
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3253
# Sed substitution to avoid accidental globbing in evaled expressions
3254
no_glob_subst='s/\*/\\\*/g'
3256
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3257
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3258
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3260
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3261
$as_echo_n "checking how to print strings... " >&6; }
3262
# Test print first, because it will be a builtin if present.
3263
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3264
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3266
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3269
# Use this function as a fallback that always works.
3270
func_fallback_echo ()
3272
eval 'cat <<_LTECHO_EOF
3276
ECHO='func_fallback_echo'
3279
# func_echo_all arg...
3280
# Invoke $ECHO with all args, space-separated.
3287
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3288
$as_echo "printf" >&6; } ;;
3289
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3290
$as_echo "print -r" >&6; } ;;
3291
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3292
$as_echo "cat" >&6; } ;;
3308
DEPDIR="${am__leading_dot}deps"
3310
ac_config_commands="$ac_config_commands depfiles"
3313
am_make=${MAKE-make}
3314
cat > confinc << 'END'
3316
@echo this is the am__doit target
3319
# If we don't find an include directive, just comment out the code.
3320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3321
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3325
# First try GNU make style include.
3326
echo "include confinc" > confmf
3327
# Ignore all kinds of additional output from `make'.
3328
case `$am_make -s -f confmf 2> /dev/null` in #(
3329
*the\ am__doit\ target*)
3335
# Now try BSD make style include.
3336
if test "$am__include" = "#"; then
3337
echo '.include "confinc"' > confmf
3338
case `$am_make -s -f confmf 2> /dev/null` in #(
3339
*the\ am__doit\ target*)
3340
am__include=.include
3348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3349
$as_echo "$_am_result" >&6; }
3350
rm -f confinc confmf
3352
@%:@ Check whether --enable-dependency-tracking was given.
3353
if test "${enable_dependency_tracking+set}" = set; then :
3354
enableval=$enable_dependency_tracking;
3357
if test "x$enable_dependency_tracking" != xno; then
3358
am_depcomp="$ac_aux_dir/depcomp"
3361
if test "x$enable_dependency_tracking" != xno; then
3371
ac_cpp='$CPP $CPPFLAGS'
3372
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375
if test -n "$ac_tool_prefix"; then
3376
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3377
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379
$as_echo_n "checking for $ac_word... " >&6; }
3380
if ${ac_cv_prog_CC+:} false; then :
3381
$as_echo_n "(cached) " >&6
3383
if test -n "$CC"; then
3384
ac_cv_prog_CC="$CC" # Let the user override the test.
3386
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390
test -z "$as_dir" && as_dir=.
3391
for ac_exec_ext in '' $ac_executable_extensions; do
3392
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3394
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404
if test -n "$CC"; then
3405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406
$as_echo "$CC" >&6; }
3408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409
$as_echo "no" >&6; }
3414
if test -z "$ac_cv_prog_CC"; then
3416
# Extract the first word of "gcc", so it can be a program name with args.
3417
set dummy gcc; ac_word=$2
3418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419
$as_echo_n "checking for $ac_word... " >&6; }
3420
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3421
$as_echo_n "(cached) " >&6
3423
if test -n "$ac_ct_CC"; then
3424
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430
test -z "$as_dir" && as_dir=.
3431
for ac_exec_ext in '' $ac_executable_extensions; do
3432
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433
ac_cv_prog_ac_ct_CC="gcc"
3434
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444
if test -n "$ac_ct_CC"; then
3445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3446
$as_echo "$ac_ct_CC" >&6; }
3448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449
$as_echo "no" >&6; }
3452
if test "x$ac_ct_CC" = x; then
3455
case $cross_compiling:$ac_tool_warned in
3457
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3458
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3459
ac_tool_warned=yes ;;
3467
if test -z "$CC"; then
3468
if test -n "$ac_tool_prefix"; then
3469
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3470
set dummy ${ac_tool_prefix}cc; ac_word=$2
3471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472
$as_echo_n "checking for $ac_word... " >&6; }
3473
if ${ac_cv_prog_CC+:} false; then :
3474
$as_echo_n "(cached) " >&6
3476
if test -n "$CC"; then
3477
ac_cv_prog_CC="$CC" # Let the user override the test.
3479
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483
test -z "$as_dir" && as_dir=.
3484
for ac_exec_ext in '' $ac_executable_extensions; do
3485
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486
ac_cv_prog_CC="${ac_tool_prefix}cc"
3487
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497
if test -n "$CC"; then
3498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499
$as_echo "$CC" >&6; }
3501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502
$as_echo "no" >&6; }
3508
if test -z "$CC"; then
3509
# Extract the first word of "cc", so it can be a program name with args.
3510
set dummy cc; ac_word=$2
3511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512
$as_echo_n "checking for $ac_word... " >&6; }
3513
if ${ac_cv_prog_CC+:} false; then :
3514
$as_echo_n "(cached) " >&6
3516
if test -n "$CC"; then
3517
ac_cv_prog_CC="$CC" # Let the user override the test.
3520
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524
test -z "$as_dir" && as_dir=.
3525
for ac_exec_ext in '' $ac_executable_extensions; do
3526
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3527
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3528
ac_prog_rejected=yes
3532
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539
if test $ac_prog_rejected = yes; then
3540
# We found a bogon in the path, so make sure we never use it.
3541
set dummy $ac_cv_prog_CC
3543
if test $@%:@ != 0; then
3544
# We chose a different compiler from the bogus one.
3545
# However, it has the same basename, so the bogon will be chosen
3546
# first if we set CC to just the basename; use the full file name.
3548
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3554
if test -n "$CC"; then
3555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556
$as_echo "$CC" >&6; }
3558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559
$as_echo "no" >&6; }
3564
if test -z "$CC"; then
3565
if test -n "$ac_tool_prefix"; then
3566
for ac_prog in cl.exe
3568
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3569
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571
$as_echo_n "checking for $ac_word... " >&6; }
3572
if ${ac_cv_prog_CC+:} false; then :
3573
$as_echo_n "(cached) " >&6
3575
if test -n "$CC"; then
3576
ac_cv_prog_CC="$CC" # Let the user override the test.
3578
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582
test -z "$as_dir" && as_dir=.
3583
for ac_exec_ext in '' $ac_executable_extensions; do
3584
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3585
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3586
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596
if test -n "$CC"; then
3597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3598
$as_echo "$CC" >&6; }
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601
$as_echo "no" >&6; }
3605
test -n "$CC" && break
3608
if test -z "$CC"; then
3610
for ac_prog in cl.exe
3612
# Extract the first word of "$ac_prog", so it can be a program name with args.
3613
set dummy $ac_prog; ac_word=$2
3614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615
$as_echo_n "checking for $ac_word... " >&6; }
3616
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3617
$as_echo_n "(cached) " >&6
3619
if test -n "$ac_ct_CC"; then
3620
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626
test -z "$as_dir" && as_dir=.
3627
for ac_exec_ext in '' $ac_executable_extensions; do
3628
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629
ac_cv_prog_ac_ct_CC="$ac_prog"
3630
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3640
if test -n "$ac_ct_CC"; then
3641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3642
$as_echo "$ac_ct_CC" >&6; }
3644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645
$as_echo "no" >&6; }
3649
test -n "$ac_ct_CC" && break
3652
if test "x$ac_ct_CC" = x; then
3655
case $cross_compiling:$ac_tool_warned in
3657
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3658
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3659
ac_tool_warned=yes ;;
3668
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670
as_fn_error $? "no acceptable C compiler found in \$PATH
3671
See \`config.log' for more details" "$LINENO" 5; }
3673
# Provide some information about the compiler.
3674
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3677
for ac_option in --version -v -V -qversion; do
3678
{ { ac_try="$ac_compiler $ac_option >&5"
3680
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681
*) ac_try_echo=$ac_try;;
3683
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684
$as_echo "$ac_try_echo"; } >&5
3685
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3687
if test -s conftest.err; then
3689
... rest of stderr output deleted ...
3690
10q' conftest.err >conftest.er1
3691
cat conftest.er1 >&5
3693
rm -f conftest.er1 conftest.err
3694
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695
test $ac_status = 0; }
3698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3699
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3700
if ${ac_cv_c_compiler_gnu+:} false; then :
3701
$as_echo_n "(cached) " >&6
3703
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704
/* end confdefs.h. */
3717
if ac_fn_c_try_compile "$LINENO"; then :
3722
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3727
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3728
if test $ac_compiler_gnu = yes; then
3733
ac_test_CFLAGS=${CFLAGS+set}
3734
ac_save_CFLAGS=$CFLAGS
3735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3736
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3737
if ${ac_cv_prog_cc_g+:} false; then :
3738
$as_echo_n "(cached) " >&6
3740
ac_save_c_werror_flag=$ac_c_werror_flag
3741
ac_c_werror_flag=yes
3744
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745
/* end confdefs.h. */
3755
if ac_fn_c_try_compile "$LINENO"; then :
3759
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760
/* end confdefs.h. */
3770
if ac_fn_c_try_compile "$LINENO"; then :
3773
ac_c_werror_flag=$ac_save_c_werror_flag
3775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776
/* end confdefs.h. */
3786
if ac_fn_c_try_compile "$LINENO"; then :
3789
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794
ac_c_werror_flag=$ac_save_c_werror_flag
3796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3797
$as_echo "$ac_cv_prog_cc_g" >&6; }
3798
if test "$ac_test_CFLAGS" = set; then
3799
CFLAGS=$ac_save_CFLAGS
3800
elif test $ac_cv_prog_cc_g = yes; then
3801
if test "$GCC" = yes; then
3807
if test "$GCC" = yes; then
3813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3814
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3815
if ${ac_cv_prog_cc_c89+:} false; then :
3816
$as_echo_n "(cached) " >&6
3818
ac_cv_prog_cc_c89=no
3820
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821
/* end confdefs.h. */
3824
#include <sys/types.h>
3825
#include <sys/stat.h>
3826
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3827
struct buf { int x; };
3828
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3829
static char *e (p, i)
3835
static char *f (char * (*g) (char **, int), char **p, ...)
3840
s = g (p, va_arg (v,int));
3845
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3846
function prototypes and stuff, but not '\xHH' hex character constants.
3847
These don't provoke an error unfortunately, instead are silently treated
3848
as 'x'. The following induces an error, until -std is added to get
3849
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3850
array size at least. It's necessary to write '\x00'==0 to get something
3851
that's true only with -std. */
3852
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3854
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3855
inside strings and character constants. */
3857
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3859
int test (int i, double x);
3860
struct s1 {int (*f) (int a);};
3861
struct s2 {int (*f) (double a);};
3862
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3868
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3873
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3874
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3876
CC="$ac_save_CC $ac_arg"
3877
if ac_fn_c_try_compile "$LINENO"; then :
3878
ac_cv_prog_cc_c89=$ac_arg
3880
rm -f core conftest.err conftest.$ac_objext
3881
test "x$ac_cv_prog_cc_c89" != "xno" && break
3883
rm -f conftest.$ac_ext
3888
case "x$ac_cv_prog_cc_c89" in
3890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3891
$as_echo "none needed" >&6; } ;;
3893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3894
$as_echo "unsupported" >&6; } ;;
3896
CC="$CC $ac_cv_prog_cc_c89"
3897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3898
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3900
if test "x$ac_cv_prog_cc_c89" != xno; then :
3905
ac_cpp='$CPP $CPPFLAGS'
3906
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910
depcc="$CC" am_compiler_list=
3912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3913
$as_echo_n "checking dependency style of $depcc... " >&6; }
3914
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3915
$as_echo_n "(cached) " >&6
3917
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3918
# We make a subdir and do the tests there. Otherwise we can end up
3919
# making bogus files that we don't know about and never remove. For
3920
# instance it was reported that on HP-UX the gcc test will end up
3921
# making a dummy file named `D' -- because `-MD' means `put the output
3924
# Copy depcomp to subdir because otherwise we won't find it if we're
3925
# using a relative directory.
3926
cp "$am_depcomp" conftest.dir
3928
# We will build objects and dependencies in a subdirectory because
3929
# it helps to detect inapplicable dependency modes. For instance
3930
# both Tru64's cc and ICC support -MD to output dependencies as a
3931
# side effect of compilation, but ICC will put the dependencies in
3932
# the current directory while Tru64 will put them in the object
3936
am_cv_CC_dependencies_compiler_type=none
3937
if test "$am_compiler_list" = ""; then
3938
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3941
case " $depcc " in #(
3942
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3945
for depmode in $am_compiler_list; do
3946
# Setup a source with many dependencies, because some compilers
3947
# like to wrap large dependency lists on column 80 (with \), and
3948
# we should not choose a depcomp mode which is confused by this.
3950
# We need to recreate these files for each test, as the compiler may
3951
# overwrite some of them when testing with obscure command lines.
3952
# This happens at least with the AIX C compiler.
3954
for i in 1 2 3 4 5 6; do
3955
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3956
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3957
# Solaris 8's {/usr,}/bin/sh.
3958
touch sub/conftst$i.h
3960
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3962
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3963
# mode. It turns out that the SunPro C++ compiler does not properly
3964
# handle `-M -o', and we need to detect this. Also, some Intel
3965
# versions had trouble with output in subdirs
3966
am__obj=sub/conftest.${OBJEXT-o}
3967
am__minus_obj="-o $am__obj"
3970
# This depmode causes a compiler race in universal mode.
3971
test "$am__universal" = false || continue
3974
# after this tag, mechanisms are not by side-effect, so they'll
3975
# only be used when explicitly requested
3976
if test "x$enable_dependency_tracking" = xyes; then
3982
msvisualcpp | msvcmsys)
3983
# This compiler won't grok `-c -o', but also, the minuso test has
3984
# not run yet. These depmodes are late enough in the game, and
3985
# so weak that their functioning should not be impacted.
3986
am__obj=conftest.${OBJEXT-o}
3991
if depmode=$depmode \
3992
source=sub/conftest.c object=$am__obj \
3993
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3994
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3995
>/dev/null 2>conftest.err &&
3996
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3997
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3998
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3999
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4000
# icc doesn't choke on unknown options, it will just issue warnings
4001
# or remarks (even with -Werror). So we grep stderr for any message
4002
# that says an option was ignored or not supported.
4003
# When given -MP, icc 7.0 and 7.1 complain thusly:
4004
# icc: Command line warning: ignoring option '-M'; no argument required
4005
# The diagnosis changed in icc 8.0:
4006
# icc: Command line remark: option '-MP' not supported
4007
if (grep 'ignoring option' conftest.err ||
4008
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4009
am_cv_CC_dependencies_compiler_type=$depmode
4018
am_cv_CC_dependencies_compiler_type=none
4022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4023
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4024
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4027
test "x$enable_dependency_tracking" != xno \
4028
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4030
am__fastdepCC_FALSE='#'
4032
am__fastdepCC_TRUE='#'
4033
am__fastdepCC_FALSE=
4037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4038
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4039
if ${ac_cv_path_SED+:} false; then :
4040
$as_echo_n "(cached) " >&6
4042
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4043
for ac_i in 1 2 3 4 5 6 7; do
4044
ac_script="$ac_script$as_nl$ac_script"
4046
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4047
{ ac_script=; unset ac_script;}
4048
if test -z "$SED"; then
4049
ac_path_SED_found=false
4050
# Loop through the user's path and test for each of PROGNAME-LIST
4051
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055
test -z "$as_dir" && as_dir=.
4056
for ac_prog in sed gsed; do
4057
for ac_exec_ext in '' $ac_executable_extensions; do
4058
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4059
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4060
# Check for GNU ac_path_SED and select it if it is found.
4061
# Check for GNU $ac_path_SED
4062
case `"$ac_path_SED" --version 2>&1` in
4064
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4067
$as_echo_n 0123456789 >"conftest.in"
4070
cat "conftest.in" "conftest.in" >"conftest.tmp"
4071
mv "conftest.tmp" "conftest.in"
4072
cp "conftest.in" "conftest.nl"
4073
$as_echo '' >> "conftest.nl"
4074
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4075
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4076
as_fn_arith $ac_count + 1 && ac_count=$as_val
4077
if test $ac_count -gt ${ac_path_SED_max-0}; then
4078
# Best one so far, save it but keep looking for a better one
4079
ac_cv_path_SED="$ac_path_SED"
4080
ac_path_SED_max=$ac_count
4082
# 10*(2^10) chars as input seems more than enough
4083
test $ac_count -gt 10 && break
4085
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4088
$ac_path_SED_found && break 3
4093
if test -z "$ac_cv_path_SED"; then
4094
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4102
$as_echo "$ac_cv_path_SED" >&6; }
4103
SED="$ac_cv_path_SED"
4106
test -z "$SED" && SED=sed
4107
Xsed="$SED -e 1s/^X//"
4119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4120
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4121
if ${ac_cv_path_GREP+:} false; then :
4122
$as_echo_n "(cached) " >&6
4124
if test -z "$GREP"; then
4125
ac_path_GREP_found=false
4126
# Loop through the user's path and test for each of PROGNAME-LIST
4127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4131
test -z "$as_dir" && as_dir=.
4132
for ac_prog in grep ggrep; do
4133
for ac_exec_ext in '' $ac_executable_extensions; do
4134
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4135
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4136
# Check for GNU ac_path_GREP and select it if it is found.
4137
# Check for GNU $ac_path_GREP
4138
case `"$ac_path_GREP" --version 2>&1` in
4140
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4143
$as_echo_n 0123456789 >"conftest.in"
4146
cat "conftest.in" "conftest.in" >"conftest.tmp"
4147
mv "conftest.tmp" "conftest.in"
4148
cp "conftest.in" "conftest.nl"
4149
$as_echo 'GREP' >> "conftest.nl"
4150
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4151
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4152
as_fn_arith $ac_count + 1 && ac_count=$as_val
4153
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4154
# Best one so far, save it but keep looking for a better one
4155
ac_cv_path_GREP="$ac_path_GREP"
4156
ac_path_GREP_max=$ac_count
4158
# 10*(2^10) chars as input seems more than enough
4159
test $ac_count -gt 10 && break
4161
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4164
$ac_path_GREP_found && break 3
4169
if test -z "$ac_cv_path_GREP"; then
4170
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4173
ac_cv_path_GREP=$GREP
4177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4178
$as_echo "$ac_cv_path_GREP" >&6; }
4179
GREP="$ac_cv_path_GREP"
4182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4183
$as_echo_n "checking for egrep... " >&6; }
4184
if ${ac_cv_path_EGREP+:} false; then :
4185
$as_echo_n "(cached) " >&6
4187
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4188
then ac_cv_path_EGREP="$GREP -E"
4190
if test -z "$EGREP"; then
4191
ac_path_EGREP_found=false
4192
# Loop through the user's path and test for each of PROGNAME-LIST
4193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4197
test -z "$as_dir" && as_dir=.
4198
for ac_prog in egrep; do
4199
for ac_exec_ext in '' $ac_executable_extensions; do
4200
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4201
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4202
# Check for GNU ac_path_EGREP and select it if it is found.
4203
# Check for GNU $ac_path_EGREP
4204
case `"$ac_path_EGREP" --version 2>&1` in
4206
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4209
$as_echo_n 0123456789 >"conftest.in"
4212
cat "conftest.in" "conftest.in" >"conftest.tmp"
4213
mv "conftest.tmp" "conftest.in"
4214
cp "conftest.in" "conftest.nl"
4215
$as_echo 'EGREP' >> "conftest.nl"
4216
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4217
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4218
as_fn_arith $ac_count + 1 && ac_count=$as_val
4219
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4220
# Best one so far, save it but keep looking for a better one
4221
ac_cv_path_EGREP="$ac_path_EGREP"
4222
ac_path_EGREP_max=$ac_count
4224
# 10*(2^10) chars as input seems more than enough
4225
test $ac_count -gt 10 && break
4227
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4230
$ac_path_EGREP_found && break 3
4235
if test -z "$ac_cv_path_EGREP"; then
4236
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4239
ac_cv_path_EGREP=$EGREP
4244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4245
$as_echo "$ac_cv_path_EGREP" >&6; }
4246
EGREP="$ac_cv_path_EGREP"
4249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4250
$as_echo_n "checking for fgrep... " >&6; }
4251
if ${ac_cv_path_FGREP+:} false; then :
4252
$as_echo_n "(cached) " >&6
4254
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4255
then ac_cv_path_FGREP="$GREP -F"
4257
if test -z "$FGREP"; then
4258
ac_path_FGREP_found=false
4259
# Loop through the user's path and test for each of PROGNAME-LIST
4260
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4264
test -z "$as_dir" && as_dir=.
4265
for ac_prog in fgrep; do
4266
for ac_exec_ext in '' $ac_executable_extensions; do
4267
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4268
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4269
# Check for GNU ac_path_FGREP and select it if it is found.
4270
# Check for GNU $ac_path_FGREP
4271
case `"$ac_path_FGREP" --version 2>&1` in
4273
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4276
$as_echo_n 0123456789 >"conftest.in"
4279
cat "conftest.in" "conftest.in" >"conftest.tmp"
4280
mv "conftest.tmp" "conftest.in"
4281
cp "conftest.in" "conftest.nl"
4282
$as_echo 'FGREP' >> "conftest.nl"
4283
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4284
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4285
as_fn_arith $ac_count + 1 && ac_count=$as_val
4286
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4287
# Best one so far, save it but keep looking for a better one
4288
ac_cv_path_FGREP="$ac_path_FGREP"
4289
ac_path_FGREP_max=$ac_count
4291
# 10*(2^10) chars as input seems more than enough
4292
test $ac_count -gt 10 && break
4294
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4297
$ac_path_FGREP_found && break 3
4302
if test -z "$ac_cv_path_FGREP"; then
4303
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4306
ac_cv_path_FGREP=$FGREP
4311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4312
$as_echo "$ac_cv_path_FGREP" >&6; }
4313
FGREP="$ac_cv_path_FGREP"
4316
test -z "$GREP" && GREP=grep
4336
@%:@ Check whether --with-gnu-ld was given.
4337
if test "${with_gnu_ld+set}" = set; then :
4338
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4344
if test "$GCC" = yes; then
4345
# Check if gcc -print-prog-name=ld gives a path.
4346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4347
$as_echo_n "checking for ld used by $CC... " >&6; }
4350
# gcc leaves a trailing carriage return which upsets mingw
4351
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4353
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4356
# Accept absolute paths.
4358
re_direlt='/[^/][^/]*/\.\./'
4359
# Canonicalize the pathname of ld
4360
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4361
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4362
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4364
test -z "$LD" && LD="$ac_prog"
4367
# If it fails, then pretend we aren't using GCC.
4371
# If it is relative, then search for the first ld in PATH.
4375
elif test "$with_gnu_ld" = yes; then
4376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4377
$as_echo_n "checking for GNU ld... " >&6; }
4379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4380
$as_echo_n "checking for non-GNU ld... " >&6; }
4382
if ${lt_cv_path_LD+:} false; then :
4383
$as_echo_n "(cached) " >&6
4385
if test -z "$LD"; then
4386
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4387
for ac_dir in $PATH; do
4389
test -z "$ac_dir" && ac_dir=.
4390
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4391
lt_cv_path_LD="$ac_dir/$ac_prog"
4392
# Check to see if the program is GNU ld. I'd rather use --version,
4393
# but apparently some variants of GNU ld only accept -v.
4394
# Break only if it was the GNU/non-GNU ld that we prefer.
4395
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4396
*GNU* | *'with BFD'*)
4397
test "$with_gnu_ld" != no && break
4400
test "$with_gnu_ld" != yes && break
4407
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4412
if test -n "$LD"; then
4413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4414
$as_echo "$LD" >&6; }
4416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417
$as_echo "no" >&6; }
4419
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4421
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4422
if ${lt_cv_prog_gnu_ld+:} false; then :
4423
$as_echo_n "(cached) " >&6
4425
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4426
case `$LD -v 2>&1 </dev/null` in
4427
*GNU* | *'with BFD'*)
4428
lt_cv_prog_gnu_ld=yes
4431
lt_cv_prog_gnu_ld=no
4435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4436
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4437
with_gnu_ld=$lt_cv_prog_gnu_ld
4447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4448
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4449
if ${lt_cv_path_NM+:} false; then :
4450
$as_echo_n "(cached) " >&6
4452
if test -n "$NM"; then
4453
# Let the user override the test.
4456
lt_nm_to_check="${ac_tool_prefix}nm"
4457
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4458
lt_nm_to_check="$lt_nm_to_check nm"
4460
for lt_tmp_nm in $lt_nm_to_check; do
4461
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4462
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4464
test -z "$ac_dir" && ac_dir=.
4465
tmp_nm="$ac_dir/$lt_tmp_nm"
4466
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4467
# Check to see if the nm accepts a BSD-compat flag.
4468
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4469
# nm: unknown option "B" ignored
4470
# Tru64's nm complains that /dev/null is an invalid object file
4471
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4472
*/dev/null* | *'Invalid file or object type'*)
4473
lt_cv_path_NM="$tmp_nm -B"
4477
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4479
lt_cv_path_NM="$tmp_nm -p"
4483
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4484
continue # so that we can try to find one that supports BSD flags
4493
: ${lt_cv_path_NM=no}
4496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4497
$as_echo "$lt_cv_path_NM" >&6; }
4498
if test "$lt_cv_path_NM" != "no"; then
4501
# Didn't find any BSD compatible name lister, look for dumpbin.
4502
if test -n "$DUMPBIN"; then :
4503
# Let the user override the test.
4505
if test -n "$ac_tool_prefix"; then
4506
for ac_prog in dumpbin "link -dump"
4508
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4509
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511
$as_echo_n "checking for $ac_word... " >&6; }
4512
if ${ac_cv_prog_DUMPBIN+:} false; then :
4513
$as_echo_n "(cached) " >&6
4515
if test -n "$DUMPBIN"; then
4516
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522
test -z "$as_dir" && as_dir=.
4523
for ac_exec_ext in '' $ac_executable_extensions; do
4524
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4526
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535
DUMPBIN=$ac_cv_prog_DUMPBIN
4536
if test -n "$DUMPBIN"; then
4537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4538
$as_echo "$DUMPBIN" >&6; }
4540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541
$as_echo "no" >&6; }
4545
test -n "$DUMPBIN" && break
4548
if test -z "$DUMPBIN"; then
4549
ac_ct_DUMPBIN=$DUMPBIN
4550
for ac_prog in dumpbin "link -dump"
4552
# Extract the first word of "$ac_prog", so it can be a program name with args.
4553
set dummy $ac_prog; ac_word=$2
4554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555
$as_echo_n "checking for $ac_word... " >&6; }
4556
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4557
$as_echo_n "(cached) " >&6
4559
if test -n "$ac_ct_DUMPBIN"; then
4560
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566
test -z "$as_dir" && as_dir=.
4567
for ac_exec_ext in '' $ac_executable_extensions; do
4568
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4570
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4580
if test -n "$ac_ct_DUMPBIN"; then
4581
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4582
$as_echo "$ac_ct_DUMPBIN" >&6; }
4584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585
$as_echo "no" >&6; }
4589
test -n "$ac_ct_DUMPBIN" && break
4592
if test "x$ac_ct_DUMPBIN" = x; then
4595
case $cross_compiling:$ac_tool_warned in
4597
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4598
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4599
ac_tool_warned=yes ;;
4601
DUMPBIN=$ac_ct_DUMPBIN
4605
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4607
DUMPBIN="$DUMPBIN -symbols"
4615
if test "$DUMPBIN" != ":"; then
4619
test -z "$NM" && NM=nm
4626
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4627
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4628
if ${lt_cv_nm_interface+:} false; then :
4629
$as_echo_n "(cached) " >&6
4631
lt_cv_nm_interface="BSD nm"
4632
echo "int some_variable = 0;" > conftest.$ac_ext
4633
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4634
(eval "$ac_compile" 2>conftest.err)
4635
cat conftest.err >&5
4636
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4637
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4638
cat conftest.err >&5
4639
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
4640
cat conftest.out >&5
4641
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4642
lt_cv_nm_interface="MS dumpbin"
4646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4647
$as_echo "$lt_cv_nm_interface" >&6; }
4649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4650
$as_echo_n "checking whether ln -s works... " >&6; }
4652
if test "$LN_S" = "ln -s"; then
4653
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4654
$as_echo "yes" >&6; }
4656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4657
$as_echo "no, using $LN_S" >&6; }
4660
# find the maximum length of command line arguments
4661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4662
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4663
if ${lt_cv_sys_max_cmd_len+:} false; then :
4664
$as_echo_n "(cached) " >&6
4671
# On DJGPP, this test can blow up pretty badly due to problems in libc
4672
# (any single argument exceeding 2000 bytes causes a buffer overrun
4673
# during glob expansion). Even if it were fixed, the result of this
4674
# check would be larger than it should be.
4675
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4679
# Under GNU Hurd, this test is not required because there is
4680
# no limit to the length of command line arguments.
4681
# Libtool will interpret -1 as no limit whatsoever
4682
lt_cv_sys_max_cmd_len=-1;
4685
cygwin* | mingw* | cegcc*)
4686
# On Win9x/ME, this test blows up -- it succeeds, but takes
4687
# about 5 minutes as the teststring grows exponentially.
4688
# Worse, since 9x/ME are not pre-emptively multitasking,
4689
# you end up with a "frozen" computer, even though with patience
4690
# the test eventually succeeds (with a max line length of 256k).
4691
# Instead, let's just punt: use the minimum linelength reported by
4692
# all of the supported platforms: 8192 (on NT/2K/XP).
4693
lt_cv_sys_max_cmd_len=8192;
4697
# On MiNT this can take a long time and run out of memory.
4698
lt_cv_sys_max_cmd_len=8192;
4702
# On AmigaOS with pdksh, this test takes hours, literally.
4703
# So we just punt and use a minimum line length of 8192.
4704
lt_cv_sys_max_cmd_len=8192;
4707
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4708
# This has been around since 386BSD, at least. Likely further.
4709
if test -x /sbin/sysctl; then
4710
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4711
elif test -x /usr/sbin/sysctl; then
4712
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4714
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4716
# And add a safety zone
4717
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4718
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4722
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4723
lt_cv_sys_max_cmd_len=196608
4727
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4728
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4729
# nice to cause kernel panics so lets avoid the loop below.
4730
# First set a reasonable default.
4731
lt_cv_sys_max_cmd_len=16384
4733
if test -x /sbin/sysconfig; then
4734
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4735
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4740
lt_cv_sys_max_cmd_len=102400
4742
sysv5* | sco5v6* | sysv4.2uw2*)
4743
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4744
if test -n "$kargmax"; then
4745
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4747
lt_cv_sys_max_cmd_len=32768
4751
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4752
if test -n "$lt_cv_sys_max_cmd_len"; then
4753
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4754
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4756
# Make teststring a little bigger before we do anything with it.
4757
# a 1K string should be a reasonable start.
4758
for i in 1 2 3 4 5 6 7 8 ; do
4759
teststring=$teststring$teststring
4761
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4762
# If test is not a shell built-in, we'll probably end up computing a
4763
# maximum length that is only half of the actual maximum length, but
4765
while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4766
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
4767
test $i != 17 # 1/2 MB should be enough
4770
teststring=$teststring$teststring
4772
# Only check the string length outside the loop.
4773
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4775
# Add a significant safety factor because C++ compilers can tack on
4776
# massive amounts of additional arguments before passing them to the
4777
# linker. It appears as though 1/2 is a usable value.
4778
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4785
if test -n $lt_cv_sys_max_cmd_len ; then
4786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4787
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4790
$as_echo "none" >&6; }
4792
max_cmd_len=$lt_cv_sys_max_cmd_len
4803
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4804
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4805
# Try some XSI features
4808
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4810
&& eval 'test $(( 1 + 1 )) -eq 2 \
4811
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4814
$as_echo "$xsi_shell" >&6; }
4817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4818
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4820
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4822
&& lt_shell_append=yes
4823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4824
$as_echo "$lt_shell_append" >&6; }
4827
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4837
# test EBCDIC or ASCII
4838
case `echo X|tr X '\101'` in
4839
A) # ASCII based system
4840
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4841
lt_SP2NL='tr \040 \012'
4842
lt_NL2SP='tr \015\012 \040\040'
4844
*) # EBCDIC based system
4845
lt_SP2NL='tr \100 \n'
4846
lt_NL2SP='tr \r\n \100\100'
4858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4859
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4860
if ${lt_cv_to_host_file_cmd+:} false; then :
4861
$as_echo_n "(cached) " >&6
4866
*-*-mingw* ) # actually msys
4867
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4870
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4872
* ) # otherwise, assume *nix
4873
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4879
*-*-mingw* ) # actually msys
4880
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4883
lt_cv_to_host_file_cmd=func_convert_file_noop
4885
* ) # otherwise, assume *nix
4886
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4890
* ) # unhandled hosts (and "normal" native builds)
4891
lt_cv_to_host_file_cmd=func_convert_file_noop
4897
to_host_file_cmd=$lt_cv_to_host_file_cmd
4898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4899
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4906
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4907
if ${lt_cv_to_tool_file_cmd+:} false; then :
4908
$as_echo_n "(cached) " >&6
4910
#assume ordinary cross tools, or native build.
4911
lt_cv_to_tool_file_cmd=func_convert_file_noop
4915
*-*-mingw* ) # actually msys
4916
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4924
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4926
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4933
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4934
if ${lt_cv_ld_reload_flag+:} false; then :
4935
$as_echo_n "(cached) " >&6
4937
lt_cv_ld_reload_flag='-r'
4939
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4940
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4941
reload_flag=$lt_cv_ld_reload_flag
4942
case $reload_flag in
4944
*) reload_flag=" $reload_flag" ;;
4946
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4948
cygwin* | mingw* | pw32* | cegcc*)
4949
if test "$GCC" != yes; then
4954
if test "$GCC" = yes; then
4955
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4957
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4970
if test -n "$ac_tool_prefix"; then
4971
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4972
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974
$as_echo_n "checking for $ac_word... " >&6; }
4975
if ${ac_cv_prog_OBJDUMP+:} false; then :
4976
$as_echo_n "(cached) " >&6
4978
if test -n "$OBJDUMP"; then
4979
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4981
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985
test -z "$as_dir" && as_dir=.
4986
for ac_exec_ext in '' $ac_executable_extensions; do
4987
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4989
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998
OBJDUMP=$ac_cv_prog_OBJDUMP
4999
if test -n "$OBJDUMP"; then
5000
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5001
$as_echo "$OBJDUMP" >&6; }
5003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004
$as_echo "no" >&6; }
5009
if test -z "$ac_cv_prog_OBJDUMP"; then
5010
ac_ct_OBJDUMP=$OBJDUMP
5011
# Extract the first word of "objdump", so it can be a program name with args.
5012
set dummy objdump; ac_word=$2
5013
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014
$as_echo_n "checking for $ac_word... " >&6; }
5015
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5016
$as_echo_n "(cached) " >&6
5018
if test -n "$ac_ct_OBJDUMP"; then
5019
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5021
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025
test -z "$as_dir" && as_dir=.
5026
for ac_exec_ext in '' $ac_executable_extensions; do
5027
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5029
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5039
if test -n "$ac_ct_OBJDUMP"; then
5040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5041
$as_echo "$ac_ct_OBJDUMP" >&6; }
5043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044
$as_echo "no" >&6; }
5047
if test "x$ac_ct_OBJDUMP" = x; then
5050
case $cross_compiling:$ac_tool_warned in
5052
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5053
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5054
ac_tool_warned=yes ;;
5056
OBJDUMP=$ac_ct_OBJDUMP
5059
OBJDUMP="$ac_cv_prog_OBJDUMP"
5062
test -z "$OBJDUMP" && OBJDUMP=objdump
5072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5073
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5074
if ${lt_cv_deplibs_check_method+:} false; then :
5075
$as_echo_n "(cached) " >&6
5077
lt_cv_file_magic_cmd='$MAGIC_CMD'
5078
lt_cv_file_magic_test_file=
5079
lt_cv_deplibs_check_method='unknown'
5080
# Need to set the preceding variable on all platforms that support
5081
# interlibrary dependencies.
5082
# 'none' -- dependencies not supported.
5083
# `unknown' -- same as none, but documents that we really don't know.
5084
# 'pass_all' -- all dependencies passed with no checks.
5085
# 'test_compile' -- check by making test program.
5086
# 'file_magic [[regex]]' -- check by looking for files in library path
5087
# which responds to the $file_magic_cmd with a given extended regex.
5088
# If you have `file' or equivalent on your system and you're not sure
5089
# whether `pass_all' will *always* work, you probably want this one.
5093
lt_cv_deplibs_check_method=pass_all
5097
lt_cv_deplibs_check_method=pass_all
5101
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5102
lt_cv_file_magic_cmd='/usr/bin/file -L'
5103
lt_cv_file_magic_test_file=/shlib/libc.so
5107
# func_win32_libid is a shell function defined in ltmain.sh
5108
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5109
lt_cv_file_magic_cmd='func_win32_libid'
5113
# Base MSYS/MinGW do not provide the 'file' command needed by
5114
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5115
# unless we find 'file', for example because we are cross-compiling.
5116
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5117
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5118
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5119
lt_cv_file_magic_cmd='func_win32_libid'
5121
# Keep this pattern in sync with the one in func_win32_libid.
5122
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5123
lt_cv_file_magic_cmd='$OBJDUMP -f'
5128
# use the weaker test based on 'objdump'. See mingw*.
5129
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5130
lt_cv_file_magic_cmd='$OBJDUMP -f'
5133
darwin* | rhapsody*)
5134
lt_cv_deplibs_check_method=pass_all
5137
freebsd* | dragonfly*)
5138
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5141
# Not sure whether the presence of OpenBSD here was a mistake.
5142
# Let's accept both of them until this is cleared up.
5143
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5144
lt_cv_file_magic_cmd=/usr/bin/file
5145
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5149
lt_cv_deplibs_check_method=pass_all
5154
lt_cv_deplibs_check_method=pass_all
5158
lt_cv_deplibs_check_method=pass_all
5161
hpux10.20* | hpux11*)
5162
lt_cv_file_magic_cmd=/usr/bin/file
5165
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5166
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5169
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]'
5170
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5173
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5174
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5180
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5181
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5184
irix5* | irix6* | nonstopux*)
5186
*-32|*"-32 ") libmagic=32-bit;;
5187
*-n32|*"-n32 ") libmagic=N32;;
5188
*-64|*"-64 ") libmagic=64-bit;;
5189
*) libmagic=never-match;;
5191
lt_cv_deplibs_check_method=pass_all
5194
# This must be Linux ELF.
5195
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5196
lt_cv_deplibs_check_method=pass_all
5199
netbsd* | netbsdelf*-gnu)
5200
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5201
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5203
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5208
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5209
lt_cv_file_magic_cmd=/usr/bin/file
5210
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5214
lt_cv_deplibs_check_method=pass_all
5218
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5219
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5221
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5225
osf3* | osf4* | osf5*)
5226
lt_cv_deplibs_check_method=pass_all
5230
lt_cv_deplibs_check_method=pass_all
5234
lt_cv_deplibs_check_method=pass_all
5237
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5238
lt_cv_deplibs_check_method=pass_all
5242
case $host_vendor in
5244
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]'
5245
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5248
lt_cv_deplibs_check_method=pass_all
5251
lt_cv_file_magic_cmd='/bin/file'
5252
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5255
lt_cv_file_magic_cmd='/bin/file'
5256
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5257
lt_cv_file_magic_test_file=/lib/libc.so
5260
lt_cv_deplibs_check_method=pass_all
5263
lt_cv_deplibs_check_method=pass_all
5269
lt_cv_deplibs_check_method=pass_all
5274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5275
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5279
if test "$build" = "$host"; then
5282
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5285
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5291
file_magic_cmd=$lt_cv_file_magic_cmd
5292
deplibs_check_method=$lt_cv_deplibs_check_method
5293
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5316
if test -n "$ac_tool_prefix"; then
5317
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5318
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320
$as_echo_n "checking for $ac_word... " >&6; }
5321
if ${ac_cv_prog_DLLTOOL+:} false; then :
5322
$as_echo_n "(cached) " >&6
5324
if test -n "$DLLTOOL"; then
5325
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5327
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331
test -z "$as_dir" && as_dir=.
5332
for ac_exec_ext in '' $ac_executable_extensions; do
5333
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5335
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344
DLLTOOL=$ac_cv_prog_DLLTOOL
5345
if test -n "$DLLTOOL"; then
5346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5347
$as_echo "$DLLTOOL" >&6; }
5349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350
$as_echo "no" >&6; }
5355
if test -z "$ac_cv_prog_DLLTOOL"; then
5356
ac_ct_DLLTOOL=$DLLTOOL
5357
# Extract the first word of "dlltool", so it can be a program name with args.
5358
set dummy dlltool; ac_word=$2
5359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360
$as_echo_n "checking for $ac_word... " >&6; }
5361
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5362
$as_echo_n "(cached) " >&6
5364
if test -n "$ac_ct_DLLTOOL"; then
5365
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5367
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371
test -z "$as_dir" && as_dir=.
5372
for ac_exec_ext in '' $ac_executable_extensions; do
5373
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5375
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5385
if test -n "$ac_ct_DLLTOOL"; then
5386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5387
$as_echo "$ac_ct_DLLTOOL" >&6; }
5389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390
$as_echo "no" >&6; }
5393
if test "x$ac_ct_DLLTOOL" = x; then
5396
case $cross_compiling:$ac_tool_warned in
5398
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5399
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5400
ac_tool_warned=yes ;;
5402
DLLTOOL=$ac_ct_DLLTOOL
5405
DLLTOOL="$ac_cv_prog_DLLTOOL"
5408
test -z "$DLLTOOL" && DLLTOOL=dlltool
5419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5420
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5421
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5422
$as_echo_n "(cached) " >&6
5424
lt_cv_sharedlib_from_linklib_cmd='unknown'
5427
cygwin* | mingw* | pw32* | cegcc*)
5428
# two different shell functions defined in ltmain.sh
5429
# decide which to use based on capabilities of $DLLTOOL
5430
case `$DLLTOOL --help 2>&1` in
5431
*--identify-strict*)
5432
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5435
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5440
# fallback: assume linklib IS sharedlib
5441
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5447
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5448
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5449
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5458
if test -n "$ac_tool_prefix"; then
5461
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5462
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464
$as_echo_n "checking for $ac_word... " >&6; }
5465
if ${ac_cv_prog_AR+:} false; then :
5466
$as_echo_n "(cached) " >&6
5468
if test -n "$AR"; then
5469
ac_cv_prog_AR="$AR" # Let the user override the test.
5471
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475
test -z "$as_dir" && as_dir=.
5476
for ac_exec_ext in '' $ac_executable_extensions; do
5477
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5478
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5479
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489
if test -n "$AR"; then
5490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5491
$as_echo "$AR" >&6; }
5493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494
$as_echo "no" >&6; }
5498
test -n "$AR" && break
5501
if test -z "$AR"; then
5505
# Extract the first word of "$ac_prog", so it can be a program name with args.
5506
set dummy $ac_prog; ac_word=$2
5507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508
$as_echo_n "checking for $ac_word... " >&6; }
5509
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5510
$as_echo_n "(cached) " >&6
5512
if test -n "$ac_ct_AR"; then
5513
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5515
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519
test -z "$as_dir" && as_dir=.
5520
for ac_exec_ext in '' $ac_executable_extensions; do
5521
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522
ac_cv_prog_ac_ct_AR="$ac_prog"
5523
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5533
if test -n "$ac_ct_AR"; then
5534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5535
$as_echo "$ac_ct_AR" >&6; }
5537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538
$as_echo "no" >&6; }
5542
test -n "$ac_ct_AR" && break
5545
if test "x$ac_ct_AR" = x; then
5548
case $cross_compiling:$ac_tool_warned in
5550
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552
ac_tool_warned=yes ;;
5571
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5572
$as_echo_n "checking for archiver @FILE support... " >&6; }
5573
if ${lt_cv_ar_at_file+:} false; then :
5574
$as_echo_n "(cached) " >&6
5577
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578
/* end confdefs.h. */
5588
if ac_fn_c_try_compile "$LINENO"; then :
5589
echo conftest.$ac_objext > conftest.lst
5590
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5591
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5592
(eval $lt_ar_try) 2>&5
5594
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5595
test $ac_status = 0; }
5596
if test "$ac_status" -eq 0; then
5597
# Ensure the archiver fails upon bogus file names.
5598
rm -f conftest.$ac_objext libconftest.a
5599
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5600
(eval $lt_ar_try) 2>&5
5602
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5603
test $ac_status = 0; }
5604
if test "$ac_status" -ne 0; then
5608
rm -f conftest.* libconftest.a
5611
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5615
$as_echo "$lt_cv_ar_at_file" >&6; }
5617
if test "x$lt_cv_ar_at_file" = xno; then
5620
archiver_list_spec=$lt_cv_ar_at_file
5629
if test -n "$ac_tool_prefix"; then
5630
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5631
set dummy ${ac_tool_prefix}strip; ac_word=$2
5632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633
$as_echo_n "checking for $ac_word... " >&6; }
5634
if ${ac_cv_prog_STRIP+:} false; then :
5635
$as_echo_n "(cached) " >&6
5637
if test -n "$STRIP"; then
5638
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5640
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644
test -z "$as_dir" && as_dir=.
5645
for ac_exec_ext in '' $ac_executable_extensions; do
5646
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5648
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657
STRIP=$ac_cv_prog_STRIP
5658
if test -n "$STRIP"; then
5659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5660
$as_echo "$STRIP" >&6; }
5662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663
$as_echo "no" >&6; }
5668
if test -z "$ac_cv_prog_STRIP"; then
5670
# Extract the first word of "strip", so it can be a program name with args.
5671
set dummy strip; ac_word=$2
5672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673
$as_echo_n "checking for $ac_word... " >&6; }
5674
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5675
$as_echo_n "(cached) " >&6
5677
if test -n "$ac_ct_STRIP"; then
5678
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5680
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684
test -z "$as_dir" && as_dir=.
5685
for ac_exec_ext in '' $ac_executable_extensions; do
5686
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687
ac_cv_prog_ac_ct_STRIP="strip"
5688
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5698
if test -n "$ac_ct_STRIP"; then
5699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5700
$as_echo "$ac_ct_STRIP" >&6; }
5702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703
$as_echo "no" >&6; }
5706
if test "x$ac_ct_STRIP" = x; then
5709
case $cross_compiling:$ac_tool_warned in
5711
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5712
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713
ac_tool_warned=yes ;;
5718
STRIP="$ac_cv_prog_STRIP"
5721
test -z "$STRIP" && STRIP=:
5728
if test -n "$ac_tool_prefix"; then
5729
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5730
set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
5734
$as_echo_n "(cached) " >&6
5736
if test -n "$RANLIB"; then
5737
ac_cv_prog_RANLIB="$RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5746
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5747
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756
RANLIB=$ac_cv_prog_RANLIB
5757
if test -n "$RANLIB"; then
5758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5759
$as_echo "$RANLIB" >&6; }
5761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762
$as_echo "no" >&6; }
5767
if test -z "$ac_cv_prog_RANLIB"; then
5768
ac_ct_RANLIB=$RANLIB
5769
# Extract the first word of "ranlib", so it can be a program name with args.
5770
set dummy ranlib; ac_word=$2
5771
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772
$as_echo_n "checking for $ac_word... " >&6; }
5773
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5774
$as_echo_n "(cached) " >&6
5776
if test -n "$ac_ct_RANLIB"; then
5777
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783
test -z "$as_dir" && as_dir=.
5784
for ac_exec_ext in '' $ac_executable_extensions; do
5785
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786
ac_cv_prog_ac_ct_RANLIB="ranlib"
5787
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5797
if test -n "$ac_ct_RANLIB"; then
5798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5799
$as_echo "$ac_ct_RANLIB" >&6; }
5801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802
$as_echo "no" >&6; }
5805
if test "x$ac_ct_RANLIB" = x; then
5808
case $cross_compiling:$ac_tool_warned in
5810
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5811
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5812
ac_tool_warned=yes ;;
5814
RANLIB=$ac_ct_RANLIB
5817
RANLIB="$ac_cv_prog_RANLIB"
5820
test -z "$RANLIB" && RANLIB=:
5827
# Determine commands to create old-style static archives.
5828
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5829
old_postinstall_cmds='chmod 644 $oldlib'
5830
old_postuninstall_cmds=
5832
if test -n "$RANLIB"; then
5835
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5838
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5841
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5846
lock_old_archive_extraction=yes ;;
5848
lock_old_archive_extraction=no ;;
5889
# If no C compiler was specified, use CC.
5892
# If no C compiler flags were specified, use CFLAGS.
5893
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5895
# Allow CC to be a program name with arguments.
5899
# Check for command to grab the raw symbol name followed by C symbol from nm.
5900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5901
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5902
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5903
$as_echo_n "(cached) " >&6
5906
# These are sane defaults that work on at least a few old systems.
5907
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5909
# Character class describing NM global symbol codes.
5910
symcode='[BCDEGRST]'
5912
# Regexp to match symbols that can be accessed directly from C.
5913
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5915
# Define system-specific variables.
5920
cygwin* | mingw* | pw32* | cegcc*)
5921
symcode='[ABCDGISTW]'
5924
if test "$host_cpu" = ia64; then
5925
symcode='[ABCDEGRST]'
5929
symcode='[BCDEGRST]'
5932
symcode='[BCDEGQRST]'
5943
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5951
# If we're using GNU nm, then use its standard symbol codes.
5952
case `$NM -V 2>&1` in
5953
*GNU* | *'with BFD'*)
5954
symcode='[ABCDGIRSTW]' ;;
5957
# Transform an extracted symbol line into a proper C declaration.
5958
# Some systems (esp. on ia64) link data and code symbols differently,
5959
# so use this general approach.
5960
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5962
# Transform an extracted symbol line into symbol name and symbol address
5963
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5964
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'"
5966
# Handle CRLF in mingw tool chain
5970
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5974
# Try without a prefix underscore, then with it.
5975
for ac_symprfx in "" "_"; do
5977
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5978
symxfrm="\\1 $ac_symprfx\\2 \\2"
5980
# Write the raw and C identifiers.
5981
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5982
# Fake it for dumpbin and say T for any non-static function
5983
# and D for any global variable.
5984
# Also find C++ and __fastcall symbols from MSVC++,
5985
# which start with @ or ?.
5986
lt_cv_sys_global_symbol_pipe="$AWK '"\
5987
" {last_section=section; section=\$ 3};"\
5988
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5989
" \$ 0!~/External *\|/{next};"\
5990
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5991
" {if(hide[section]) next};"\
5992
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5993
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5994
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5995
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5996
" ' prfx=^$ac_symprfx"
5998
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6000
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6002
# Check to see that the pipe works correctly.
6006
cat > conftest.$ac_ext <<_LT_EOF
6011
void nm_test_func(void);
6012
void nm_test_func(void){}
6016
int main(){nm_test_var='a';nm_test_func();return(0);}
6019
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6020
(eval $ac_compile) 2>&5
6022
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6023
test $ac_status = 0; }; then
6024
# Now try to grab the symbols.
6026
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6027
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6029
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6030
test $ac_status = 0; } && test -s "$nlist"; then
6031
# Try sorting and uniquifying the output.
6032
if sort "$nlist" | uniq > "$nlist"T; then
6033
mv -f "$nlist"T "$nlist"
6038
# Make sure that we snagged all the symbols we need.
6039
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6040
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6041
cat <<_LT_EOF > conftest.$ac_ext
6042
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6043
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6044
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6045
relocations are performed -- see ld's documentation on pseudo-relocs. */
6046
# define LT@&t@_DLSYM_CONST
6047
#elif defined(__osf__)
6048
/* This system does not cope well with relocations in const data. */
6049
# define LT@&t@_DLSYM_CONST
6051
# define LT@&t@_DLSYM_CONST const
6059
# Now generate the symbol file.
6060
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6062
cat <<_LT_EOF >> conftest.$ac_ext
6064
/* The mapping between symbol names and symbols. */
6065
LT@&t@_DLSYM_CONST struct {
6069
lt__PROGRAM__LTX_preloaded_symbols[] =
6071
{ "@PROGRAM@", (void *) 0 },
6073
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6074
cat <<\_LT_EOF >> conftest.$ac_ext
6078
/* This works around a problem in FreeBSD linker */
6079
#ifdef FREEBSD_WORKAROUND
6080
static const void *lt_preloaded_setup() {
6081
return lt__PROGRAM__LTX_preloaded_symbols;
6089
# Now try linking the two files.
6090
mv conftest.$ac_objext conftstm.$ac_objext
6091
lt_globsym_save_LIBS=$LIBS
6092
lt_globsym_save_CFLAGS=$CFLAGS
6093
LIBS="conftstm.$ac_objext"
6094
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6095
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6096
(eval $ac_link) 2>&5
6098
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6099
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6102
LIBS=$lt_globsym_save_LIBS
6103
CFLAGS=$lt_globsym_save_CFLAGS
6105
echo "cannot find nm_test_func in $nlist" >&5
6108
echo "cannot find nm_test_var in $nlist" >&5
6111
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6114
echo "$progname: failed program was:" >&5
6115
cat conftest.$ac_ext >&5
6117
rm -rf conftest* conftst*
6119
# Do not use the global_symbol_pipe unless it works.
6120
if test "$pipe_works" = yes; then
6123
lt_cv_sys_global_symbol_pipe=
6129
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6130
lt_cv_sys_global_symbol_to_cdecl=
6132
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6133
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6134
$as_echo "failed" >&6; }
6136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6137
$as_echo "ok" >&6; }
6140
# Response file support.
6141
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6142
nm_file_list_spec='@'
6143
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6144
nm_file_list_spec='@'
6173
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6174
$as_echo_n "checking for sysroot... " >&6; }
6176
@%:@ Check whether --with-sysroot was given.
6177
if test "${with_sysroot+set}" = set; then :
6178
withval=$with_sysroot;
6185
case ${with_sysroot} in #(
6187
if test "$GCC" = yes; then
6188
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6192
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6198
$as_echo "${with_sysroot}" >&6; }
6199
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6204
$as_echo "${lt_sysroot:-no}" >&6; }
6210
@%:@ Check whether --enable-libtool-lock was given.
6211
if test "${enable_libtool_lock+set}" = set; then :
6212
enableval=$enable_libtool_lock;
6215
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6217
# Some flags need to be propagated to the compiler or linker for good
6221
# Find out which ABI we are using.
6222
echo 'int i;' > conftest.$ac_ext
6223
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6224
(eval $ac_compile) 2>&5
6226
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6227
test $ac_status = 0; }; then
6228
case `/usr/bin/file conftest.$ac_objext` in
6240
# Find out which ABI we are using.
6241
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6242
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6243
(eval $ac_compile) 2>&5
6245
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6246
test $ac_status = 0; }; then
6247
if test "$lt_cv_prog_gnu_ld" = yes; then
6248
case `/usr/bin/file conftest.$ac_objext` in
6250
LD="${LD-ld} -melf32bsmip"
6253
LD="${LD-ld} -melf32bmipn32"
6256
LD="${LD-ld} -melf64bmip"
6260
case `/usr/bin/file conftest.$ac_objext` in
6276
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6277
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6278
# Find out which ABI we are using.
6279
echo 'int i;' > conftest.$ac_ext
6280
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6281
(eval $ac_compile) 2>&5
6283
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6284
test $ac_status = 0; }; then
6285
case `/usr/bin/file conftest.o` in
6288
x86_64-*kfreebsd*-gnu)
6289
LD="${LD-ld} -m elf_i386_fbsd"
6292
LD="${LD-ld} -m elf_i386"
6294
ppc64-*linux*|powerpc64-*linux*)
6295
LD="${LD-ld} -m elf32ppclinux"
6298
LD="${LD-ld} -m elf_s390"
6301
LD="${LD-ld} -m elf32_sparc"
6307
x86_64-*kfreebsd*-gnu)
6308
LD="${LD-ld} -m elf_x86_64_fbsd"
6311
LD="${LD-ld} -m elf_x86_64"
6313
ppc*-*linux*|powerpc*-*linux*)
6314
LD="${LD-ld} -m elf64ppc"
6316
s390*-*linux*|s390*-*tpf*)
6317
LD="${LD-ld} -m elf64_s390"
6320
LD="${LD-ld} -m elf64_sparc"
6330
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6331
SAVE_CFLAGS="$CFLAGS"
6332
CFLAGS="$CFLAGS -belf"
6333
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6334
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6335
if ${lt_cv_cc_needs_belf+:} false; then :
6336
$as_echo_n "(cached) " >&6
6339
ac_cpp='$CPP $CPPFLAGS'
6340
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6341
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6342
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6344
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345
/* end confdefs.h. */
6355
if ac_fn_c_try_link "$LINENO"; then :
6356
lt_cv_cc_needs_belf=yes
6358
lt_cv_cc_needs_belf=no
6360
rm -f core conftest.err conftest.$ac_objext \
6361
conftest$ac_exeext conftest.$ac_ext
6363
ac_cpp='$CPP $CPPFLAGS'
6364
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6370
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6371
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6372
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6373
CFLAGS="$SAVE_CFLAGS"
6377
# Find out which ABI we are using.
6378
echo 'int i;' > conftest.$ac_ext
6379
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6380
(eval $ac_compile) 2>&5
6382
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383
test $ac_status = 0; }; then
6384
case `/usr/bin/file conftest.o` in
6386
case $lt_cv_prog_gnu_ld in
6387
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6389
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6401
need_locks="$enable_libtool_lock"
6403
if test -n "$ac_tool_prefix"; then
6404
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6405
set dummy ${ac_tool_prefix}mt; ac_word=$2
6406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407
$as_echo_n "checking for $ac_word... " >&6; }
6408
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6409
$as_echo_n "(cached) " >&6
6411
if test -n "$MANIFEST_TOOL"; then
6412
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418
test -z "$as_dir" && as_dir=.
6419
for ac_exec_ext in '' $ac_executable_extensions; do
6420
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6422
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6432
if test -n "$MANIFEST_TOOL"; then
6433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6434
$as_echo "$MANIFEST_TOOL" >&6; }
6436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437
$as_echo "no" >&6; }
6442
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6443
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6444
# Extract the first word of "mt", so it can be a program name with args.
6445
set dummy mt; ac_word=$2
6446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447
$as_echo_n "checking for $ac_word... " >&6; }
6448
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6449
$as_echo_n "(cached) " >&6
6451
if test -n "$ac_ct_MANIFEST_TOOL"; then
6452
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6454
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458
test -z "$as_dir" && as_dir=.
6459
for ac_exec_ext in '' $ac_executable_extensions; do
6460
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6462
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6472
if test -n "$ac_ct_MANIFEST_TOOL"; then
6473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6474
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477
$as_echo "no" >&6; }
6480
if test "x$ac_ct_MANIFEST_TOOL" = x; then
6483
case $cross_compiling:$ac_tool_warned in
6485
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487
ac_tool_warned=yes ;;
6489
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6492
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6495
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6496
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6497
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6498
if ${lt_cv_path_mainfest_tool+:} false; then :
6499
$as_echo_n "(cached) " >&6
6501
lt_cv_path_mainfest_tool=no
6502
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6503
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6504
cat conftest.err >&5
6505
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6506
lt_cv_path_mainfest_tool=yes
6510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6511
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6512
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6522
rhapsody* | darwin*)
6523
if test -n "$ac_tool_prefix"; then
6524
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6525
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527
$as_echo_n "checking for $ac_word... " >&6; }
6528
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6529
$as_echo_n "(cached) " >&6
6531
if test -n "$DSYMUTIL"; then
6532
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538
test -z "$as_dir" && as_dir=.
6539
for ac_exec_ext in '' $ac_executable_extensions; do
6540
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6542
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6552
if test -n "$DSYMUTIL"; then
6553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6554
$as_echo "$DSYMUTIL" >&6; }
6556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557
$as_echo "no" >&6; }
6562
if test -z "$ac_cv_prog_DSYMUTIL"; then
6563
ac_ct_DSYMUTIL=$DSYMUTIL
6564
# Extract the first word of "dsymutil", so it can be a program name with args.
6565
set dummy dsymutil; ac_word=$2
6566
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567
$as_echo_n "checking for $ac_word... " >&6; }
6568
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6569
$as_echo_n "(cached) " >&6
6571
if test -n "$ac_ct_DSYMUTIL"; then
6572
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6574
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578
test -z "$as_dir" && as_dir=.
6579
for ac_exec_ext in '' $ac_executable_extensions; do
6580
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6582
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6592
if test -n "$ac_ct_DSYMUTIL"; then
6593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6594
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597
$as_echo "no" >&6; }
6600
if test "x$ac_ct_DSYMUTIL" = x; then
6603
case $cross_compiling:$ac_tool_warned in
6605
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6606
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6607
ac_tool_warned=yes ;;
6609
DSYMUTIL=$ac_ct_DSYMUTIL
6612
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6615
if test -n "$ac_tool_prefix"; then
6616
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6617
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619
$as_echo_n "checking for $ac_word... " >&6; }
6620
if ${ac_cv_prog_NMEDIT+:} false; then :
6621
$as_echo_n "(cached) " >&6
6623
if test -n "$NMEDIT"; then
6624
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6626
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630
test -z "$as_dir" && as_dir=.
6631
for ac_exec_ext in '' $ac_executable_extensions; do
6632
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6634
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643
NMEDIT=$ac_cv_prog_NMEDIT
6644
if test -n "$NMEDIT"; then
6645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6646
$as_echo "$NMEDIT" >&6; }
6648
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649
$as_echo "no" >&6; }
6654
if test -z "$ac_cv_prog_NMEDIT"; then
6655
ac_ct_NMEDIT=$NMEDIT
6656
# Extract the first word of "nmedit", so it can be a program name with args.
6657
set dummy nmedit; ac_word=$2
6658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659
$as_echo_n "checking for $ac_word... " >&6; }
6660
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6661
$as_echo_n "(cached) " >&6
6663
if test -n "$ac_ct_NMEDIT"; then
6664
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670
test -z "$as_dir" && as_dir=.
6671
for ac_exec_ext in '' $ac_executable_extensions; do
6672
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6674
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6684
if test -n "$ac_ct_NMEDIT"; then
6685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6686
$as_echo "$ac_ct_NMEDIT" >&6; }
6688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689
$as_echo "no" >&6; }
6692
if test "x$ac_ct_NMEDIT" = x; then
6695
case $cross_compiling:$ac_tool_warned in
6697
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6698
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699
ac_tool_warned=yes ;;
6701
NMEDIT=$ac_ct_NMEDIT
6704
NMEDIT="$ac_cv_prog_NMEDIT"
6707
if test -n "$ac_tool_prefix"; then
6708
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6709
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711
$as_echo_n "checking for $ac_word... " >&6; }
6712
if ${ac_cv_prog_LIPO+:} false; then :
6713
$as_echo_n "(cached) " >&6
6715
if test -n "$LIPO"; then
6716
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722
test -z "$as_dir" && as_dir=.
6723
for ac_exec_ext in '' $ac_executable_extensions; do
6724
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6726
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735
LIPO=$ac_cv_prog_LIPO
6736
if test -n "$LIPO"; then
6737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6738
$as_echo "$LIPO" >&6; }
6740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741
$as_echo "no" >&6; }
6746
if test -z "$ac_cv_prog_LIPO"; then
6748
# Extract the first word of "lipo", so it can be a program name with args.
6749
set dummy lipo; ac_word=$2
6750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751
$as_echo_n "checking for $ac_word... " >&6; }
6752
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6753
$as_echo_n "(cached) " >&6
6755
if test -n "$ac_ct_LIPO"; then
6756
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762
test -z "$as_dir" && as_dir=.
6763
for ac_exec_ext in '' $ac_executable_extensions; do
6764
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765
ac_cv_prog_ac_ct_LIPO="lipo"
6766
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6776
if test -n "$ac_ct_LIPO"; then
6777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6778
$as_echo "$ac_ct_LIPO" >&6; }
6780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781
$as_echo "no" >&6; }
6784
if test "x$ac_ct_LIPO" = x; then
6787
case $cross_compiling:$ac_tool_warned in
6789
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791
ac_tool_warned=yes ;;
6796
LIPO="$ac_cv_prog_LIPO"
6799
if test -n "$ac_tool_prefix"; then
6800
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6801
set dummy ${ac_tool_prefix}otool; ac_word=$2
6802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803
$as_echo_n "checking for $ac_word... " >&6; }
6804
if ${ac_cv_prog_OTOOL+:} false; then :
6805
$as_echo_n "(cached) " >&6
6807
if test -n "$OTOOL"; then
6808
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814
test -z "$as_dir" && as_dir=.
6815
for ac_exec_ext in '' $ac_executable_extensions; do
6816
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6818
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827
OTOOL=$ac_cv_prog_OTOOL
6828
if test -n "$OTOOL"; then
6829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6830
$as_echo "$OTOOL" >&6; }
6832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833
$as_echo "no" >&6; }
6838
if test -z "$ac_cv_prog_OTOOL"; then
6840
# Extract the first word of "otool", so it can be a program name with args.
6841
set dummy otool; ac_word=$2
6842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843
$as_echo_n "checking for $ac_word... " >&6; }
6844
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6845
$as_echo_n "(cached) " >&6
6847
if test -n "$ac_ct_OTOOL"; then
6848
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6850
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854
test -z "$as_dir" && as_dir=.
6855
for ac_exec_ext in '' $ac_executable_extensions; do
6856
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857
ac_cv_prog_ac_ct_OTOOL="otool"
6858
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6868
if test -n "$ac_ct_OTOOL"; then
6869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6870
$as_echo "$ac_ct_OTOOL" >&6; }
6872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873
$as_echo "no" >&6; }
6876
if test "x$ac_ct_OTOOL" = x; then
6879
case $cross_compiling:$ac_tool_warned in
6881
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883
ac_tool_warned=yes ;;
6888
OTOOL="$ac_cv_prog_OTOOL"
6891
if test -n "$ac_tool_prefix"; then
6892
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6893
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895
$as_echo_n "checking for $ac_word... " >&6; }
6896
if ${ac_cv_prog_OTOOL64+:} false; then :
6897
$as_echo_n "(cached) " >&6
6899
if test -n "$OTOOL64"; then
6900
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906
test -z "$as_dir" && as_dir=.
6907
for ac_exec_ext in '' $ac_executable_extensions; do
6908
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6910
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919
OTOOL64=$ac_cv_prog_OTOOL64
6920
if test -n "$OTOOL64"; then
6921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6922
$as_echo "$OTOOL64" >&6; }
6924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925
$as_echo "no" >&6; }
6930
if test -z "$ac_cv_prog_OTOOL64"; then
6931
ac_ct_OTOOL64=$OTOOL64
6932
# Extract the first word of "otool64", so it can be a program name with args.
6933
set dummy otool64; ac_word=$2
6934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935
$as_echo_n "checking for $ac_word... " >&6; }
6936
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6937
$as_echo_n "(cached) " >&6
6939
if test -n "$ac_ct_OTOOL64"; then
6940
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946
test -z "$as_dir" && as_dir=.
6947
for ac_exec_ext in '' $ac_executable_extensions; do
6948
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949
ac_cv_prog_ac_ct_OTOOL64="otool64"
6950
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6960
if test -n "$ac_ct_OTOOL64"; then
6961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6962
$as_echo "$ac_ct_OTOOL64" >&6; }
6964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965
$as_echo "no" >&6; }
6968
if test "x$ac_ct_OTOOL64" = x; then
6971
case $cross_compiling:$ac_tool_warned in
6973
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975
ac_tool_warned=yes ;;
6977
OTOOL64=$ac_ct_OTOOL64
6980
OTOOL64="$ac_cv_prog_OTOOL64"
7009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7010
$as_echo_n "checking for -single_module linker flag... " >&6; }
7011
if ${lt_cv_apple_cc_single_mod+:} false; then :
7012
$as_echo_n "(cached) " >&6
7014
lt_cv_apple_cc_single_mod=no
7015
if test -z "${LT_MULTI_MODULE}"; then
7016
# By default we will add the -single_module flag. You can override
7017
# by either setting the environment variable LT_MULTI_MODULE
7018
# non-empty at configure time, or by adding -multi_module to the
7020
rm -rf libconftest.dylib*
7021
echo "int foo(void){return 1;}" > conftest.c
7022
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7023
-dynamiclib -Wl,-single_module conftest.c" >&5
7024
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7025
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7027
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7028
lt_cv_apple_cc_single_mod=yes
7030
cat conftest.err >&5
7032
rm -rf libconftest.dylib*
7036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7037
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7038
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7039
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7040
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7041
$as_echo_n "(cached) " >&6
7043
lt_cv_ld_exported_symbols_list=no
7044
save_LDFLAGS=$LDFLAGS
7045
echo "_main" > conftest.sym
7046
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7047
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048
/* end confdefs.h. */
7058
if ac_fn_c_try_link "$LINENO"; then :
7059
lt_cv_ld_exported_symbols_list=yes
7061
lt_cv_ld_exported_symbols_list=no
7063
rm -f core conftest.err conftest.$ac_objext \
7064
conftest$ac_exeext conftest.$ac_ext
7065
LDFLAGS="$save_LDFLAGS"
7068
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7069
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7070
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7071
$as_echo_n "checking for -force_load linker flag... " >&6; }
7072
if ${lt_cv_ld_force_load+:} false; then :
7073
$as_echo_n "(cached) " >&6
7075
lt_cv_ld_force_load=no
7076
cat > conftest.c << _LT_EOF
7077
int forced_loaded() { return 2;}
7079
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7080
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7081
echo "$AR cru libconftest.a conftest.o" >&5
7082
$AR cru libconftest.a conftest.o 2>&5
7083
echo "$RANLIB libconftest.a" >&5
7084
$RANLIB libconftest.a 2>&5
7085
cat > conftest.c << _LT_EOF
7086
int main() { return 0;}
7088
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7089
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7091
if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7092
lt_cv_ld_force_load=yes
7094
cat conftest.err >&5
7096
rm -f conftest.err libconftest.a conftest conftest.c
7097
rm -rf conftest.dSYM
7100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7101
$as_echo "$lt_cv_ld_force_load" >&6; }
7103
rhapsody* | darwin1.[012])
7104
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7106
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7107
darwin*) # darwin 5.x on
7108
# if running on 10.5 or later, the deployment target defaults
7109
# to the OS version, if on x86, and 10.4, the deployment
7110
# target defaults to 10.4. Don't you love it?
7111
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7112
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7113
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7115
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7117
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7121
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7122
_lt_dar_single_mod='$single_module'
7124
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7125
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7127
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7129
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7130
_lt_dsymutil='~$DSYMUTIL $lib || :'
7138
ac_cpp='$CPP $CPPFLAGS'
7139
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7140
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7141
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7142
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7143
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7144
# On Suns, sometimes $CPP names a directory.
7145
if test -n "$CPP" && test -d "$CPP"; then
7148
if test -z "$CPP"; then
7149
if ${ac_cv_prog_CPP+:} false; then :
7150
$as_echo_n "(cached) " >&6
7152
# Double quotes because CPP needs to be expanded
7153
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7156
for ac_c_preproc_warn_flag in '' yes
7158
# Use a header file that comes with gcc, so configuring glibc
7159
# with a fresh cross-compiler works.
7160
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7161
# <limits.h> exists even on freestanding compilers.
7162
# On the NeXT, cc -E runs the code through the compiler's parser,
7163
# not just through cpp. "Syntax error" is here to catch this case.
7164
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165
/* end confdefs.h. */
7167
@%:@ include <limits.h>
7169
@%:@ include <assert.h>
7173
if ac_fn_c_try_cpp "$LINENO"; then :
7176
# Broken: fails on valid input.
7179
rm -f conftest.err conftest.i conftest.$ac_ext
7181
# OK, works on sane cases. Now check whether nonexistent headers
7182
# can be detected and how.
7183
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184
/* end confdefs.h. */
7185
@%:@include <ac_nonexistent.h>
7187
if ac_fn_c_try_cpp "$LINENO"; then :
7188
# Broken: success on invalid input.
7191
# Passes both tests.
7195
rm -f conftest.err conftest.i conftest.$ac_ext
7198
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7199
rm -f conftest.i conftest.err conftest.$ac_ext
7200
if $ac_preproc_ok; then :
7212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7213
$as_echo "$CPP" >&6; }
7215
for ac_c_preproc_warn_flag in '' yes
7217
# Use a header file that comes with gcc, so configuring glibc
7218
# with a fresh cross-compiler works.
7219
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7220
# <limits.h> exists even on freestanding compilers.
7221
# On the NeXT, cc -E runs the code through the compiler's parser,
7222
# not just through cpp. "Syntax error" is here to catch this case.
7223
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224
/* end confdefs.h. */
7226
@%:@ include <limits.h>
7228
@%:@ include <assert.h>
7232
if ac_fn_c_try_cpp "$LINENO"; then :
7235
# Broken: fails on valid input.
7238
rm -f conftest.err conftest.i conftest.$ac_ext
7240
# OK, works on sane cases. Now check whether nonexistent headers
7241
# can be detected and how.
7242
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243
/* end confdefs.h. */
7244
@%:@include <ac_nonexistent.h>
7246
if ac_fn_c_try_cpp "$LINENO"; then :
7247
# Broken: success on invalid input.
7250
# Passes both tests.
7254
rm -f conftest.err conftest.i conftest.$ac_ext
7257
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7258
rm -f conftest.i conftest.err conftest.$ac_ext
7259
if $ac_preproc_ok; then :
7262
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7263
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7264
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7265
See \`config.log' for more details" "$LINENO" 5; }
7269
ac_cpp='$CPP $CPPFLAGS'
7270
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7276
$as_echo_n "checking for ANSI C header files... " >&6; }
7277
if ${ac_cv_header_stdc+:} false; then :
7278
$as_echo_n "(cached) " >&6
7280
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281
/* end confdefs.h. */
7295
if ac_fn_c_try_compile "$LINENO"; then :
7296
ac_cv_header_stdc=yes
7298
ac_cv_header_stdc=no
7300
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302
if test $ac_cv_header_stdc = yes; then
7303
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7304
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305
/* end confdefs.h. */
7309
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7310
$EGREP "memchr" >/dev/null 2>&1; then :
7313
ac_cv_header_stdc=no
7319
if test $ac_cv_header_stdc = yes; then
7320
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7321
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322
/* end confdefs.h. */
7326
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7327
$EGREP "free" >/dev/null 2>&1; then :
7330
ac_cv_header_stdc=no
7336
if test $ac_cv_header_stdc = yes; then
7337
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7338
if test "$cross_compiling" = yes; then :
7341
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342
/* end confdefs.h. */
7345
#if ((' ' & 0x0FF) == 0x020)
7346
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7347
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7349
# define ISLOWER(c) \
7350
(('a' <= (c) && (c) <= 'i') \
7351
|| ('j' <= (c) && (c) <= 'r') \
7352
|| ('s' <= (c) && (c) <= 'z'))
7353
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7356
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7361
for (i = 0; i < 256; i++)
7362
if (XOR (islower (i), ISLOWER (i))
7363
|| toupper (i) != TOUPPER (i))
7368
if ac_fn_c_try_run "$LINENO"; then :
7371
ac_cv_header_stdc=no
7373
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7374
conftest.$ac_objext conftest.beam conftest.$ac_ext
7379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7380
$as_echo "$ac_cv_header_stdc" >&6; }
7381
if test $ac_cv_header_stdc = yes; then
7383
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7387
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7388
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7389
inttypes.h stdint.h unistd.h
7391
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7392
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7394
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7395
cat >>confdefs.h <<_ACEOF
7396
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7404
for ac_header in dlfcn.h
7406
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7408
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7409
cat >>confdefs.h <<_ACEOF
7410
@%:@define HAVE_DLFCN_H 1
7432
@%:@ Check whether --enable-shared was given.
7433
if test "${enable_shared+set}" = set; then :
7434
enableval=$enable_shared; p=${PACKAGE-default}
7436
yes) enable_shared=yes ;;
7437
no) enable_shared=no ;;
7440
# Look at the argument we got. We use all the common list separators.
7441
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7442
for pkg in $enableval; do
7444
if test "X$pkg" = "X$p"; then
7463
@%:@ Check whether --enable-static was given.
7464
if test "${enable_static+set}" = set; then :
7465
enableval=$enable_static; p=${PACKAGE-default}
7467
yes) enable_static=yes ;;
7468
no) enable_static=no ;;
7471
# Look at the argument we got. We use all the common list separators.
7472
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7473
for pkg in $enableval; do
7475
if test "X$pkg" = "X$p"; then
7495
@%:@ Check whether --with-pic was given.
7496
if test "${with_pic+set}" = set; then :
7497
withval=$with_pic; pic_mode="$withval"
7503
test -z "$pic_mode" && pic_mode=default
7511
@%:@ Check whether --enable-fast-install was given.
7512
if test "${enable_fast_install+set}" = set; then :
7513
enableval=$enable_fast_install; p=${PACKAGE-default}
7515
yes) enable_fast_install=yes ;;
7516
no) enable_fast_install=no ;;
7518
enable_fast_install=no
7519
# Look at the argument we got. We use all the common list separators.
7520
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7521
for pkg in $enableval; do
7523
if test "X$pkg" = "X$p"; then
7524
enable_fast_install=yes
7531
enable_fast_install=yes
7544
# This can be used to rebuild libtool when needed
7545
LIBTOOL_DEPS="$ltmain"
7547
# Always use our own libtool.
7548
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7575
test -z "$LN_S" && LN_S="ln -s"
7590
if test -n "${ZSH_VERSION+set}" ; then
7591
setopt NO_GLOB_SUBST
7594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7595
$as_echo_n "checking for objdir... " >&6; }
7596
if ${lt_cv_objdir+:} false; then :
7597
$as_echo_n "(cached) " >&6
7599
rm -f .libs 2>/dev/null
7600
mkdir .libs 2>/dev/null
7601
if test -d .libs; then
7604
# MS-DOS does not allow filenames that begin with a dot.
7607
rmdir .libs 2>/dev/null
7609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7610
$as_echo "$lt_cv_objdir" >&6; }
7611
objdir=$lt_cv_objdir
7617
cat >>confdefs.h <<_ACEOF
7618
@%:@define LT_OBJDIR "$lt_cv_objdir/"
7626
# AIX sometimes has problems with the GCC collect2 program. For some
7627
# reason, if we set the COLLECT_NAMES environment variable, the problems
7628
# vanish in a puff of smoke.
7629
if test "X${COLLECT_NAMES+set}" != Xset; then
7631
export COLLECT_NAMES
7638
can_build_shared=yes
7640
# All known linkers require a `.a' archive for static linking (except MSVC,
7641
# which needs '.lib').
7644
with_gnu_ld="$lt_cv_prog_gnu_ld"
7647
old_CFLAGS="$CFLAGS"
7649
# Set sane defaults for various variables
7650
test -z "$CC" && CC=cc
7651
test -z "$LTCC" && LTCC=$CC
7652
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7653
test -z "$LD" && LD=ld
7654
test -z "$ac_objext" && ac_objext=o
7656
for cc_temp in $compiler""; do
7658
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7659
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7664
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7667
# Only perform the check for file, if the check method requires it
7668
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7669
case $deplibs_check_method in
7671
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7673
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7674
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7675
$as_echo_n "(cached) " >&6
7679
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7682
lt_save_MAGIC_CMD="$MAGIC_CMD"
7683
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7684
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7685
for ac_dir in $ac_dummy; do
7687
test -z "$ac_dir" && ac_dir=.
7688
if test -f $ac_dir/${ac_tool_prefix}file; then
7689
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7690
if test -n "$file_magic_test_file"; then
7691
case $deplibs_check_method in
7693
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7694
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7696
$EGREP "$file_magic_regex" > /dev/null; then
7701
*** Warning: the command libtool uses to detect shared libraries,
7702
*** $file_magic_cmd, produces output that libtool cannot recognize.
7703
*** The result is that libtool may fail to recognize shared libraries
7704
*** as such. This will affect the creation of libtool libraries that
7705
*** depend on shared libraries, but programs linked with such libtool
7706
*** libraries will work regardless of this problem. Nevertheless, you
7707
*** may want to report the problem to your system manager and/or to
7708
*** bug-libtool@gnu.org
7718
MAGIC_CMD="$lt_save_MAGIC_CMD"
7723
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7724
if test -n "$MAGIC_CMD"; then
7725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7726
$as_echo "$MAGIC_CMD" >&6; }
7728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729
$as_echo "no" >&6; }
7736
if test -z "$lt_cv_path_MAGIC_CMD"; then
7737
if test -n "$ac_tool_prefix"; then
7738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7739
$as_echo_n "checking for file... " >&6; }
7740
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7741
$as_echo_n "(cached) " >&6
7745
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7748
lt_save_MAGIC_CMD="$MAGIC_CMD"
7749
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7750
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7751
for ac_dir in $ac_dummy; do
7753
test -z "$ac_dir" && ac_dir=.
7754
if test -f $ac_dir/file; then
7755
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7756
if test -n "$file_magic_test_file"; then
7757
case $deplibs_check_method in
7759
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7760
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7761
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7762
$EGREP "$file_magic_regex" > /dev/null; then
7767
*** Warning: the command libtool uses to detect shared libraries,
7768
*** $file_magic_cmd, produces output that libtool cannot recognize.
7769
*** The result is that libtool may fail to recognize shared libraries
7770
*** as such. This will affect the creation of libtool libraries that
7771
*** depend on shared libraries, but programs linked with such libtool
7772
*** libraries will work regardless of this problem. Nevertheless, you
7773
*** may want to report the problem to your system manager and/or to
7774
*** bug-libtool@gnu.org
7784
MAGIC_CMD="$lt_save_MAGIC_CMD"
7789
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7790
if test -n "$MAGIC_CMD"; then
7791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7792
$as_echo "$MAGIC_CMD" >&6; }
7794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795
$as_echo "no" >&6; }
7808
# Use C for the default configuration in the libtool script
7812
ac_cpp='$CPP $CPPFLAGS'
7813
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7814
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7815
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7818
# Source file extension for C test sources.
7821
# Object file extension for compiled C test sources.
7825
# Code to be used in simple compile tests
7826
lt_simple_compile_test_code="int some_variable = 0;"
7828
# Code to be used in simple link tests
7829
lt_simple_link_test_code='int main(){return(0);}'
7837
# If no C compiler was specified, use CC.
7840
# If no C compiler flags were specified, use CFLAGS.
7841
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7843
# Allow CC to be a program name with arguments.
7846
# Save the default compiler, since it gets overwritten when the other
7847
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7848
compiler_DEFAULT=$CC
7850
# save warnings/boilerplate of simple test code
7851
ac_outfile=conftest.$ac_objext
7852
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7853
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7854
_lt_compiler_boilerplate=`cat conftest.err`
7857
ac_outfile=conftest.$ac_objext
7858
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7859
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7860
_lt_linker_boilerplate=`cat conftest.err`
7865
## There is no encapsulation within the following macros, do not change
7866
## the running order or otherwise move them around unless you know exactly
7867
## what you are doing...
7868
if test -n "$compiler"; then
7870
lt_prog_compiler_no_builtin_flag=
7872
if test "$GCC" = yes; then
7873
case $cc_basename in
7875
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7877
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7881
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7882
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7883
$as_echo_n "(cached) " >&6
7885
lt_cv_prog_compiler_rtti_exceptions=no
7886
ac_outfile=conftest.$ac_objext
7887
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7888
lt_compiler_flag="-fno-rtti -fno-exceptions"
7889
# Insert the option either (1) after the last *FLAGS variable, or
7890
# (2) before a word containing "conftest.", or (3) at the end.
7891
# Note that $ac_compile itself does not contain backslashes and begins
7892
# with a dollar sign (not a hyphen), so the echo should work correctly.
7893
# The option is referenced via a variable to avoid confusing sed.
7894
lt_compile=`echo "$ac_compile" | $SED \
7895
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7896
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7897
-e 's:$: $lt_compiler_flag:'`
7898
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7899
(eval "$lt_compile" 2>conftest.err)
7901
cat conftest.err >&5
7902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903
if (exit $ac_status) && test -s "$ac_outfile"; then
7904
# The compiler can only warn and ignore the option if not recognized
7905
# So say no if there are warnings other than the usual output.
7906
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7907
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7908
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7909
lt_cv_prog_compiler_rtti_exceptions=yes
7915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7916
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7918
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7919
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7931
lt_prog_compiler_wl=
7932
lt_prog_compiler_pic=
7933
lt_prog_compiler_static=
7936
if test "$GCC" = yes; then
7937
lt_prog_compiler_wl='-Wl,'
7938
lt_prog_compiler_static='-static'
7942
# All AIX code is PIC.
7943
if test "$host_cpu" = ia64; then
7944
# AIX 5 now supports IA64 processor
7945
lt_prog_compiler_static='-Bstatic'
7952
# see comment about AmigaOS4 .so support
7953
lt_prog_compiler_pic='-fPIC'
7956
# FIXME: we need at least 68020 code to build shared libraries, but
7957
# adding the `-m68020' flag to GCC prevents building anything better,
7959
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7964
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7965
# PIC is the default for these OSes.
7968
mingw* | cygwin* | pw32* | os2* | cegcc*)
7969
# This hack is so that the source file can tell whether it is being
7970
# built for inclusion in a dll (and should export symbols for example).
7971
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7972
# (--disable-auto-import) libraries
7973
lt_prog_compiler_pic='-DDLL_EXPORT'
7976
darwin* | rhapsody*)
7977
# PIC is the default on this platform
7978
# Common symbols not allowed in MH_DYLIB files
7979
lt_prog_compiler_pic='-fno-common'
7983
# PIC is the default for Haiku.
7984
# The "-static" flag exists, but is broken.
7985
lt_prog_compiler_static=
7989
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7990
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7991
# sets the default TLS model and affects inlining.
7997
lt_prog_compiler_pic='-fPIC'
8003
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8004
# Instead, we relocate shared libraries at runtime.
8008
# Just because we use GCC doesn't mean we suddenly get shared libraries
8009
# on systems that don't support them.
8010
lt_prog_compiler_can_build_shared=no
8015
# QNX uses GNU C++, but need to define -shared option too, otherwise
8017
lt_prog_compiler_pic='-fPIC -shared'
8021
if test -d /usr/nec; then
8022
lt_prog_compiler_pic=-Kconform_pic
8027
lt_prog_compiler_pic='-fPIC'
8031
case $cc_basename in
8032
nvcc*) # Cuda Compiler Driver 2.2
8033
lt_prog_compiler_wl='-Xlinker '
8034
lt_prog_compiler_pic='-Xcompiler -fPIC'
8038
# PORTME Check for flag to pass linker flags through the system compiler.
8041
lt_prog_compiler_wl='-Wl,'
8042
if test "$host_cpu" = ia64; then
8043
# AIX 5 now supports IA64 processor
8044
lt_prog_compiler_static='-Bstatic'
8046
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8050
mingw* | cygwin* | pw32* | os2* | cegcc*)
8051
# This hack is so that the source file can tell whether it is being
8052
# built for inclusion in a dll (and should export symbols for example).
8053
lt_prog_compiler_pic='-DDLL_EXPORT'
8056
hpux9* | hpux10* | hpux11*)
8057
lt_prog_compiler_wl='-Wl,'
8058
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8065
lt_prog_compiler_pic='+Z'
8068
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8069
lt_prog_compiler_static='${wl}-a ${wl}archive'
8072
irix5* | irix6* | nonstopux*)
8073
lt_prog_compiler_wl='-Wl,'
8074
# PIC (with -KPIC) is the default.
8075
lt_prog_compiler_static='-non_shared'
8078
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8079
case $cc_basename in
8080
# old Intel for x86_64 which still supported -KPIC.
8082
lt_prog_compiler_wl='-Wl,'
8083
lt_prog_compiler_pic='-KPIC'
8084
lt_prog_compiler_static='-static'
8086
# icc used to be incompatible with GCC.
8087
# ICC 10 doesn't accept -KPIC any more.
8089
lt_prog_compiler_wl='-Wl,'
8090
lt_prog_compiler_pic='-fPIC'
8091
lt_prog_compiler_static='-static'
8093
# Lahey Fortran 8.1.
8095
lt_prog_compiler_wl='-Wl,'
8096
lt_prog_compiler_pic='--shared'
8097
lt_prog_compiler_static='--static'
8100
# NAG Fortran compiler
8101
lt_prog_compiler_wl='-Wl,-Wl,,'
8102
lt_prog_compiler_pic='-PIC'
8103
lt_prog_compiler_static='-Bstatic'
8105
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8106
# Portland Group compilers (*not* the Pentium gcc compiler,
8107
# which looks to be a dead project)
8108
lt_prog_compiler_wl='-Wl,'
8109
lt_prog_compiler_pic='-fpic'
8110
lt_prog_compiler_static='-Bstatic'
8113
lt_prog_compiler_wl='-Wl,'
8114
# All Alpha code is PIC.
8115
lt_prog_compiler_static='-non_shared'
8117
xl* | bgxl* | bgf* | mpixl*)
8118
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8119
lt_prog_compiler_wl='-Wl,'
8120
lt_prog_compiler_pic='-qpic'
8121
lt_prog_compiler_static='-qstaticlink'
8124
case `$CC -V 2>&1 | sed 5q` in
8125
*Sun\ F* | *Sun*Fortran*)
8126
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8127
lt_prog_compiler_pic='-KPIC'
8128
lt_prog_compiler_static='-Bstatic'
8129
lt_prog_compiler_wl=''
8133
lt_prog_compiler_pic='-KPIC'
8134
lt_prog_compiler_static='-Bstatic'
8135
lt_prog_compiler_wl='-Wl,'
8143
lt_prog_compiler_pic='-KPIC'
8144
lt_prog_compiler_static='-Bstatic'
8148
# QNX uses GNU C++, but need to define -shared option too, otherwise
8150
lt_prog_compiler_pic='-fPIC -shared'
8153
osf3* | osf4* | osf5*)
8154
lt_prog_compiler_wl='-Wl,'
8155
# All OSF/1 code is PIC.
8156
lt_prog_compiler_static='-non_shared'
8160
lt_prog_compiler_static='-non_shared'
8164
lt_prog_compiler_pic='-KPIC'
8165
lt_prog_compiler_static='-Bstatic'
8166
case $cc_basename in
8167
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8168
lt_prog_compiler_wl='-Qoption ld ';;
8170
lt_prog_compiler_wl='-Wl,';;
8175
lt_prog_compiler_wl='-Qoption ld '
8176
lt_prog_compiler_pic='-PIC'
8177
lt_prog_compiler_static='-Bstatic'
8180
sysv4 | sysv4.2uw2* | sysv4.3*)
8181
lt_prog_compiler_wl='-Wl,'
8182
lt_prog_compiler_pic='-KPIC'
8183
lt_prog_compiler_static='-Bstatic'
8187
if test -d /usr/nec ;then
8188
lt_prog_compiler_pic='-Kconform_pic'
8189
lt_prog_compiler_static='-Bstatic'
8193
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8194
lt_prog_compiler_wl='-Wl,'
8195
lt_prog_compiler_pic='-KPIC'
8196
lt_prog_compiler_static='-Bstatic'
8200
lt_prog_compiler_wl='-Wl,'
8201
lt_prog_compiler_can_build_shared=no
8205
lt_prog_compiler_pic='-pic'
8206
lt_prog_compiler_static='-Bstatic'
8210
lt_prog_compiler_can_build_shared=no
8216
# For platforms which do not support PIC, -DPIC is meaningless:
8218
lt_prog_compiler_pic=
8221
lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8226
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8227
if ${lt_cv_prog_compiler_pic+:} false; then :
8228
$as_echo_n "(cached) " >&6
8230
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8233
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8234
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8237
# Check to make sure the PIC flag actually works.
8239
if test -n "$lt_prog_compiler_pic"; then
8240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8241
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8242
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8243
$as_echo_n "(cached) " >&6
8245
lt_cv_prog_compiler_pic_works=no
8246
ac_outfile=conftest.$ac_objext
8247
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248
lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8249
# Insert the option either (1) after the last *FLAGS variable, or
8250
# (2) before a word containing "conftest.", or (3) at the end.
8251
# Note that $ac_compile itself does not contain backslashes and begins
8252
# with a dollar sign (not a hyphen), so the echo should work correctly.
8253
# The option is referenced via a variable to avoid confusing sed.
8254
lt_compile=`echo "$ac_compile" | $SED \
8255
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8256
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8257
-e 's:$: $lt_compiler_flag:'`
8258
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8259
(eval "$lt_compile" 2>conftest.err)
8261
cat conftest.err >&5
8262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263
if (exit $ac_status) && test -s "$ac_outfile"; then
8264
# The compiler can only warn and ignore the option if not recognized
8265
# So say no if there are warnings other than the usual output.
8266
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8267
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8268
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8269
lt_cv_prog_compiler_pic_works=yes
8275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8276
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8278
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8279
case $lt_prog_compiler_pic in
8281
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8284
lt_prog_compiler_pic=
8285
lt_prog_compiler_can_build_shared=no
8301
# Check to make sure the static flag actually works.
8303
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8305
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8306
if ${lt_cv_prog_compiler_static_works+:} false; then :
8307
$as_echo_n "(cached) " >&6
8309
lt_cv_prog_compiler_static_works=no
8310
save_LDFLAGS="$LDFLAGS"
8311
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8312
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8313
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8314
# The linker can only warn and ignore the option if not recognized
8315
# So say no if there are warnings
8316
if test -s conftest.err; then
8317
# Append any errors to the config.log.
8318
cat conftest.err 1>&5
8319
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8320
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8321
if diff conftest.exp conftest.er2 >/dev/null; then
8322
lt_cv_prog_compiler_static_works=yes
8325
lt_cv_prog_compiler_static_works=yes
8329
LDFLAGS="$save_LDFLAGS"
8332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8333
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8335
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8338
lt_prog_compiler_static=
8347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8348
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8349
if ${lt_cv_prog_compiler_c_o+:} false; then :
8350
$as_echo_n "(cached) " >&6
8352
lt_cv_prog_compiler_c_o=no
8353
$RM -r conftest 2>/dev/null
8357
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8359
lt_compiler_flag="-o out/conftest2.$ac_objext"
8360
# Insert the option either (1) after the last *FLAGS variable, or
8361
# (2) before a word containing "conftest.", or (3) at the end.
8362
# Note that $ac_compile itself does not contain backslashes and begins
8363
# with a dollar sign (not a hyphen), so the echo should work correctly.
8364
lt_compile=`echo "$ac_compile" | $SED \
8365
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8366
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8367
-e 's:$: $lt_compiler_flag:'`
8368
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8369
(eval "$lt_compile" 2>out/conftest.err)
8371
cat out/conftest.err >&5
8372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8375
# The compiler can only warn and ignore the option if not recognized
8376
# So say no if there are warnings
8377
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8378
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8379
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8380
lt_cv_prog_compiler_c_o=yes
8385
# SGI C++ compiler will create directory out/ii_files/ for
8386
# template instantiation
8387
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8388
$RM out/* && rmdir out
8394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8395
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8402
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8403
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8404
if ${lt_cv_prog_compiler_c_o+:} false; then :
8405
$as_echo_n "(cached) " >&6
8407
lt_cv_prog_compiler_c_o=no
8408
$RM -r conftest 2>/dev/null
8412
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8414
lt_compiler_flag="-o out/conftest2.$ac_objext"
8415
# Insert the option either (1) after the last *FLAGS variable, or
8416
# (2) before a word containing "conftest.", or (3) at the end.
8417
# Note that $ac_compile itself does not contain backslashes and begins
8418
# with a dollar sign (not a hyphen), so the echo should work correctly.
8419
lt_compile=`echo "$ac_compile" | $SED \
8420
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8421
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8422
-e 's:$: $lt_compiler_flag:'`
8423
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8424
(eval "$lt_compile" 2>out/conftest.err)
8426
cat out/conftest.err >&5
8427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8430
# The compiler can only warn and ignore the option if not recognized
8431
# So say no if there are warnings
8432
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8433
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8434
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8435
lt_cv_prog_compiler_c_o=yes
8440
# SGI C++ compiler will create directory out/ii_files/ for
8441
# template instantiation
8442
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8443
$RM out/* && rmdir out
8449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8450
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8455
hard_links="nottested"
8456
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8457
# do not overwrite the value of need_locks provided by the user
8458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8459
$as_echo_n "checking if we can lock with hard links... " >&6; }
8462
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8464
ln conftest.a conftest.b 2>&5 || hard_links=no
8465
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8467
$as_echo "$hard_links" >&6; }
8468
if test "$hard_links" = no; then
8469
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8470
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8482
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8483
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8486
allow_undefined_flag=
8487
always_export_symbols=no
8489
archive_expsym_cmds=
8490
compiler_needs_object=no
8491
enable_shared_with_static_runtimes=no
8492
export_dynamic_flag_spec=
8493
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8494
hardcode_automatic=no
8496
hardcode_direct_absolute=no
8497
hardcode_libdir_flag_spec=
8498
hardcode_libdir_flag_spec_ld=
8499
hardcode_libdir_separator=
8501
hardcode_shlibpath_var=unsupported
8503
link_all_deplibs=unknown
8506
old_archive_from_new_cmds=
8507
old_archive_from_expsyms_cmds=
8508
thread_safe_flag_spec=
8509
whole_archive_flag_spec=
8510
# include_expsyms should be a list of space-separated symbols to be *always*
8511
# included in the symbol list
8513
# exclude_expsyms can be an extended regexp of symbols to exclude
8514
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8515
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8516
# as well as any symbol that contains `d'.
8517
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8518
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8519
# platforms (ab)use it in PIC code, but their linkers get confused if
8520
# the symbol is explicitly referenced. Since portable code cannot
8521
# rely on this symbol name, it's probably fine to never include it in
8522
# preloaded symbol tables.
8523
# Exclude shared library initialization/finalization symbols.
8524
extract_expsyms_cmds=
8527
cygwin* | mingw* | pw32* | cegcc*)
8528
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8529
# When not using gcc, we currently assume that we are using
8530
# Microsoft Visual C++.
8531
if test "$GCC" != yes; then
8536
# we just hope/assume this is gcc and not c89 (= MSVC++)
8542
linux* | k*bsd*-gnu | gnu*)
8549
# On some targets, GNU ld is compatible enough with the native linker
8550
# that we're better off using the native interface for both.
8551
lt_use_gnu_ld_interface=no
8552
if test "$with_gnu_ld" = yes; then
8555
# The AIX port of GNU ld has always aspired to compatibility
8556
# with the native linker. However, as the warning in the GNU ld
8557
# block says, versions before 2.19.5* couldn't really create working
8558
# shared libraries, regardless of the interface used.
8559
case `$LD -v 2>&1` in
8560
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8561
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8562
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
8564
lt_use_gnu_ld_interface=yes
8569
lt_use_gnu_ld_interface=yes
8574
if test "$lt_use_gnu_ld_interface" = yes; then
8575
# If archive_cmds runs LD, not CC, wlarc should be empty
8578
# Set some defaults for GNU ld with shared library support. These
8579
# are reset later if shared libraries are not supported. Putting them
8580
# here allows them to be overridden if necessary.
8581
runpath_var=LD_RUN_PATH
8582
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8583
export_dynamic_flag_spec='${wl}--export-dynamic'
8584
# ancient GNU ld didn't support --whole-archive et. al.
8585
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8586
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8588
whole_archive_flag_spec=
8590
supports_anon_versioning=no
8591
case `$LD -v 2>&1` in
8592
*GNU\ gold*) supports_anon_versioning=yes ;;
8593
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8594
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8595
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8596
*\ 2.11.*) ;; # other 2.11 versions
8597
*) supports_anon_versioning=yes ;;
8600
# See if GNU ld supports shared libraries.
8603
# On AIX/PPC, the GNU linker is very broken
8604
if test "$host_cpu" != ia64; then
8608
*** Warning: the GNU linker, at least up to release 2.19, is reported
8609
*** to be unable to reliably create shared libraries on AIX.
8610
*** Therefore, libtool is disabling shared libraries support. If you
8611
*** really care for shared libraries, you may want to install binutils
8612
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8613
*** You will then need to restart the configuration process.
8622
# see comment about AmigaOS4 .so support
8623
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8624
archive_expsym_cmds=''
8627
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)'
8628
hardcode_libdir_flag_spec='-L$libdir'
8629
hardcode_minus_L=yes
8635
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8636
allow_undefined_flag=unsupported
8637
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8638
# support --undefined. This deserves some investigation. FIXME
8639
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8645
cygwin* | mingw* | pw32* | cegcc*)
8646
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8647
# as there is no search path for DLLs.
8648
hardcode_libdir_flag_spec='-L$libdir'
8649
export_dynamic_flag_spec='${wl}--export-all-symbols'
8650
allow_undefined_flag=unsupported
8651
always_export_symbols=no
8652
enable_shared_with_static_runtimes=yes
8653
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'
8654
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8656
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8657
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8658
# If the export-symbols file already is a .def file (1st line
8659
# is EXPORTS), use it as is; otherwise, prepend...
8660
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8661
cp $export_symbols $output_objdir/$soname.def;
8663
echo EXPORTS > $output_objdir/$soname.def;
8664
cat $export_symbols >> $output_objdir/$soname.def;
8666
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8673
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8674
link_all_deplibs=yes
8679
hardcode_shlibpath_var=no
8680
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8681
export_dynamic_flag_spec='${wl}-E'
8682
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8683
# Instead, shared libraries are loaded at an image base (0x10000000 by
8684
# default) and relocated if they conflict, which is a slow very memory
8685
# consuming and fragmenting process. To avoid this, we pick a random,
8686
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8687
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8688
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8689
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'
8692
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8694
if test "$host_os" = linux-dietlibc; then
8695
case $cc_basename in
8696
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8699
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8700
&& test "$tmp_diet" = no
8702
tmp_addflag=' $pic_flag'
8703
tmp_sharedflag='-shared'
8704
case $cc_basename,$host_cpu in
8705
pgcc*) # Portland Group C compiler
8706
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'
8707
tmp_addflag=' $pic_flag'
8709
pgf77* | pgf90* | pgf95* | pgfortran*)
8710
# Portland Group f77 and f90 compilers
8711
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'
8712
tmp_addflag=' $pic_flag -Mnomain' ;;
8713
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8714
tmp_addflag=' -i_dynamic' ;;
8715
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8716
tmp_addflag=' -i_dynamic -nofor_main' ;;
8717
ifc* | ifort*) # Intel Fortran compiler
8718
tmp_addflag=' -nofor_main' ;;
8719
lf95*) # Lahey Fortran 8.1
8720
whole_archive_flag_spec=
8721
tmp_sharedflag='--shared' ;;
8722
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8723
tmp_sharedflag='-qmkshrobj'
8725
nvcc*) # Cuda Compiler Driver 2.2
8726
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'
8727
compiler_needs_object=yes
8730
case `$CC -V 2>&1 | sed 5q` in
8731
*Sun\ C*) # Sun C 5.9
8732
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'
8733
compiler_needs_object=yes
8734
tmp_sharedflag='-G' ;;
8735
*Sun\ F*) # Sun Fortran 8.3
8736
tmp_sharedflag='-G' ;;
8738
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8740
if test "x$supports_anon_versioning" = xyes; then
8741
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8742
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8743
echo "local: *; };" >> $output_objdir/$libname.ver~
8744
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8747
case $cc_basename in
8748
xlf* | bgf* | bgxlf* | mpixlf*)
8749
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8750
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8751
hardcode_libdir_flag_spec=
8752
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8753
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8754
if test "x$supports_anon_versioning" = xyes; then
8755
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8756
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8757
echo "local: *; };" >> $output_objdir/$libname.ver~
8758
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8767
netbsd* | netbsdelf*-gnu)
8768
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8769
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8772
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8773
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8778
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8782
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8783
*** create shared libraries on Solaris systems. Therefore, libtool
8784
*** is disabling shared libraries support. We urge you to upgrade GNU
8785
*** binutils to release 2.9.1 or newer. Another option is to modify
8786
*** your PATH or compiler configuration so that the native linker is
8787
*** used, and then restart.
8790
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8791
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8792
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8798
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8799
case `$LD -v 2>&1` in
8800
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8804
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8805
*** reliably create shared libraries on SCO systems. Therefore, libtool
8806
*** is disabling shared libraries support. We urge you to upgrade GNU
8807
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8808
*** your PATH or compiler configuration so that the native linker is
8809
*** used, and then restart.
8814
# For security reasons, it is highly recommended that you always
8815
# use absolute paths for naming shared libraries, and exclude the
8816
# DT_RUNPATH tag from executables and libraries. But doing so
8817
# requires that you compile everything twice, which is a pain.
8818
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8819
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8820
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8830
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8833
hardcode_shlibpath_var=no
8837
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8838
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8839
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8846
if test "$ld_shlibs" = no; then
8848
hardcode_libdir_flag_spec=
8849
export_dynamic_flag_spec=
8850
whole_archive_flag_spec=
8853
# PORTME fill in a description of your system's linker (not GNU ld)
8856
allow_undefined_flag=unsupported
8857
always_export_symbols=yes
8858
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'
8859
# Note: this linker hardcodes the directories in LIBPATH if there
8860
# are no directories specified by -L.
8861
hardcode_minus_L=yes
8862
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8863
# Neither direct hardcoding nor static linking is supported with a
8865
hardcode_direct=unsupported
8870
if test "$host_cpu" = ia64; then
8871
# On IA64, the linker does run time linking by default, so we don't
8872
# have to do anything special.
8873
aix_use_runtimelinking=no
8874
exp_sym_flag='-Bexport'
8877
# If we're using GNU nm, then we don't want the "-C" option.
8878
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8879
# Also, AIX nm treats weak defined symbols like other global
8880
# defined symbols, whereas GNU nm marks them as "W".
8881
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8882
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'
8884
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'
8886
aix_use_runtimelinking=no
8888
# Test if we are trying to use run time linking or normal
8889
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8890
# need to do runtime linking.
8891
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8892
for ld_flag in $LDFLAGS; do
8893
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8894
aix_use_runtimelinking=yes
8901
exp_sym_flag='-bexport'
8902
no_entry_flag='-bnoentry'
8905
# When large executables or shared objects are built, AIX ld can
8906
# have problems creating the table of contents. If linking a library
8907
# or program results in "error TOC overflow" add -mminimal-toc to
8908
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8909
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8913
hardcode_direct_absolute=yes
8914
hardcode_libdir_separator=':'
8915
link_all_deplibs=yes
8916
file_list_spec='${wl}-f,'
8918
if test "$GCC" = yes; then
8919
case $host_os in aix4.[012]|aix4.[012].*)
8920
# We only want to do this on AIX 4.2 and lower, the check
8921
# below for broken collect2 doesn't work under 4.3+
8922
collect2name=`${CC} -print-prog-name=collect2`
8923
if test -f "$collect2name" &&
8924
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8926
# We have reworked collect2
8929
# We have old collect2
8930
hardcode_direct=unsupported
8931
# It fails to find uninstalled libraries when the uninstalled
8932
# path is not listed in the libpath. Setting hardcode_minus_L
8933
# to unsupported forces relinking
8934
hardcode_minus_L=yes
8935
hardcode_libdir_flag_spec='-L$libdir'
8936
hardcode_libdir_separator=
8940
shared_flag='-shared'
8941
if test "$aix_use_runtimelinking" = yes; then
8942
shared_flag="$shared_flag "'${wl}-G'
8947
if test "$host_cpu" = ia64; then
8948
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8949
# chokes on -Wl,-G. The following line is correct:
8952
if test "$aix_use_runtimelinking" = yes; then
8953
shared_flag='${wl}-G'
8955
shared_flag='${wl}-bM:SRE'
8960
export_dynamic_flag_spec='${wl}-bexpall'
8961
# It seems that -bexpall does not export symbols beginning with
8962
# underscore (_), so it is better to generate a list of symbols to export.
8963
always_export_symbols=yes
8964
if test "$aix_use_runtimelinking" = yes; then
8965
# Warning - without using the other runtime loading flags (-brtl),
8966
# -berok will link without error, but may produce a broken library.
8967
allow_undefined_flag='-berok'
8968
# Determine the default libpath from the value encoded in an
8970
if test "${lt_cv_aix_libpath+set}" = set; then
8971
aix_libpath=$lt_cv_aix_libpath
8973
if ${lt_cv_aix_libpath_+:} false; then :
8974
$as_echo_n "(cached) " >&6
8976
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977
/* end confdefs.h. */
8987
if ac_fn_c_try_link "$LINENO"; then :
8989
lt_aix_libpath_sed='
8990
/Import File Strings/,/^$/ {
8992
s/^0 *\([^ ]*\) *$/\1/
8996
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8997
# Check for a 64-bit object if we didn't find anything.
8998
if test -z "$lt_cv_aix_libpath_"; then
8999
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9002
rm -f core conftest.err conftest.$ac_objext \
9003
conftest$ac_exeext conftest.$ac_ext
9004
if test -z "$lt_cv_aix_libpath_"; then
9005
lt_cv_aix_libpath_="/usr/lib:/lib"
9010
aix_libpath=$lt_cv_aix_libpath_
9013
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9014
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"
9016
if test "$host_cpu" = ia64; then
9017
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9018
allow_undefined_flag="-z nodefs"
9019
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"
9021
# Determine the default libpath from the value encoded in an
9023
if test "${lt_cv_aix_libpath+set}" = set; then
9024
aix_libpath=$lt_cv_aix_libpath
9026
if ${lt_cv_aix_libpath_+:} false; then :
9027
$as_echo_n "(cached) " >&6
9029
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030
/* end confdefs.h. */
9040
if ac_fn_c_try_link "$LINENO"; then :
9042
lt_aix_libpath_sed='
9043
/Import File Strings/,/^$/ {
9045
s/^0 *\([^ ]*\) *$/\1/
9049
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9050
# Check for a 64-bit object if we didn't find anything.
9051
if test -z "$lt_cv_aix_libpath_"; then
9052
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9055
rm -f core conftest.err conftest.$ac_objext \
9056
conftest$ac_exeext conftest.$ac_ext
9057
if test -z "$lt_cv_aix_libpath_"; then
9058
lt_cv_aix_libpath_="/usr/lib:/lib"
9063
aix_libpath=$lt_cv_aix_libpath_
9066
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9067
# Warning - without using the other run time loading flags,
9068
# -berok will link without error, but may produce a broken library.
9069
no_undefined_flag=' ${wl}-bernotok'
9070
allow_undefined_flag=' ${wl}-berok'
9071
if test "$with_gnu_ld" = yes; then
9072
# We only use this code for GNU lds that support --whole-archive.
9073
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9075
# Exported symbols can be pulled into shared objects from archives
9076
whole_archive_flag_spec='$convenience'
9078
archive_cmds_need_lc=yes
9079
# This is similar to how AIX traditionally builds its shared libraries.
9080
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'
9088
# see comment about AmigaOS4 .so support
9089
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9090
archive_expsym_cmds=''
9093
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)'
9094
hardcode_libdir_flag_spec='-L$libdir'
9095
hardcode_minus_L=yes
9101
export_dynamic_flag_spec=-rdynamic
9104
cygwin* | mingw* | pw32* | cegcc*)
9105
# When not using gcc, we currently assume that we are using
9106
# Microsoft Visual C++.
9107
# hardcode_libdir_flag_spec is actually meaningless, as there is
9108
# no search path for DLLs.
9109
case $cc_basename in
9112
hardcode_libdir_flag_spec=' '
9113
allow_undefined_flag=unsupported
9114
always_export_symbols=yes
9116
# Tell ltmain to make .lib files, not .a files.
9118
# Tell ltmain to make .dll files, not .so files.
9120
# FIXME: Setting linknames here is a bad hack.
9121
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9122
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9123
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9125
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9127
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9129
# The linker will not automatically build a static lib if we build a DLL.
9130
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9131
enable_shared_with_static_runtimes=yes
9132
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9134
old_postinstall_cmds='chmod 644 $oldlib'
9135
postlink_cmds='lt_outputfile="@OUTPUT@"~
9136
lt_tool_outputfile="@TOOL_OUTPUT@"~
9137
case $lt_outputfile in
9140
lt_outputfile="$lt_outputfile.exe"
9141
lt_tool_outputfile="$lt_tool_outputfile.exe"
9144
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9145
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9146
$RM "$lt_outputfile.manifest";
9150
# Assume MSVC wrapper
9151
hardcode_libdir_flag_spec=' '
9152
allow_undefined_flag=unsupported
9153
# Tell ltmain to make .lib files, not .a files.
9155
# Tell ltmain to make .dll files, not .so files.
9157
# FIXME: Setting linknames here is a bad hack.
9158
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9159
# The linker will automatically build a .lib file if we build a DLL.
9160
old_archive_from_new_cmds='true'
9161
# FIXME: Should let the user specify the lib program.
9162
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9163
enable_shared_with_static_runtimes=yes
9168
darwin* | rhapsody*)
9171
archive_cmds_need_lc=no
9173
hardcode_automatic=yes
9174
hardcode_shlibpath_var=unsupported
9175
if test "$lt_cv_ld_force_load" = "yes"; then
9176
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\"`'
9178
whole_archive_flag_spec=''
9180
link_all_deplibs=yes
9181
allow_undefined_flag="$_lt_dar_allow_undefined"
9182
case $cc_basename in
9183
ifort*) _lt_dar_can_shared=yes ;;
9184
*) _lt_dar_can_shared=$GCC ;;
9186
if test "$_lt_dar_can_shared" = "yes"; then
9187
output_verbose_link_cmd=func_echo_all
9188
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9189
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9190
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}"
9191
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}"
9200
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9201
hardcode_libdir_flag_spec='-L$libdir'
9202
hardcode_shlibpath_var=no
9209
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9210
# support. Future versions do this automatically, but an explicit c++rt0.o
9211
# does not break anything, and helps significantly (at the cost of a little
9214
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9215
hardcode_libdir_flag_spec='-R$libdir'
9217
hardcode_shlibpath_var=no
9220
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9222
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9224
hardcode_minus_L=yes
9225
hardcode_shlibpath_var=no
9228
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9229
freebsd* | dragonfly*)
9230
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9231
hardcode_libdir_flag_spec='-R$libdir'
9233
hardcode_shlibpath_var=no
9237
if test "$GCC" = yes; then
9238
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'
9240
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'
9242
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9243
hardcode_libdir_separator=:
9246
# hardcode_minus_L: Not really in the search PATH,
9247
# but as the default location of the library.
9248
hardcode_minus_L=yes
9249
export_dynamic_flag_spec='${wl}-E'
9253
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9254
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9256
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9258
if test "$with_gnu_ld" = no; then
9259
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9260
hardcode_libdir_flag_spec_ld='+b $libdir'
9261
hardcode_libdir_separator=:
9263
hardcode_direct_absolute=yes
9264
export_dynamic_flag_spec='${wl}-E'
9265
# hardcode_minus_L: Not really in the search PATH,
9266
# but as the default location of the library.
9267
hardcode_minus_L=yes
9272
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9275
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9278
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9281
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9287
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9290
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9294
# Older versions of the 11.00 compiler do not understand -b yet
9295
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9297
$as_echo_n "checking if $CC understands -b... " >&6; }
9298
if ${lt_cv_prog_compiler__b+:} false; then :
9299
$as_echo_n "(cached) " >&6
9301
lt_cv_prog_compiler__b=no
9302
save_LDFLAGS="$LDFLAGS"
9303
LDFLAGS="$LDFLAGS -b"
9304
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9305
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9306
# The linker can only warn and ignore the option if not recognized
9307
# So say no if there are warnings
9308
if test -s conftest.err; then
9309
# Append any errors to the config.log.
9310
cat conftest.err 1>&5
9311
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9312
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9313
if diff conftest.exp conftest.er2 >/dev/null; then
9314
lt_cv_prog_compiler__b=yes
9317
lt_cv_prog_compiler__b=yes
9321
LDFLAGS="$save_LDFLAGS"
9324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9325
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9327
if test x"$lt_cv_prog_compiler__b" = xyes; then
9328
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9330
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9336
if test "$with_gnu_ld" = no; then
9337
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9338
hardcode_libdir_separator=:
9343
hardcode_shlibpath_var=no
9347
hardcode_direct_absolute=yes
9348
export_dynamic_flag_spec='${wl}-E'
9350
# hardcode_minus_L: Not really in the search PATH,
9351
# but as the default location of the library.
9352
hardcode_minus_L=yes
9358
irix5* | irix6* | nonstopux*)
9359
if test "$GCC" = yes; then
9360
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'
9361
# Try to use the -exported_symbol ld option, if it does not
9362
# work, assume that -exports_file does not work either and
9363
# implicitly export all symbols.
9364
# This should be the same for all languages, so no per-tag cache variable.
9365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9366
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9367
if ${lt_cv_irix_exported_symbol+:} false; then :
9368
$as_echo_n "(cached) " >&6
9370
save_LDFLAGS="$LDFLAGS"
9371
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9372
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373
/* end confdefs.h. */
9374
int foo (void) { return 0; }
9376
if ac_fn_c_try_link "$LINENO"; then :
9377
lt_cv_irix_exported_symbol=yes
9379
lt_cv_irix_exported_symbol=no
9381
rm -f core conftest.err conftest.$ac_objext \
9382
conftest$ac_exeext conftest.$ac_ext
9383
LDFLAGS="$save_LDFLAGS"
9385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9386
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9387
if test "$lt_cv_irix_exported_symbol" = yes; then
9388
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'
9391
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'
9392
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'
9394
archive_cmds_need_lc='no'
9395
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9396
hardcode_libdir_separator=:
9398
link_all_deplibs=yes
9401
netbsd* | netbsdelf*-gnu)
9402
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9403
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9405
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9407
hardcode_libdir_flag_spec='-R$libdir'
9409
hardcode_shlibpath_var=no
9413
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9416
hardcode_libdir_separator=:
9417
hardcode_shlibpath_var=no
9424
if test -f /usr/libexec/ld.so; then
9426
hardcode_shlibpath_var=no
9427
hardcode_direct_absolute=yes
9428
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9429
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9430
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9431
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9432
export_dynamic_flag_spec='${wl}-E'
9435
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9436
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9437
hardcode_libdir_flag_spec='-R$libdir'
9440
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9441
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9451
hardcode_libdir_flag_spec='-L$libdir'
9452
hardcode_minus_L=yes
9453
allow_undefined_flag=unsupported
9454
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'
9455
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9459
if test "$GCC" = yes; then
9460
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9461
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'
9463
allow_undefined_flag=' -expect_unresolved \*'
9464
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'
9466
archive_cmds_need_lc='no'
9467
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9468
hardcode_libdir_separator=:
9471
osf4* | osf5*) # as osf3* with the addition of -msym flag
9472
if test "$GCC" = yes; then
9473
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9474
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'
9475
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9477
allow_undefined_flag=' -expect_unresolved \*'
9478
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'
9479
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~
9480
$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'
9482
# Both c and cxx compiler support -rpath directly
9483
hardcode_libdir_flag_spec='-rpath $libdir'
9485
archive_cmds_need_lc='no'
9486
hardcode_libdir_separator=:
9490
no_undefined_flag=' -z defs'
9491
if test "$GCC" = yes; then
9493
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9494
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9495
$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'
9497
case `$CC -V 2>&1` in
9500
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9501
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9502
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9506
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9507
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9508
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9512
hardcode_libdir_flag_spec='-R$libdir'
9513
hardcode_shlibpath_var=no
9515
solaris2.[0-5] | solaris2.[0-5].*) ;;
9517
# The compiler driver will combine and reorder linker options,
9518
# but understands `-z linker_flag'. GCC discards it without `$wl',
9519
# but is careful enough not to reorder.
9520
# Supported since Solaris 2.6 (maybe 2.5.1?)
9521
if test "$GCC" = yes; then
9522
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9524
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9528
link_all_deplibs=yes
9532
if test "x$host_vendor" = xsequent; then
9533
# Use $CC to link under sequent, because it throws in some extra .o
9534
# files that make .init and .fini sections work.
9535
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9537
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9539
hardcode_libdir_flag_spec='-L$libdir'
9541
hardcode_minus_L=yes
9542
hardcode_shlibpath_var=no
9546
case $host_vendor in
9548
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9549
hardcode_direct=yes # is this really true???
9552
## LD is ld it makes a PLAMLIB
9553
## CC just makes a GrossModule.
9554
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9555
reload_cmds='$CC -r -o $output$reload_objs'
9559
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9563
runpath_var='LD_RUN_PATH'
9564
hardcode_shlibpath_var=no
9568
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9569
hardcode_shlibpath_var=no
9570
export_dynamic_flag_spec='-Bexport'
9574
if test -d /usr/nec; then
9575
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9576
hardcode_shlibpath_var=no
9577
runpath_var=LD_RUN_PATH
9578
hardcode_runpath_var=yes
9583
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9584
no_undefined_flag='${wl}-z,text'
9585
archive_cmds_need_lc=no
9586
hardcode_shlibpath_var=no
9587
runpath_var='LD_RUN_PATH'
9589
if test "$GCC" = yes; then
9590
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9591
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9593
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9594
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9598
sysv5* | sco3.2v5* | sco5v6*)
9599
# Note: We can NOT use -z defs as we might desire, because we do not
9600
# link with -lc, and that would cause any symbols used from libc to
9601
# always be unresolved, which means just about no library would
9602
# ever link correctly. If we're not using GNU ld we use -z text
9603
# though, which does catch some bad symbols but isn't as heavy-handed
9605
no_undefined_flag='${wl}-z,text'
9606
allow_undefined_flag='${wl}-z,nodefs'
9607
archive_cmds_need_lc=no
9608
hardcode_shlibpath_var=no
9609
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9610
hardcode_libdir_separator=':'
9611
link_all_deplibs=yes
9612
export_dynamic_flag_spec='${wl}-Bexport'
9613
runpath_var='LD_RUN_PATH'
9615
if test "$GCC" = yes; then
9616
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9617
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9619
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9620
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9625
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9626
hardcode_libdir_flag_spec='-L$libdir'
9627
hardcode_shlibpath_var=no
9635
if test x$host_vendor = xsni; then
9637
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9638
export_dynamic_flag_spec='${wl}-Blargedynsym'
9644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9645
$as_echo "$ld_shlibs" >&6; }
9646
test "$ld_shlibs" = no && can_build_shared=no
9648
with_gnu_ld=$with_gnu_ld
9665
# Do we need to explicitly link libc?
9667
case "x$archive_cmds_need_lc" in
9669
# Assume -lc should be added
9670
archive_cmds_need_lc=yes
9672
if test "$enable_shared" = yes && test "$GCC" = yes; then
9673
case $archive_cmds in
9675
# FIXME: we may have to deal with multi-command sequences.
9678
# Test whether the compiler implicitly links with -lc since on some
9679
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9680
# to ld, don't add -lc before -lgcc.
9681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9682
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9683
if ${lt_cv_archive_cmds_need_lc+:} false; then :
9684
$as_echo_n "(cached) " >&6
9687
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9689
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9690
(eval $ac_compile) 2>&5
9692
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9693
test $ac_status = 0; } 2>conftest.err; then
9696
libobjs=conftest.$ac_objext
9698
wl=$lt_prog_compiler_wl
9699
pic_flag=$lt_prog_compiler_pic
9705
lt_save_allow_undefined_flag=$allow_undefined_flag
9706
allow_undefined_flag=
9707
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9708
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9710
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9711
test $ac_status = 0; }
9713
lt_cv_archive_cmds_need_lc=no
9715
lt_cv_archive_cmds_need_lc=yes
9717
allow_undefined_flag=$lt_save_allow_undefined_flag
9719
cat conftest.err 1>&5
9724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9725
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9726
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9890
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9892
if test "$GCC" = yes; then
9894
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9895
*) lt_awk_arg="/^libraries:/" ;;
9898
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9899
*) lt_sed_strip_eq="s,=/,/,g" ;;
9901
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9902
case $lt_search_path_spec in
9904
# if the path contains ";" then we assume it to be the separator
9905
# otherwise default to the standard path separator (i.e. ":") - it is
9906
# assumed that no part of a normal pathname contains ";" but that should
9907
# okay in the real world where ";" in dirpaths is itself problematic.
9908
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9911
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9914
# Ok, now we have the path, separated by spaces, we can step through it
9915
# and add multilib dir if necessary.
9916
lt_tmp_lt_search_path_spec=
9917
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9918
for lt_sys_path in $lt_search_path_spec; do
9919
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9920
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9922
test -d "$lt_sys_path" && \
9923
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9926
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9927
BEGIN {RS=" "; FS="/|\n";} {
9930
for (lt_i = NF; lt_i > 0; lt_i--) {
9931
if ($lt_i != "" && $lt_i != ".") {
9932
if ($lt_i == "..") {
9935
if (lt_count == 0) {
9936
lt_foo="/" $lt_i lt_foo;
9943
if (lt_foo != "") { lt_freq[lt_foo]++; }
9944
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9946
# AWK program above erroneously prepends '/' to C:/dos/paths
9949
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9950
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
9952
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9954
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9957
libname_spec='lib$name'
9965
shlibpath_overrides_runpath=unknown
9967
dynamic_linker="$host_os ld.so"
9968
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9969
need_lib_prefix=unknown
9970
hardcode_into_libs=no
9972
# when you set need_version to no, make sure it does not cause -set_version
9973
# flags to be left without arguments
9974
need_version=unknown
9979
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9980
shlibpath_var=LIBPATH
9982
# AIX 3 has no versioning support, so we append a major version to the name.
9983
soname_spec='${libname}${release}${shared_ext}$major'
9990
hardcode_into_libs=yes
9991
if test "$host_cpu" = ia64; then
9992
# AIX 5 supports IA64
9993
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9994
shlibpath_var=LD_LIBRARY_PATH
9996
# With GCC up to 2.95.x, collect2 would create an import file
9997
# for dependence libraries. The import file would start with
9998
# the line `#! .'. This would cause the generated library to
9999
# depend on `.', always an invalid library. This was fixed in
10000
# development snapshots of GCC prior to 3.0.
10002
aix4 | aix4.[01] | aix4.[01].*)
10003
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10005
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10008
can_build_shared=no
10012
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10013
# soname into executable. Probably we can add versioning support to
10014
# collect2, so additional links can be useful in future.
10015
if test "$aix_use_runtimelinking" = yes; then
10016
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10017
# instead of lib<name>.a to let people know that these are not
10018
# typical AIX shared libraries.
10019
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021
# We preserve .a as extension for shared libraries through AIX4.2
10022
# and later when we are not doing run time linking.
10023
library_names_spec='${libname}${release}.a $libname.a'
10024
soname_spec='${libname}${release}${shared_ext}$major'
10026
shlibpath_var=LIBPATH
10033
# Since July 2007 AmigaOS4 officially supports .so libraries.
10034
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038
library_names_spec='$libname.ixlibrary $libname.a'
10039
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10040
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'
10046
library_names_spec='${libname}${shared_ext}'
10047
dynamic_linker="$host_os ld.so"
10048
shlibpath_var=LIBRARY_PATH
10054
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055
soname_spec='${libname}${release}${shared_ext}$major'
10056
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10057
shlibpath_var=LD_LIBRARY_PATH
10058
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10059
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10060
# the default ld.so.conf also contains /usr/contrib/lib and
10061
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10062
# libtool to hard-code these into programs
10065
cygwin* | mingw* | pw32* | cegcc*)
10066
version_type=windows
10071
case $GCC,$cc_basename in
10074
library_names_spec='$libname.dll.a'
10075
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10076
postinstall_cmds='base_file=`basename \${file}`~
10077
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10078
dldir=$destdir/`dirname \$dlpath`~
10079
test -d \$dldir || mkdir -p \$dldir~
10080
$install_prog $dir/$dlname \$dldir/$dlname~
10081
chmod a+x \$dldir/$dlname~
10082
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10083
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10085
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10086
dlpath=$dir/\$dldll~
10088
shlibpath_overrides_runpath=yes
10092
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10093
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10095
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10098
# MinGW DLLs use traditional 'lib' prefix
10099
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10102
# pw32 DLLs use 'pw' prefix rather than 'lib'
10103
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10106
dynamic_linker='Win32 ld.exe'
10111
libname_spec='$name'
10112
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10113
library_names_spec='${libname}.dll.lib'
10117
sys_lib_search_path_spec=
10120
for lt_path in $LIB
10123
# Let DOS variable expansion print the short 8.3 style file name.
10124
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10125
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10128
# Convert to MSYS style.
10129
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10132
# Convert to unix form, then to dos form, then back to unix form
10133
# but this time dos style (no spaces!) so that the unix form looks
10134
# like /cygdrive/c/PROGRA~1:/cygdr...
10135
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10136
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10137
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10140
sys_lib_search_path_spec="$LIB"
10141
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10142
# It is most probably a Windows format PATH.
10143
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10145
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10147
# FIXME: find the short name or the path components, as spaces are
10148
# common. (e.g. "Program Files" -> "PROGRA~1")
10152
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10153
postinstall_cmds='base_file=`basename \${file}`~
10154
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10155
dldir=$destdir/`dirname \$dlpath`~
10156
test -d \$dldir || mkdir -p \$dldir~
10157
$install_prog $dir/$dlname \$dldir/$dlname'
10158
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10159
dlpath=$dir/\$dldll~
10161
shlibpath_overrides_runpath=yes
10162
dynamic_linker='Win32 link.exe'
10166
# Assume MSVC wrapper
10167
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10168
dynamic_linker='Win32 ld.exe'
10171
# FIXME: first we should search . and the directory the executable is in
10175
darwin* | rhapsody*)
10176
dynamic_linker="$host_os dyld"
10177
version_type=darwin
10180
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10181
soname_spec='${libname}${release}${major}$shared_ext'
10182
shlibpath_overrides_runpath=yes
10183
shlibpath_var=DYLD_LIBRARY_PATH
10184
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10186
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10187
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10194
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10195
soname_spec='${libname}${release}${shared_ext}$major'
10196
shlibpath_var=LD_LIBRARY_PATH
10203
freebsd* | dragonfly*)
10204
# DragonFly does not have aout. When/if they implement a new
10205
# versioning mechanism, adjust this.
10206
if test -x /usr/bin/objformat; then
10207
objformat=`/usr/bin/objformat`
10210
freebsd[123]*) objformat=aout ;;
10211
*) objformat=elf ;;
10214
version_type=freebsd-$objformat
10215
case $version_type in
10217
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10222
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10226
shlibpath_var=LD_LIBRARY_PATH
10229
shlibpath_overrides_runpath=yes
10231
freebsd3.[01]* | freebsdelf3.[01]*)
10232
shlibpath_overrides_runpath=yes
10233
hardcode_into_libs=yes
10235
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10236
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10237
shlibpath_overrides_runpath=no
10238
hardcode_into_libs=yes
10240
*) # from 4.6 on, and DragonFly
10241
shlibpath_overrides_runpath=yes
10242
hardcode_into_libs=yes
10251
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10252
soname_spec='${libname}${release}${shared_ext}$major'
10253
shlibpath_var=LD_LIBRARY_PATH
10254
shlibpath_overrides_runpath=no
10255
hardcode_into_libs=yes
10262
dynamic_linker="$host_os runtime_loader"
10263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10264
soname_spec='${libname}${release}${shared_ext}$major'
10265
shlibpath_var=LIBRARY_PATH
10266
shlibpath_overrides_runpath=yes
10267
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10268
hardcode_into_libs=yes
10271
hpux9* | hpux10* | hpux11*)
10272
# Give a soname corresponding to the major version so that dld.sl refuses to
10273
# link against other versions.
10280
hardcode_into_libs=yes
10281
dynamic_linker="$host_os dld.so"
10282
shlibpath_var=LD_LIBRARY_PATH
10283
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10284
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285
soname_spec='${libname}${release}${shared_ext}$major'
10286
if test "X$HPUX_IA64_MODE" = X32; then
10287
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10289
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10291
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10295
hardcode_into_libs=yes
10296
dynamic_linker="$host_os dld.sl"
10297
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10298
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10299
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300
soname_spec='${libname}${release}${shared_ext}$major'
10301
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10302
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10306
dynamic_linker="$host_os dld.sl"
10307
shlibpath_var=SHLIB_PATH
10308
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10309
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310
soname_spec='${libname}${release}${shared_ext}$major'
10313
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10314
postinstall_cmds='chmod 555 $lib'
10315
# or fails outright, so override atomically:
10316
install_override_mode=555
10323
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10324
soname_spec='${libname}${release}${shared_ext}$major'
10325
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10326
shlibpath_var=LD_LIBRARY_PATH
10327
shlibpath_overrides_runpath=no
10328
hardcode_into_libs=yes
10331
irix5* | irix6* | nonstopux*)
10333
nonstopux*) version_type=nonstopux ;;
10335
if test "$lt_cv_prog_gnu_ld" = yes; then
10343
soname_spec='${libname}${release}${shared_ext}$major'
10344
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10346
irix5* | nonstopux*)
10347
libsuff= shlibsuff=
10350
case $LD in # libtool.m4 will add one of these switches to LD
10351
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10352
libsuff= shlibsuff= libmagic=32-bit;;
10353
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10354
libsuff=32 shlibsuff=N32 libmagic=N32;;
10355
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10356
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10357
*) libsuff= shlibsuff= libmagic=never-match;;
10361
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10362
shlibpath_overrides_runpath=no
10363
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10364
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10365
hardcode_into_libs=yes
10368
# No shared lib support for Linux oldld, aout, or coff.
10369
linux*oldld* | linux*aout* | linux*coff*)
10373
# This must be Linux ELF.
10374
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10378
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379
soname_spec='${libname}${release}${shared_ext}$major'
10380
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10381
shlibpath_var=LD_LIBRARY_PATH
10382
shlibpath_overrides_runpath=no
10384
# Some binutils ld are patched to set DT_RUNPATH
10385
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10386
$as_echo_n "(cached) " >&6
10388
lt_cv_shlibpath_overrides_runpath=no
10389
save_LDFLAGS=$LDFLAGS
10390
save_libdir=$libdir
10391
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10392
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10393
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394
/* end confdefs.h. */
10404
if ac_fn_c_try_link "$LINENO"; then :
10405
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10406
lt_cv_shlibpath_overrides_runpath=yes
10409
rm -f core conftest.err conftest.$ac_objext \
10410
conftest$ac_exeext conftest.$ac_ext
10411
LDFLAGS=$save_LDFLAGS
10412
libdir=$save_libdir
10416
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10418
# This implies no fast_install, which is unacceptable.
10419
# Some rework will be needed to allow for fast_install
10420
# before this can be enabled.
10421
hardcode_into_libs=yes
10423
# Append ld.so.conf contents to the search path
10424
if test -f /etc/ld.so.conf; then
10425
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' ' '`
10426
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10429
# We used to test for /lib/ld.so.1 and disable shared libraries on
10430
# powerpc, because MkLinux only supported shared libraries with the
10431
# GNU dynamic linker. Since this was broken with cross compilers,
10432
# most powerpc-linux boxes support dynamic linking these days and
10433
# people can always --disable-shared, the test was removed, and we
10434
# assume the GNU/Linux dynamic linker is in use.
10435
dynamic_linker='GNU/Linux ld.so'
10442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10443
soname_spec='${libname}${release}${shared_ext}$major'
10444
shlibpath_var=LD_LIBRARY_PATH
10445
shlibpath_overrides_runpath=no
10446
hardcode_into_libs=yes
10447
dynamic_linker='NetBSD ld.elf_so'
10454
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10455
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10456
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10457
dynamic_linker='NetBSD (a.out) ld.so'
10459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10460
soname_spec='${libname}${release}${shared_ext}$major'
10461
dynamic_linker='NetBSD ld.elf_so'
10463
shlibpath_var=LD_LIBRARY_PATH
10464
shlibpath_overrides_runpath=yes
10465
hardcode_into_libs=yes
10470
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471
shlibpath_var=LD_LIBRARY_PATH
10472
shlibpath_overrides_runpath=yes
10479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480
soname_spec='${libname}${release}${shared_ext}$major'
10481
shlibpath_var=LD_LIBRARY_PATH
10482
shlibpath_overrides_runpath=no
10483
hardcode_into_libs=yes
10484
dynamic_linker='ldqnx.so'
10489
sys_lib_dlsearch_path_spec="/usr/lib"
10491
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10493
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10494
*) need_version=no ;;
10496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10497
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10498
shlibpath_var=LD_LIBRARY_PATH
10499
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10501
openbsd2.[89] | openbsd2.[89].*)
10502
shlibpath_overrides_runpath=no
10505
shlibpath_overrides_runpath=yes
10509
shlibpath_overrides_runpath=yes
10514
libname_spec='$name'
10517
library_names_spec='$libname${shared_ext} $libname.a'
10518
dynamic_linker='OS/2 ld.exe'
10519
shlibpath_var=LIBPATH
10522
osf3* | osf4* | osf5*)
10526
soname_spec='${libname}${release}${shared_ext}$major'
10527
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528
shlibpath_var=LD_LIBRARY_PATH
10529
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10530
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10541
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542
soname_spec='${libname}${release}${shared_ext}$major'
10543
shlibpath_var=LD_LIBRARY_PATH
10544
shlibpath_overrides_runpath=yes
10545
hardcode_into_libs=yes
10546
# ldd complains unless libraries are executable
10547
postinstall_cmds='chmod +x $lib'
10552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10553
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10554
shlibpath_var=LD_LIBRARY_PATH
10555
shlibpath_overrides_runpath=yes
10556
if test "$with_gnu_ld" = yes; then
10564
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565
soname_spec='${libname}${release}${shared_ext}$major'
10566
shlibpath_var=LD_LIBRARY_PATH
10567
case $host_vendor in
10569
shlibpath_overrides_runpath=no
10571
runpath_var=LD_RUN_PATH
10579
shlibpath_overrides_runpath=no
10580
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10586
if test -d /usr/nec ;then
10588
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10589
soname_spec='$libname${shared_ext}.$major'
10590
shlibpath_var=LD_LIBRARY_PATH
10594
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10595
version_type=freebsd-elf
10598
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10599
soname_spec='${libname}${release}${shared_ext}$major'
10600
shlibpath_var=LD_LIBRARY_PATH
10601
shlibpath_overrides_runpath=yes
10602
hardcode_into_libs=yes
10603
if test "$with_gnu_ld" = yes; then
10604
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10606
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10609
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10613
sys_lib_dlsearch_path_spec='/usr/lib'
10617
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10621
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622
shlibpath_var=LD_LIBRARY_PATH
10623
shlibpath_overrides_runpath=no
10624
hardcode_into_libs=yes
10629
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630
soname_spec='${libname}${release}${shared_ext}$major'
10631
shlibpath_var=LD_LIBRARY_PATH
10638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10639
$as_echo "$dynamic_linker" >&6; }
10640
test "$dynamic_linker" = no && can_build_shared=no
10642
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10643
if test "$GCC" = yes; then
10644
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10647
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10648
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10650
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10651
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10746
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10748
if test -n "$hardcode_libdir_flag_spec" ||
10749
test -n "$runpath_var" ||
10750
test "X$hardcode_automatic" = "Xyes" ; then
10752
# We can hardcode non-existent directories.
10753
if test "$hardcode_direct" != no &&
10754
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10755
# have to relink, otherwise we might link with an installed library
10756
# when we should be linking with a yet-to-be-installed one
10757
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10758
test "$hardcode_minus_L" != no; then
10759
# Linking always hardcodes the temporary library directory.
10760
hardcode_action=relink
10762
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10763
hardcode_action=immediate
10766
# We cannot hardcode anything, or else we can only hardcode existing
10768
hardcode_action=unsupported
10770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10771
$as_echo "$hardcode_action" >&6; }
10773
if test "$hardcode_action" = relink ||
10774
test "$inherit_rpath" = yes; then
10775
# Fast installation is not supported
10776
enable_fast_install=no
10777
elif test "$shlibpath_overrides_runpath" = yes ||
10778
test "$enable_shared" = no; then
10779
# Fast installation is not necessary
10780
enable_fast_install=needless
10788
if test "x$enable_dlopen" != xyes; then
10789
enable_dlopen=unknown
10790
enable_dlopen_self=unknown
10791
enable_dlopen_self_static=unknown
10798
lt_cv_dlopen="load_add_on"
10800
lt_cv_dlopen_self=yes
10803
mingw* | pw32* | cegcc*)
10804
lt_cv_dlopen="LoadLibrary"
10809
lt_cv_dlopen="dlopen"
10814
# if libdl is installed we need to link against it
10815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10816
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10817
if ${ac_cv_lib_dl_dlopen+:} false; then :
10818
$as_echo_n "(cached) " >&6
10820
ac_check_lib_save_LIBS=$LIBS
10822
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823
/* end confdefs.h. */
10825
/* Override any GCC internal prototype to avoid an error.
10826
Use char because int might match the return type of a GCC
10827
builtin and then its argument prototype would still apply. */
10840
if ac_fn_c_try_link "$LINENO"; then :
10841
ac_cv_lib_dl_dlopen=yes
10843
ac_cv_lib_dl_dlopen=no
10845
rm -f core conftest.err conftest.$ac_objext \
10846
conftest$ac_exeext conftest.$ac_ext
10847
LIBS=$ac_check_lib_save_LIBS
10849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10850
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10851
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10852
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10855
lt_cv_dlopen="dyld"
10857
lt_cv_dlopen_self=yes
10864
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10865
if test "x$ac_cv_func_shl_load" = xyes; then :
10866
lt_cv_dlopen="shl_load"
10868
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10869
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10870
if ${ac_cv_lib_dld_shl_load+:} false; then :
10871
$as_echo_n "(cached) " >&6
10873
ac_check_lib_save_LIBS=$LIBS
10875
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876
/* end confdefs.h. */
10878
/* Override any GCC internal prototype to avoid an error.
10879
Use char because int might match the return type of a GCC
10880
builtin and then its argument prototype would still apply. */
10888
return shl_load ();
10893
if ac_fn_c_try_link "$LINENO"; then :
10894
ac_cv_lib_dld_shl_load=yes
10896
ac_cv_lib_dld_shl_load=no
10898
rm -f core conftest.err conftest.$ac_objext \
10899
conftest$ac_exeext conftest.$ac_ext
10900
LIBS=$ac_check_lib_save_LIBS
10902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10903
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10904
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10905
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10907
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10908
if test "x$ac_cv_func_dlopen" = xyes; then :
10909
lt_cv_dlopen="dlopen"
10911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10912
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10913
if ${ac_cv_lib_dl_dlopen+:} false; then :
10914
$as_echo_n "(cached) " >&6
10916
ac_check_lib_save_LIBS=$LIBS
10918
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919
/* end confdefs.h. */
10921
/* Override any GCC internal prototype to avoid an error.
10922
Use char because int might match the return type of a GCC
10923
builtin and then its argument prototype would still apply. */
10936
if ac_fn_c_try_link "$LINENO"; then :
10937
ac_cv_lib_dl_dlopen=yes
10939
ac_cv_lib_dl_dlopen=no
10941
rm -f core conftest.err conftest.$ac_objext \
10942
conftest$ac_exeext conftest.$ac_ext
10943
LIBS=$ac_check_lib_save_LIBS
10945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10946
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10947
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10948
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10951
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10952
if ${ac_cv_lib_svld_dlopen+:} false; then :
10953
$as_echo_n "(cached) " >&6
10955
ac_check_lib_save_LIBS=$LIBS
10956
LIBS="-lsvld $LIBS"
10957
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958
/* end confdefs.h. */
10960
/* Override any GCC internal prototype to avoid an error.
10961
Use char because int might match the return type of a GCC
10962
builtin and then its argument prototype would still apply. */
10975
if ac_fn_c_try_link "$LINENO"; then :
10976
ac_cv_lib_svld_dlopen=yes
10978
ac_cv_lib_svld_dlopen=no
10980
rm -f core conftest.err conftest.$ac_objext \
10981
conftest$ac_exeext conftest.$ac_ext
10982
LIBS=$ac_check_lib_save_LIBS
10984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10985
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10986
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10987
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10990
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10991
if ${ac_cv_lib_dld_dld_link+:} false; then :
10992
$as_echo_n "(cached) " >&6
10994
ac_check_lib_save_LIBS=$LIBS
10996
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997
/* end confdefs.h. */
10999
/* Override any GCC internal prototype to avoid an error.
11000
Use char because int might match the return type of a GCC
11001
builtin and then its argument prototype would still apply. */
11009
return dld_link ();
11014
if ac_fn_c_try_link "$LINENO"; then :
11015
ac_cv_lib_dld_dld_link=yes
11017
ac_cv_lib_dld_dld_link=no
11019
rm -f core conftest.err conftest.$ac_objext \
11020
conftest$ac_exeext conftest.$ac_ext
11021
LIBS=$ac_check_lib_save_LIBS
11023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11024
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11025
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11026
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11047
if test "x$lt_cv_dlopen" != xno; then
11053
case $lt_cv_dlopen in
11055
save_CPPFLAGS="$CPPFLAGS"
11056
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11058
save_LDFLAGS="$LDFLAGS"
11059
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11062
LIBS="$lt_cv_dlopen_libs $LIBS"
11064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11065
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11066
if ${lt_cv_dlopen_self+:} false; then :
11067
$as_echo_n "(cached) " >&6
11069
if test "$cross_compiling" = yes; then :
11070
lt_cv_dlopen_self=cross
11072
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11073
lt_status=$lt_dlunknown
11074
cat > conftest.$ac_ext <<_LT_EOF
11075
#line $LINENO "configure"
11076
#include "confdefs.h"
11085
# define LT_DLGLOBAL RTLD_GLOBAL
11088
# define LT_DLGLOBAL DL_GLOBAL
11090
# define LT_DLGLOBAL 0
11094
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11095
find out it does not work in some platform. */
11096
#ifndef LT_DLLAZY_OR_NOW
11098
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11101
# define LT_DLLAZY_OR_NOW DL_LAZY
11104
# define LT_DLLAZY_OR_NOW RTLD_NOW
11107
# define LT_DLLAZY_OR_NOW DL_NOW
11109
# define LT_DLLAZY_OR_NOW 0
11116
/* When -fvisbility=hidden is used, assume the code has been annotated
11117
correspondingly for the symbols needed. */
11118
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11119
int fnord () __attribute__((visibility("default")));
11122
int fnord () { return 42; }
11125
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11126
int status = $lt_dlunknown;
11130
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11133
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11134
else puts (dlerror ());
11136
/* dlclose (self); */
11144
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11145
(eval $ac_link) 2>&5
11147
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11148
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11149
(./conftest; exit; ) >&5 2>/dev/null
11151
case x$lt_status in
11152
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11153
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11154
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11157
# compilation failed
11158
lt_cv_dlopen_self=no
11165
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11166
$as_echo "$lt_cv_dlopen_self" >&6; }
11168
if test "x$lt_cv_dlopen_self" = xyes; then
11169
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11171
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11172
if ${lt_cv_dlopen_self_static+:} false; then :
11173
$as_echo_n "(cached) " >&6
11175
if test "$cross_compiling" = yes; then :
11176
lt_cv_dlopen_self_static=cross
11178
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11179
lt_status=$lt_dlunknown
11180
cat > conftest.$ac_ext <<_LT_EOF
11181
#line $LINENO "configure"
11182
#include "confdefs.h"
11191
# define LT_DLGLOBAL RTLD_GLOBAL
11194
# define LT_DLGLOBAL DL_GLOBAL
11196
# define LT_DLGLOBAL 0
11200
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11201
find out it does not work in some platform. */
11202
#ifndef LT_DLLAZY_OR_NOW
11204
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11207
# define LT_DLLAZY_OR_NOW DL_LAZY
11210
# define LT_DLLAZY_OR_NOW RTLD_NOW
11213
# define LT_DLLAZY_OR_NOW DL_NOW
11215
# define LT_DLLAZY_OR_NOW 0
11222
/* When -fvisbility=hidden is used, assume the code has been annotated
11223
correspondingly for the symbols needed. */
11224
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11225
int fnord () __attribute__((visibility("default")));
11228
int fnord () { return 42; }
11231
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11232
int status = $lt_dlunknown;
11236
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11239
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11240
else puts (dlerror ());
11242
/* dlclose (self); */
11250
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11251
(eval $ac_link) 2>&5
11253
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11254
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11255
(./conftest; exit; ) >&5 2>/dev/null
11257
case x$lt_status in
11258
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11259
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11260
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11263
# compilation failed
11264
lt_cv_dlopen_self_static=no
11271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11272
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11275
CPPFLAGS="$save_CPPFLAGS"
11276
LDFLAGS="$save_LDFLAGS"
11281
case $lt_cv_dlopen_self in
11282
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11283
*) enable_dlopen_self=unknown ;;
11286
case $lt_cv_dlopen_self_static in
11287
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11288
*) enable_dlopen_self_static=unknown ;;
11310
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11311
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11312
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11313
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11314
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11316
$as_echo "yes" >&6; }
11318
# FIXME - insert some real tests, host_os isn't really good enough
11321
if test -n "$STRIP" ; then
11322
striplib="$STRIP -x"
11323
old_striplib="$STRIP -S"
11324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11325
$as_echo "yes" >&6; }
11327
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328
$as_echo "no" >&6; }
11332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333
$as_echo "no" >&6; }
11349
# Report which library types will actually be built
11350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11351
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11353
$as_echo "$can_build_shared" >&6; }
11355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11356
$as_echo_n "checking whether to build shared libraries... " >&6; }
11357
test "$can_build_shared" = "no" && enable_shared=no
11359
# On AIX, shared libraries and static libraries use the same namespace, and
11360
# are all built from PIC.
11363
test "$enable_shared" = yes && enable_static=no
11364
if test -n "$RANLIB"; then
11365
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11366
postinstall_cmds='$RANLIB $lib'
11371
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11372
test "$enable_shared" = yes && enable_static=no
11376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11377
$as_echo "$enable_shared" >&6; }
11379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11380
$as_echo_n "checking whether to build static libraries... " >&6; }
11381
# Make sure either enable_shared or enable_static is yes.
11382
test "$enable_shared" = yes || enable_static=yes
11383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11384
$as_echo "$enable_static" >&6; }
11391
ac_cpp='$CPP $CPPFLAGS'
11392
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11393
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11394
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11401
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11402
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11403
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11405
if test -z "$F77" || test "X$F77" = "Xno"; then
11406
_lt_disable_F77=yes
11409
archive_cmds_need_lc_F77=no
11410
allow_undefined_flag_F77=
11411
always_export_symbols_F77=no
11412
archive_expsym_cmds_F77=
11413
export_dynamic_flag_spec_F77=
11414
hardcode_direct_F77=no
11415
hardcode_direct_absolute_F77=no
11416
hardcode_libdir_flag_spec_F77=
11417
hardcode_libdir_flag_spec_ld_F77=
11418
hardcode_libdir_separator_F77=
11419
hardcode_minus_L_F77=no
11420
hardcode_automatic_F77=no
11421
inherit_rpath_F77=no
11423
module_expsym_cmds_F77=
11424
link_all_deplibs_F77=unknown
11425
old_archive_cmds_F77=$old_archive_cmds
11426
reload_flag_F77=$reload_flag
11427
reload_cmds_F77=$reload_cmds
11428
no_undefined_flag_F77=
11429
whole_archive_flag_spec_F77=
11430
enable_shared_with_static_runtimes_F77=no
11432
# Source file extension for f77 test sources.
11435
# Object file extension for compiled f77 test sources.
11439
# No sense in running all these tests if we already determined that
11440
# the F77 compiler isn't working. Some variables (like enable_shared)
11441
# are currently assumed to apply to all compilers on this platform,
11442
# and will be corrupted by setting them based on a non-working compiler.
11443
if test "$_lt_disable_F77" != yes; then
11444
# Code to be used in simple compile tests
11445
lt_simple_compile_test_code="\
11451
# Code to be used in simple link tests
11452
lt_simple_link_test_code="\
11457
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11464
# If no C compiler was specified, use CC.
11467
# If no C compiler flags were specified, use CFLAGS.
11468
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11470
# Allow CC to be a program name with arguments.
11474
# save warnings/boilerplate of simple test code
11475
ac_outfile=conftest.$ac_objext
11476
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11477
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11478
_lt_compiler_boilerplate=`cat conftest.err`
11481
ac_outfile=conftest.$ac_objext
11482
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11483
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11484
_lt_linker_boilerplate=`cat conftest.err`
11488
# Allow CC to be a program name with arguments.
11491
lt_save_CFLAGS=$CFLAGS
11496
for cc_temp in $compiler""; do
11498
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11499
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11504
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11507
if test -n "$compiler"; then
11508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11509
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11511
$as_echo "$can_build_shared" >&6; }
11513
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11514
$as_echo_n "checking whether to build shared libraries... " >&6; }
11515
test "$can_build_shared" = "no" && enable_shared=no
11517
# On AIX, shared libraries and static libraries use the same namespace, and
11518
# are all built from PIC.
11521
test "$enable_shared" = yes && enable_static=no
11522
if test -n "$RANLIB"; then
11523
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11524
postinstall_cmds='$RANLIB $lib'
11528
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11529
test "$enable_shared" = yes && enable_static=no
11533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11534
$as_echo "$enable_shared" >&6; }
11536
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11537
$as_echo_n "checking whether to build static libraries... " >&6; }
11538
# Make sure either enable_shared or enable_static is yes.
11539
test "$enable_shared" = yes || enable_static=yes
11540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11541
$as_echo "$enable_static" >&6; }
11547
## There is no encapsulation within the following macros, do not change
11548
## the running order or otherwise move them around unless you know exactly
11549
## what you are doing...
11550
lt_prog_compiler_wl_F77=
11551
lt_prog_compiler_pic_F77=
11552
lt_prog_compiler_static_F77=
11555
if test "$GCC" = yes; then
11556
lt_prog_compiler_wl_F77='-Wl,'
11557
lt_prog_compiler_static_F77='-static'
11561
# All AIX code is PIC.
11562
if test "$host_cpu" = ia64; then
11563
# AIX 5 now supports IA64 processor
11564
lt_prog_compiler_static_F77='-Bstatic'
11571
# see comment about AmigaOS4 .so support
11572
lt_prog_compiler_pic_F77='-fPIC'
11575
# FIXME: we need at least 68020 code to build shared libraries, but
11576
# adding the `-m68020' flag to GCC prevents building anything better,
11578
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
11583
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11584
# PIC is the default for these OSes.
11587
mingw* | cygwin* | pw32* | os2* | cegcc*)
11588
# This hack is so that the source file can tell whether it is being
11589
# built for inclusion in a dll (and should export symbols for example).
11590
# Although the cygwin gcc ignores -fPIC, still need this for old-style
11591
# (--disable-auto-import) libraries
11592
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
11595
darwin* | rhapsody*)
11596
# PIC is the default on this platform
11597
# Common symbols not allowed in MH_DYLIB files
11598
lt_prog_compiler_pic_F77='-fno-common'
11602
# PIC is the default for Haiku.
11603
# The "-static" flag exists, but is broken.
11604
lt_prog_compiler_static_F77=
11608
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11609
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11610
# sets the default TLS model and affects inlining.
11616
lt_prog_compiler_pic_F77='-fPIC'
11622
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
11623
# Instead, we relocate shared libraries at runtime.
11627
# Just because we use GCC doesn't mean we suddenly get shared libraries
11628
# on systems that don't support them.
11629
lt_prog_compiler_can_build_shared_F77=no
11634
# QNX uses GNU C++, but need to define -shared option too, otherwise
11635
# it will coredump.
11636
lt_prog_compiler_pic_F77='-fPIC -shared'
11640
if test -d /usr/nec; then
11641
lt_prog_compiler_pic_F77=-Kconform_pic
11646
lt_prog_compiler_pic_F77='-fPIC'
11650
case $cc_basename in
11651
nvcc*) # Cuda Compiler Driver 2.2
11652
lt_prog_compiler_wl_F77='-Xlinker '
11653
lt_prog_compiler_pic_F77='-Xcompiler -fPIC'
11657
# PORTME Check for flag to pass linker flags through the system compiler.
11660
lt_prog_compiler_wl_F77='-Wl,'
11661
if test "$host_cpu" = ia64; then
11662
# AIX 5 now supports IA64 processor
11663
lt_prog_compiler_static_F77='-Bstatic'
11665
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
11669
mingw* | cygwin* | pw32* | os2* | cegcc*)
11670
# This hack is so that the source file can tell whether it is being
11671
# built for inclusion in a dll (and should export symbols for example).
11672
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
11675
hpux9* | hpux10* | hpux11*)
11676
lt_prog_compiler_wl_F77='-Wl,'
11677
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11678
# not for PA HP-UX.
11684
lt_prog_compiler_pic_F77='+Z'
11687
# Is there a better lt_prog_compiler_static that works with the bundled CC?
11688
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
11691
irix5* | irix6* | nonstopux*)
11692
lt_prog_compiler_wl_F77='-Wl,'
11693
# PIC (with -KPIC) is the default.
11694
lt_prog_compiler_static_F77='-non_shared'
11697
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11698
case $cc_basename in
11699
# old Intel for x86_64 which still supported -KPIC.
11701
lt_prog_compiler_wl_F77='-Wl,'
11702
lt_prog_compiler_pic_F77='-KPIC'
11703
lt_prog_compiler_static_F77='-static'
11705
# icc used to be incompatible with GCC.
11706
# ICC 10 doesn't accept -KPIC any more.
11708
lt_prog_compiler_wl_F77='-Wl,'
11709
lt_prog_compiler_pic_F77='-fPIC'
11710
lt_prog_compiler_static_F77='-static'
11712
# Lahey Fortran 8.1.
11714
lt_prog_compiler_wl_F77='-Wl,'
11715
lt_prog_compiler_pic_F77='--shared'
11716
lt_prog_compiler_static_F77='--static'
11719
# NAG Fortran compiler
11720
lt_prog_compiler_wl_F77='-Wl,-Wl,,'
11721
lt_prog_compiler_pic_F77='-PIC'
11722
lt_prog_compiler_static_F77='-Bstatic'
11724
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11725
# Portland Group compilers (*not* the Pentium gcc compiler,
11726
# which looks to be a dead project)
11727
lt_prog_compiler_wl_F77='-Wl,'
11728
lt_prog_compiler_pic_F77='-fpic'
11729
lt_prog_compiler_static_F77='-Bstatic'
11732
lt_prog_compiler_wl_F77='-Wl,'
11733
# All Alpha code is PIC.
11734
lt_prog_compiler_static_F77='-non_shared'
11736
xl* | bgxl* | bgf* | mpixl*)
11737
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11738
lt_prog_compiler_wl_F77='-Wl,'
11739
lt_prog_compiler_pic_F77='-qpic'
11740
lt_prog_compiler_static_F77='-qstaticlink'
11743
case `$CC -V 2>&1 | sed 5q` in
11744
*Sun\ F* | *Sun*Fortran*)
11745
# Sun Fortran 8.3 passes all unrecognized flags to the linker
11746
lt_prog_compiler_pic_F77='-KPIC'
11747
lt_prog_compiler_static_F77='-Bstatic'
11748
lt_prog_compiler_wl_F77=''
11752
lt_prog_compiler_pic_F77='-KPIC'
11753
lt_prog_compiler_static_F77='-Bstatic'
11754
lt_prog_compiler_wl_F77='-Wl,'
11762
lt_prog_compiler_pic_F77='-KPIC'
11763
lt_prog_compiler_static_F77='-Bstatic'
11767
# QNX uses GNU C++, but need to define -shared option too, otherwise
11768
# it will coredump.
11769
lt_prog_compiler_pic_F77='-fPIC -shared'
11772
osf3* | osf4* | osf5*)
11773
lt_prog_compiler_wl_F77='-Wl,'
11774
# All OSF/1 code is PIC.
11775
lt_prog_compiler_static_F77='-non_shared'
11779
lt_prog_compiler_static_F77='-non_shared'
11783
lt_prog_compiler_pic_F77='-KPIC'
11784
lt_prog_compiler_static_F77='-Bstatic'
11785
case $cc_basename in
11786
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11787
lt_prog_compiler_wl_F77='-Qoption ld ';;
11789
lt_prog_compiler_wl_F77='-Wl,';;
11794
lt_prog_compiler_wl_F77='-Qoption ld '
11795
lt_prog_compiler_pic_F77='-PIC'
11796
lt_prog_compiler_static_F77='-Bstatic'
11799
sysv4 | sysv4.2uw2* | sysv4.3*)
11800
lt_prog_compiler_wl_F77='-Wl,'
11801
lt_prog_compiler_pic_F77='-KPIC'
11802
lt_prog_compiler_static_F77='-Bstatic'
11806
if test -d /usr/nec ;then
11807
lt_prog_compiler_pic_F77='-Kconform_pic'
11808
lt_prog_compiler_static_F77='-Bstatic'
11812
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11813
lt_prog_compiler_wl_F77='-Wl,'
11814
lt_prog_compiler_pic_F77='-KPIC'
11815
lt_prog_compiler_static_F77='-Bstatic'
11819
lt_prog_compiler_wl_F77='-Wl,'
11820
lt_prog_compiler_can_build_shared_F77=no
11824
lt_prog_compiler_pic_F77='-pic'
11825
lt_prog_compiler_static_F77='-Bstatic'
11829
lt_prog_compiler_can_build_shared_F77=no
11835
# For platforms which do not support PIC, -DPIC is meaningless:
11837
lt_prog_compiler_pic_F77=
11840
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77@&t@"
11844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11845
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11846
if ${lt_cv_prog_compiler_pic_F77+:} false; then :
11847
$as_echo_n "(cached) " >&6
11849
lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
11851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
11852
$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
11853
lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
11856
# Check to make sure the PIC flag actually works.
11858
if test -n "$lt_prog_compiler_pic_F77"; then
11859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
11860
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
11861
if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
11862
$as_echo_n "(cached) " >&6
11864
lt_cv_prog_compiler_pic_works_F77=no
11865
ac_outfile=conftest.$ac_objext
11866
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11867
lt_compiler_flag="$lt_prog_compiler_pic_F77@&t@"
11868
# Insert the option either (1) after the last *FLAGS variable, or
11869
# (2) before a word containing "conftest.", or (3) at the end.
11870
# Note that $ac_compile itself does not contain backslashes and begins
11871
# with a dollar sign (not a hyphen), so the echo should work correctly.
11872
# The option is referenced via a variable to avoid confusing sed.
11873
lt_compile=`echo "$ac_compile" | $SED \
11874
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11875
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11876
-e 's:$: $lt_compiler_flag:'`
11877
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11878
(eval "$lt_compile" 2>conftest.err)
11880
cat conftest.err >&5
11881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882
if (exit $ac_status) && test -s "$ac_outfile"; then
11883
# The compiler can only warn and ignore the option if not recognized
11884
# So say no if there are warnings other than the usual output.
11885
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11886
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11887
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11888
lt_cv_prog_compiler_pic_works_F77=yes
11894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
11895
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
11897
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
11898
case $lt_prog_compiler_pic_F77 in
11900
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
11903
lt_prog_compiler_pic_F77=
11904
lt_prog_compiler_can_build_shared_F77=no
11914
# Check to make sure the static flag actually works.
11916
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
11917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11918
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11919
if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
11920
$as_echo_n "(cached) " >&6
11922
lt_cv_prog_compiler_static_works_F77=no
11923
save_LDFLAGS="$LDFLAGS"
11924
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11925
echo "$lt_simple_link_test_code" > conftest.$ac_ext
11926
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11927
# The linker can only warn and ignore the option if not recognized
11928
# So say no if there are warnings
11929
if test -s conftest.err; then
11930
# Append any errors to the config.log.
11931
cat conftest.err 1>&5
11932
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11933
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11934
if diff conftest.exp conftest.er2 >/dev/null; then
11935
lt_cv_prog_compiler_static_works_F77=yes
11938
lt_cv_prog_compiler_static_works_F77=yes
11942
LDFLAGS="$save_LDFLAGS"
11945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
11946
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
11948
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
11951
lt_prog_compiler_static_F77=
11957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11958
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11959
if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
11960
$as_echo_n "(cached) " >&6
11962
lt_cv_prog_compiler_c_o_F77=no
11963
$RM -r conftest 2>/dev/null
11967
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11969
lt_compiler_flag="-o out/conftest2.$ac_objext"
11970
# Insert the option either (1) after the last *FLAGS variable, or
11971
# (2) before a word containing "conftest.", or (3) at the end.
11972
# Note that $ac_compile itself does not contain backslashes and begins
11973
# with a dollar sign (not a hyphen), so the echo should work correctly.
11974
lt_compile=`echo "$ac_compile" | $SED \
11975
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11976
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11977
-e 's:$: $lt_compiler_flag:'`
11978
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11979
(eval "$lt_compile" 2>out/conftest.err)
11981
cat out/conftest.err >&5
11982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11985
# The compiler can only warn and ignore the option if not recognized
11986
# So say no if there are warnings
11987
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11988
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11989
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11990
lt_cv_prog_compiler_c_o_F77=yes
11995
# SGI C++ compiler will create directory out/ii_files/ for
11996
# template instantiation
11997
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11998
$RM out/* && rmdir out
12004
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
12005
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
12009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12010
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12011
if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
12012
$as_echo_n "(cached) " >&6
12014
lt_cv_prog_compiler_c_o_F77=no
12015
$RM -r conftest 2>/dev/null
12019
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12021
lt_compiler_flag="-o out/conftest2.$ac_objext"
12022
# Insert the option either (1) after the last *FLAGS variable, or
12023
# (2) before a word containing "conftest.", or (3) at the end.
12024
# Note that $ac_compile itself does not contain backslashes and begins
12025
# with a dollar sign (not a hyphen), so the echo should work correctly.
12026
lt_compile=`echo "$ac_compile" | $SED \
12027
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12028
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12029
-e 's:$: $lt_compiler_flag:'`
12030
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12031
(eval "$lt_compile" 2>out/conftest.err)
12033
cat out/conftest.err >&5
12034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12037
# The compiler can only warn and ignore the option if not recognized
12038
# So say no if there are warnings
12039
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12040
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12041
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12042
lt_cv_prog_compiler_c_o_F77=yes
12047
# SGI C++ compiler will create directory out/ii_files/ for
12048
# template instantiation
12049
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12050
$RM out/* && rmdir out
12056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
12057
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
12062
hard_links="nottested"
12063
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12064
# do not overwrite the value of need_locks provided by the user
12065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12066
$as_echo_n "checking if we can lock with hard links... " >&6; }
12069
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12071
ln conftest.a conftest.b 2>&5 || hard_links=no
12072
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12074
$as_echo "$hard_links" >&6; }
12075
if test "$hard_links" = no; then
12076
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12077
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12087
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12090
allow_undefined_flag_F77=
12091
always_export_symbols_F77=no
12093
archive_expsym_cmds_F77=
12094
compiler_needs_object_F77=no
12095
enable_shared_with_static_runtimes_F77=no
12096
export_dynamic_flag_spec_F77=
12097
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12098
hardcode_automatic_F77=no
12099
hardcode_direct_F77=no
12100
hardcode_direct_absolute_F77=no
12101
hardcode_libdir_flag_spec_F77=
12102
hardcode_libdir_flag_spec_ld_F77=
12103
hardcode_libdir_separator_F77=
12104
hardcode_minus_L_F77=no
12105
hardcode_shlibpath_var_F77=unsupported
12106
inherit_rpath_F77=no
12107
link_all_deplibs_F77=unknown
12109
module_expsym_cmds_F77=
12110
old_archive_from_new_cmds_F77=
12111
old_archive_from_expsyms_cmds_F77=
12112
thread_safe_flag_spec_F77=
12113
whole_archive_flag_spec_F77=
12114
# include_expsyms should be a list of space-separated symbols to be *always*
12115
# included in the symbol list
12116
include_expsyms_F77=
12117
# exclude_expsyms can be an extended regexp of symbols to exclude
12118
# it will be wrapped by ` (' and `)$', so one must not match beginning or
12119
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12120
# as well as any symbol that contains `d'.
12121
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12122
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12123
# platforms (ab)use it in PIC code, but their linkers get confused if
12124
# the symbol is explicitly referenced. Since portable code cannot
12125
# rely on this symbol name, it's probably fine to never include it in
12126
# preloaded symbol tables.
12127
# Exclude shared library initialization/finalization symbols.
12128
extract_expsyms_cmds=
12131
cygwin* | mingw* | pw32* | cegcc*)
12132
# FIXME: the MSVC++ port hasn't been tested in a loooong time
12133
# When not using gcc, we currently assume that we are using
12134
# Microsoft Visual C++.
12135
if test "$GCC" != yes; then
12140
# we just hope/assume this is gcc and not c89 (= MSVC++)
12146
linux* | k*bsd*-gnu | gnu*)
12147
link_all_deplibs_F77=no
12153
# On some targets, GNU ld is compatible enough with the native linker
12154
# that we're better off using the native interface for both.
12155
lt_use_gnu_ld_interface=no
12156
if test "$with_gnu_ld" = yes; then
12159
# The AIX port of GNU ld has always aspired to compatibility
12160
# with the native linker. However, as the warning in the GNU ld
12161
# block says, versions before 2.19.5* couldn't really create working
12162
# shared libraries, regardless of the interface used.
12163
case `$LD -v 2>&1` in
12164
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12165
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12166
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
12168
lt_use_gnu_ld_interface=yes
12173
lt_use_gnu_ld_interface=yes
12178
if test "$lt_use_gnu_ld_interface" = yes; then
12179
# If archive_cmds runs LD, not CC, wlarc should be empty
12182
# Set some defaults for GNU ld with shared library support. These
12183
# are reset later if shared libraries are not supported. Putting them
12184
# here allows them to be overridden if necessary.
12185
runpath_var=LD_RUN_PATH
12186
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12187
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12188
# ancient GNU ld didn't support --whole-archive et. al.
12189
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12190
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12192
whole_archive_flag_spec_F77=
12194
supports_anon_versioning=no
12195
case `$LD -v 2>&1` in
12196
*GNU\ gold*) supports_anon_versioning=yes ;;
12197
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12198
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12199
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12200
*\ 2.11.*) ;; # other 2.11 versions
12201
*) supports_anon_versioning=yes ;;
12204
# See if GNU ld supports shared libraries.
12207
# On AIX/PPC, the GNU linker is very broken
12208
if test "$host_cpu" != ia64; then
12212
*** Warning: the GNU linker, at least up to release 2.19, is reported
12213
*** to be unable to reliably create shared libraries on AIX.
12214
*** Therefore, libtool is disabling shared libraries support. If you
12215
*** really care for shared libraries, you may want to install binutils
12216
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12217
*** You will then need to restart the configuration process.
12226
# see comment about AmigaOS4 .so support
12227
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12228
archive_expsym_cmds_F77=''
12231
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)'
12232
hardcode_libdir_flag_spec_F77='-L$libdir'
12233
hardcode_minus_L_F77=yes
12239
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12240
allow_undefined_flag_F77=unsupported
12241
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12242
# support --undefined. This deserves some investigation. FIXME
12243
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12249
cygwin* | mingw* | pw32* | cegcc*)
12250
# _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12251
# as there is no search path for DLLs.
12252
hardcode_libdir_flag_spec_F77='-L$libdir'
12253
export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
12254
allow_undefined_flag_F77=unsupported
12255
always_export_symbols_F77=no
12256
enable_shared_with_static_runtimes_F77=yes
12257
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'
12258
exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12260
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12261
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12262
# If the export-symbols file already is a .def file (1st line
12263
# is EXPORTS), use it as is; otherwise, prepend...
12264
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12265
cp $export_symbols $output_objdir/$soname.def;
12267
echo EXPORTS > $output_objdir/$soname.def;
12268
cat $export_symbols >> $output_objdir/$soname.def;
12270
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12277
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12278
link_all_deplibs_F77=yes
12282
hardcode_direct_F77=no
12283
hardcode_shlibpath_var_F77=no
12284
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
12285
export_dynamic_flag_spec_F77='${wl}-E'
12286
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12287
# Instead, shared libraries are loaded at an image base (0x10000000 by
12288
# default) and relocated if they conflict, which is a slow very memory
12289
# consuming and fragmenting process. To avoid this, we pick a random,
12290
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12291
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12292
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'
12293
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'
12296
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12298
if test "$host_os" = linux-dietlibc; then
12299
case $cc_basename in
12300
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12303
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12304
&& test "$tmp_diet" = no
12306
tmp_addflag=' $pic_flag'
12307
tmp_sharedflag='-shared'
12308
case $cc_basename,$host_cpu in
12309
pgcc*) # Portland Group C compiler
12310
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'
12311
tmp_addflag=' $pic_flag'
12313
pgf77* | pgf90* | pgf95* | pgfortran*)
12314
# Portland Group f77 and f90 compilers
12315
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'
12316
tmp_addflag=' $pic_flag -Mnomain' ;;
12317
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12318
tmp_addflag=' -i_dynamic' ;;
12319
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12320
tmp_addflag=' -i_dynamic -nofor_main' ;;
12321
ifc* | ifort*) # Intel Fortran compiler
12322
tmp_addflag=' -nofor_main' ;;
12323
lf95*) # Lahey Fortran 8.1
12324
whole_archive_flag_spec_F77=
12325
tmp_sharedflag='--shared' ;;
12326
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12327
tmp_sharedflag='-qmkshrobj'
12329
nvcc*) # Cuda Compiler Driver 2.2
12330
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'
12331
compiler_needs_object_F77=yes
12334
case `$CC -V 2>&1 | sed 5q` in
12335
*Sun\ C*) # Sun C 5.9
12336
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'
12337
compiler_needs_object_F77=yes
12338
tmp_sharedflag='-G' ;;
12339
*Sun\ F*) # Sun Fortran 8.3
12340
tmp_sharedflag='-G' ;;
12342
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12344
if test "x$supports_anon_versioning" = xyes; then
12345
archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
12346
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12347
echo "local: *; };" >> $output_objdir/$libname.ver~
12348
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12351
case $cc_basename in
12352
xlf* | bgf* | bgxlf* | mpixlf*)
12353
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12354
whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
12355
hardcode_libdir_flag_spec_F77=
12356
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
12357
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12358
if test "x$supports_anon_versioning" = xyes; then
12359
archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
12360
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12361
echo "local: *; };" >> $output_objdir/$libname.ver~
12362
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12371
netbsd* | netbsdelf*-gnu)
12372
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12373
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12376
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12377
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'
12382
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12386
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12387
*** create shared libraries on Solaris systems. Therefore, libtool
12388
*** is disabling shared libraries support. We urge you to upgrade GNU
12389
*** binutils to release 2.9.1 or newer. Another option is to modify
12390
*** your PATH or compiler configuration so that the native linker is
12391
*** used, and then restart.
12394
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12395
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12396
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'
12402
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12403
case `$LD -v 2>&1` in
12404
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12408
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12409
*** reliably create shared libraries on SCO systems. Therefore, libtool
12410
*** is disabling shared libraries support. We urge you to upgrade GNU
12411
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12412
*** your PATH or compiler configuration so that the native linker is
12413
*** used, and then restart.
12418
# For security reasons, it is highly recommended that you always
12419
# use absolute paths for naming shared libraries, and exclude the
12420
# DT_RUNPATH tag from executables and libraries. But doing so
12421
# requires that you compile everything twice, which is a pain.
12422
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12423
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12424
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12425
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12434
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12436
hardcode_direct_F77=yes
12437
hardcode_shlibpath_var_F77=no
12441
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12442
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12443
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'
12450
if test "$ld_shlibs_F77" = no; then
12452
hardcode_libdir_flag_spec_F77=
12453
export_dynamic_flag_spec_F77=
12454
whole_archive_flag_spec_F77=
12457
# PORTME fill in a description of your system's linker (not GNU ld)
12460
allow_undefined_flag_F77=unsupported
12461
always_export_symbols_F77=yes
12462
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'
12463
# Note: this linker hardcodes the directories in LIBPATH if there
12464
# are no directories specified by -L.
12465
hardcode_minus_L_F77=yes
12466
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12467
# Neither direct hardcoding nor static linking is supported with a
12469
hardcode_direct_F77=unsupported
12474
if test "$host_cpu" = ia64; then
12475
# On IA64, the linker does run time linking by default, so we don't
12476
# have to do anything special.
12477
aix_use_runtimelinking=no
12478
exp_sym_flag='-Bexport'
12481
# If we're using GNU nm, then we don't want the "-C" option.
12482
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12483
# Also, AIX nm treats weak defined symbols like other global
12484
# defined symbols, whereas GNU nm marks them as "W".
12485
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12486
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'
12488
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'
12490
aix_use_runtimelinking=no
12492
# Test if we are trying to use run time linking or normal
12493
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12494
# need to do runtime linking.
12495
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12496
for ld_flag in $LDFLAGS; do
12497
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12498
aix_use_runtimelinking=yes
12505
exp_sym_flag='-bexport'
12506
no_entry_flag='-bnoentry'
12509
# When large executables or shared objects are built, AIX ld can
12510
# have problems creating the table of contents. If linking a library
12511
# or program results in "error TOC overflow" add -mminimal-toc to
12512
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12513
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12515
archive_cmds_F77=''
12516
hardcode_direct_F77=yes
12517
hardcode_direct_absolute_F77=yes
12518
hardcode_libdir_separator_F77=':'
12519
link_all_deplibs_F77=yes
12520
file_list_spec_F77='${wl}-f,'
12522
if test "$GCC" = yes; then
12523
case $host_os in aix4.[012]|aix4.[012].*)
12524
# We only want to do this on AIX 4.2 and lower, the check
12525
# below for broken collect2 doesn't work under 4.3+
12526
collect2name=`${CC} -print-prog-name=collect2`
12527
if test -f "$collect2name" &&
12528
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12530
# We have reworked collect2
12533
# We have old collect2
12534
hardcode_direct_F77=unsupported
12535
# It fails to find uninstalled libraries when the uninstalled
12536
# path is not listed in the libpath. Setting hardcode_minus_L
12537
# to unsupported forces relinking
12538
hardcode_minus_L_F77=yes
12539
hardcode_libdir_flag_spec_F77='-L$libdir'
12540
hardcode_libdir_separator_F77=
12544
shared_flag='-shared'
12545
if test "$aix_use_runtimelinking" = yes; then
12546
shared_flag="$shared_flag "'${wl}-G'
12548
link_all_deplibs_F77=no
12551
if test "$host_cpu" = ia64; then
12552
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12553
# chokes on -Wl,-G. The following line is correct:
12556
if test "$aix_use_runtimelinking" = yes; then
12557
shared_flag='${wl}-G'
12559
shared_flag='${wl}-bM:SRE'
12564
export_dynamic_flag_spec_F77='${wl}-bexpall'
12565
# It seems that -bexpall does not export symbols beginning with
12566
# underscore (_), so it is better to generate a list of symbols to export.
12567
always_export_symbols_F77=yes
12568
if test "$aix_use_runtimelinking" = yes; then
12569
# Warning - without using the other runtime loading flags (-brtl),
12570
# -berok will link without error, but may produce a broken library.
12571
allow_undefined_flag_F77='-berok'
12572
# Determine the default libpath from the value encoded in an
12573
# empty executable.
12574
if test "${lt_cv_aix_libpath+set}" = set; then
12575
aix_libpath=$lt_cv_aix_libpath
12577
if ${lt_cv_aix_libpath__F77+:} false; then :
12578
$as_echo_n "(cached) " >&6
12580
cat > conftest.$ac_ext <<_ACEOF
12585
if ac_fn_f77_try_link "$LINENO"; then :
12587
lt_aix_libpath_sed='
12588
/Import File Strings/,/^$/ {
12590
s/^0 *\([^ ]*\) *$/\1/
12594
lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12595
# Check for a 64-bit object if we didn't find anything.
12596
if test -z "$lt_cv_aix_libpath__F77"; then
12597
lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12600
rm -f core conftest.err conftest.$ac_objext \
12601
conftest$ac_exeext conftest.$ac_ext
12602
if test -z "$lt_cv_aix_libpath__F77"; then
12603
lt_cv_aix_libpath__F77="/usr/lib:/lib"
12608
aix_libpath=$lt_cv_aix_libpath__F77
12611
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12612
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"
12614
if test "$host_cpu" = ia64; then
12615
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12616
allow_undefined_flag_F77="-z nodefs"
12617
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"
12619
# Determine the default libpath from the value encoded in an
12620
# empty executable.
12621
if test "${lt_cv_aix_libpath+set}" = set; then
12622
aix_libpath=$lt_cv_aix_libpath
12624
if ${lt_cv_aix_libpath__F77+:} false; then :
12625
$as_echo_n "(cached) " >&6
12627
cat > conftest.$ac_ext <<_ACEOF
12632
if ac_fn_f77_try_link "$LINENO"; then :
12634
lt_aix_libpath_sed='
12635
/Import File Strings/,/^$/ {
12637
s/^0 *\([^ ]*\) *$/\1/
12641
lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12642
# Check for a 64-bit object if we didn't find anything.
12643
if test -z "$lt_cv_aix_libpath__F77"; then
12644
lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12647
rm -f core conftest.err conftest.$ac_objext \
12648
conftest$ac_exeext conftest.$ac_ext
12649
if test -z "$lt_cv_aix_libpath__F77"; then
12650
lt_cv_aix_libpath__F77="/usr/lib:/lib"
12655
aix_libpath=$lt_cv_aix_libpath__F77
12658
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12659
# Warning - without using the other run time loading flags,
12660
# -berok will link without error, but may produce a broken library.
12661
no_undefined_flag_F77=' ${wl}-bernotok'
12662
allow_undefined_flag_F77=' ${wl}-berok'
12663
if test "$with_gnu_ld" = yes; then
12664
# We only use this code for GNU lds that support --whole-archive.
12665
whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12667
# Exported symbols can be pulled into shared objects from archives
12668
whole_archive_flag_spec_F77='$convenience'
12670
archive_cmds_need_lc_F77=yes
12671
# This is similar to how AIX traditionally builds its shared libraries.
12672
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'
12680
# see comment about AmigaOS4 .so support
12681
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12682
archive_expsym_cmds_F77=''
12685
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)'
12686
hardcode_libdir_flag_spec_F77='-L$libdir'
12687
hardcode_minus_L_F77=yes
12693
export_dynamic_flag_spec_F77=-rdynamic
12696
cygwin* | mingw* | pw32* | cegcc*)
12697
# When not using gcc, we currently assume that we are using
12698
# Microsoft Visual C++.
12699
# hardcode_libdir_flag_spec is actually meaningless, as there is
12700
# no search path for DLLs.
12701
case $cc_basename in
12704
hardcode_libdir_flag_spec_F77=' '
12705
allow_undefined_flag_F77=unsupported
12706
always_export_symbols_F77=yes
12707
file_list_spec_F77='@'
12708
# Tell ltmain to make .lib files, not .a files.
12710
# Tell ltmain to make .dll files, not .so files.
12712
# FIXME: Setting linknames here is a bad hack.
12713
archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12714
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12715
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12717
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12719
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12721
# The linker will not automatically build a static lib if we build a DLL.
12722
# _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
12723
enable_shared_with_static_runtimes_F77=yes
12724
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12726
old_postinstall_cmds_F77='chmod 644 $oldlib'
12727
postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
12728
lt_tool_outputfile="@TOOL_OUTPUT@"~
12729
case $lt_outputfile in
12732
lt_outputfile="$lt_outputfile.exe"
12733
lt_tool_outputfile="$lt_tool_outputfile.exe"
12736
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12737
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12738
$RM "$lt_outputfile.manifest";
12742
# Assume MSVC wrapper
12743
hardcode_libdir_flag_spec_F77=' '
12744
allow_undefined_flag_F77=unsupported
12745
# Tell ltmain to make .lib files, not .a files.
12747
# Tell ltmain to make .dll files, not .so files.
12749
# FIXME: Setting linknames here is a bad hack.
12750
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12751
# The linker will automatically build a .lib file if we build a DLL.
12752
old_archive_from_new_cmds_F77='true'
12753
# FIXME: Should let the user specify the lib program.
12754
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
12755
enable_shared_with_static_runtimes_F77=yes
12760
darwin* | rhapsody*)
12763
archive_cmds_need_lc_F77=no
12764
hardcode_direct_F77=no
12765
hardcode_automatic_F77=yes
12766
hardcode_shlibpath_var_F77=unsupported
12767
if test "$lt_cv_ld_force_load" = "yes"; then
12768
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\"`'
12770
whole_archive_flag_spec_F77=''
12772
link_all_deplibs_F77=yes
12773
allow_undefined_flag_F77="$_lt_dar_allow_undefined"
12774
case $cc_basename in
12775
ifort*) _lt_dar_can_shared=yes ;;
12776
*) _lt_dar_can_shared=$GCC ;;
12778
if test "$_lt_dar_can_shared" = "yes"; then
12779
output_verbose_link_cmd=func_echo_all
12780
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}"
12781
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12782
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}"
12783
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}"
12792
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12793
hardcode_libdir_flag_spec_F77='-L$libdir'
12794
hardcode_shlibpath_var_F77=no
12801
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12802
# support. Future versions do this automatically, but an explicit c++rt0.o
12803
# does not break anything, and helps significantly (at the cost of a little
12806
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12807
hardcode_libdir_flag_spec_F77='-R$libdir'
12808
hardcode_direct_F77=yes
12809
hardcode_shlibpath_var_F77=no
12812
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
12814
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12815
hardcode_direct_F77=yes
12816
hardcode_minus_L_F77=yes
12817
hardcode_shlibpath_var_F77=no
12820
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12821
freebsd* | dragonfly*)
12822
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12823
hardcode_libdir_flag_spec_F77='-R$libdir'
12824
hardcode_direct_F77=yes
12825
hardcode_shlibpath_var_F77=no
12829
if test "$GCC" = yes; then
12830
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'
12832
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'
12834
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12835
hardcode_libdir_separator_F77=:
12836
hardcode_direct_F77=yes
12838
# hardcode_minus_L: Not really in the search PATH,
12839
# but as the default location of the library.
12840
hardcode_minus_L_F77=yes
12841
export_dynamic_flag_spec_F77='${wl}-E'
12845
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12846
archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12848
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12850
if test "$with_gnu_ld" = no; then
12851
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12852
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
12853
hardcode_libdir_separator_F77=:
12854
hardcode_direct_F77=yes
12855
hardcode_direct_absolute_F77=yes
12856
export_dynamic_flag_spec_F77='${wl}-E'
12857
# hardcode_minus_L: Not really in the search PATH,
12858
# but as the default location of the library.
12859
hardcode_minus_L_F77=yes
12864
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12867
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12870
archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12873
archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12879
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12882
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12885
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12889
if test "$with_gnu_ld" = no; then
12890
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12891
hardcode_libdir_separator_F77=:
12895
hardcode_direct_F77=no
12896
hardcode_shlibpath_var_F77=no
12899
hardcode_direct_F77=yes
12900
hardcode_direct_absolute_F77=yes
12901
export_dynamic_flag_spec_F77='${wl}-E'
12903
# hardcode_minus_L: Not really in the search PATH,
12904
# but as the default location of the library.
12905
hardcode_minus_L_F77=yes
12911
irix5* | irix6* | nonstopux*)
12912
if test "$GCC" = yes; then
12913
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'
12914
# Try to use the -exported_symbol ld option, if it does not
12915
# work, assume that -exports_file does not work either and
12916
# implicitly export all symbols.
12917
# This should be the same for all languages, so no per-tag cache variable.
12918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12919
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12920
if ${lt_cv_irix_exported_symbol+:} false; then :
12921
$as_echo_n "(cached) " >&6
12923
save_LDFLAGS="$LDFLAGS"
12924
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12925
cat > conftest.$ac_ext <<_ACEOF
12930
if ac_fn_f77_try_link "$LINENO"; then :
12931
lt_cv_irix_exported_symbol=yes
12933
lt_cv_irix_exported_symbol=no
12935
rm -f core conftest.err conftest.$ac_objext \
12936
conftest$ac_exeext conftest.$ac_ext
12937
LDFLAGS="$save_LDFLAGS"
12939
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12940
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12941
if test "$lt_cv_irix_exported_symbol" = yes; then
12942
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'
12945
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'
12946
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'
12948
archive_cmds_need_lc_F77='no'
12949
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12950
hardcode_libdir_separator_F77=:
12951
inherit_rpath_F77=yes
12952
link_all_deplibs_F77=yes
12955
netbsd* | netbsdelf*-gnu)
12956
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12957
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12959
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12961
hardcode_libdir_flag_spec_F77='-R$libdir'
12962
hardcode_direct_F77=yes
12963
hardcode_shlibpath_var_F77=no
12967
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12968
hardcode_direct_F77=yes
12969
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12970
hardcode_libdir_separator_F77=:
12971
hardcode_shlibpath_var_F77=no
12978
if test -f /usr/libexec/ld.so; then
12979
hardcode_direct_F77=yes
12980
hardcode_shlibpath_var_F77=no
12981
hardcode_direct_absolute_F77=yes
12982
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12983
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12984
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12985
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
12986
export_dynamic_flag_spec_F77='${wl}-E'
12989
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12990
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12991
hardcode_libdir_flag_spec_F77='-R$libdir'
12994
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12995
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13005
hardcode_libdir_flag_spec_F77='-L$libdir'
13006
hardcode_minus_L_F77=yes
13007
allow_undefined_flag_F77=unsupported
13008
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'
13009
old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13013
if test "$GCC" = yes; then
13014
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13015
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'
13017
allow_undefined_flag_F77=' -expect_unresolved \*'
13018
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'
13020
archive_cmds_need_lc_F77='no'
13021
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13022
hardcode_libdir_separator_F77=:
13025
osf4* | osf5*) # as osf3* with the addition of -msym flag
13026
if test "$GCC" = yes; then
13027
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13028
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'
13029
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13031
allow_undefined_flag_F77=' -expect_unresolved \*'
13032
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'
13033
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~
13034
$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'
13036
# Both c and cxx compiler support -rpath directly
13037
hardcode_libdir_flag_spec_F77='-rpath $libdir'
13039
archive_cmds_need_lc_F77='no'
13040
hardcode_libdir_separator_F77=:
13044
no_undefined_flag_F77=' -z defs'
13045
if test "$GCC" = yes; then
13047
archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13048
archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13049
$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'
13051
case `$CC -V 2>&1` in
13054
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13055
archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13056
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13060
archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13061
archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13062
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13066
hardcode_libdir_flag_spec_F77='-R$libdir'
13067
hardcode_shlibpath_var_F77=no
13069
solaris2.[0-5] | solaris2.[0-5].*) ;;
13071
# The compiler driver will combine and reorder linker options,
13072
# but understands `-z linker_flag'. GCC discards it without `$wl',
13073
# but is careful enough not to reorder.
13074
# Supported since Solaris 2.6 (maybe 2.5.1?)
13075
if test "$GCC" = yes; then
13076
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13078
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
13082
link_all_deplibs_F77=yes
13086
if test "x$host_vendor" = xsequent; then
13087
# Use $CC to link under sequent, because it throws in some extra .o
13088
# files that make .init and .fini sections work.
13089
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13091
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13093
hardcode_libdir_flag_spec_F77='-L$libdir'
13094
hardcode_direct_F77=yes
13095
hardcode_minus_L_F77=yes
13096
hardcode_shlibpath_var_F77=no
13100
case $host_vendor in
13102
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13103
hardcode_direct_F77=yes # is this really true???
13106
## LD is ld it makes a PLAMLIB
13107
## CC just makes a GrossModule.
13108
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13109
reload_cmds_F77='$CC -r -o $output$reload_objs'
13110
hardcode_direct_F77=no
13113
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13114
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13117
runpath_var='LD_RUN_PATH'
13118
hardcode_shlibpath_var_F77=no
13122
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13123
hardcode_shlibpath_var_F77=no
13124
export_dynamic_flag_spec_F77='-Bexport'
13128
if test -d /usr/nec; then
13129
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13130
hardcode_shlibpath_var_F77=no
13131
runpath_var=LD_RUN_PATH
13132
hardcode_runpath_var=yes
13137
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13138
no_undefined_flag_F77='${wl}-z,text'
13139
archive_cmds_need_lc_F77=no
13140
hardcode_shlibpath_var_F77=no
13141
runpath_var='LD_RUN_PATH'
13143
if test "$GCC" = yes; then
13144
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13145
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13147
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13148
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13152
sysv5* | sco3.2v5* | sco5v6*)
13153
# Note: We can NOT use -z defs as we might desire, because we do not
13154
# link with -lc, and that would cause any symbols used from libc to
13155
# always be unresolved, which means just about no library would
13156
# ever link correctly. If we're not using GNU ld we use -z text
13157
# though, which does catch some bad symbols but isn't as heavy-handed
13159
no_undefined_flag_F77='${wl}-z,text'
13160
allow_undefined_flag_F77='${wl}-z,nodefs'
13161
archive_cmds_need_lc_F77=no
13162
hardcode_shlibpath_var_F77=no
13163
hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
13164
hardcode_libdir_separator_F77=':'
13165
link_all_deplibs_F77=yes
13166
export_dynamic_flag_spec_F77='${wl}-Bexport'
13167
runpath_var='LD_RUN_PATH'
13169
if test "$GCC" = yes; then
13170
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13171
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13173
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13174
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13179
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13180
hardcode_libdir_flag_spec_F77='-L$libdir'
13181
hardcode_shlibpath_var_F77=no
13189
if test x$host_vendor = xsni; then
13191
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13192
export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
13198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
13199
$as_echo "$ld_shlibs_F77" >&6; }
13200
test "$ld_shlibs_F77" = no && can_build_shared=no
13202
with_gnu_ld_F77=$with_gnu_ld
13210
# Do we need to explicitly link libc?
13212
case "x$archive_cmds_need_lc_F77" in
13214
# Assume -lc should be added
13215
archive_cmds_need_lc_F77=yes
13217
if test "$enable_shared" = yes && test "$GCC" = yes; then
13218
case $archive_cmds_F77 in
13220
# FIXME: we may have to deal with multi-command sequences.
13223
# Test whether the compiler implicitly links with -lc since on some
13224
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13225
# to ld, don't add -lc before -lgcc.
13226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13227
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13228
if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
13229
$as_echo_n "(cached) " >&6
13232
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13234
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13235
(eval $ac_compile) 2>&5
13237
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13238
test $ac_status = 0; } 2>conftest.err; then
13241
libobjs=conftest.$ac_objext
13243
wl=$lt_prog_compiler_wl_F77
13244
pic_flag=$lt_prog_compiler_pic_F77
13250
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13251
allow_undefined_flag_F77=
13252
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13253
(eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13255
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13256
test $ac_status = 0; }
13258
lt_cv_archive_cmds_need_lc_F77=no
13260
lt_cv_archive_cmds_need_lc_F77=yes
13262
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13264
cat conftest.err 1>&5
13269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
13270
$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
13271
archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
13341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13342
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13344
library_names_spec=
13345
libname_spec='lib$name'
13349
postuninstall_cmds=
13353
shlibpath_overrides_runpath=unknown
13355
dynamic_linker="$host_os ld.so"
13356
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13357
need_lib_prefix=unknown
13358
hardcode_into_libs=no
13360
# when you set need_version to no, make sure it does not cause -set_version
13361
# flags to be left without arguments
13362
need_version=unknown
13367
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13368
shlibpath_var=LIBPATH
13370
# AIX 3 has no versioning support, so we append a major version to the name.
13371
soname_spec='${libname}${release}${shared_ext}$major'
13378
hardcode_into_libs=yes
13379
if test "$host_cpu" = ia64; then
13380
# AIX 5 supports IA64
13381
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13382
shlibpath_var=LD_LIBRARY_PATH
13384
# With GCC up to 2.95.x, collect2 would create an import file
13385
# for dependence libraries. The import file would start with
13386
# the line `#! .'. This would cause the generated library to
13387
# depend on `.', always an invalid library. This was fixed in
13388
# development snapshots of GCC prior to 3.0.
13390
aix4 | aix4.[01] | aix4.[01].*)
13391
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13393
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13396
can_build_shared=no
13400
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13401
# soname into executable. Probably we can add versioning support to
13402
# collect2, so additional links can be useful in future.
13403
if test "$aix_use_runtimelinking" = yes; then
13404
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13405
# instead of lib<name>.a to let people know that these are not
13406
# typical AIX shared libraries.
13407
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13409
# We preserve .a as extension for shared libraries through AIX4.2
13410
# and later when we are not doing run time linking.
13411
library_names_spec='${libname}${release}.a $libname.a'
13412
soname_spec='${libname}${release}${shared_ext}$major'
13414
shlibpath_var=LIBPATH
13421
# Since July 2007 AmigaOS4 officially supports .so libraries.
13422
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13426
library_names_spec='$libname.ixlibrary $libname.a'
13427
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13428
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'
13434
library_names_spec='${libname}${shared_ext}'
13435
dynamic_linker="$host_os ld.so"
13436
shlibpath_var=LIBRARY_PATH
13442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13443
soname_spec='${libname}${release}${shared_ext}$major'
13444
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13445
shlibpath_var=LD_LIBRARY_PATH
13446
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13447
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13448
# the default ld.so.conf also contains /usr/contrib/lib and
13449
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13450
# libtool to hard-code these into programs
13453
cygwin* | mingw* | pw32* | cegcc*)
13454
version_type=windows
13459
case $GCC,$cc_basename in
13462
library_names_spec='$libname.dll.a'
13463
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13464
postinstall_cmds='base_file=`basename \${file}`~
13465
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13466
dldir=$destdir/`dirname \$dlpath`~
13467
test -d \$dldir || mkdir -p \$dldir~
13468
$install_prog $dir/$dlname \$dldir/$dlname~
13469
chmod a+x \$dldir/$dlname~
13470
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13471
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13473
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13474
dlpath=$dir/\$dldll~
13476
shlibpath_overrides_runpath=yes
13480
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13481
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13485
# MinGW DLLs use traditional 'lib' prefix
13486
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13489
# pw32 DLLs use 'pw' prefix rather than 'lib'
13490
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13493
dynamic_linker='Win32 ld.exe'
13498
libname_spec='$name'
13499
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13500
library_names_spec='${libname}.dll.lib'
13504
sys_lib_search_path_spec=
13507
for lt_path in $LIB
13510
# Let DOS variable expansion print the short 8.3 style file name.
13511
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13512
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13515
# Convert to MSYS style.
13516
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13519
# Convert to unix form, then to dos form, then back to unix form
13520
# but this time dos style (no spaces!) so that the unix form looks
13521
# like /cygdrive/c/PROGRA~1:/cygdr...
13522
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13523
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13524
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13527
sys_lib_search_path_spec="$LIB"
13528
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13529
# It is most probably a Windows format PATH.
13530
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13532
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13534
# FIXME: find the short name or the path components, as spaces are
13535
# common. (e.g. "Program Files" -> "PROGRA~1")
13539
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13540
postinstall_cmds='base_file=`basename \${file}`~
13541
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13542
dldir=$destdir/`dirname \$dlpath`~
13543
test -d \$dldir || mkdir -p \$dldir~
13544
$install_prog $dir/$dlname \$dldir/$dlname'
13545
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13546
dlpath=$dir/\$dldll~
13548
shlibpath_overrides_runpath=yes
13549
dynamic_linker='Win32 link.exe'
13553
# Assume MSVC wrapper
13554
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13555
dynamic_linker='Win32 ld.exe'
13558
# FIXME: first we should search . and the directory the executable is in
13562
darwin* | rhapsody*)
13563
dynamic_linker="$host_os dyld"
13564
version_type=darwin
13567
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13568
soname_spec='${libname}${release}${major}$shared_ext'
13569
shlibpath_overrides_runpath=yes
13570
shlibpath_var=DYLD_LIBRARY_PATH
13571
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13573
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13581
soname_spec='${libname}${release}${shared_ext}$major'
13582
shlibpath_var=LD_LIBRARY_PATH
13589
freebsd* | dragonfly*)
13590
# DragonFly does not have aout. When/if they implement a new
13591
# versioning mechanism, adjust this.
13592
if test -x /usr/bin/objformat; then
13593
objformat=`/usr/bin/objformat`
13596
freebsd[123]*) objformat=aout ;;
13597
*) objformat=elf ;;
13600
version_type=freebsd-$objformat
13601
case $version_type in
13603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13608
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13612
shlibpath_var=LD_LIBRARY_PATH
13615
shlibpath_overrides_runpath=yes
13617
freebsd3.[01]* | freebsdelf3.[01]*)
13618
shlibpath_overrides_runpath=yes
13619
hardcode_into_libs=yes
13621
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13622
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13623
shlibpath_overrides_runpath=no
13624
hardcode_into_libs=yes
13626
*) # from 4.6 on, and DragonFly
13627
shlibpath_overrides_runpath=yes
13628
hardcode_into_libs=yes
13637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13638
soname_spec='${libname}${release}${shared_ext}$major'
13639
shlibpath_var=LD_LIBRARY_PATH
13640
shlibpath_overrides_runpath=no
13641
hardcode_into_libs=yes
13648
dynamic_linker="$host_os runtime_loader"
13649
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13650
soname_spec='${libname}${release}${shared_ext}$major'
13651
shlibpath_var=LIBRARY_PATH
13652
shlibpath_overrides_runpath=yes
13653
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13654
hardcode_into_libs=yes
13657
hpux9* | hpux10* | hpux11*)
13658
# Give a soname corresponding to the major version so that dld.sl refuses to
13659
# link against other versions.
13666
hardcode_into_libs=yes
13667
dynamic_linker="$host_os dld.so"
13668
shlibpath_var=LD_LIBRARY_PATH
13669
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13670
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13671
soname_spec='${libname}${release}${shared_ext}$major'
13672
if test "X$HPUX_IA64_MODE" = X32; then
13673
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13675
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13677
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13681
hardcode_into_libs=yes
13682
dynamic_linker="$host_os dld.sl"
13683
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13684
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13685
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13686
soname_spec='${libname}${release}${shared_ext}$major'
13687
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13688
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13692
dynamic_linker="$host_os dld.sl"
13693
shlibpath_var=SHLIB_PATH
13694
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13695
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13696
soname_spec='${libname}${release}${shared_ext}$major'
13699
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13700
postinstall_cmds='chmod 555 $lib'
13701
# or fails outright, so override atomically:
13702
install_override_mode=555
13709
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13710
soname_spec='${libname}${release}${shared_ext}$major'
13711
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13712
shlibpath_var=LD_LIBRARY_PATH
13713
shlibpath_overrides_runpath=no
13714
hardcode_into_libs=yes
13717
irix5* | irix6* | nonstopux*)
13719
nonstopux*) version_type=nonstopux ;;
13721
if test "$lt_cv_prog_gnu_ld" = yes; then
13729
soname_spec='${libname}${release}${shared_ext}$major'
13730
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13732
irix5* | nonstopux*)
13733
libsuff= shlibsuff=
13736
case $LD in # libtool.m4 will add one of these switches to LD
13737
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13738
libsuff= shlibsuff= libmagic=32-bit;;
13739
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13740
libsuff=32 shlibsuff=N32 libmagic=N32;;
13741
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13742
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13743
*) libsuff= shlibsuff= libmagic=never-match;;
13747
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13748
shlibpath_overrides_runpath=no
13749
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13750
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13751
hardcode_into_libs=yes
13754
# No shared lib support for Linux oldld, aout, or coff.
13755
linux*oldld* | linux*aout* | linux*coff*)
13759
# This must be Linux ELF.
13760
linux* | k*bsd*-gnu | kopensolaris*-gnu)
13764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13765
soname_spec='${libname}${release}${shared_ext}$major'
13766
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13767
shlibpath_var=LD_LIBRARY_PATH
13768
shlibpath_overrides_runpath=no
13770
# Some binutils ld are patched to set DT_RUNPATH
13771
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13772
$as_echo_n "(cached) " >&6
13774
lt_cv_shlibpath_overrides_runpath=no
13775
save_LDFLAGS=$LDFLAGS
13776
save_libdir=$libdir
13777
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
13778
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
13779
cat > conftest.$ac_ext <<_ACEOF
13784
if ac_fn_f77_try_link "$LINENO"; then :
13785
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13786
lt_cv_shlibpath_overrides_runpath=yes
13789
rm -f core conftest.err conftest.$ac_objext \
13790
conftest$ac_exeext conftest.$ac_ext
13791
LDFLAGS=$save_LDFLAGS
13792
libdir=$save_libdir
13796
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13798
# This implies no fast_install, which is unacceptable.
13799
# Some rework will be needed to allow for fast_install
13800
# before this can be enabled.
13801
hardcode_into_libs=yes
13803
# Append ld.so.conf contents to the search path
13804
if test -f /etc/ld.so.conf; then
13805
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' ' '`
13806
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13809
# We used to test for /lib/ld.so.1 and disable shared libraries on
13810
# powerpc, because MkLinux only supported shared libraries with the
13811
# GNU dynamic linker. Since this was broken with cross compilers,
13812
# most powerpc-linux boxes support dynamic linking these days and
13813
# people can always --disable-shared, the test was removed, and we
13814
# assume the GNU/Linux dynamic linker is in use.
13815
dynamic_linker='GNU/Linux ld.so'
13822
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13823
soname_spec='${libname}${release}${shared_ext}$major'
13824
shlibpath_var=LD_LIBRARY_PATH
13825
shlibpath_overrides_runpath=no
13826
hardcode_into_libs=yes
13827
dynamic_linker='NetBSD ld.elf_so'
13834
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13835
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13836
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13837
dynamic_linker='NetBSD (a.out) ld.so'
13839
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13840
soname_spec='${libname}${release}${shared_ext}$major'
13841
dynamic_linker='NetBSD ld.elf_so'
13843
shlibpath_var=LD_LIBRARY_PATH
13844
shlibpath_overrides_runpath=yes
13845
hardcode_into_libs=yes
13850
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13851
shlibpath_var=LD_LIBRARY_PATH
13852
shlibpath_overrides_runpath=yes
13859
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13860
soname_spec='${libname}${release}${shared_ext}$major'
13861
shlibpath_var=LD_LIBRARY_PATH
13862
shlibpath_overrides_runpath=no
13863
hardcode_into_libs=yes
13864
dynamic_linker='ldqnx.so'
13869
sys_lib_dlsearch_path_spec="/usr/lib"
13871
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13873
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13874
*) need_version=no ;;
13876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13877
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13878
shlibpath_var=LD_LIBRARY_PATH
13879
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13881
openbsd2.[89] | openbsd2.[89].*)
13882
shlibpath_overrides_runpath=no
13885
shlibpath_overrides_runpath=yes
13889
shlibpath_overrides_runpath=yes
13894
libname_spec='$name'
13897
library_names_spec='$libname${shared_ext} $libname.a'
13898
dynamic_linker='OS/2 ld.exe'
13899
shlibpath_var=LIBPATH
13902
osf3* | osf4* | osf5*)
13906
soname_spec='${libname}${release}${shared_ext}$major'
13907
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13908
shlibpath_var=LD_LIBRARY_PATH
13909
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13910
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13921
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13922
soname_spec='${libname}${release}${shared_ext}$major'
13923
shlibpath_var=LD_LIBRARY_PATH
13924
shlibpath_overrides_runpath=yes
13925
hardcode_into_libs=yes
13926
# ldd complains unless libraries are executable
13927
postinstall_cmds='chmod +x $lib'
13932
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13933
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13934
shlibpath_var=LD_LIBRARY_PATH
13935
shlibpath_overrides_runpath=yes
13936
if test "$with_gnu_ld" = yes; then
13944
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945
soname_spec='${libname}${release}${shared_ext}$major'
13946
shlibpath_var=LD_LIBRARY_PATH
13947
case $host_vendor in
13949
shlibpath_overrides_runpath=no
13951
runpath_var=LD_RUN_PATH
13959
shlibpath_overrides_runpath=no
13960
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13966
if test -d /usr/nec ;then
13968
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13969
soname_spec='$libname${shared_ext}.$major'
13970
shlibpath_var=LD_LIBRARY_PATH
13974
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13975
version_type=freebsd-elf
13978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13979
soname_spec='${libname}${release}${shared_ext}$major'
13980
shlibpath_var=LD_LIBRARY_PATH
13981
shlibpath_overrides_runpath=yes
13982
hardcode_into_libs=yes
13983
if test "$with_gnu_ld" = yes; then
13984
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13986
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13989
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13993
sys_lib_dlsearch_path_spec='/usr/lib'
13997
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14001
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14002
shlibpath_var=LD_LIBRARY_PATH
14003
shlibpath_overrides_runpath=no
14004
hardcode_into_libs=yes
14009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14010
soname_spec='${libname}${release}${shared_ext}$major'
14011
shlibpath_var=LD_LIBRARY_PATH
14018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14019
$as_echo "$dynamic_linker" >&6; }
14020
test "$dynamic_linker" = no && can_build_shared=no
14022
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14023
if test "$GCC" = yes; then
14024
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14027
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14028
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14030
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14031
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14072
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14073
hardcode_action_F77=
14074
if test -n "$hardcode_libdir_flag_spec_F77" ||
14075
test -n "$runpath_var_F77" ||
14076
test "X$hardcode_automatic_F77" = "Xyes" ; then
14078
# We can hardcode non-existent directories.
14079
if test "$hardcode_direct_F77" != no &&
14080
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14081
# have to relink, otherwise we might link with an installed library
14082
# when we should be linking with a yet-to-be-installed one
14083
## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14084
test "$hardcode_minus_L_F77" != no; then
14085
# Linking always hardcodes the temporary library directory.
14086
hardcode_action_F77=relink
14088
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14089
hardcode_action_F77=immediate
14092
# We cannot hardcode anything, or else we can only hardcode existing
14094
hardcode_action_F77=unsupported
14096
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
14097
$as_echo "$hardcode_action_F77" >&6; }
14099
if test "$hardcode_action_F77" = relink ||
14100
test "$inherit_rpath_F77" = yes; then
14101
# Fast installation is not supported
14102
enable_fast_install=no
14103
elif test "$shlibpath_overrides_runpath" = yes ||
14104
test "$enable_shared" = no; then
14105
# Fast installation is not necessary
14106
enable_fast_install=needless
14115
fi # test -n "$compiler"
14119
CFLAGS="$lt_save_CFLAGS"
14120
fi # test "$_lt_disable_F77" != yes
14123
ac_cpp='$CPP $CPPFLAGS'
14124
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14125
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14126
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14138
ac_config_commands="$ac_config_commands libtool"
14143
# Only expand once:
14149
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14150
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14151
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
14153
$as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
14154
if ${ac_cv_prog_f77_v+:} false; then :
14155
$as_echo_n "(cached) " >&6
14157
cat > conftest.$ac_ext <<_ACEOF
14162
if ac_fn_f77_try_compile "$LINENO"; then :
14164
# Try some options frequently used verbose output
14165
for ac_verb in -v -verbose --verbose -V -\#\#\#; do
14166
cat > conftest.$ac_ext <<_ACEOF
14172
# Compile and link our simple test program by passing a flag (argument
14173
# 1 to this macro) to the Fortran compiler in order to get
14174
# "verbose" output that we can then parse for the Fortran linker
14176
ac_save_FFLAGS=$FFLAGS
14177
FFLAGS="$FFLAGS $ac_verb"
14178
eval "set x $ac_link"
14180
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
14181
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
14182
# LIBRARY_PATH; skip all such settings.
14183
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
14184
sed '/^Driving:/d; /^Configured with:/d;
14185
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
14186
$as_echo "$ac_f77_v_output" >&5
14187
FFLAGS=$ac_save_FFLAGS
14191
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
14192
# /foo, /bar, and /baz are search directories for the Fortran linker.
14193
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
14194
ac_f77_v_output="`echo $ac_f77_v_output |
14196
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
14198
# FIXME: we keep getting bitten by quoted arguments; a more general fix
14199
# that detects unbalanced quotes in FLIBS should be implemented
14200
# and (ugh) tested at some point.
14201
case $ac_f77_v_output in
14202
# If we are using xlf then replace all the commas with spaces.
14204
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
14206
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
14207
# $LIBS confuse us, and the libraries appear later in the output anyway).
14208
*mGLOB_options_string*)
14209
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
14211
# Portland Group compiler has singly- or doubly-quoted -cmdline argument
14212
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
14213
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
14214
*-cmdline\ * | *-ignore\ * | *-def\ *)
14215
ac_f77_v_output=`echo $ac_f77_v_output | sed "\
14216
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
14217
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
14218
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
14220
# If we are using Cray Fortran then delete quotes.
14222
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
14226
# look for -l* and *.a constructs in the output
14227
for ac_arg in $ac_f77_v_output; do
14229
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
14230
ac_cv_prog_f77_v=$ac_verb
14235
if test -z "$ac_cv_prog_f77_v"; then
14236
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
14237
$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
14240
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
14241
$as_echo "$as_me: WARNING: compilation failed" >&2;}
14243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
14247
$as_echo "$ac_cv_prog_f77_v" >&6; }
14248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
14249
$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
14250
if ${ac_cv_f77_libs+:} false; then :
14251
$as_echo_n "(cached) " >&6
14253
if test "x$FLIBS" != "x"; then
14254
ac_cv_f77_libs="$FLIBS" # Let the user override the test.
14257
cat > conftest.$ac_ext <<_ACEOF
14263
# Compile and link our simple test program by passing a flag (argument
14264
# 1 to this macro) to the Fortran compiler in order to get
14265
# "verbose" output that we can then parse for the Fortran linker
14267
ac_save_FFLAGS=$FFLAGS
14268
FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
14269
eval "set x $ac_link"
14271
$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
14272
# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
14273
# LIBRARY_PATH; skip all such settings.
14274
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
14275
sed '/^Driving:/d; /^Configured with:/d;
14276
'"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
14277
$as_echo "$ac_f77_v_output" >&5
14278
FFLAGS=$ac_save_FFLAGS
14282
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
14283
# /foo, /bar, and /baz are search directories for the Fortran linker.
14284
# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
14285
ac_f77_v_output="`echo $ac_f77_v_output |
14287
sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
14289
# FIXME: we keep getting bitten by quoted arguments; a more general fix
14290
# that detects unbalanced quotes in FLIBS should be implemented
14291
# and (ugh) tested at some point.
14292
case $ac_f77_v_output in
14293
# If we are using xlf then replace all the commas with spaces.
14295
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
14297
# With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
14298
# $LIBS confuse us, and the libraries appear later in the output anyway).
14299
*mGLOB_options_string*)
14300
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
14302
# Portland Group compiler has singly- or doubly-quoted -cmdline argument
14303
# Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
14304
# Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
14305
*-cmdline\ * | *-ignore\ * | *-def\ *)
14306
ac_f77_v_output=`echo $ac_f77_v_output | sed "\
14307
s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
14308
s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
14309
s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
14311
# If we are using Cray Fortran then delete quotes.
14313
ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
14320
# Save positional arguments (if any)
14321
ac_save_positional="$@"
14323
set X $ac_f77_v_output
14324
while test $@%:@ != 1; do
14328
[\\/]*.a | ?:[\\/]*.a)
14330
for ac_i in $ac_cv_f77_libs; do
14331
if test x"$ac_arg" = x"$ac_i"; then
14337
if test x"$ac_exists" = xtrue; then :
14340
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
14345
for ac_i in $ac_cv_f77_libs; do
14346
if test x"$ac_arg" = x"$ac_i"; then
14352
if test x"$ac_exists" = xtrue; then :
14355
if test "$ac_compiler_gnu" = yes; then
14356
for ac_link_opt in $ac_arg; do
14357
ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
14360
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
14364
# Ignore these flags.
14365
-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
14366
|-LANG:=* | -LIST:* | -LNO:* | -link)
14369
test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
14372
# These flags, when seen by themselves, take an argument.
14373
# We remove the space between option and argument and re-iterate
14374
# unless we find an empty arg or a new option (starting with -)
14385
for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
14387
for ac_i in $ac_cv_f77_libs; do
14388
if test x"$ac_j" = x"$ac_i"; then
14394
if test x"$ac_exists" = xtrue; then :
14397
ac_arg="$ac_arg $ac_j"
14398
ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
14404
for ac_i in $ac_cv_f77_libs; do
14405
if test x"$ac_arg" = x"$ac_i"; then
14411
if test x"$ac_exists" = xtrue; then :
14414
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
14417
-zallextract*| -zdefaultextract)
14418
ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
14420
# Ignore everything else.
14423
# restore positional arguments
14424
set X $ac_save_positional; shift
14426
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
14427
# then we insist that the "run path" must be an absolute path (i.e. it
14428
# must begin with a "/").
14429
case `(uname -sr) 2>/dev/null` in
14431
ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
14432
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
14433
test "x$ac_ld_run_path" != x &&
14434
if test "$ac_compiler_gnu" = yes; then
14435
for ac_link_opt in $ac_ld_run_path; do
14436
ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
14439
ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
14443
fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
14446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
14447
$as_echo "$ac_cv_f77_libs" >&6; }
14448
FLIBS="$ac_cv_f77_libs"
14452
ac_cpp='$CPP $CPPFLAGS'
14453
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14454
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14455
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14458
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14459
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14460
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
14463
$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
14464
if ${ac_cv_f77_dummy_main+:} false; then :
14465
$as_echo_n "(cached) " >&6
14467
ac_f77_dm_save_LIBS=$LIBS
14468
LIBS="$LIBS $FLIBS"
14469
ac_fortran_dm_var=F77_DUMMY_MAIN
14471
ac_cpp='$CPP $CPPFLAGS'
14472
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14473
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14474
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14476
# First, try linking without a dummy main:
14477
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478
/* end confdefs.h. */
14480
#ifdef F77_DUMMY_MAIN
14482
# ifdef __cplusplus
14485
int F77_DUMMY_MAIN() { return 1; }
14496
if ac_fn_c_try_link "$LINENO"; then :
14497
ac_cv_fortran_dummy_main=none
14499
ac_cv_fortran_dummy_main=unknown
14501
rm -f core conftest.err conftest.$ac_objext \
14502
conftest$ac_exeext conftest.$ac_ext
14504
if test $ac_cv_fortran_dummy_main = unknown; then
14505
for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
14506
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507
/* end confdefs.h. */
14508
@%:@define $ac_fortran_dm_var $ac_func
14509
#ifdef F77_DUMMY_MAIN
14511
# ifdef __cplusplus
14514
int F77_DUMMY_MAIN() { return 1; }
14525
if ac_fn_c_try_link "$LINENO"; then :
14526
ac_cv_fortran_dummy_main=$ac_func; break
14528
rm -f core conftest.err conftest.$ac_objext \
14529
conftest$ac_exeext conftest.$ac_ext
14533
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14534
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14535
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14536
ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
14538
LIBS=$ac_f77_dm_save_LIBS
14541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
14542
$as_echo "$ac_cv_f77_dummy_main" >&6; }
14543
F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
14544
if test "$F77_DUMMY_MAIN" != unknown; then :
14545
if test $F77_DUMMY_MAIN != none; then
14547
cat >>confdefs.h <<_ACEOF
14548
@%:@define F77_DUMMY_MAIN $F77_DUMMY_MAIN
14551
if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
14553
$as_echo "@%:@define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
14558
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14559
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14560
as_fn_error $? "linking to Fortran libraries from C fails
14561
See \`config.log' for more details" "$LINENO" 5; }
14565
ac_cpp='$CPP $CPPFLAGS'
14566
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14567
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14568
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14571
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14572
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14573
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14574
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
14575
$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
14576
if ${ac_cv_f77_mangling+:} false; then :
14577
$as_echo_n "(cached) " >&6
14579
cat > conftest.$ac_ext <<_ACEOF
14580
subroutine foobar()
14583
subroutine foo_bar()
14587
if ac_fn_f77_try_compile "$LINENO"; then :
14588
mv conftest.$ac_objext cfortran_test.$ac_objext
14591
LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
14594
ac_cpp='$CPP $CPPFLAGS'
14595
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14596
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14597
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14599
for ac_foobar in foobar FOOBAR; do
14600
for ac_underscore in "" "_"; do
14601
ac_func="$ac_foobar$ac_underscore"
14602
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603
/* end confdefs.h. */
14605
/* Override any GCC internal prototype to avoid an error.
14606
Use char because int might match the return type of a GCC
14607
builtin and then its argument prototype would still apply. */
14612
#ifdef F77_DUMMY_MAIN
14614
# ifdef __cplusplus
14617
int F77_DUMMY_MAIN() { return 1; }
14623
return $ac_func ();
14628
if ac_fn_c_try_link "$LINENO"; then :
14629
ac_success=yes; break 2
14631
rm -f core conftest.err conftest.$ac_objext \
14632
conftest$ac_exeext conftest.$ac_ext
14636
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14637
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14638
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14640
if test "$ac_success" = "yes"; then
14653
ac_cpp='$CPP $CPPFLAGS'
14654
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14655
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14656
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14657
ac_success_extra=no
14658
for ac_extra in "" "_"; do
14659
ac_func="$ac_foo_bar$ac_underscore$ac_extra"
14660
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661
/* end confdefs.h. */
14663
/* Override any GCC internal prototype to avoid an error.
14664
Use char because int might match the return type of a GCC
14665
builtin and then its argument prototype would still apply. */
14670
#ifdef F77_DUMMY_MAIN
14672
# ifdef __cplusplus
14675
int F77_DUMMY_MAIN() { return 1; }
14681
return $ac_func ();
14686
if ac_fn_c_try_link "$LINENO"; then :
14687
ac_success_extra=yes; break
14689
rm -f core conftest.err conftest.$ac_objext \
14690
conftest$ac_exeext conftest.$ac_ext
14693
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14694
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14695
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14697
if test "$ac_success_extra" = "yes"; then
14698
ac_cv_f77_mangling="$ac_case case"
14699
if test -z "$ac_underscore"; then
14700
ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
14702
ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
14704
if test -z "$ac_extra"; then
14705
ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
14707
ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
14710
ac_cv_f77_mangling="unknown"
14713
ac_cv_f77_mangling="unknown"
14718
rm -f cfortran_test*
14720
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14721
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14722
as_fn_error $? "cannot compile a simple Fortran program
14723
See \`config.log' for more details" "$LINENO" 5; }
14725
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
14729
$as_echo "$ac_cv_f77_mangling" >&6; }
14732
ac_cpp='$CPP $CPPFLAGS'
14733
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14734
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14735
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14743
@%:@ Check whether --with-blas was given.
14744
if test "${with_blas+set}" = set; then :
14745
withval=$with_blas;
14750
no) ax_blas_ok=disable ;;
14751
-* | */* | *.a | *.so | *.so.* | *.o) BLAS_LIBS="$with_blas" ;;
14752
*) BLAS_LIBS="-l$with_blas" ;;
14755
# Get fortran linker names of BLAS functions to check for.
14757
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14758
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14759
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14760
case $ac_cv_f77_mangling in
14761
upper*) ac_val="SGEMM" ;;
14762
lower*) ac_val="sgemm" ;;
14763
*) ac_val="unknown" ;;
14765
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
14770
ac_cpp='$CPP $CPPFLAGS'
14771
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14772
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14773
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14776
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14777
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14778
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14779
case $ac_cv_f77_mangling in
14780
upper*) ac_val="DGEMM" ;;
14781
lower*) ac_val="dgemm" ;;
14782
*) ac_val="unknown" ;;
14784
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
14789
ac_cpp='$CPP $CPPFLAGS'
14790
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14791
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14792
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14795
ax_blas_save_LIBS="$LIBS"
14796
LIBS="$LIBS $FLIBS"
14798
# First, check BLAS_LIBS environment variable
14799
if test $ax_blas_ok = no; then
14800
if test "x$BLAS_LIBS" != x; then
14801
save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS"
14802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in $BLAS_LIBS" >&5
14803
$as_echo_n "checking for $sgemm in $BLAS_LIBS... " >&6; }
14804
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14805
/* end confdefs.h. */
14807
/* Override any GCC internal prototype to avoid an error.
14808
Use char because int might match the return type of a GCC
14809
builtin and then its argument prototype would still apply. */
14814
#ifdef F77_DUMMY_MAIN
14816
# ifdef __cplusplus
14819
int F77_DUMMY_MAIN() { return 1; }
14830
if ac_fn_c_try_link "$LINENO"; then :
14835
rm -f core conftest.err conftest.$ac_objext \
14836
conftest$ac_exeext conftest.$ac_ext
14837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_blas_ok" >&5
14838
$as_echo "$ax_blas_ok" >&6; }
14843
# BLAS linked to by default? (happens on some supercomputers)
14844
if test $ax_blas_ok = no; then
14845
save_LIBS="$LIBS"; LIBS="$LIBS"
14846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $sgemm is being linked in already" >&5
14847
$as_echo_n "checking if $sgemm is being linked in already... " >&6; }
14848
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849
/* end confdefs.h. */
14851
/* Override any GCC internal prototype to avoid an error.
14852
Use char because int might match the return type of a GCC
14853
builtin and then its argument prototype would still apply. */
14858
#ifdef F77_DUMMY_MAIN
14860
# ifdef __cplusplus
14863
int F77_DUMMY_MAIN() { return 1; }
14874
if ac_fn_c_try_link "$LINENO"; then :
14877
rm -f core conftest.err conftest.$ac_objext \
14878
conftest$ac_exeext conftest.$ac_ext
14879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_blas_ok" >&5
14880
$as_echo "$ax_blas_ok" >&6; }
14884
# BLAS in ATLAS library? (http://math-atlas.sourceforge.net/)
14885
if test $ax_blas_ok = no; then
14886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5
14887
$as_echo_n "checking for ATL_xerbla in -latlas... " >&6; }
14888
if ${ac_cv_lib_atlas_ATL_xerbla+:} false; then :
14889
$as_echo_n "(cached) " >&6
14891
ac_check_lib_save_LIBS=$LIBS
14892
LIBS="-latlas $LIBS"
14893
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894
/* end confdefs.h. */
14896
/* Override any GCC internal prototype to avoid an error.
14897
Use char because int might match the return type of a GCC
14898
builtin and then its argument prototype would still apply. */
14902
char ATL_xerbla ();
14903
#ifdef F77_DUMMY_MAIN
14905
# ifdef __cplusplus
14908
int F77_DUMMY_MAIN() { return 1; }
14914
return ATL_xerbla ();
14919
if ac_fn_c_try_link "$LINENO"; then :
14920
ac_cv_lib_atlas_ATL_xerbla=yes
14922
ac_cv_lib_atlas_ATL_xerbla=no
14924
rm -f core conftest.err conftest.$ac_objext \
14925
conftest$ac_exeext conftest.$ac_ext
14926
LIBS=$ac_check_lib_save_LIBS
14928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5
14929
$as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; }
14930
if test "x$ac_cv_lib_atlas_ATL_xerbla" = xyes; then :
14931
as_ac_Lib=`$as_echo "ac_cv_lib_f77blas_$sgemm" | $as_tr_sh`
14932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lf77blas" >&5
14933
$as_echo_n "checking for $sgemm in -lf77blas... " >&6; }
14934
if eval \${$as_ac_Lib+:} false; then :
14935
$as_echo_n "(cached) " >&6
14937
ac_check_lib_save_LIBS=$LIBS
14938
LIBS="-lf77blas -latlas $LIBS"
14939
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940
/* end confdefs.h. */
14942
/* Override any GCC internal prototype to avoid an error.
14943
Use char because int might match the return type of a GCC
14944
builtin and then its argument prototype would still apply. */
14949
#ifdef F77_DUMMY_MAIN
14951
# ifdef __cplusplus
14954
int F77_DUMMY_MAIN() { return 1; }
14965
if ac_fn_c_try_link "$LINENO"; then :
14966
eval "$as_ac_Lib=yes"
14968
eval "$as_ac_Lib=no"
14970
rm -f core conftest.err conftest.$ac_objext \
14971
conftest$ac_exeext conftest.$ac_ext
14972
LIBS=$ac_check_lib_save_LIBS
14974
eval ac_res=\$$as_ac_Lib
14975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14976
$as_echo "$ac_res" >&6; }
14977
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14978
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
14979
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
14980
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
14981
$as_echo_n "(cached) " >&6
14983
ac_check_lib_save_LIBS=$LIBS
14984
LIBS="-lcblas -lf77blas -latlas $LIBS"
14985
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986
/* end confdefs.h. */
14988
/* Override any GCC internal prototype to avoid an error.
14989
Use char because int might match the return type of a GCC
14990
builtin and then its argument prototype would still apply. */
14994
char cblas_dgemm ();
14995
#ifdef F77_DUMMY_MAIN
14997
# ifdef __cplusplus
15000
int F77_DUMMY_MAIN() { return 1; }
15006
return cblas_dgemm ();
15011
if ac_fn_c_try_link "$LINENO"; then :
15012
ac_cv_lib_cblas_cblas_dgemm=yes
15014
ac_cv_lib_cblas_cblas_dgemm=no
15016
rm -f core conftest.err conftest.$ac_objext \
15017
conftest$ac_exeext conftest.$ac_ext
15018
LIBS=$ac_check_lib_save_LIBS
15020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
15021
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
15022
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
15024
BLAS_LIBS="-lcblas -lf77blas -latlas"
15033
# BLAS in PhiPACK libraries? (requires generic BLAS lib, too)
15034
if test $ax_blas_ok = no; then
15035
as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
15036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
15037
$as_echo_n "checking for $sgemm in -lblas... " >&6; }
15038
if eval \${$as_ac_Lib+:} false; then :
15039
$as_echo_n "(cached) " >&6
15041
ac_check_lib_save_LIBS=$LIBS
15042
LIBS="-lblas $LIBS"
15043
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044
/* end confdefs.h. */
15046
/* Override any GCC internal prototype to avoid an error.
15047
Use char because int might match the return type of a GCC
15048
builtin and then its argument prototype would still apply. */
15053
#ifdef F77_DUMMY_MAIN
15055
# ifdef __cplusplus
15058
int F77_DUMMY_MAIN() { return 1; }
15069
if ac_fn_c_try_link "$LINENO"; then :
15070
eval "$as_ac_Lib=yes"
15072
eval "$as_ac_Lib=no"
15074
rm -f core conftest.err conftest.$ac_objext \
15075
conftest$ac_exeext conftest.$ac_ext
15076
LIBS=$ac_check_lib_save_LIBS
15078
eval ac_res=\$$as_ac_Lib
15079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15080
$as_echo "$ac_res" >&6; }
15081
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15082
as_ac_Lib=`$as_echo "ac_cv_lib_dgemm_$dgemm" | $as_tr_sh`
15083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dgemm in -ldgemm" >&5
15084
$as_echo_n "checking for $dgemm in -ldgemm... " >&6; }
15085
if eval \${$as_ac_Lib+:} false; then :
15086
$as_echo_n "(cached) " >&6
15088
ac_check_lib_save_LIBS=$LIBS
15089
LIBS="-ldgemm -lblas $LIBS"
15090
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091
/* end confdefs.h. */
15093
/* Override any GCC internal prototype to avoid an error.
15094
Use char because int might match the return type of a GCC
15095
builtin and then its argument prototype would still apply. */
15100
#ifdef F77_DUMMY_MAIN
15102
# ifdef __cplusplus
15105
int F77_DUMMY_MAIN() { return 1; }
15116
if ac_fn_c_try_link "$LINENO"; then :
15117
eval "$as_ac_Lib=yes"
15119
eval "$as_ac_Lib=no"
15121
rm -f core conftest.err conftest.$ac_objext \
15122
conftest$ac_exeext conftest.$ac_ext
15123
LIBS=$ac_check_lib_save_LIBS
15125
eval ac_res=\$$as_ac_Lib
15126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15127
$as_echo "$ac_res" >&6; }
15128
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15129
as_ac_Lib=`$as_echo "ac_cv_lib_sgemm_$sgemm" | $as_tr_sh`
15130
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsgemm" >&5
15131
$as_echo_n "checking for $sgemm in -lsgemm... " >&6; }
15132
if eval \${$as_ac_Lib+:} false; then :
15133
$as_echo_n "(cached) " >&6
15135
ac_check_lib_save_LIBS=$LIBS
15136
LIBS="-lsgemm -lblas $LIBS"
15137
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138
/* end confdefs.h. */
15140
/* Override any GCC internal prototype to avoid an error.
15141
Use char because int might match the return type of a GCC
15142
builtin and then its argument prototype would still apply. */
15147
#ifdef F77_DUMMY_MAIN
15149
# ifdef __cplusplus
15152
int F77_DUMMY_MAIN() { return 1; }
15163
if ac_fn_c_try_link "$LINENO"; then :
15164
eval "$as_ac_Lib=yes"
15166
eval "$as_ac_Lib=no"
15168
rm -f core conftest.err conftest.$ac_objext \
15169
conftest$ac_exeext conftest.$ac_ext
15170
LIBS=$ac_check_lib_save_LIBS
15172
eval ac_res=\$$as_ac_Lib
15173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15174
$as_echo "$ac_res" >&6; }
15175
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15176
ax_blas_ok=yes; BLAS_LIBS="-lsgemm -ldgemm -lblas"
15185
# BLAS in Intel MKL library?
15186
if test $ax_blas_ok = no; then
15187
as_ac_Lib=`$as_echo "ac_cv_lib_mkl_$sgemm" | $as_tr_sh`
15188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lmkl" >&5
15189
$as_echo_n "checking for $sgemm in -lmkl... " >&6; }
15190
if eval \${$as_ac_Lib+:} false; then :
15191
$as_echo_n "(cached) " >&6
15193
ac_check_lib_save_LIBS=$LIBS
15195
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196
/* end confdefs.h. */
15198
/* Override any GCC internal prototype to avoid an error.
15199
Use char because int might match the return type of a GCC
15200
builtin and then its argument prototype would still apply. */
15205
#ifdef F77_DUMMY_MAIN
15207
# ifdef __cplusplus
15210
int F77_DUMMY_MAIN() { return 1; }
15221
if ac_fn_c_try_link "$LINENO"; then :
15222
eval "$as_ac_Lib=yes"
15224
eval "$as_ac_Lib=no"
15226
rm -f core conftest.err conftest.$ac_objext \
15227
conftest$ac_exeext conftest.$ac_ext
15228
LIBS=$ac_check_lib_save_LIBS
15230
eval ac_res=\$$as_ac_Lib
15231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15232
$as_echo "$ac_res" >&6; }
15233
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15234
ax_blas_ok=yes;BLAS_LIBS="-lmkl"
15239
# BLAS in Apple vecLib library?
15240
if test $ax_blas_ok = no; then
15241
save_LIBS="$LIBS"; LIBS="-framework vecLib $LIBS"
15242
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -framework vecLib" >&5
15243
$as_echo_n "checking for $sgemm in -framework vecLib... " >&6; }
15244
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245
/* end confdefs.h. */
15247
/* Override any GCC internal prototype to avoid an error.
15248
Use char because int might match the return type of a GCC
15249
builtin and then its argument prototype would still apply. */
15254
#ifdef F77_DUMMY_MAIN
15256
# ifdef __cplusplus
15259
int F77_DUMMY_MAIN() { return 1; }
15270
if ac_fn_c_try_link "$LINENO"; then :
15271
ax_blas_ok=yes;BLAS_LIBS="-framework vecLib"
15273
rm -f core conftest.err conftest.$ac_objext \
15274
conftest$ac_exeext conftest.$ac_ext
15275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_blas_ok" >&5
15276
$as_echo "$ax_blas_ok" >&6; }
15280
# BLAS in Alpha CXML library?
15281
if test $ax_blas_ok = no; then
15282
as_ac_Lib=`$as_echo "ac_cv_lib_cxml_$sgemm" | $as_tr_sh`
15283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lcxml" >&5
15284
$as_echo_n "checking for $sgemm in -lcxml... " >&6; }
15285
if eval \${$as_ac_Lib+:} false; then :
15286
$as_echo_n "(cached) " >&6
15288
ac_check_lib_save_LIBS=$LIBS
15289
LIBS="-lcxml $LIBS"
15290
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291
/* end confdefs.h. */
15293
/* Override any GCC internal prototype to avoid an error.
15294
Use char because int might match the return type of a GCC
15295
builtin and then its argument prototype would still apply. */
15300
#ifdef F77_DUMMY_MAIN
15302
# ifdef __cplusplus
15305
int F77_DUMMY_MAIN() { return 1; }
15316
if ac_fn_c_try_link "$LINENO"; then :
15317
eval "$as_ac_Lib=yes"
15319
eval "$as_ac_Lib=no"
15321
rm -f core conftest.err conftest.$ac_objext \
15322
conftest$ac_exeext conftest.$ac_ext
15323
LIBS=$ac_check_lib_save_LIBS
15325
eval ac_res=\$$as_ac_Lib
15326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15327
$as_echo "$ac_res" >&6; }
15328
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15329
ax_blas_ok=yes;BLAS_LIBS="-lcxml"
15334
# BLAS in Alpha DXML library? (now called CXML, see above)
15335
if test $ax_blas_ok = no; then
15336
as_ac_Lib=`$as_echo "ac_cv_lib_dxml_$sgemm" | $as_tr_sh`
15337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -ldxml" >&5
15338
$as_echo_n "checking for $sgemm in -ldxml... " >&6; }
15339
if eval \${$as_ac_Lib+:} false; then :
15340
$as_echo_n "(cached) " >&6
15342
ac_check_lib_save_LIBS=$LIBS
15343
LIBS="-ldxml $LIBS"
15344
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345
/* end confdefs.h. */
15347
/* Override any GCC internal prototype to avoid an error.
15348
Use char because int might match the return type of a GCC
15349
builtin and then its argument prototype would still apply. */
15354
#ifdef F77_DUMMY_MAIN
15356
# ifdef __cplusplus
15359
int F77_DUMMY_MAIN() { return 1; }
15370
if ac_fn_c_try_link "$LINENO"; then :
15371
eval "$as_ac_Lib=yes"
15373
eval "$as_ac_Lib=no"
15375
rm -f core conftest.err conftest.$ac_objext \
15376
conftest$ac_exeext conftest.$ac_ext
15377
LIBS=$ac_check_lib_save_LIBS
15379
eval ac_res=\$$as_ac_Lib
15380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15381
$as_echo "$ac_res" >&6; }
15382
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15383
ax_blas_ok=yes;BLAS_LIBS="-ldxml"
15388
# BLAS in Sun Performance library?
15389
if test $ax_blas_ok = no; then
15390
if test "x$GCC" != xyes; then # only works with Sun CC
15391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5
15392
$as_echo_n "checking for acosp in -lsunmath... " >&6; }
15393
if ${ac_cv_lib_sunmath_acosp+:} false; then :
15394
$as_echo_n "(cached) " >&6
15396
ac_check_lib_save_LIBS=$LIBS
15397
LIBS="-lsunmath $LIBS"
15398
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399
/* end confdefs.h. */
15401
/* Override any GCC internal prototype to avoid an error.
15402
Use char because int might match the return type of a GCC
15403
builtin and then its argument prototype would still apply. */
15408
#ifdef F77_DUMMY_MAIN
15410
# ifdef __cplusplus
15413
int F77_DUMMY_MAIN() { return 1; }
15424
if ac_fn_c_try_link "$LINENO"; then :
15425
ac_cv_lib_sunmath_acosp=yes
15427
ac_cv_lib_sunmath_acosp=no
15429
rm -f core conftest.err conftest.$ac_objext \
15430
conftest$ac_exeext conftest.$ac_ext
15431
LIBS=$ac_check_lib_save_LIBS
15433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5
15434
$as_echo "$ac_cv_lib_sunmath_acosp" >&6; }
15435
if test "x$ac_cv_lib_sunmath_acosp" = xyes; then :
15436
as_ac_Lib=`$as_echo "ac_cv_lib_sunperf_$sgemm" | $as_tr_sh`
15437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsunperf" >&5
15438
$as_echo_n "checking for $sgemm in -lsunperf... " >&6; }
15439
if eval \${$as_ac_Lib+:} false; then :
15440
$as_echo_n "(cached) " >&6
15442
ac_check_lib_save_LIBS=$LIBS
15443
LIBS="-lsunperf -lsunmath $LIBS"
15444
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445
/* end confdefs.h. */
15447
/* Override any GCC internal prototype to avoid an error.
15448
Use char because int might match the return type of a GCC
15449
builtin and then its argument prototype would still apply. */
15454
#ifdef F77_DUMMY_MAIN
15456
# ifdef __cplusplus
15459
int F77_DUMMY_MAIN() { return 1; }
15470
if ac_fn_c_try_link "$LINENO"; then :
15471
eval "$as_ac_Lib=yes"
15473
eval "$as_ac_Lib=no"
15475
rm -f core conftest.err conftest.$ac_objext \
15476
conftest$ac_exeext conftest.$ac_ext
15477
LIBS=$ac_check_lib_save_LIBS
15479
eval ac_res=\$$as_ac_Lib
15480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15481
$as_echo "$ac_res" >&6; }
15482
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15483
BLAS_LIBS="-xlic_lib=sunperf -lsunmath"
15492
# BLAS in SCSL library? (SGI/Cray Scientific Library)
15493
if test $ax_blas_ok = no; then
15494
as_ac_Lib=`$as_echo "ac_cv_lib_scs_$sgemm" | $as_tr_sh`
15495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lscs" >&5
15496
$as_echo_n "checking for $sgemm in -lscs... " >&6; }
15497
if eval \${$as_ac_Lib+:} false; then :
15498
$as_echo_n "(cached) " >&6
15500
ac_check_lib_save_LIBS=$LIBS
15502
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15503
/* end confdefs.h. */
15505
/* Override any GCC internal prototype to avoid an error.
15506
Use char because int might match the return type of a GCC
15507
builtin and then its argument prototype would still apply. */
15512
#ifdef F77_DUMMY_MAIN
15514
# ifdef __cplusplus
15517
int F77_DUMMY_MAIN() { return 1; }
15528
if ac_fn_c_try_link "$LINENO"; then :
15529
eval "$as_ac_Lib=yes"
15531
eval "$as_ac_Lib=no"
15533
rm -f core conftest.err conftest.$ac_objext \
15534
conftest$ac_exeext conftest.$ac_ext
15535
LIBS=$ac_check_lib_save_LIBS
15537
eval ac_res=\$$as_ac_Lib
15538
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15539
$as_echo "$ac_res" >&6; }
15540
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15541
ax_blas_ok=yes; BLAS_LIBS="-lscs"
15546
# BLAS in SGIMATH library?
15547
if test $ax_blas_ok = no; then
15548
as_ac_Lib=`$as_echo "ac_cv_lib_complib.sgimath_$sgemm" | $as_tr_sh`
15549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lcomplib.sgimath" >&5
15550
$as_echo_n "checking for $sgemm in -lcomplib.sgimath... " >&6; }
15551
if eval \${$as_ac_Lib+:} false; then :
15552
$as_echo_n "(cached) " >&6
15554
ac_check_lib_save_LIBS=$LIBS
15555
LIBS="-lcomplib.sgimath $LIBS"
15556
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15557
/* end confdefs.h. */
15559
/* Override any GCC internal prototype to avoid an error.
15560
Use char because int might match the return type of a GCC
15561
builtin and then its argument prototype would still apply. */
15566
#ifdef F77_DUMMY_MAIN
15568
# ifdef __cplusplus
15571
int F77_DUMMY_MAIN() { return 1; }
15582
if ac_fn_c_try_link "$LINENO"; then :
15583
eval "$as_ac_Lib=yes"
15585
eval "$as_ac_Lib=no"
15587
rm -f core conftest.err conftest.$ac_objext \
15588
conftest$ac_exeext conftest.$ac_ext
15589
LIBS=$ac_check_lib_save_LIBS
15591
eval ac_res=\$$as_ac_Lib
15592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15593
$as_echo "$ac_res" >&6; }
15594
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15595
ax_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath"
15600
# BLAS in IBM ESSL library? (requires generic BLAS lib, too)
15601
if test $ax_blas_ok = no; then
15602
as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
15603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
15604
$as_echo_n "checking for $sgemm in -lblas... " >&6; }
15605
if eval \${$as_ac_Lib+:} false; then :
15606
$as_echo_n "(cached) " >&6
15608
ac_check_lib_save_LIBS=$LIBS
15609
LIBS="-lblas $LIBS"
15610
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611
/* end confdefs.h. */
15613
/* Override any GCC internal prototype to avoid an error.
15614
Use char because int might match the return type of a GCC
15615
builtin and then its argument prototype would still apply. */
15620
#ifdef F77_DUMMY_MAIN
15622
# ifdef __cplusplus
15625
int F77_DUMMY_MAIN() { return 1; }
15636
if ac_fn_c_try_link "$LINENO"; then :
15637
eval "$as_ac_Lib=yes"
15639
eval "$as_ac_Lib=no"
15641
rm -f core conftest.err conftest.$ac_objext \
15642
conftest$ac_exeext conftest.$ac_ext
15643
LIBS=$ac_check_lib_save_LIBS
15645
eval ac_res=\$$as_ac_Lib
15646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15647
$as_echo "$ac_res" >&6; }
15648
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15649
as_ac_Lib=`$as_echo "ac_cv_lib_essl_$sgemm" | $as_tr_sh`
15650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lessl" >&5
15651
$as_echo_n "checking for $sgemm in -lessl... " >&6; }
15652
if eval \${$as_ac_Lib+:} false; then :
15653
$as_echo_n "(cached) " >&6
15655
ac_check_lib_save_LIBS=$LIBS
15656
LIBS="-lessl -lblas $FLIBS $LIBS"
15657
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658
/* end confdefs.h. */
15660
/* Override any GCC internal prototype to avoid an error.
15661
Use char because int might match the return type of a GCC
15662
builtin and then its argument prototype would still apply. */
15667
#ifdef F77_DUMMY_MAIN
15669
# ifdef __cplusplus
15672
int F77_DUMMY_MAIN() { return 1; }
15683
if ac_fn_c_try_link "$LINENO"; then :
15684
eval "$as_ac_Lib=yes"
15686
eval "$as_ac_Lib=no"
15688
rm -f core conftest.err conftest.$ac_objext \
15689
conftest$ac_exeext conftest.$ac_ext
15690
LIBS=$ac_check_lib_save_LIBS
15692
eval ac_res=\$$as_ac_Lib
15693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15694
$as_echo "$ac_res" >&6; }
15695
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15696
ax_blas_ok=yes; BLAS_LIBS="-lessl -lblas"
15703
# Generic BLAS library?
15704
if test $ax_blas_ok = no; then
15705
as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
15706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
15707
$as_echo_n "checking for $sgemm in -lblas... " >&6; }
15708
if eval \${$as_ac_Lib+:} false; then :
15709
$as_echo_n "(cached) " >&6
15711
ac_check_lib_save_LIBS=$LIBS
15712
LIBS="-lblas $LIBS"
15713
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15714
/* end confdefs.h. */
15716
/* Override any GCC internal prototype to avoid an error.
15717
Use char because int might match the return type of a GCC
15718
builtin and then its argument prototype would still apply. */
15723
#ifdef F77_DUMMY_MAIN
15725
# ifdef __cplusplus
15728
int F77_DUMMY_MAIN() { return 1; }
15739
if ac_fn_c_try_link "$LINENO"; then :
15740
eval "$as_ac_Lib=yes"
15742
eval "$as_ac_Lib=no"
15744
rm -f core conftest.err conftest.$ac_objext \
15745
conftest$ac_exeext conftest.$ac_ext
15746
LIBS=$ac_check_lib_save_LIBS
15748
eval ac_res=\$$as_ac_Lib
15749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15750
$as_echo "$ac_res" >&6; }
15751
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15752
ax_blas_ok=yes; BLAS_LIBS="-lblas"
15759
LIBS="$ax_blas_save_LIBS"
15761
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15762
if test x"$ax_blas_ok" = xyes; then
15764
$as_echo "@%:@define HAVE_BLAS 1" >>confdefs.h
15772
if test x"$BLAS_LIBS" = x; then
15773
as_fn_error $? "Cannot find blas libraries" "$LINENO" 5
15782
@%:@ Check whether --with-lapack was given.
15783
if test "${with_lapack+set}" = set; then :
15784
withval=$with_lapack;
15787
case $with_lapack in
15789
no) ax_lapack_ok=disable ;;
15790
-* | */* | *.a | *.so | *.so.* | *.o) LAPACK_LIBS="$with_lapack" ;;
15791
*) LAPACK_LIBS="-l$with_lapack" ;;
15794
# Get fortran linker name of LAPACK function to check for.
15796
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15797
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15798
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15799
case $ac_cv_f77_mangling in
15800
upper*) ac_val="CHEEV" ;;
15801
lower*) ac_val="cheev" ;;
15802
*) ac_val="unknown" ;;
15804
case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
15809
ac_cpp='$CPP $CPPFLAGS'
15810
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15811
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15812
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15815
# We cannot use LAPACK if BLAS is not found
15816
if test "x$ax_blas_ok" != xyes; then
15817
ax_lapack_ok=noblas
15821
# First, check LAPACK_LIBS environment variable
15822
if test "x$LAPACK_LIBS" != x; then
15823
save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS"
15824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in $LAPACK_LIBS" >&5
15825
$as_echo_n "checking for $cheev in $LAPACK_LIBS... " >&6; }
15826
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827
/* end confdefs.h. */
15829
/* Override any GCC internal prototype to avoid an error.
15830
Use char because int might match the return type of a GCC
15831
builtin and then its argument prototype would still apply. */
15836
#ifdef F77_DUMMY_MAIN
15838
# ifdef __cplusplus
15841
int F77_DUMMY_MAIN() { return 1; }
15852
if ac_fn_c_try_link "$LINENO"; then :
15857
rm -f core conftest.err conftest.$ac_objext \
15858
conftest$ac_exeext conftest.$ac_ext
15859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_lapack_ok" >&5
15860
$as_echo "$ax_lapack_ok" >&6; }
15862
if test $ax_lapack_ok = no; then
15867
# LAPACK linked to by default? (is sometimes included in BLAS lib)
15868
if test $ax_lapack_ok = no; then
15869
save_LIBS="$LIBS"; LIBS="$LIBS $BLAS_LIBS $FLIBS"
15870
as_ac_var=`$as_echo "ac_cv_func_$cheev" | $as_tr_sh`
15871
ac_fn_c_check_func "$LINENO" "$cheev" "$as_ac_var"
15872
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15879
# Generic LAPACK library?
15880
for lapack in lapack lapack_rs6k; do
15881
if test $ax_lapack_ok = no; then
15882
save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS"
15883
as_ac_Lib=`$as_echo "ac_cv_lib_$lapack''_$cheev" | $as_tr_sh`
15884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in -l$lapack" >&5
15885
$as_echo_n "checking for $cheev in -l$lapack... " >&6; }
15886
if eval \${$as_ac_Lib+:} false; then :
15887
$as_echo_n "(cached) " >&6
15889
ac_check_lib_save_LIBS=$LIBS
15890
LIBS="-l$lapack $FLIBS $LIBS"
15891
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892
/* end confdefs.h. */
15894
/* Override any GCC internal prototype to avoid an error.
15895
Use char because int might match the return type of a GCC
15896
builtin and then its argument prototype would still apply. */
15901
#ifdef F77_DUMMY_MAIN
15903
# ifdef __cplusplus
15906
int F77_DUMMY_MAIN() { return 1; }
15917
if ac_fn_c_try_link "$LINENO"; then :
15918
eval "$as_ac_Lib=yes"
15920
eval "$as_ac_Lib=no"
15922
rm -f core conftest.err conftest.$ac_objext \
15923
conftest$ac_exeext conftest.$ac_ext
15924
LIBS=$ac_check_lib_save_LIBS
15926
eval ac_res=\$$as_ac_Lib
15927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15928
$as_echo "$ac_res" >&6; }
15929
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15930
ax_lapack_ok=yes; LAPACK_LIBS="-l$lapack"
15939
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15940
if test x"$ax_lapack_ok" = xyes; then
15942
$as_echo "@%:@define HAVE_LAPACK 1" >>confdefs.h
15950
if test x"$LAPACK_LIBS" = x; then
15951
as_fn_error $? "Cannot find LAPACK libraries" "$LINENO" 5
15954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI mode" >&5
15955
$as_echo_n "checking for MPI mode... " >&6; }
15956
@%:@ Check whether --enable-mpi was given.
15957
if test "${enable_mpi+set}" = set; then :
15958
enableval=$enable_mpi; enable_mpi=$enableval
15963
if test x"$enable_mpi" != x"no"; then
15965
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15966
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15967
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15974
for ac_prog in mpif77 hf77 mpxlf_r mpxlf mpf77 cmpifc
15976
# Extract the first word of "$ac_prog", so it can be a program name with args.
15977
set dummy $ac_prog; ac_word=$2
15978
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15979
$as_echo_n "checking for $ac_word... " >&6; }
15980
if ${ac_cv_prog_MPIF77+:} false; then :
15981
$as_echo_n "(cached) " >&6
15983
if test -n "$MPIF77"; then
15984
ac_cv_prog_MPIF77="$MPIF77" # Let the user override the test.
15986
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15987
for as_dir in $PATH
15990
test -z "$as_dir" && as_dir=.
15991
for ac_exec_ext in '' $ac_executable_extensions; do
15992
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15993
ac_cv_prog_MPIF77="$ac_prog"
15994
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16003
MPIF77=$ac_cv_prog_MPIF77
16004
if test -n "$MPIF77"; then
16005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIF77" >&5
16006
$as_echo "$MPIF77" >&6; }
16008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16009
$as_echo "no" >&6; }
16013
test -n "$MPIF77" && break
16015
test -n "$MPIF77" || MPIF77="$F77"
16017
ax_mpi_save_F77="$F77"
16022
if test x = x"$MPILIBS"; then
16023
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
16024
$as_echo_n "checking for MPI_Init... " >&6; }
16025
cat > conftest.$ac_ext <<_ACEOF
16030
if ac_fn_f77_try_link "$LINENO"; then :
16032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16033
$as_echo "yes" >&6; }
16035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16036
$as_echo "no" >&6; }
16038
rm -f core conftest.err conftest.$ac_objext \
16039
conftest$ac_exeext conftest.$ac_ext
16042
if test x = x"$MPILIBS"; then
16043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
16044
$as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
16045
if ${ac_cv_lib_fmpi_MPI_Init+:} false; then :
16046
$as_echo_n "(cached) " >&6
16048
ac_check_lib_save_LIBS=$LIBS
16049
LIBS="-lfmpi $LIBS"
16050
cat > conftest.$ac_ext <<_ACEOF
16055
if ac_fn_f77_try_link "$LINENO"; then :
16056
ac_cv_lib_fmpi_MPI_Init=yes
16058
ac_cv_lib_fmpi_MPI_Init=no
16060
rm -f core conftest.err conftest.$ac_objext \
16061
conftest$ac_exeext conftest.$ac_ext
16062
LIBS=$ac_check_lib_save_LIBS
16064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
16065
$as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
16066
if test "x$ac_cv_lib_fmpi_MPI_Init" = xyes; then :
16071
if test x = x"$MPILIBS"; then
16072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpich" >&5
16073
$as_echo_n "checking for MPI_Init in -lfmpich... " >&6; }
16074
if ${ac_cv_lib_fmpich_MPI_Init+:} false; then :
16075
$as_echo_n "(cached) " >&6
16077
ac_check_lib_save_LIBS=$LIBS
16078
LIBS="-lfmpich $LIBS"
16079
cat > conftest.$ac_ext <<_ACEOF
16084
if ac_fn_f77_try_link "$LINENO"; then :
16085
ac_cv_lib_fmpich_MPI_Init=yes
16087
ac_cv_lib_fmpich_MPI_Init=no
16089
rm -f core conftest.err conftest.$ac_objext \
16090
conftest$ac_exeext conftest.$ac_ext
16091
LIBS=$ac_check_lib_save_LIBS
16093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpich_MPI_Init" >&5
16094
$as_echo "$ac_cv_lib_fmpich_MPI_Init" >&6; }
16095
if test "x$ac_cv_lib_fmpich_MPI_Init" = xyes; then :
16101
if test x = x"$MPILIBS"; then
16102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
16103
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
16104
if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
16105
$as_echo_n "(cached) " >&6
16107
ac_check_lib_save_LIBS=$LIBS
16109
cat > conftest.$ac_ext <<_ACEOF
16114
if ac_fn_f77_try_link "$LINENO"; then :
16115
ac_cv_lib_mpi_MPI_Init=yes
16117
ac_cv_lib_mpi_MPI_Init=no
16119
rm -f core conftest.err conftest.$ac_objext \
16120
conftest$ac_exeext conftest.$ac_ext
16121
LIBS=$ac_check_lib_save_LIBS
16123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
16124
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
16125
if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
16130
if test x = x"$MPILIBS"; then
16131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
16132
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
16133
if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
16134
$as_echo_n "(cached) " >&6
16136
ac_check_lib_save_LIBS=$LIBS
16137
LIBS="-lmpich $LIBS"
16138
cat > conftest.$ac_ext <<_ACEOF
16143
if ac_fn_f77_try_link "$LINENO"; then :
16144
ac_cv_lib_mpich_MPI_Init=yes
16146
ac_cv_lib_mpich_MPI_Init=no
16148
rm -f core conftest.err conftest.$ac_objext \
16149
conftest$ac_exeext conftest.$ac_ext
16150
LIBS=$ac_check_lib_save_LIBS
16152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
16153
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
16154
if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
16160
if test x != x"$MPILIBS"; then
16161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
16162
$as_echo_n "checking for mpif.h... " >&6; }
16163
cat > conftest.$ac_ext <<_ACEOF
16168
if ac_fn_f77_try_compile "$LINENO"; then :
16169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16170
$as_echo "yes" >&6; }
16173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16174
$as_echo "no" >&6; }
16176
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16179
F77="$ax_mpi_save_F77"
16183
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16184
if test x = x"$MPILIBS"; then
16185
as_fn_error $? "could not compile a MPI test program" "$LINENO" 5
16189
$as_echo "@%:@define HAVE_MPI 1" >>confdefs.h
16195
ac_cpp='$CPP $CPPFLAGS'
16196
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16197
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16198
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16202
if test x"$enable_mpi" = x"yes"; then
16209
ac_config_files="$ac_config_files Makefile SRC/Makefile UTIL/Makefile PARPACK/Makefile PARPACK/SRC/Makefile PARPACK/SRC/MPI/Makefile PARPACK/UTIL/Makefile PARPACK/UTIL/MPI/Makefile"
16211
cat >confcache <<\_ACEOF
16212
# This file is a shell script that caches the results of configure
16213
# tests run on this system so they can be shared between configure
16214
# scripts and configure runs, see configure's option --config-cache.
16215
# It is not useful on other systems. If it contains results you don't
16216
# want to keep, you may remove or edit it.
16218
# config.status only pays attention to the cache file if you give it
16219
# the --recheck option to rerun configure.
16221
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16222
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16223
# following values.
16227
# The following way of writing the cache mishandles newlines in values,
16228
# but we know of no workaround that is simple, portable, and efficient.
16229
# So, we kill variables containing newlines.
16230
# Ultrix sh set writes to stderr and can't be redirected directly,
16231
# and sets the high bit in the cache file unless we assign to the vars.
16233
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16234
eval ac_val=\$$ac_var
16238
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16239
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16242
_ | IFS | as_nl) ;; #(
16243
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16244
*) { eval $ac_var=; unset $ac_var;} ;;
16250
case $as_nl`(ac_space=' '; set) 2>&1` in #(
16251
*${as_nl}ac_space=\ *)
16252
# `set' does not quote correctly, so add quotes: double-quote
16253
# substitution turns \\\\ into \\, and sed turns \\ into \.
16256
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16259
# `set' quotes correctly as required by POSIX, so do not add quotes.
16260
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16269
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16271
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16273
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16274
if test -w "$cache_file"; then
16275
if test "x$cache_file" != "x/dev/null"; then
16276
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16277
$as_echo "$as_me: updating cache $cache_file" >&6;}
16278
if test ! -f "$cache_file" || test -h "$cache_file"; then
16279
cat confcache >"$cache_file"
16281
case $cache_file in #(
16283
mv -f confcache "$cache_file"$$ &&
16284
mv -f "$cache_file"$$ "$cache_file" ;; #(
16286
mv -f confcache "$cache_file" ;;
16291
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16292
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16297
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16298
# Let make expand exec_prefix.
16299
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16301
# Transform confdefs.h into DEFS.
16302
# Protect against shell expansion while executing Makefile rules.
16303
# Protect against Makefile macro expansion.
16305
# If the first sed substitution is executed (which looks for macros that
16306
# take arguments), then branch to the quote section. Otherwise,
16307
# look for a macro that doesn't take arguments.
16317
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16319
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16323
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16336
DEFS=`sed -n "$ac_script" confdefs.h`
16342
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
16343
# 1. Remove the extension, and $U if already installed.
16344
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16345
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16346
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16347
# will be set to the directory where LIBOBJS objects are built.
16348
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16349
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16351
LIB@&t@OBJS=$ac_libobjs
16353
LTLIBOBJS=$ac_ltlibobjs
16356
if test -n "$EXEEXT"; then
16358
am__EXEEXT_FALSE='#'
16360
am__EXEEXT_TRUE='#'
16364
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16365
as_fn_error $? "conditional \"AMDEP\" was never defined.
16366
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16368
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16369
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16370
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16373
: "${CONFIG_STATUS=./config.status}"
16375
ac_clean_files_save=$ac_clean_files
16376
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16377
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16378
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16380
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16382
# Generated by $as_me.
16383
# Run this file to recreate the current configuration.
16384
# Compiler output produced by configure, useful for debugging
16385
# configure, is in config.log if it exists.
16388
ac_cs_recheck=false
16391
SHELL=\${CONFIG_SHELL-$SHELL}
16394
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16395
## -------------------- ##
16396
## M4sh Initialization. ##
16397
## -------------------- ##
16399
# Be more Bourne compatible
16400
DUALCASE=1; export DUALCASE # for MKS sh
16401
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16404
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16405
# is contrary to our usage. Disable this feature.
16406
alias -g '${1+"$@"}'='"$@"'
16407
setopt NO_GLOB_SUBST
16409
case `(set -o) 2>/dev/null` in @%:@(
16411
set -o posix ;; @%:@(
16421
# Printing a long string crashes Solaris 7 /usr/bin/printf.
16422
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16423
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16424
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16425
# Prefer a ksh shell builtin over an external printf program on Solaris,
16426
# but without wasting forks for bash or zsh.
16427
if test -z "$BASH_VERSION$ZSH_VERSION" \
16428
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16429
as_echo='print -r --'
16430
as_echo_n='print -rn --'
16431
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16432
as_echo='printf %s\n'
16433
as_echo_n='printf %s'
16435
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16436
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16437
as_echo_n='/usr/ucb/echo -n'
16439
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16440
as_echo_n_body='eval
16444
expr "X$arg" : "X\\(.*\\)$as_nl";
16445
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16447
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16449
export as_echo_n_body
16450
as_echo_n='sh -c $as_echo_n_body as_echo'
16452
export as_echo_body
16453
as_echo='sh -c $as_echo_body as_echo'
16456
# The user is always right.
16457
if test "${PATH_SEPARATOR+set}" != set; then
16459
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16460
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16467
# We need space, tab and new line, in precisely that order. Quoting is
16468
# there to prevent editors from complaining about space-tab.
16469
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16470
# splitting by setting IFS to empty value.)
16473
# Find who we are. Look in the path if we contain no directory separator.
16476
*[\\/]* ) as_myself=$0 ;;
16477
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16478
for as_dir in $PATH
16481
test -z "$as_dir" && as_dir=.
16482
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16488
# We did not find ourselves, most probably we were run as `sh COMMAND'
16489
# in which case we are not to be found in the path.
16490
if test "x$as_myself" = x; then
16493
if test ! -f "$as_myself"; then
16494
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16498
# Unset variables that we do not need and which cause bugs (e.g. in
16499
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16500
# suppresses any "Segmentation fault" message there. '((' could
16501
# trigger a bug in pdksh 5.2.14.
16502
for as_var in BASH_ENV ENV MAIL MAILPATH
16503
do eval test x\${$as_var+set} = xset \
16504
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16517
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16520
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
16521
@%:@ ----------------------------------------
16522
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16523
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16524
@%:@ script with STATUS, using 1 if that was 0.
16527
as_status=$1; test $as_status -eq 0 && as_status=1
16529
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16530
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16532
$as_echo "$as_me: error: $2" >&2
16533
as_fn_exit $as_status
16537
@%:@ as_fn_set_status STATUS
16538
@%:@ -----------------------
16539
@%:@ Set @S|@? to STATUS, without forking.
16540
as_fn_set_status ()
16543
} @%:@ as_fn_set_status
16545
@%:@ as_fn_exit STATUS
16546
@%:@ -----------------
16547
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16551
as_fn_set_status $1
16555
@%:@ as_fn_unset VAR
16556
@%:@ ---------------
16557
@%:@ Portably unset VAR.
16560
{ eval $1=; unset $1;}
16562
as_unset=as_fn_unset
16563
@%:@ as_fn_append VAR VALUE
16564
@%:@ ----------------------
16565
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
16566
@%:@ advantage of any shell optimizations that allow amortized linear growth over
16567
@%:@ repeated appends, instead of the typical quadratic growth present in naive
16568
@%:@ implementations.
16569
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16570
eval 'as_fn_append ()
16581
@%:@ as_fn_arith ARG...
16582
@%:@ ------------------
16583
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
16584
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
16585
@%:@ must be portable across @S|@(()) and expr.
16586
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16587
eval 'as_fn_arith ()
16594
as_val=`expr "$@" || test $? -eq 1`
16599
if expr a : '\(a\)' >/dev/null 2>&1 &&
16600
test "X`expr 00001 : '.*\(...\)'`" = X001; then
16606
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16607
as_basename=basename
16612
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16618
as_me=`$as_basename -- "$0" ||
16619
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16620
X"$0" : 'X\(//\)$' \| \
16621
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16623
sed '/^.*\/\([^/][^/]*\)\/*$/{
16637
# Avoid depending upon Character Ranges.
16638
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16639
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16640
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16641
as_cr_digits='0123456789'
16642
as_cr_alnum=$as_cr_Letters$as_cr_digits
16644
ECHO_C= ECHO_N= ECHO_T=
16645
case `echo -n x` in @%:@(((((
16647
case `echo 'xy\c'` in
16648
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
16650
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16657
rm -f conf$$ conf$$.exe conf$$.file
16658
if test -d conf$$.dir; then
16659
rm -f conf$$.dir/conf$$.file
16662
mkdir conf$$.dir 2>/dev/null
16664
if (echo >conf$$.file) 2>/dev/null; then
16665
if ln -s conf$$.file conf$$ 2>/dev/null; then
16667
# ... but there are two gotchas:
16668
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16669
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16670
# In both cases, we have to default to `cp -p'.
16671
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16673
elif ln conf$$.file conf$$ 2>/dev/null; then
16681
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16682
rmdir conf$$.dir 2>/dev/null
16687
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
16692
-*) as_dir=./$as_dir;;
16694
test -d "$as_dir" || eval $as_mkdir_p || {
16698
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16699
*) as_qdir=$as_dir;;
16701
as_dirs="'$as_qdir' $as_dirs"
16702
as_dir=`$as_dirname -- "$as_dir" ||
16703
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16704
X"$as_dir" : 'X\(//\)[^/]' \| \
16705
X"$as_dir" : 'X\(//\)$' \| \
16706
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16707
$as_echo X"$as_dir" |
16708
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16712
/^X\(\/\/\)[^/].*/{
16725
test -d "$as_dir" && break
16727
test -z "$as_dirs" || eval "mkdir $as_dirs"
16728
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16731
} @%:@ as_fn_mkdir_p
16732
if mkdir -p . 2>/dev/null; then
16733
as_mkdir_p='mkdir -p "$as_dir"'
16735
test -d ./-p && rmdir ./-p
16739
if test -x / >/dev/null 2>&1; then
16740
as_test_x='test -x'
16742
if ls -dL / >/dev/null 2>&1; then
16749
if test -d "$1"; then
16755
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
16756
???[sx]*):;;*)false;;esac;fi
16760
as_executable_p=$as_test_x
16762
# Sed expression to map a string onto a valid CPP name.
16763
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16765
# Sed expression to map a string onto a valid variable name.
16766
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16770
## ----------------------------------- ##
16771
## Main body of $CONFIG_STATUS script. ##
16772
## ----------------------------------- ##
16774
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16776
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16777
# Save the log message, to keep $0 and so on meaningful, and to
16778
# report actual input values of CONFIG_FILES etc. instead of their
16779
# values after options handling.
16781
This file was extended by arpack $as_me 96, which was
16782
generated by GNU Autoconf 2.68. Invocation command line was
16784
CONFIG_FILES = $CONFIG_FILES
16785
CONFIG_HEADERS = $CONFIG_HEADERS
16786
CONFIG_LINKS = $CONFIG_LINKS
16787
CONFIG_COMMANDS = $CONFIG_COMMANDS
16790
on `(hostname || uname -n) 2>/dev/null | sed 1q`
16795
case $ac_config_files in *"
16796
"*) set x $ac_config_files; shift; ac_config_files=$*;;
16801
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16802
# Files that config.status was made for.
16803
config_files="$ac_config_files"
16804
config_commands="$ac_config_commands"
16808
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16810
\`$as_me' instantiates files and other configuration actions
16811
from templates according to the current configuration. Unless the files
16812
and actions are specified as TAGs, all are instantiated by default.
16814
Usage: $0 [OPTION]... [TAG]...
16816
-h, --help print this help, then exit
16817
-V, --version print version number and configuration settings, then exit
16818
--config print configuration, then exit
16819
-q, --quiet, --silent
16820
do not print progress messages
16821
-d, --debug don't remove temporary files
16822
--recheck update $as_me by reconfiguring in the same conditions
16823
--file=FILE[:TEMPLATE]
16824
instantiate the configuration file FILE
16826
Configuration files:
16829
Configuration commands:
16832
Report bugs to <arpack@caam.rice.edu>."
16835
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16836
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16838
arpack config.status 96
16839
configured by $0, generated by GNU Autoconf 2.68,
16840
with options \\"\$ac_cs_config\\"
16842
Copyright (C) 2010 Free Software Foundation, Inc.
16843
This config.status script is free software; the Free Software Foundation
16844
gives unlimited permission to copy, distribute and modify it."
16851
test -n "\$AWK" || AWK=awk
16854
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16855
# The default lists apply if the user does not specify any file.
16861
ac_option=`expr "X$1" : 'X\([^=]*\)='`
16862
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16866
ac_option=`expr "X$1" : 'X\([^=]*\)='`
16878
# Handling of the options.
16879
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16881
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16882
$as_echo "$ac_cs_version"; exit ;;
16883
--config | --confi | --conf | --con | --co | --c )
16884
$as_echo "$ac_cs_config"; exit ;;
16885
--debug | --debu | --deb | --de | --d | -d )
16887
--file | --fil | --fi | --f )
16890
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16891
'') as_fn_error $? "missing file argument" ;;
16893
as_fn_append CONFIG_FILES " '$ac_optarg'"
16894
ac_need_defaults=false;;
16895
--he | --h | --help | --hel | -h )
16896
$as_echo "$ac_cs_usage"; exit ;;
16897
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
16898
| -silent | --silent | --silen | --sile | --sil | --si | --s)
16901
# This is an error.
16902
-*) as_fn_error $? "unrecognized option: \`$1'
16903
Try \`$0 --help' for more information." ;;
16905
*) as_fn_append ac_config_targets " $1"
16906
ac_need_defaults=false ;;
16912
ac_configure_extra_args=
16914
if $ac_cs_silent; then
16916
ac_configure_extra_args="$ac_configure_extra_args --silent"
16920
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16921
if \$ac_cs_recheck; then
16922
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16924
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16925
CONFIG_SHELL='$SHELL'
16926
export CONFIG_SHELL
16931
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16935
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
16936
@%:@@%:@ Running $as_me. @%:@@%:@
16942
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16946
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16949
# The HP-UX ksh and POSIX shell print the target directory to stdout
16950
# if CDPATH is set.
16951
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16953
sed_quote_subst='$sed_quote_subst'
16954
double_quote_subst='$double_quote_subst'
16955
delay_variable_subst='$delay_variable_subst'
16956
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16957
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16958
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16959
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16960
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16961
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16962
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16963
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16964
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16965
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16966
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16967
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16968
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16969
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16970
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16971
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16972
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16973
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16974
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16975
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16976
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16977
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16978
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16979
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16980
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16981
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16982
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16983
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16984
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16985
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16986
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16987
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16988
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16989
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16990
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16991
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16992
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16993
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16994
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16995
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16996
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16997
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16998
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16999
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17000
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17001
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17002
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17003
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17004
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17005
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17006
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17007
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17008
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17009
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17010
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17011
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"`'
17012
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17013
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17014
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17015
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17016
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17017
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17018
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17019
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17020
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17021
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17022
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17023
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17024
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17025
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17026
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17027
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17028
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17029
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17030
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17031
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17032
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17033
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17034
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17035
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17036
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17037
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17038
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17039
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17040
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17041
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17042
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17043
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17044
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17045
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17046
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17047
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17048
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17049
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17050
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17051
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17052
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17053
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17054
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17055
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17056
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17057
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17058
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17059
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17060
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17061
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17062
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17063
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17064
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17065
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17066
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17067
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17068
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17069
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17070
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17071
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17072
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17073
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17074
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17075
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17076
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17077
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17078
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17079
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17080
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17081
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17082
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17083
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17084
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17085
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17086
LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
17087
reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
17088
reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
17089
old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
17090
compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
17091
GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
17092
lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
17093
lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
17094
lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
17095
lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
17096
lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
17097
archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
17098
enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
17099
export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
17100
whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
17101
compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
17102
old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
17103
old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
17104
archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
17105
archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
17106
module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
17107
module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
17108
with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
17109
allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
17110
no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
17111
hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
17112
hardcode_libdir_flag_spec_ld_F77='`$ECHO "$hardcode_libdir_flag_spec_ld_F77" | $SED "$delay_single_quote_subst"`'
17113
hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
17114
hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
17115
hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
17116
hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
17117
hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
17118
hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
17119
inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
17120
link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
17121
always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
17122
export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
17123
exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
17124
include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
17125
prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
17126
postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
17127
file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
17128
hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
17131
LTCFLAGS='$LTCFLAGS'
17132
compiler='$compiler_DEFAULT'
17134
# A function that is used when there is no print builtin or printf.
17135
func_fallback_echo ()
17137
eval 'cat <<_LTECHO_EOF
17142
# Quote evaled strings.
17156
deplibs_check_method \
17161
sharedlib_from_linklib_cmd \
17164
archiver_list_spec \
17170
lt_cv_sys_global_symbol_pipe \
17171
lt_cv_sys_global_symbol_to_cdecl \
17172
lt_cv_sys_global_symbol_to_c_name_address \
17173
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17174
nm_file_list_spec \
17175
lt_prog_compiler_no_builtin_flag \
17176
lt_prog_compiler_pic \
17177
lt_prog_compiler_wl \
17178
lt_prog_compiler_static \
17179
lt_cv_prog_compiler_c_o \
17188
export_dynamic_flag_spec \
17189
whole_archive_flag_spec \
17190
compiler_needs_object \
17192
allow_undefined_flag \
17193
no_undefined_flag \
17194
hardcode_libdir_flag_spec \
17195
hardcode_libdir_flag_spec_ld \
17196
hardcode_libdir_separator \
17200
variables_saved_for_relink \
17202
library_names_spec \
17204
install_override_mode \
17211
lt_prog_compiler_no_builtin_flag_F77 \
17212
lt_prog_compiler_pic_F77 \
17213
lt_prog_compiler_wl_F77 \
17214
lt_prog_compiler_static_F77 \
17215
lt_cv_prog_compiler_c_o_F77 \
17216
export_dynamic_flag_spec_F77 \
17217
whole_archive_flag_spec_F77 \
17218
compiler_needs_object_F77 \
17220
allow_undefined_flag_F77 \
17221
no_undefined_flag_F77 \
17222
hardcode_libdir_flag_spec_F77 \
17223
hardcode_libdir_flag_spec_ld_F77 \
17224
hardcode_libdir_separator_F77 \
17225
exclude_expsyms_F77 \
17226
include_expsyms_F77 \
17227
file_list_spec_F77; do
17228
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17229
*[\\\\\\\`\\"\\\$]*)
17230
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17233
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17238
# Double-quote double-evaled strings.
17239
for var in reload_cmds \
17240
old_postinstall_cmds \
17241
old_postuninstall_cmds \
17243
extract_expsyms_cmds \
17244
old_archive_from_new_cmds \
17245
old_archive_from_expsyms_cmds \
17247
archive_expsym_cmds \
17249
module_expsym_cmds \
17250
export_symbols_cmds \
17254
postuninstall_cmds \
17256
sys_lib_search_path_spec \
17257
sys_lib_dlsearch_path_spec \
17259
old_archive_cmds_F77 \
17260
old_archive_from_new_cmds_F77 \
17261
old_archive_from_expsyms_cmds_F77 \
17263
archive_expsym_cmds_F77 \
17265
module_expsym_cmds_F77 \
17266
export_symbols_cmds_F77 \
17268
postlink_cmds_F77; do
17269
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17270
*[\\\\\\\`\\"\\\$]*)
17271
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17274
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17279
ac_aux_dir='$ac_aux_dir'
17280
xsi_shell='$xsi_shell'
17281
lt_shell_append='$lt_shell_append'
17283
# See if we are running on zsh, and set the options which allow our
17284
# commands through without removal of \ escapes INIT.
17285
if test -n "\${ZSH_VERSION+set}" ; then
17286
setopt NO_GLOB_SUBST
17292
TIMESTAMP='$TIMESTAMP'
17303
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17305
# Handling of arguments.
17306
for ac_config_target in $ac_config_targets
17308
case $ac_config_target in
17309
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17310
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17311
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17312
"SRC/Makefile") CONFIG_FILES="$CONFIG_FILES SRC/Makefile" ;;
17313
"UTIL/Makefile") CONFIG_FILES="$CONFIG_FILES UTIL/Makefile" ;;
17314
"PARPACK/Makefile") CONFIG_FILES="$CONFIG_FILES PARPACK/Makefile" ;;
17315
"PARPACK/SRC/Makefile") CONFIG_FILES="$CONFIG_FILES PARPACK/SRC/Makefile" ;;
17316
"PARPACK/SRC/MPI/Makefile") CONFIG_FILES="$CONFIG_FILES PARPACK/SRC/MPI/Makefile" ;;
17317
"PARPACK/UTIL/Makefile") CONFIG_FILES="$CONFIG_FILES PARPACK/UTIL/Makefile" ;;
17318
"PARPACK/UTIL/MPI/Makefile") CONFIG_FILES="$CONFIG_FILES PARPACK/UTIL/MPI/Makefile" ;;
17320
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17325
# If the user did not use the arguments to specify the items to instantiate,
17326
# then the envvar interface is used. Set only those that are not.
17327
# We use the long form for the default assignment because of an extremely
17328
# bizarre bug on SunOS 4.1.3.
17329
if $ac_need_defaults; then
17330
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17331
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17334
# Have a temporary directory for convenience. Make it in the build tree
17335
# simply because there is no reason against having it here, and in addition,
17336
# creating and moving files from /tmp can sometimes cause problems.
17337
# Hook for its removal unless debugging.
17338
# Note that there is a small window in which the directory will not be cleaned:
17339
# after its creation but before its name has been assigned to `$tmp'.
17343
trap 'exit_status=$?
17344
: "${ac_tmp:=$tmp}"
17345
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17347
trap 'as_fn_exit 1' 1 2 13 15
17349
# Create a (secure) tmp directory for tmp files.
17352
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17356
tmp=./conf$$-$RANDOM
17357
(umask 077 && mkdir "$tmp")
17358
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17361
# Set up the scripts for CONFIG_FILES section.
17362
# No need to generate them if there are no CONFIG_FILES.
17363
# This happens for instance with `./config.status config.h'.
17364
if test -n "$CONFIG_FILES"; then
17367
ac_cr=`echo X | tr X '\015'`
17368
# On cygwin, bash can eat \r inside `` if the user requested igncr.
17369
# But we know of no other shell where ac_cr would be empty at this
17370
# point, so we can use a bashism as a fallback.
17371
if test "x$ac_cr" = x; then
17372
eval ac_cr=\$\'\\r\'
17374
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17375
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17378
ac_cs_awk_cr=$ac_cr
17381
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17386
echo "cat >conf$$subs.awk <<_ACEOF" &&
17387
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17389
} >conf$$subs.sh ||
17390
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17391
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17393
for ac_last_try in false false false false false :; do
17394
. ./conf$$subs.sh ||
17395
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17397
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17398
if test $ac_delim_n = $ac_delim_num; then
17400
elif $ac_last_try; then
17401
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17403
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17406
rm -f conf$$subs.sh
17408
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17409
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17413
s/^/S["/; s/!.*/"]=/
17423
s/\(.\{148\}\)..*/\1/
17425
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17430
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17437
s/\(.\{148\}\)..*/\1/
17439
s/["\\]/\\&/g; s/^/"/; s/$/"/
17443
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17448
' <conf$$subs.awk | sed '
17453
' >>$CONFIG_STATUS || ac_write_fail=1
17454
rm -f conf$$subs.awk
17455
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17457
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17458
for (key in S) S_is_set[key] = 1
17464
nfields = split(line, field, "@")
17466
len = length(field[1])
17467
for (i = 2; i < nfields; i++) {
17469
keylen = length(key)
17470
if (S_is_set[key]) {
17472
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17473
len += length(value) + length(field[++i])
17484
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17485
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17486
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17489
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17490
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17493
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17494
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17495
# trailing colons and then remove the whole line if VPATH becomes empty
17496
# (actually we leave an empty line to preserve line numbers).
17497
if test "x$srcdir" = x.; then
17498
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17516
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17517
fi # test -n "$CONFIG_FILES"
17520
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17525
:[FHLC]) ac_mode=$ac_tag; continue;;
17527
case $ac_mode$ac_tag in
17529
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17530
:[FH]-) ac_tag=-:-;;
17531
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17548
-) ac_f="$ac_tmp/stdin";;
17549
*) # Look for the file first in the build tree, then in the source tree
17550
# (if the path is not absolute). The absolute path cannot be DOS-style,
17551
# because $ac_f cannot contain `:'.
17555
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17557
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17559
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17560
as_fn_append ac_file_inputs " '$ac_f'"
17563
# Let's still pretend it is `configure' which instantiates (i.e., don't
17564
# use $as_me), people would be surprised to read:
17565
# /* config.h. Generated by config.status. */
17566
configure_input='Generated from '`
17567
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17569
if test x"$ac_file" != x-; then
17570
configure_input="$ac_file. $configure_input"
17571
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17572
$as_echo "$as_me: creating $ac_file" >&6;}
17574
# Neutralize special characters interpreted by sed in replacement strings.
17575
case $configure_input in #(
17576
*\&* | *\|* | *\\* )
17577
ac_sed_conf_input=`$as_echo "$configure_input" |
17578
sed 's/[\\\\&|]/\\\\&/g'`;; #(
17579
*) ac_sed_conf_input=$configure_input;;
17583
*:-:* | *:-) cat >"$ac_tmp/stdin" \
17584
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17589
ac_dir=`$as_dirname -- "$ac_file" ||
17590
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17591
X"$ac_file" : 'X\(//\)[^/]' \| \
17592
X"$ac_file" : 'X\(//\)$' \| \
17593
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17594
$as_echo X"$ac_file" |
17595
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17599
/^X\(\/\/\)[^/].*/{
17612
as_dir="$ac_dir"; as_fn_mkdir_p
17616
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17618
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17619
# A ".." for each directory in $ac_dir_suffix.
17620
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17621
case $ac_top_builddir_sub in
17622
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17623
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17626
ac_abs_top_builddir=$ac_pwd
17627
ac_abs_builddir=$ac_pwd$ac_dir_suffix
17628
# for backward compatibility:
17629
ac_top_builddir=$ac_top_build_prefix
17632
.) # We are building in place.
17634
ac_top_srcdir=$ac_top_builddir_sub
17635
ac_abs_top_srcdir=$ac_pwd ;;
17636
[\\/]* | ?:[\\/]* ) # Absolute name.
17637
ac_srcdir=$srcdir$ac_dir_suffix;
17638
ac_top_srcdir=$srcdir
17639
ac_abs_top_srcdir=$srcdir ;;
17640
*) # Relative name.
17641
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17642
ac_top_srcdir=$ac_top_build_prefix$srcdir
17643
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17645
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17655
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17656
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17658
ac_MKDIR_P=$MKDIR_P
17660
[\\/$]* | ?:[\\/]* ) ;;
17661
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17665
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17666
# If the template does not know about datarootdir, expand it.
17667
# FIXME: This hack should be removed a few years after 2.60.
17668
ac_datarootdir_hack=; ac_datarootdir_seen=
17679
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17680
*datarootdir*) ac_datarootdir_seen=yes;;
17681
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17682
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17683
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17685
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17686
ac_datarootdir_hack='
17687
s&@datadir@&$datadir&g
17688
s&@docdir@&$docdir&g
17689
s&@infodir@&$infodir&g
17690
s&@localedir@&$localedir&g
17691
s&@mandir@&$mandir&g
17692
s&\\\${datarootdir}&$datarootdir&g' ;;
17696
# Neutralize VPATH when `$srcdir' = `.'.
17697
# Shell code in configure.ac might set extrasub.
17698
# FIXME: do we really want to maintain this feature?
17699
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17700
ac_sed_extra="$ac_vpsub
17703
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17705
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17706
s|@configure_input@|$ac_sed_conf_input|;t t
17707
s&@top_builddir@&$ac_top_builddir_sub&;t t
17708
s&@top_build_prefix@&$ac_top_build_prefix&;t t
17709
s&@srcdir@&$ac_srcdir&;t t
17710
s&@abs_srcdir@&$ac_abs_srcdir&;t t
17711
s&@top_srcdir@&$ac_top_srcdir&;t t
17712
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17713
s&@builddir@&$ac_builddir&;t t
17714
s&@abs_builddir@&$ac_abs_builddir&;t t
17715
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17716
s&@INSTALL@&$ac_INSTALL&;t t
17717
s&@MKDIR_P@&$ac_MKDIR_P&;t t
17718
$ac_datarootdir_hack
17720
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17721
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17723
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17724
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17725
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17726
"$ac_tmp/out"`; test -z "$ac_out"; } &&
17727
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17728
which seems to be undefined. Please make sure it is defined" >&5
17729
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17730
which seems to be undefined. Please make sure it is defined" >&2;}
17732
rm -f "$ac_tmp/stdin"
17734
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17735
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17737
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17741
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17742
$as_echo "$as_me: executing $ac_file commands" >&6;}
17747
case $ac_file$ac_mode in
17748
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17749
# Autoconf 2.62 quotes --file arguments for eval, but not when files
17750
# are listed without --file. Let's play safe and only enable the eval
17751
# if we detect the quoting.
17752
case $CONFIG_FILES in
17753
*\'*) eval set x "$CONFIG_FILES" ;;
17754
*) set x $CONFIG_FILES ;;
17759
# Strip MF so we end up with the name of the file.
17760
mf=`echo "$mf" | sed -e 's/:.*$//'`
17761
# Check whether this is an Automake generated Makefile or not.
17762
# We used to match only the files named `Makefile.in', but
17763
# some people rename them; so instead we look at the file content.
17764
# Grep'ing the first line is not enough: some people post-process
17765
# each Makefile.in and add a new line on top of each file to say so.
17766
# Grep'ing the whole file is not good either: AIX grep has a line
17767
# limit of 2048, but all sed's we know have understand at least 4000.
17768
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17769
dirpart=`$as_dirname -- "$mf" ||
17770
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17771
X"$mf" : 'X\(//\)[^/]' \| \
17772
X"$mf" : 'X\(//\)$' \| \
17773
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17775
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17779
/^X\(\/\/\)[^/].*/{
17795
# Extract the definition of DEPDIR, am__include, and am__quote
17796
# from the Makefile without running `make'.
17797
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17798
test -z "$DEPDIR" && continue
17799
am__include=`sed -n 's/^am__include = //p' < "$mf"`
17800
test -z "am__include" && continue
17801
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17802
# When using ansi2knr, U may be empty or an underscore; expand it
17803
U=`sed -n 's/^U = //p' < "$mf"`
17804
# Find all dependency output files, they are included files with
17805
# $(DEPDIR) in their names. We invoke sed twice because it is the
17806
# simplest approach to changing $(DEPDIR) to its actual value in the
17808
for file in `sed -n "
17809
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17810
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17811
# Make sure the directory exists.
17812
test -f "$dirpart/$file" && continue
17813
fdir=`$as_dirname -- "$file" ||
17814
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17815
X"$file" : 'X\(//\)[^/]' \| \
17816
X"$file" : 'X\(//\)$' \| \
17817
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17818
$as_echo X"$file" |
17819
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17823
/^X\(\/\/\)[^/].*/{
17836
as_dir=$dirpart/$fdir; as_fn_mkdir_p
17837
# echo "creating $dirpart/$file"
17838
echo '# dummy' > "$dirpart/$file"
17845
# See if we are running on zsh, and set the options which allow our
17846
# commands through without removal of \ escapes.
17847
if test -n "${ZSH_VERSION+set}" ; then
17848
setopt NO_GLOB_SUBST
17851
cfgfile="${ofile}T"
17852
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17855
cat <<_LT_EOF >> "$cfgfile"
17858
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17859
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17860
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17861
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17863
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17864
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17866
# Written by Gordon Matzigkeit, 1996
17868
# This file is part of GNU Libtool.
17870
# GNU Libtool is free software; you can redistribute it and/or
17871
# modify it under the terms of the GNU General Public License as
17872
# published by the Free Software Foundation; either version 2 of
17873
# the License, or (at your option) any later version.
17875
# As a special exception to the GNU General Public License,
17876
# if you distribute this file as part of a program or library that
17877
# is built using GNU Libtool, you may include this file under the
17878
# same distribution terms that you use for the rest of that program.
17880
# GNU Libtool is distributed in the hope that it will be useful,
17881
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17882
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17883
# GNU General Public License for more details.
17885
# You should have received a copy of the GNU General Public License
17886
# along with GNU Libtool; see the file COPYING. If not, a copy
17887
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17888
# obtained by writing to the Free Software Foundation, Inc.,
17889
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17892
# The names of the tagged configurations supported by this script.
17893
available_tags="F77 "
17895
# ### BEGIN LIBTOOL CONFIG
17897
# Which release of libtool.m4 was used?
17898
macro_version=$macro_version
17899
macro_revision=$macro_revision
17901
# Whether or not to build shared libraries.
17902
build_libtool_libs=$enable_shared
17904
# Whether or not to build static libraries.
17905
build_old_libs=$enable_static
17907
# What type of objects to build.
17910
# Whether or not to optimize for fast installation.
17911
fast_install=$enable_fast_install
17913
# Shell to use when invoking shell scripts.
17916
# An echo program that protects backslashes.
17920
host_alias=$host_alias
17924
# The build system.
17925
build_alias=$build_alias
17929
# A sed program that does not truncate output.
17932
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17933
Xsed="\$SED -e 1s/^X//"
17935
# A grep program that handles long lines.
17941
# A literal string matcher.
17944
# A BSD- or MS-compatible name lister.
17947
# Whether we need soft or hard links.
17950
# What is the maximum length of a command?
17951
max_cmd_len=$max_cmd_len
17953
# Object file suffix (normally "o").
17956
# Executable file suffix (normally "").
17959
# whether the shell understands "unset".
17962
# turn spaces into newlines.
17965
# turn newlines into spaces.
17968
# convert \$build file names to \$host format.
17969
to_host_file_cmd=$lt_cv_to_host_file_cmd
17971
# convert \$build files to toolchain format.
17972
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17974
# An object symbol dumper.
17975
OBJDUMP=$lt_OBJDUMP
17977
# Method to check whether dependent libraries are shared objects.
17978
deplibs_check_method=$lt_deplibs_check_method
17980
# Command to use when deplibs_check_method = "file_magic".
17981
file_magic_cmd=$lt_file_magic_cmd
17983
# How to find potential files when deplibs_check_method = "file_magic".
17984
file_magic_glob=$lt_file_magic_glob
17986
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17987
want_nocaseglob=$lt_want_nocaseglob
17989
# DLL creation program.
17990
DLLTOOL=$lt_DLLTOOL
17992
# Command to associate shared and link libraries.
17993
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17998
# Flags to create an archive.
17999
AR_FLAGS=$lt_AR_FLAGS
18001
# How to feed a file listing to the archiver.
18002
archiver_list_spec=$lt_archiver_list_spec
18004
# A symbol stripping program.
18007
# Commands used to install an old-style archive.
18009
old_postinstall_cmds=$lt_old_postinstall_cmds
18010
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18012
# Whether to use a lock for old archive extraction.
18013
lock_old_archive_extraction=$lock_old_archive_extraction
18018
# LTCC compiler flags.
18019
LTCFLAGS=$lt_CFLAGS
18021
# Take the output of nm and produce a listing of raw symbols and C names.
18022
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18024
# Transform the output of nm in a proper C declaration.
18025
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18027
# Transform the output of nm in a C name address pair.
18028
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18030
# Transform the output of nm in a C name address pair when lib prefix is needed.
18031
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18033
# Specify filename containing input files for \$NM.
18034
nm_file_list_spec=$lt_nm_file_list_spec
18036
# The root where to search for dependent libraries,and in which our libraries should be installed.
18037
lt_sysroot=$lt_sysroot
18039
# The name of the directory that contains temporary libtool files.
18042
# Used to examine libraries when file_magic_cmd begins with "file".
18043
MAGIC_CMD=$MAGIC_CMD
18045
# Must we lock files when doing compilation?
18046
need_locks=$lt_need_locks
18049
MANIFEST_TOOL=$lt_MANIFEST_TOOL
18051
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18052
DSYMUTIL=$lt_DSYMUTIL
18054
# Tool to change global to local symbols on Mac OS X.
18057
# Tool to manipulate fat objects and archives on Mac OS X.
18060
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18063
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18064
OTOOL64=$lt_OTOOL64
18066
# Old archive suffix (normally "a").
18069
# Shared library suffix (normally ".so").
18070
shrext_cmds=$lt_shrext_cmds
18072
# The commands to extract the exported symbol list from a shared archive.
18073
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18075
# Variables whose values should be saved in libtool wrapper scripts and
18076
# restored at link time.
18077
variables_saved_for_relink=$lt_variables_saved_for_relink
18079
# Do we need the "lib" prefix for modules?
18080
need_lib_prefix=$need_lib_prefix
18082
# Do we need a version for libraries?
18083
need_version=$need_version
18085
# Library versioning type.
18086
version_type=$version_type
18088
# Shared library runtime path variable.
18089
runpath_var=$runpath_var
18091
# Shared library path variable.
18092
shlibpath_var=$shlibpath_var
18094
# Is shlibpath searched before the hard-coded library search path?
18095
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18097
# Format of library name prefix.
18098
libname_spec=$lt_libname_spec
18100
# List of archive names. First name is the real one, the rest are links.
18101
# The last name is the one that the linker finds with -lNAME
18102
library_names_spec=$lt_library_names_spec
18104
# The coded name of the library, if different from the real name.
18105
soname_spec=$lt_soname_spec
18107
# Permission mode override for installation of shared libraries.
18108
install_override_mode=$lt_install_override_mode
18110
# Command to use after installation of a shared archive.
18111
postinstall_cmds=$lt_postinstall_cmds
18113
# Command to use after uninstallation of a shared archive.
18114
postuninstall_cmds=$lt_postuninstall_cmds
18116
# Commands used to finish a libtool library installation in a directory.
18117
finish_cmds=$lt_finish_cmds
18119
# As "finish_cmds", except a single script fragment to be evaled but
18121
finish_eval=$lt_finish_eval
18123
# Whether we should hardcode library paths into libraries.
18124
hardcode_into_libs=$hardcode_into_libs
18126
# Compile-time system search path for libraries.
18127
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18129
# Run-time system search path for libraries.
18130
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18132
# Whether dlopen is supported.
18133
dlopen_support=$enable_dlopen
18135
# Whether dlopen of programs is supported.
18136
dlopen_self=$enable_dlopen_self
18138
# Whether dlopen of statically linked programs is supported.
18139
dlopen_self_static=$enable_dlopen_self_static
18141
# Commands to strip libraries.
18142
old_striplib=$lt_old_striplib
18143
striplib=$lt_striplib
18146
# The linker used to build libraries.
18149
# How to create reloadable object files.
18150
reload_flag=$lt_reload_flag
18151
reload_cmds=$lt_reload_cmds
18153
# Commands used to build an old-style archive.
18154
old_archive_cmds=$lt_old_archive_cmds
18156
# A language specific compiler.
18159
# Is the compiler the GNU compiler?
18162
# Compiler flag to turn off builtin functions.
18163
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18165
# Additional compiler flags for building library objects.
18166
pic_flag=$lt_lt_prog_compiler_pic
18168
# How to pass a linker flag through the compiler.
18169
wl=$lt_lt_prog_compiler_wl
18171
# Compiler flag to prevent dynamic linking.
18172
link_static_flag=$lt_lt_prog_compiler_static
18174
# Does compiler simultaneously support -c and -o options?
18175
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18177
# Whether or not to add -lc for building shared libraries.
18178
build_libtool_need_lc=$archive_cmds_need_lc
18180
# Whether or not to disallow shared libs when runtime libs are static.
18181
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18183
# Compiler flag to allow reflexive dlopens.
18184
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18186
# Compiler flag to generate shared objects directly from archives.
18187
whole_archive_flag_spec=$lt_whole_archive_flag_spec
18189
# Whether the compiler copes with passing no objects directly.
18190
compiler_needs_object=$lt_compiler_needs_object
18192
# Create an old-style archive from a shared archive.
18193
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18195
# Create a temporary old-style archive to link instead of a shared archive.
18196
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18198
# Commands used to build a shared archive.
18199
archive_cmds=$lt_archive_cmds
18200
archive_expsym_cmds=$lt_archive_expsym_cmds
18202
# Commands used to build a loadable module if different from building
18203
# a shared archive.
18204
module_cmds=$lt_module_cmds
18205
module_expsym_cmds=$lt_module_expsym_cmds
18207
# Whether we are building with GNU ld or not.
18208
with_gnu_ld=$lt_with_gnu_ld
18210
# Flag that allows shared libraries with undefined symbols to be built.
18211
allow_undefined_flag=$lt_allow_undefined_flag
18213
# Flag that enforces no undefined symbols.
18214
no_undefined_flag=$lt_no_undefined_flag
18216
# Flag to hardcode \$libdir into a binary during linking.
18217
# This must work even if \$libdir does not exist
18218
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18220
# If ld is used when linking, flag to hardcode \$libdir into a binary
18221
# during linking. This must work even if \$libdir does not exist.
18222
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18224
# Whether we need a single "-rpath" flag with a separated argument.
18225
hardcode_libdir_separator=$lt_hardcode_libdir_separator
18227
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18228
# DIR into the resulting binary.
18229
hardcode_direct=$hardcode_direct
18231
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18232
# DIR into the resulting binary and the resulting library dependency is
18233
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18234
# library is relocated.
18235
hardcode_direct_absolute=$hardcode_direct_absolute
18237
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18238
# into the resulting binary.
18239
hardcode_minus_L=$hardcode_minus_L
18241
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18242
# into the resulting binary.
18243
hardcode_shlibpath_var=$hardcode_shlibpath_var
18245
# Set to "yes" if building a shared library automatically hardcodes DIR
18246
# into the library and all subsequent libraries and executables linked
18248
hardcode_automatic=$hardcode_automatic
18250
# Set to yes if linker adds runtime paths of dependent libraries
18251
# to runtime path list.
18252
inherit_rpath=$inherit_rpath
18254
# Whether libtool must link a program against all its dependency libraries.
18255
link_all_deplibs=$link_all_deplibs
18257
# Set to "yes" if exported symbols are required.
18258
always_export_symbols=$always_export_symbols
18260
# The commands to list exported symbols.
18261
export_symbols_cmds=$lt_export_symbols_cmds
18263
# Symbols that should not be listed in the preloaded symbols.
18264
exclude_expsyms=$lt_exclude_expsyms
18266
# Symbols that must always be exported.
18267
include_expsyms=$lt_include_expsyms
18269
# Commands necessary for linking programs (against libraries) with templates.
18270
prelink_cmds=$lt_prelink_cmds
18272
# Commands necessary for finishing linking programs.
18273
postlink_cmds=$lt_postlink_cmds
18275
# Specify filename containing input files.
18276
file_list_spec=$lt_file_list_spec
18278
# How to hardcode a shared library path into an executable.
18279
hardcode_action=$hardcode_action
18281
# ### END LIBTOOL CONFIG
18287
cat <<\_LT_EOF >> "$cfgfile"
18288
# AIX sometimes has problems with the GCC collect2 program. For some
18289
# reason, if we set the COLLECT_NAMES environment variable, the problems
18290
# vanish in a puff of smoke.
18291
if test "X${COLLECT_NAMES+set}" != Xset; then
18293
export COLLECT_NAMES
18300
ltmain="$ac_aux_dir/ltmain.sh"
18303
# We use sed instead of cat because bash on DJGPP gets confused if
18304
# if finds mixed CR/LF and LF-only lines. Since sed operates in
18305
# text mode, it properly converts lines to CR/LF. This bash problem
18306
# is reportedly fixed, but why not run on old versions too?
18307
sed '$q' "$ltmain" >> "$cfgfile" \
18308
|| (rm -f "$cfgfile"; exit 1)
18310
if test x"$xsi_shell" = xyes; then
18311
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18315
\ */*) func_dirname_result="${1%/*}${2}" ;;\
18316
\ * ) func_dirname_result="${3}" ;;\
18318
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18319
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18320
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18321
test 0 -eq $? || _lt_function_replace_fail=:
18324
sed -e '/^func_basename ()$/,/^} # func_basename /c\
18327
\ func_basename_result="${1##*/}"\
18328
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18329
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18330
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18331
test 0 -eq $? || _lt_function_replace_fail=:
18334
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18335
func_dirname_and_basename ()\
18338
\ */*) func_dirname_result="${1%/*}${2}" ;;\
18339
\ * ) func_dirname_result="${3}" ;;\
18341
\ func_basename_result="${1##*/}"\
18342
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18343
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18344
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18345
test 0 -eq $? || _lt_function_replace_fail=:
18348
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18351
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18352
\ # positional parameters, so assign one to ordinary parameter first.\
18353
\ func_stripname_result=${3}\
18354
\ func_stripname_result=${func_stripname_result#"${1}"}\
18355
\ func_stripname_result=${func_stripname_result%"${2}"}\
18356
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18357
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18358
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18359
test 0 -eq $? || _lt_function_replace_fail=:
18362
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18363
func_split_long_opt ()\
18365
\ func_split_long_opt_name=${1%%=*}\
18366
\ func_split_long_opt_arg=${1#*=}\
18367
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18368
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18369
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18370
test 0 -eq $? || _lt_function_replace_fail=:
18373
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18374
func_split_short_opt ()\
18376
\ func_split_short_opt_arg=${1#??}\
18377
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18378
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18379
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18380
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18381
test 0 -eq $? || _lt_function_replace_fail=:
18384
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18388
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18389
\ *) func_lo2o_result=${1} ;;\
18391
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18392
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18393
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18394
test 0 -eq $? || _lt_function_replace_fail=:
18397
sed -e '/^func_xform ()$/,/^} # func_xform /c\
18400
func_xform_result=${1%.*}.lo\
18401
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18402
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18403
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18404
test 0 -eq $? || _lt_function_replace_fail=:
18407
sed -e '/^func_arith ()$/,/^} # func_arith /c\
18410
func_arith_result=$(( $* ))\
18411
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18412
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18413
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18414
test 0 -eq $? || _lt_function_replace_fail=:
18417
sed -e '/^func_len ()$/,/^} # func_len /c\
18420
func_len_result=${#1}\
18421
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18422
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18423
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18424
test 0 -eq $? || _lt_function_replace_fail=:
18428
if test x"$lt_shell_append" = xyes; then
18429
sed -e '/^func_append ()$/,/^} # func_append /c\
18432
eval "${1}+=\\${2}"\
18433
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18434
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18435
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18436
test 0 -eq $? || _lt_function_replace_fail=:
18439
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18440
func_append_quoted ()\
18442
\ func_quote_for_eval "${2}"\
18443
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18444
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18445
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18446
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18447
test 0 -eq $? || _lt_function_replace_fail=:
18450
# Save a `func_append' function call where possible by direct use of '+='
18451
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18452
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18453
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18454
test 0 -eq $? || _lt_function_replace_fail=:
18456
# Save a `func_append' function call even when '+=' is not available
18457
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18458
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18459
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18460
test 0 -eq $? || _lt_function_replace_fail=:
18463
if test x"$_lt_function_replace_fail" = x":"; then
18464
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18465
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18469
mv -f "$cfgfile" "$ofile" ||
18470
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18474
cat <<_LT_EOF >> "$ofile"
18476
# ### BEGIN LIBTOOL TAG CONFIG: F77
18478
# The linker used to build libraries.
18481
# How to create reloadable object files.
18482
reload_flag=$lt_reload_flag_F77
18483
reload_cmds=$lt_reload_cmds_F77
18485
# Commands used to build an old-style archive.
18486
old_archive_cmds=$lt_old_archive_cmds_F77
18488
# A language specific compiler.
18489
CC=$lt_compiler_F77
18491
# Is the compiler the GNU compiler?
18494
# Compiler flag to turn off builtin functions.
18495
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18497
# Additional compiler flags for building library objects.
18498
pic_flag=$lt_lt_prog_compiler_pic_F77
18500
# How to pass a linker flag through the compiler.
18501
wl=$lt_lt_prog_compiler_wl_F77
18503
# Compiler flag to prevent dynamic linking.
18504
link_static_flag=$lt_lt_prog_compiler_static_F77
18506
# Does compiler simultaneously support -c and -o options?
18507
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18509
# Whether or not to add -lc for building shared libraries.
18510
build_libtool_need_lc=$archive_cmds_need_lc_F77
18512
# Whether or not to disallow shared libs when runtime libs are static.
18513
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18515
# Compiler flag to allow reflexive dlopens.
18516
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18518
# Compiler flag to generate shared objects directly from archives.
18519
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18521
# Whether the compiler copes with passing no objects directly.
18522
compiler_needs_object=$lt_compiler_needs_object_F77
18524
# Create an old-style archive from a shared archive.
18525
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18527
# Create a temporary old-style archive to link instead of a shared archive.
18528
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18530
# Commands used to build a shared archive.
18531
archive_cmds=$lt_archive_cmds_F77
18532
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18534
# Commands used to build a loadable module if different from building
18535
# a shared archive.
18536
module_cmds=$lt_module_cmds_F77
18537
module_expsym_cmds=$lt_module_expsym_cmds_F77
18539
# Whether we are building with GNU ld or not.
18540
with_gnu_ld=$lt_with_gnu_ld_F77
18542
# Flag that allows shared libraries with undefined symbols to be built.
18543
allow_undefined_flag=$lt_allow_undefined_flag_F77
18545
# Flag that enforces no undefined symbols.
18546
no_undefined_flag=$lt_no_undefined_flag_F77
18548
# Flag to hardcode \$libdir into a binary during linking.
18549
# This must work even if \$libdir does not exist
18550
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18552
# If ld is used when linking, flag to hardcode \$libdir into a binary
18553
# during linking. This must work even if \$libdir does not exist.
18554
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18556
# Whether we need a single "-rpath" flag with a separated argument.
18557
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18559
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18560
# DIR into the resulting binary.
18561
hardcode_direct=$hardcode_direct_F77
18563
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18564
# DIR into the resulting binary and the resulting library dependency is
18565
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18566
# library is relocated.
18567
hardcode_direct_absolute=$hardcode_direct_absolute_F77
18569
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18570
# into the resulting binary.
18571
hardcode_minus_L=$hardcode_minus_L_F77
18573
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18574
# into the resulting binary.
18575
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18577
# Set to "yes" if building a shared library automatically hardcodes DIR
18578
# into the library and all subsequent libraries and executables linked
18580
hardcode_automatic=$hardcode_automatic_F77
18582
# Set to yes if linker adds runtime paths of dependent libraries
18583
# to runtime path list.
18584
inherit_rpath=$inherit_rpath_F77
18586
# Whether libtool must link a program against all its dependency libraries.
18587
link_all_deplibs=$link_all_deplibs_F77
18589
# Set to "yes" if exported symbols are required.
18590
always_export_symbols=$always_export_symbols_F77
18592
# The commands to list exported symbols.
18593
export_symbols_cmds=$lt_export_symbols_cmds_F77
18595
# Symbols that should not be listed in the preloaded symbols.
18596
exclude_expsyms=$lt_exclude_expsyms_F77
18598
# Symbols that must always be exported.
18599
include_expsyms=$lt_include_expsyms_F77
18601
# Commands necessary for linking programs (against libraries) with templates.
18602
prelink_cmds=$lt_prelink_cmds_F77
18604
# Commands necessary for finishing linking programs.
18605
postlink_cmds=$lt_postlink_cmds_F77
18607
# Specify filename containing input files.
18608
file_list_spec=$lt_file_list_spec_F77
18610
# How to hardcode a shared library path into an executable.
18611
hardcode_action=$hardcode_action_F77
18613
# ### END LIBTOOL TAG CONFIG: F77
18624
ac_clean_files=$ac_clean_files_save
18626
test $ac_write_fail = 0 ||
18627
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18630
# configure is writing to config.log, and then calls config.status.
18631
# config.status does its own redirection, appending to config.log.
18632
# Unfortunately, on DOS this fails, as config.log is still kept open
18633
# by configure, so config.status won't be able to write to it; its
18634
# output is simply discarded. So we exec the FD to /dev/null,
18635
# effectively closing config.log, so it can be properly (re)opened and
18636
# appended to by config.status. When coming back to configure, we
18637
# need to make the FD available again.
18638
if test "$no_create" != yes; then
18640
ac_config_status_args=
18641
test "$silent" = yes &&
18642
ac_config_status_args="$ac_config_status_args --quiet"
18644
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18646
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
18647
# would make configure fail if this is the last instruction.
18648
$ac_cs_success || as_fn_exit 1
18650
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18651
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18652
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}